Skip to content

Commit

Permalink
Merge pull request #22 from sabuhiteymurov/config/detox
Browse files Browse the repository at this point in the history
fix(config): detox build script
  • Loading branch information
sabuhiteymurov authored Sep 19, 2023
2 parents 6c9f0aa + e0e4808 commit 1413c7f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions detox.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,32 @@ module.exports = {
'ios.debug': {
type: 'ios.app',
build:
'xcodebuild -workspace ios/eastestsexample.xcworkspace -scheme eastestsexample -configuration Debug -sdk iphonesimulator -arch x86_64 -derivedDataPath ios/build',
binaryPath:
'ios/build/Build/Products/Debug-iphonesimulator/eastestsexample.app',
// Replace `expobase` with your app's name (check out the folder name in `ios/`)
'xcodebuild -workspace ios/expobase.xcworkspace -scheme expobase -configuration Debug -sdk iphonesimulator -arch x86_64 -derivedDataPath ios/build',
// Points to the app's .app file generated by `npm run e2e:ios:debug:build`
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/expobase.app',
},
'ios.release': {
type: 'ios.app',
build:
'xcodebuild -workspace ios/eastestsexample.xcworkspace -scheme eastestsexample -configuration Release -sdk iphonesimulator -arch x86_64 -derivedDataPath ios/build',
// Points to the app's .app file generated by `npm run ios:release`
// Replace `expobase` with your app's name (check out the folder name in `ios/`)
'xcodebuild -workspace ios/expobase.xcworkspace -scheme expobase -configuration Release -sdk iphonesimulator -arch x86_64 -derivedDataPath ios/build',
// Points to the app's .app file generated by `npm run e2e:ios:build`
binaryPath:
'ios/build/Build/Products/Release-iphonesimulator/eastestsexample.app',
'ios/build/Build/Products/Release-iphonesimulator/expobase.app',
},
'android.debug': {
type: 'android.apk',
build:
'cd android && ./gradlew :app:assembleDebug :app:assembleAndroidTest -DtestBuildType=debug && cd ..',
// Points to the app's APK file generated by `npm run e2e:android:debug:build`
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
},
'android.release': {
type: 'android.apk',
build:
'cd android && ./gradlew :app:assembleRelease :app:assembleAndroidTest -DtestBuildType=release && cd ..',
// Points to the app's APK file generated by `npm run android:release`
// Points to the app's APK file generated by `npm run e2e:android:build`
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
},
},
Expand Down

0 comments on commit 1413c7f

Please sign in to comment.