File tree Expand file tree Collapse file tree 5 files changed +14
-15
lines changed Expand file tree Collapse file tree 5 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,15 @@ describe('appCheck()', function () {
52
52
}
53
53
54
54
// Force refresh should get a different token?
55
- // TODO iOS tokens are stale because of https://github.com/firebase/firebase-ios-sdk/issues/8544
56
- if ( device . getPlatform ( ) === 'android' ) {
57
- const token2 = await firebase . appCheck ( ) . getToken ( true ) ;
58
- token2 . should . not . equal ( '' ) ;
59
- const decodedToken2 = jwt . decode ( token2 ) ;
60
- decodedToken2 . aud [ 1 ] . should . equal ( 'projects/react-native-firebase-testing' ) ;
61
- if ( decodedToken2 . exp < Date . now ( ) ) {
62
- Promise . reject ( 'Token already expired' ) ;
63
- }
64
- ( token === token2 ) . should . be . false ( ) ;
55
+ // TODO sometimes fails on android https://github.com/firebase/firebase-android-sdk/issues/2954
56
+ const token2 = await firebase . appCheck ( ) . getToken ( true ) ;
57
+ token2 . should . not . equal ( '' ) ;
58
+ const decodedToken2 = jwt . decode ( token2 ) ;
59
+ decodedToken2 . aud [ 1 ] . should . equal ( 'projects/react-native-firebase-testing' ) ;
60
+ if ( decodedToken2 . exp < Date . now ( ) ) {
61
+ Promise . reject ( 'Token already expired' ) ;
65
62
}
63
+ ( token === token2 ) . should . be . false ( ) ;
66
64
} ) ;
67
65
} ) ;
68
66
describe ( 'activate())' , function ( ) {
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ - (dispatch_queue_t)methodQueue {
75
75
: (RCTPromiseResolveBlock)resolve
76
76
: (RCTPromiseRejectBlock)reject) {
77
77
FIRAppCheck *appCheck = [FIRAppCheck appCheckWithApp: firebaseApp];
78
- [appCheck tokenForcingRefresh: NO // TODO Cannot use forceRefresh argument, if we send 'YES' in
79
- // https://github.com/firebase/firebase-ios-sdk/issues/8544
78
+ [appCheck tokenForcingRefresh: forceRefresh
80
79
completion: ^(FIRAppCheckToken *_Nullable token, NSError *_Nullable error) {
81
80
if (error != nil ) {
82
81
// Handle any errors if the token was not retrieved.
Original file line number Diff line number Diff line change 65
65
},
66
66
"sdkVersions" : {
67
67
"ios" : {
68
- "firebase" : " 8.6 .0"
68
+ "firebase" : " 8.7 .0"
69
69
},
70
70
"android" : {
71
71
"minSdk" : 16 ,
72
72
"targetSdk" : 30 ,
73
73
"compileSdk" : 30 ,
74
74
"buildTools" : " 30.0.2" ,
75
- "firebase" : " 28.3 .1" ,
75
+ "firebase" : " 28.4 .1" ,
76
76
"firebaseCrashlyticsGradle" : " 2.7.1" ,
77
77
"firebasePerfGradle" : " 1.4.0" ,
78
78
"gmsGoogleServicesGradle" : " 4.3.10" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ apply plugin: 'com.android.application'
2
2
apply plugin : ' com.google.gms.google-services'
3
3
apply plugin : ' com.google.firebase.crashlytics'
4
4
apply plugin : ' com.google.firebase.firebase-perf'
5
+ apply plugin : ' com.google.firebase.appdistribution'
5
6
6
7
import com.android.build.OutputFile
7
8
@@ -39,7 +40,7 @@ def useIntlJsc = false
39
40
/**
40
41
* Architectures to build native code for in debug.
41
42
*/
42
- def nativeArchitectures = project. getProperties(). get(" reactNativeDebugArchitectures" )
43
+ def nativeArchitectures = project. getProperties(). get(' reactNativeDebugArchitectures' )
43
44
44
45
android {
45
46
ndkVersion rootProject. ext. ndkVersion
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ buildscript {
36
36
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion "
37
37
classpath ' com.google.firebase:perf-plugin:1.4.0'
38
38
classpath ' com.google.firebase:firebase-crashlytics-gradle:2.7.1'
39
+ classpath ' com.google.firebase:firebase-appdistribution-gradle:2.2.0'
39
40
}
40
41
}
41
42
You can’t perform that action at this time.
0 commit comments