@@ -17,9 +17,12 @@ package com.google.firebase.installations {
17
17
}
18
18
19
19
public enum FirebaseInstallationsException.Status {
20
- enum_constant public static final com.google.firebase.installations.FirebaseInstallationsException.Status AUTHENTICATION_ERROR;
21
- enum_constant public static final com.google.firebase.installations.FirebaseInstallationsException.Status CLIENT_ERROR;
22
- enum_constant public static final com.google.firebase.installations.FirebaseInstallationsException.Status SDK_INTERNAL_ERROR;
20
+ enum_constant public static final com.google.firebase.installations.FirebaseInstallationsException.Status BAD_CONFIG;
21
+ }
22
+
23
+ public class RandomFidGenerator {
24
+ ctor public RandomFidGenerator();
25
+ method @NonNull public String createRandomFid();
23
26
}
24
27
25
28
}
@@ -33,12 +36,13 @@ package com.google.firebase.installations.local {
33
36
34
37
public class PersistedInstallation {
35
38
ctor public PersistedInstallation(@NonNull FirebaseApp);
36
- method @NonNull public boolean clear ();
37
- method @NonNull public boolean insertOrUpdatePersistedInstallationEntry(@NonNull com.google.firebase.installations.local.PersistedInstallationEntry);
39
+ method public void clearForTesting ();
40
+ method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry insertOrUpdatePersistedInstallationEntry(@NonNull com.google.firebase.installations.local.PersistedInstallationEntry);
38
41
method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry readPersistedInstallationEntryValue();
39
42
}
40
43
41
44
public enum PersistedInstallation.RegistrationStatus {
45
+ enum_constant public static final com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus ATTEMPT_MIGRATION;
42
46
enum_constant public static final com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus NOT_GENERATED;
43
47
enum_constant public static final com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus REGISTERED;
44
48
enum_constant public static final com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus REGISTER_ERROR;
@@ -59,7 +63,15 @@ package com.google.firebase.installations.local {
59
63
method public boolean isNotGenerated();
60
64
method public boolean isRegistered();
61
65
method public boolean isUnregistered();
66
+ method public boolean shouldAttemptMigration();
62
67
method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry.Builder toBuilder();
68
+ method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withAuthToken(@NonNull String, long, long);
69
+ method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withClearedAuthToken();
70
+ method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withFisError(@NonNull String);
71
+ method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withNoGeneratedFid();
72
+ method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withRegisteredFid(@NonNull String, @NonNull String, long, @Nullable String, long);
73
+ method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withUnregisteredFid(@NonNull String);
74
+ field @NonNull public static com.google.firebase.installations.local.PersistedInstallationEntry INSTANCE;
63
75
}
64
76
65
77
public abstract static class PersistedInstallationEntry.Builder {
@@ -107,8 +119,8 @@ package com.google.firebase.installations.remote {
107
119
}
108
120
109
121
public enum InstallationResponse.ResponseCode {
122
+ enum_constant public static final com.google.firebase.installations.remote.InstallationResponse.ResponseCode BAD_CONFIG;
110
123
enum_constant public static final com.google.firebase.installations.remote.InstallationResponse.ResponseCode OK;
111
- enum_constant public static final com.google.firebase.installations.remote.InstallationResponse.ResponseCode SERVER_ERROR;
112
124
}
113
125
114
126
public abstract class TokenResult {
@@ -117,7 +129,6 @@ package com.google.firebase.installations.remote {
117
129
method @Nullable public abstract com.google.firebase.installations.remote.TokenResult.ResponseCode getResponseCode();
118
130
method @Nullable public abstract String getToken();
119
131
method @NonNull public abstract long getTokenExpirationTimestamp();
120
- method public boolean isSuccessful();
121
132
method @NonNull public abstract com.google.firebase.installations.remote.TokenResult.Builder toBuilder();
122
133
}
123
134
@@ -130,9 +141,9 @@ package com.google.firebase.installations.remote {
130
141
}
131
142
132
143
public enum TokenResult.ResponseCode {
133
- enum_constant public static final com.google.firebase.installations.remote.TokenResult.ResponseCode FID_ERROR;
144
+ enum_constant public static final com.google.firebase.installations.remote.TokenResult.ResponseCode AUTH_ERROR;
145
+ enum_constant public static final com.google.firebase.installations.remote.TokenResult.ResponseCode BAD_CONFIG;
134
146
enum_constant public static final com.google.firebase.installations.remote.TokenResult.ResponseCode OK;
135
- enum_constant public static final com.google.firebase.installations.remote.TokenResult.ResponseCode REFRESH_TOKEN_ERROR;
136
147
}
137
148
138
149
}
0 commit comments