Skip to content

Commit c5dc461

Browse files
authored
Add some more details to firebase-appdistribution/test-app/README.md (#3930)
1 parent 53d9f61 commit c5dc461

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

firebase-appdistribution/test-app/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,22 @@ In-App Feedback is currently tricky to test locally because it relies on the
5555
fact that a release exists with the same hash of the running binary.
5656

5757
To build the debug APK, upload it to App Distribution, and install it on the running emulator:
58+
1. In firebase-appdistribution/test-app/test-app.gradle, uncomment the line `// testers "your email here"` and replace "your email here" with the email you intend to use for testing.
5859
1. Start an emulator
59-
2. Run the following command from the repo's root directory:
60+
1. Run the following command from the repo's root directory:
6061

6162
```
62-
./gradlew :firebase-appdistribution:test-app:build :firebase-appdistribution:test-app:appDistributionUploadDebug && adb install firebase-appdistribution/test-app/build/outputs/apk/debug/test-app-debug.apk
63-
```
63+
./gradlew clean :firebase-appdistribution:test-app:build :firebase-appdistribution:test-app:appDistributionUploadDebug && adb install firebase-appdistribution/test-app/build/outputs/apk/debug/test-app-debug.apk
64+
```
65+
66+
This will build the debug variant of the app (which has the full SDK), upload it to App Distribution, and install it on the running emulator. Run the app in the emulator to test. As an alternative you can always download it using App Distribution, but using `adb` is just faster.
6467
65-
After that, if you want to avoid having to do this every time you want to test
66-
locally:
68+
After that, if you want to avoid having to do this every time you want to test locally:
6769
6870
1. Submit feedback in the locally running app, to generate some logs
69-
2. In the Logcat output, find the release name (i.e. "projects/1095562444941/installations/fCmpB677QTybkwfKbViGI-/releases/3prs96fui9kb0")
70-
3. Modify the body of `ReleaseIdentifier.identifyRelease()` to be:
71+
1. In the Logcat output, find the release name (i.e. `"projects/1095562444941/installations/fCmpB677QTybkwfKbViGI-/releases/3prs96fui9kb0"`)
72+
1. Modify the body of `ReleaseIdentifier.identifyRelease()` to be:
7173
7274
```
7375
return Tasks.forResult("<your release name>");
74-
```
76+
```

0 commit comments

Comments
 (0)