From e0e48085db871dcbd7cfb1866eb8a55131860f53 Mon Sep 17 00:00:00 2001 From: Sabuhi Teymurov Date: Tue, 19 Sep 2023 19:47:49 +0400 Subject: [PATCH] fix(config): detox build script --- detox.config.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/detox.config.js b/detox.config.js index a315141..4aea6c8 100644 --- a/detox.config.js +++ b/detox.config.js @@ -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', }, },