From 76ff9874e20819d7cc88f817a88806b4b855f1bc Mon Sep 17 00:00:00 2001 From: Anant Bhasin Date: Fri, 28 May 2021 21:26:15 +0530 Subject: [PATCH] building release version for the tests --- android/app/build.gradle | 3 +-- android/gradle.properties | 7 ++++++- package.json | 10 +++++----- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 0b22e821e..541968ee6 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -151,7 +151,7 @@ android { missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60" // See note below! } resValue "string", "rn_config_reader_custom_package", "chat.rocket.reactnative" - testBuildType System.getProperty('testBuildType', 'debug') // This will later be used to control the test apk build type + testBuildType System.getProperty('testBuildType', 'release') // This will later be used to control the test apk build type testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' } @@ -236,7 +236,6 @@ android { } testBuildType "release" - testBuildType "debug" applicationVariants.all { variant -> variant.outputs.each { output -> diff --git a/android/gradle.properties b/android/gradle.properties index 53184a938..ae9b34d89 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -34,4 +34,9 @@ APPLICATION_ID=chat.rocket.reactnative # App properties VERSIONCODE=999999999 -BugsnagAPIKey="" \ No newline at end of file +BugsnagAPIKey="" + +KEYSTORE=release.keystore +KEY_PASSWORD=password +KEY_ALIAS=rocketchat_test_keystore +KEYSTORE_PASSWORD=password \ No newline at end of file diff --git a/package.json b/package.json index b382809d8..aedc01526 100644 --- a/package.json +++ b/package.json @@ -227,15 +227,15 @@ } }, "android.experimental.play.emu.debug": { - "device": "Pixel_API_28_AOSP", - "type": "android.emulator", + "device": "CVH7N15C14003503", + "type": "android.attached", "binaryPath": "android/app/build/outputs/apk/experimentalPlay/debug/app-experimental-play-debug.apk", "build": "cd android && ./gradlew app:assembleExperimentalPlayDebug app:assembleAndroidTest -DtestBuildType=debug && cd .." }, "android.experimental.play.emu.release": { - "device": "Pixel_API_28_AOSP", - "type": "android.emulator", - "binaryPath": "android/app/build/outputs/apk/experimentalPlay/debug/app-experimental-play-release.apk", + "device": "CVH7N15C14003503", + "type": "android.attached", + "binaryPath": "android/app/build/outputs/apk/experimentalPlay/release/app-experimental-play-release.apk", "build": "cd android && ./gradlew app:assembleExperimentalPlayRelease app:assembleAndroidTest -DtestBuildType=release && cd .." } }