Keystore gen

This commit is contained in:
Anant Bhasin 2021-04-07 22:25:59 +05:30
parent f339c8964a
commit a567c09b03
4 changed files with 9 additions and 1 deletions

View File

@ -38,6 +38,10 @@ jobs:
FIREBASE_SECRET: ${{ secrets.GOOGLE_KEY }}
run: echo $FIREBASE_SECRET > android/app/google-services.json
- name: Generate Temporary Keystore
run: |
keytool -genkey -noprompt -dname "CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown" -keystore android/app/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
- name: Build for detox
run: |
yarn detox build e2e --configuration android.experimental.play.emu.release

View File

@ -233,6 +233,10 @@ android {
java.srcDirs = ['src/main/java', 'src/play/java']
manifest.srcFile 'src/play/AndroidManifest.xml'
}
playE2E {
java.srcDirs = ['src/main/java', 'src/play/java']
manifest.srcFile 'src/androidTest/AndroidManifest.xml'
}
}
testBuildType "release"

View File

@ -204,7 +204,7 @@
"android.experimental.play.release": {
"type": "android.apk",
"binaryPath": "android/app/build/outputs/apk/release/app-Experimental-Play-release.apk",
"build": "cd android && ./gradlew assembleExperimentalPlayRelease assembleExperimentalPlayAndroidTest -DtestBuildType=release && cd .."
"build": "cd android && ./gradlew assembleExperimentalPlayRelease assembleExperimentalPlayAndroidTest -DtestBuildType=release -DKEYSTORE=debug.keystore -DKEYSTORE_PASSWORD=android -DKEYSTORE_ALIAS=androiddebugkey && cd .."
},
"android.official.play.debug": {
"type": "android.apk",