Debug working on local, but not release

This commit is contained in:
Diego Mello 2023-01-31 16:31:21 -03:00
parent 1a36e834fd
commit a3c6b43110
2 changed files with 7 additions and 6 deletions

View File

@ -25,14 +25,15 @@ module.exports = {
'android.debug': { 'android.debug': {
type: 'android.apk', type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/experimentalPlay/debug/app-experimental-play-debug.apk', binaryPath: 'android/app/build/outputs/apk/experimentalPlay/debug/app-experimental-play-debug.apk',
build: 'cd android ; ./gradlew assembleExperimentalPlayDebugAndroidTest -DtestBuildType=debug ; cd -', build:
'cd android ; ./gradlew assembleExperimentalPlayDebug assembleExperimentalPlayDebugAndroidTest -DtestBuildType=debug ; cd -',
reversePorts: [8081] reversePorts: [8081]
}, },
'android.release': { 'android.release': {
type: 'android.apk', type: 'android.apk',
binaryPath: binaryPath: 'android/app/build/outputs/apk/experimentalPlay/release/app-experimental-play-release.apk',
'android/app/build/outputs/apk/androidTest/experimentalPlay/release/app-experimental-play-release-androidTest.apk', build:
build: 'cd android ; ./gradlew assembleExperimentalPlayReleaseAndroidTest -DtestBuildType=release ; cd -' 'cd android ; ./gradlew assembleExperimentalPlayRelease assembleExperimentalPlayReleaseAndroidTest -DtestBuildType=release ; cd -'
} }
}, },
devices: { devices: {
@ -51,7 +52,7 @@ module.exports = {
emulator: { emulator: {
type: 'android.emulator', type: 'android.emulator',
device: { device: {
avdName: 'myavd' avdName: 'Pixel_4_XL_API_31'
} }
} }
}, },

View File

@ -18,7 +18,7 @@ public class DetoxTest {
@Rule @Rule
// Replace 'MainActivity' with the value of android:name entry in // Replace 'MainActivity' with the value of android:name entry in
// <activity> in AndroidManifest.xml // <activity> in AndroidManifest.xml
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false); public ActivityTestRule<chat.rocket.reactnative.MainActivity> mActivityRule = new ActivityTestRule<>(chat.rocket.reactnative.MainActivity.class, false, false);
@Test @Test
public void runDetoxTests() { public void runDetoxTests() {