react-native-google-fit
Advanced tools
@@ -32,3 +32,2 @@ /** | ||
| import com.google.android.gms.common.GoogleApiAvailability; | ||
| import com.google.android.gms.common.Scopes; | ||
| import com.google.android.gms.common.ErrorDialogFragment; | ||
@@ -217,4 +216,7 @@ import com.google.android.gms.common.api.ApiException; | ||
| GoogleSignInClient googleSignInClient = GoogleSignIn.getClient(context, options); | ||
| GoogleSignInAccount gsa = GoogleSignIn.getAccountForScopes(mReactContext, new Scope(Scopes.FITNESS_ACTIVITY_READ)); | ||
| // this is a temporary scope as a hotfix | ||
| // Ref to https://developers.google.com/android/guides/releases?hl=en | ||
| // will be removed in the future release | ||
| String tempScope = "www.googleapis.com/auth/fitness.activity.read"; | ||
| GoogleSignInAccount gsa = GoogleSignIn.getAccountForScopes(mReactContext, new Scope(tempScope)); | ||
| Fitness.getConfigClient(mReactContext, gsa).disableFit(); | ||
@@ -221,0 +223,0 @@ mApiClient.disconnect(); |
| ### Changelog: | ||
| ``` | ||
| 0.18.2 ~ temporary hotfix (#268, kudos to @nikhil-kumar-160) | ||
| 0.18.1 + Implement `getBodyTemperatureSamples()` and `getOxygenSaturationSamples()` (#266, kudos to @mluksha) | ||
@@ -5,0 +7,0 @@ ~ Update typescript definitions |
+1
-1
| { | ||
| "name": "react-native-google-fit", | ||
| "version": "0.18.1", | ||
| "version": "0.18.2", | ||
| "description": "A React Native bridge module for interacting with Google Fit", | ||
@@ -5,0 +5,0 @@ "main": "index.android.js", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
244030
0.1%4560
0.07%