File tree 3 files changed +7
-3
lines changed
src/main/java/com/csfrequency/firebase/devicestore
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Automatically store Device and FCM Token information for Firebase Auth Users in
11
11
Add the following dependency to your ` app/build.gradle ` :
12
12
13
13
```
14
- implementation "com.csfrequency.firebase.devicestore:firebase-device-store:0.1.2 "
14
+ implementation "com.csfrequency.firebase.devicestore:firebase-device-store:0.1.3 "
15
15
```
16
16
17
17
## Example usage
@@ -71,7 +71,7 @@ Create a new DeviceStore.
71
71
Parameters:
72
72
73
73
- ` context ` : ` Context ` the application context
74
- - ` app ` : ` FirebaseApp ` the Firebase App to use
74
+ - ` app ` : ` FirebaseApp ` (Optional) the Firebase App to use. Defaults to the default Firebase App.
75
75
- ` collectionPath ` : (Optional) ` string ` the Cloud Firestore collection where devices should be stored. Defaults to ` user-devices ` .
76
76
77
77
Returns a ` FirebaseDeviceStore ` .
Original file line number Diff line number Diff line change 64
64
}
65
65
66
66
group = publishedGroupId
67
- version = ' 0.1.2 '
67
+ version = ' 0.1.3 '
68
68
69
69
install {
70
70
repositories. mavenInstaller {
Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ public class FirebaseDeviceStore {
52
52
private FirebaseUser currentUser = null ;
53
53
private boolean subscribed = false ;
54
54
55
+ public FirebaseDeviceStore (Context context ) {
56
+ this (context , FirebaseApp .getInstance (), DEFAULT_COLLECTION_PATH );
57
+ }
58
+
55
59
public FirebaseDeviceStore (Context context , FirebaseApp app ) {
56
60
this (context , app , DEFAULT_COLLECTION_PATH );
57
61
}
You can’t perform that action at this time.
0 commit comments