mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 10:12:01 +01:00
5d4a25840b
Co-authored-by: Ivan Vershigora <ivan.vershigora@gmail.com>
18 lines
1.0 KiB
Bash
Executable File
18 lines
1.0 KiB
Bash
Executable File
# 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
|
|
|
|
# creating fresh keystore
|
|
rm detox.keystore
|
|
keytool -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'
|
|
|
|
# building release APK
|
|
cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..
|
|
|
|
# signing
|
|
mv ./android/app/build/outputs/apk/release/app-release-unsigned.apk ./android/app/build/outputs/apk/release/app-release.apk
|
|
$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
|
|
$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
|