react-native-flurry-analytics
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -25,7 +25,2 @@ declare module 'react-native-flurry-analytics' { | ||
/** | ||
* !!! method must be called prior to invoking __startSession, e.g. FlurryAnalytics.setEventLoggingEnabled(true);) | ||
*/ | ||
setEventLoggingEnabled(enabled: boolean); | ||
/** | ||
* !!! method must be called prior to invoking startSession, e.g. FlurryAnalytics.setCrashReportingEnabled(true); | ||
@@ -46,2 +41,7 @@ */ | ||
/** | ||
* e.g. FlurryAnalytics.logPageView(); | ||
*/ | ||
logPageView(); | ||
/** | ||
* e.g. FlurryAnalytics.setUserId('userId'); | ||
@@ -63,2 +63,2 @@ */ | ||
export default FlurryAnalytics; | ||
} | ||
} |
13
index.js
@@ -110,2 +110,6 @@ import { | ||
static logPageView() { | ||
RNFlurryAnalytics.logPageView(); | ||
} | ||
static setUserId(userId) { | ||
@@ -138,11 +142,2 @@ if (!userId || typeof userId !== 'string') { | ||
static setEventLoggingEnabled(enabled = true) { | ||
if (startSessionIsCalled) { | ||
mustCalledPriorStartSession('setEventLoggingEnabled'); | ||
return; | ||
} | ||
RNFlurryAnalytics.setEventLoggingEnabled(enabled); | ||
} | ||
static mock() { | ||
@@ -149,0 +144,0 @@ const methods = Object.getOwnPropertyNames(FlurryAnalytics); |
{ | ||
"name": "react-native-flurry-analytics", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "React Native wrapper for Flurry Analytics", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -74,2 +74,3 @@ # React Native Flurry Analytics | ||
``` | ||
# Required to preserve the Flurry SDK | ||
-keep class com.flurry.** { *; } | ||
@@ -79,4 +80,22 @@ -dontwarn com.flurry.** | ||
-keepclasseswithmembers class * { | ||
public (android.content.Context, android.util.AttributeSet, int); | ||
public (android.content.Context, android.util.AttributeSet, int); | ||
} | ||
# Google Play Services library | ||
-keep class * extends java.util.ListResourceBundle { | ||
protected Object[ ][ ] getContents(); | ||
} | ||
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable { | ||
public static final *** NULL; | ||
} | ||
-keepnames @com.google.android.gms.common.annotation.KeepName class * | ||
-keepclassmembernames class * { | ||
@com.google.android.gms.common.annotation.KeepName *; | ||
} | ||
-keepnames class * implements android.os.Parcelable { | ||
public static final ** CREATOR; | ||
} | ||
``` | ||
@@ -139,2 +158,8 @@ | ||
#### logPageView() | ||
```javascript | ||
FlurryAnalytics.logPageView(); | ||
``` | ||
### setUserId(string userId) | ||
@@ -160,10 +185,2 @@ | ||
#### setEventLoggingEnabled(bool enabled) | ||
__!!!__ method must be called prior to invoking __startSession | ||
```javascript | ||
FlurryAnalytics.setEventLoggingEnabled(true); | ||
``` | ||
### For more information read official docs [iOS](http://flurry.github.io/flurry-ios-sdk/) [Android](http://flurry.github.io/flurry-android-sdk/) | ||
@@ -170,0 +187,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40133
18
191
170