diff --git a/.github/workflows/android_detox.yml b/.github/workflows/android_detox.yml index 7552f9b75..8793b6554 100644 --- a/.github/workflows/android_detox.yml +++ b/.github/workflows/android_detox.yml @@ -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 diff --git a/android/app/build.gradle b/android/app/build.gradle index ab2ce20c0..0bbc9042d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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" diff --git a/android/app/src/androidTest/AndroidManifest.xml b/android/app/src/androidTest/AndroidManifest.xml new file mode 100644 index 000000000..e69de29bb diff --git a/package.json b/package.json index e9b02743f..f0e3ef6d3 100644 --- a/package.json +++ b/package.json @@ -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",