TST: minor e2e refactor

This commit is contained in:
Overtorment 2023-10-22 13:00:20 +01:00
parent 0a2c700781
commit 1101cb604d
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,7 @@
"type": "android.apk",
"testBinaryPath": "android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk",
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
"build": "find android | grep '\\.apk' --color=never | xargs -l rm\n\n# creating fresh keystore\nrm detox.keystore\nkeytool -genkeypair -v -keystore detox.keystore -alias detox -keyalg RSA -keysize 2048 -validity 10000 -storepass 123456 -keypass 123456 -dname 'cn=Unknown, ou=Unknown, o=Unknown, c=Unknown'\n\n# building release APK\ncd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..\n\n# wip\nfind $ANDROID_HOME | grep apksigner\n\n# signing\nmv ./android/app/build/outputs/apk/release/app-release-unsigned.apk ./android/app/build/outputs/apk/release/app-release.apk\n$ANDROID_HOME/build-tools/30.0.2/apksigner sign --ks detox.keystore --ks-pass=pass:123456 ./android/app/build/outputs/apk/release/app-release.apk\n$ANDROID_HOME/build-tools/30.0.2/apksigner sign --ks detox.keystore --ks-pass=pass:123456 ./android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk"
"build": "./tests/e2e/detox-build-release-apk.sh"
}
},
"devices": {

View File

@ -1,5 +1,4 @@
# script thats used to build & sign release APK in preparation for Detox e2e testing.
# should be copied in .detoxrc.json - apps - android.release - build
# deleting old artifacts
find android | grep '\.apk' --color=never | xargs -l rm