building release version for the tests

This commit is contained in:
Anant Bhasin 2021-05-28 21:26:15 +05:30
parent cdf64ab09b
commit 76ff9874e2
3 changed files with 12 additions and 8 deletions

View File

@ -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 ->

View File

@ -34,4 +34,9 @@ APPLICATION_ID=chat.rocket.reactnative
# App properties
VERSIONCODE=999999999
BugsnagAPIKey=""
BugsnagAPIKey=""
KEYSTORE=release.keystore
KEY_PASSWORD=password
KEY_ALIAS=rocketchat_test_keystore
KEYSTORE_PASSWORD=password

View File

@ -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 .."
}
}