Skip to content

Commit

Permalink
test: add release builds to yarn test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
illuminati1911 committed Dec 4, 2024
1 parent a8ca10e commit 0ce5d03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ android {
}

defaultConfig {
minSdkVersion 23
minSdkVersion 24
targetSdkVersion 34
versionCode 1
// get version name from package.json version
Expand Down
12 changes: 10 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@
"test": "jest",
"build:android": "cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
"build:ios": "cd ios && xcodebuild -workspace SampleApp.xcworkspace -scheme SampleApp -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
"test:android": "DETOX_CONFIGURATION=android.emu.debug npx jest --config e2e/jest.config.js",
"test:ios": "DETOX_CONFIGURATION=ios.sim.debug npx jest --config e2e/jest.config.js --verbose"
"build:ios-debug": "detox build --configuration ios.sim.debug",
"build:ios-release": "detox build --configuration ios.sim.release",
"build:android-debug": "detox build --configuration android.emu.debug",
"build:android-release": "detox build --configuration android.emu.release",
"test:ios": "detox test --configuration ios.sim.release",
"test:ios-debug": "detox test --configuration ios.sim.debug",
"test:ios-release": "detox test --configuration ios.sim.release",
"test:android": "detox test --configuration android.emu.release",
"test:android-debug": "detox test --configuration android.emu.debug",
"test:android-release": "detox test --configuration android.emu.release"
},
"dependencies": {
"@react-navigation/native": "^6.1.18",
Expand Down

0 comments on commit 0ce5d03

Please sign in to comment.