Skip to content

Commit 808ae02

Browse files
illuminati1911jokerttu
authored andcommitted
test: add release builds to yarn test scripts
1 parent 0e073e0 commit 808ae02

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ android {
4747
}
4848

4949
defaultConfig {
50-
minSdkVersion 23
50+
minSdkVersion 24
5151
targetSdkVersion 34
5252
versionCode 1
5353
// get version name from package.json version

example/package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@
1010
"test": "jest",
1111
"build:android": "cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
1212
"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",
13-
"test:android": "DETOX_CONFIGURATION=android.emu.debug npx jest --config e2e/jest.config.js",
14-
"test:ios": "DETOX_CONFIGURATION=ios.sim.debug npx jest --config e2e/jest.config.js --verbose"
13+
"build:ios-debug": "detox build --configuration ios.sim.debug",
14+
"build:ios-release": "detox build --configuration ios.sim.release",
15+
"build:android-debug": "detox build --configuration android.emu.debug",
16+
"build:android-release": "detox build --configuration android.emu.release",
17+
"test:ios": "detox test --configuration ios.sim.release",
18+
"test:ios-debug": "detox test --configuration ios.sim.debug",
19+
"test:ios-release": "detox test --configuration ios.sim.release",
20+
"test:android": "detox test --configuration android.emu.release",
21+
"test:android-debug": "detox test --configuration android.emu.debug",
22+
"test:android-release": "detox test --configuration android.emu.release"
1523
},
1624
"dependencies": {
1725
"@react-navigation/native": "^6.1.18",

0 commit comments

Comments
 (0)