Skip to content

[MOB-12202] Create examples directory #951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
executor:
name: android/android-machine
tag: '2022.03.1'
working_directory: ~/project/example
working_directory: ~/project/examples/default
steps:
- advanced-checkout/shallow-checkout
- node/install-yarn
Expand Down Expand Up @@ -96,16 +96,16 @@ jobs:
pkg-manager: yarn
- node/install-packages:
pkg-manager: yarn
app-dir: example
app-dir: examples/default
- install_pods:
working_directory: example/ios
working_directory: examples/default/ios
- run: git --no-pager diff
- run: git diff-index HEAD --exit-code -p -I EXCLUDED_ARCHS # Ignore Arch Changes

test_ios:
macos:
xcode: 13.4.1
working_directory: ~/project/example
working_directory: ~/project/examples/default
environment:
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
steps:
Expand Down Expand Up @@ -149,9 +149,9 @@ jobs:
pkg-manager: yarn
- node/install-packages:
pkg-manager: yarn
app-dir: example
app-dir: examples/default
- install_pods:
working_directory: example/ios
working_directory: examples/default/ios
- run:
name: Install Detox CLI
command: npm install -g detox-cli
Expand All @@ -160,15 +160,15 @@ jobs:
command: brew tap wix/brew && brew install applesimutils
- run:
name: Rebuild Detox.framework Cache
working_directory: example
working_directory: examples/default
command: detox clean-framework-cache && detox build-framework-cache
- run:
name: Detox - Build Release App
working_directory: example
working_directory: examples/default
command: detox build --configuration ios.sim.release --cleanup
- run:
name: Detox - Run E2E Tests
working_directory: example
working_directory: examples/default
command: detox test --configuration ios.sim.release --cleanup

e2e_android:
Expand All @@ -183,7 +183,7 @@ jobs:
pkg-manager: yarn
- node/install-packages:
pkg-manager: yarn
app-dir: example
app-dir: examples/default
- run:
name: Install Detox CLI
command: npm install -g detox-cli
Expand All @@ -197,11 +197,11 @@ jobs:
memory: 2048
post-emulator-launch-assemble-command: |
rm -rf ~/.gradle/caches
cd ~/project/example/android && ./gradlew androidDependencies
cd ~/project/examples/default/android && ./gradlew androidDependencies
cd .. && detox build -c android.emu.release
- run:
name: Detox - Run E2E Tests
working_directory: example
working_directory: examples/default
command: detox test -c android.emu.release

publish:
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
},
{
// Detox Overrides
files: ['example/e2e/**.js'],
files: ['examples/default/e2e/**.js'],
env: {
'jest/globals': true,
},
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ DerivedData
project.xcworkspace

# Cocoapods
example/ios/Pods
examples/default/ios/Pods

# Android/IJ
.classpath
Expand Down
4 changes: 2 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Misc
.github/
.circleci/
example/
examples/

# Config files
.eslintrc.js
Expand Down Expand Up @@ -61,7 +61,7 @@ DerivedData
project.xcworkspace

# Cocoapods
example/ios/Pods
examples/default/ios/Pods

# Android/IJ
.classpath
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ PODS:
- RNInstabug (11.9.1):
- Instabug (= 11.9.0)
- React-Core
- RNScreens (3.17.0):
- RNScreens (3.20.0):
- React-Core
- React-RCTImage
- RNSVG (12.1.1):
Expand Down Expand Up @@ -410,7 +410,7 @@ DEPENDENCIES:
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
- React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- RNInstabug (from `../..`)
- RNInstabug (from `../../..`)
- RNScreens (from `../node_modules/react-native-screens`)
- RNSVG (from `../node_modules/react-native-svg`)
- RNVectorIcons (from `../node_modules/react-native-vector-icons`)
Expand Down Expand Up @@ -497,7 +497,7 @@ EXTERNAL SOURCES:
ReactCommon:
:path: "../node_modules/react-native/ReactCommon"
RNInstabug:
:path: "../.."
:path: "../../.."
RNScreens:
:path: "../node_modules/react-native-screens"
RNSVG:
Expand Down Expand Up @@ -554,7 +554,7 @@ SPEC CHECKSUMS:
React-runtimeexecutor: 4bb657a97aa74568d9ed634c8bd478299bb8a3a6
ReactCommon: eb059748e842a1a86025ebbd4ac9d99e74492f88
RNInstabug: c24a8e0b0c4d411e0e8b088028ea1b2dd8fac823
RNScreens: 0df01424e9e0ed7827200d6ed1087ddd06c493f9
RNScreens: 218801c16a2782546d30bd2026bb625c0302d70f
RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f
RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
Yoga: c11abbf5809216c91fcd62f5571078b83d9b6720
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions example/metro.config.js → examples/default/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const path = require('path');
const escape = require('escape-string-regexp');
const exclusionList = require('metro-config/src/defaults/exclusionList');
const pkg = require('../package.json');

const root = path.resolve(__dirname, '..');
const root = path.resolve(__dirname, '../..');
const pkg = require(path.join(root, 'package.json'));
const peerDependencies = Object.keys(pkg.peerDependencies);
const modules = [...peerDependencies, '@babel/runtime'];

Expand Down
2 changes: 1 addition & 1 deletion example/package.json → examples/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@react-navigation/bottom-tabs": "^6.0.9",
"@react-navigation/native": "^6.0.6",
"@react-navigation/native-stack": "^6.9.8",
"instabug-reactnative": "link:..",
"instabug-reactnative": "link:../..",
"native-base": "^3.4.25",
"react": "17.0.2",
"react-native": "0.66.0",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions example/tsconfig.json → examples/default/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "../tsconfig.json",
"extends": "../../tsconfig.json",
"include": ["src/**/*", "e2e/**/*"],
"compilerOptions": {
"paths": {
"instabug-reactnative": ["../src/index.ts"]
"instabug-reactnative": ["../../src/index.ts"]
}
}
}
Loading