You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add in-app feedback requests to FirebaseAppDistributionTesterApiClient (#3778)
* Add in-app feedback requests to FirebaseAppDistributionTesterApiClient
Also refactors out low level API-specific HTTP and basic JSON parsing functionality into TesterApiHttpClient
* Refactor error handling based on Kai's feedback
* Chage test project id
* ./gradlew :firebase-appdistribution:ktlintFormat :firebase-appdistribution:ktlintFormat :firebase-appdistribution-api:googleJavaFormat :firebase-appdistribution:googleJavaFormat
Co-authored-by: Kai Bolay <[email protected]>
Copy file name to clipboardExpand all lines: firebase-appdistribution-api/src/main/java/com/google/firebase/appdistribution/FirebaseAppDistributionException.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,9 @@ public enum Status {
26
26
UNKNOWN,
27
27
28
28
/**
29
-
* The authentication process failed. The tester was either not signed in, or something went
30
-
* wrong. Try signing in again by calling {@link FirebaseAppDistribution#signInTester}.
29
+
* The authentication process failed. The tester was either not signed in, does not have access,
30
+
* or something went wrong. Try signing in again by calling {@link
Copy file name to clipboardExpand all lines: firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/ErrorMessages.java
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,9 @@ class ErrorMessages {
18
18
staticfinalStringNETWORK_ERROR = "Request failed with unknown network error.";
19
19
20
20
staticfinalStringJSON_PARSING_ERROR =
21
-
"Error parsing service response when checking for new release. This was most likely due to a transient condition and may be corrected by retrying.";
21
+
"Error parsing service response. This was most likely due to a transient condition and may be corrected by retrying.";
22
+
23
+
staticfinalStringJSON_SERIALIZATION_ERROR = "Error building request body.";
22
24
23
25
staticfinalStringAUTHENTICATION_ERROR =
24
26
"Failed to authenticate the tester. The tester was either not signed in, or something went wrong. Try signing in again.";
@@ -28,8 +30,10 @@ class ErrorMessages {
28
30
29
31
staticfinalStringAUTHENTICATION_CANCELED = "Tester canceled the authentication flow.";
30
32
31
-
staticfinalStringNOT_FOUND_ERROR =
32
-
"Release not found. An update was not available for the current tester and app. Make sure that FirebaseAppDistribution#checkForNewRelease returns with a non-null AppDistributionRelease before calling FirebaseAppDistribution#updateApp";
33
+
staticfinalStringRELEASE_NOT_FOUND_ERROR =
34
+
"Release not found. An update was not available for the current tester and app. Make sure that checkForNewRelease() returns with a non-null AppDistributionRelease before calling updateApp()";
35
+
36
+
staticfinalStringNOT_FOUND_ERROR = "Resource not found (or the tester may not have access).";
33
37
34
38
staticfinalStringTIMEOUT_ERROR =
35
39
"Request timed out. Check the tester's internet connection and try again.";
@@ -42,7 +46,7 @@ class ErrorMessages {
42
46
"Download URL not found. This was a most likely due to a transient condition and may be corrected by retrying.";
43
47
44
48
staticfinalStringHOST_ACTIVITY_INTERRUPTED =
45
-
"Host activity interrupted while dialog was showing. Try calling FirebaseAppDistribution#updateIfNewReleaseAvailable again.";
49
+
"Host activity interrupted while dialog was showing. Try calling updateIfNewReleaseAvailable() again.";
46
50
47
51
staticfinalStringAPK_INSTALLATION_FAILED =
48
52
"The APK failed to install or installation was canceled by the tester.";
Copy file name to clipboardExpand all lines: firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/FirebaseAppDistributionImpl.java
Copy file name to clipboardExpand all lines: firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/FirebaseAppDistributionRegistrar.java
0 commit comments