Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
react-native-flurry-analytics
Advanced tools
npm install react-native-flurry-analytics --save
react-native link react-native-flurry-analytics
import FlurryAnalytics from 'react-native-flurry-analytics';
sudo gem install cocoapods
cd ios
pod init
open Podfile
Add this line
pod 'Flurry-iOS-SDK/FlurrySDK'
Then run
pod install
Add these lines in AndroidManifest.xml
<!-- Required permissions - Internet access -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!-- Recommended permission - External memory pre-caching -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Add following to android/app/proguard-rules.pro
# Required to preserve the Flurry SDK
-keep class com.flurry.** { *; }
-dontwarn com.flurry.**
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepclasseswithmembers class * {
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;
}
FlurryAnalytics.startSession('YOUR_API_KEY');
!!! method must be called prior to invoking startSession
FlurryAnalytics.setAppVersion('1.0.0');
!!! method must be called prior to invoking startSession
FlurryAnalytics.setDebugLogEnabled(false)
!!! method must be called prior to invoking startSession
FlurryAnalytics.setSessionContinueSeconds(10);
!!! method must be called prior to invoking startSession
FlurryAnalytics.setCrashReportingEnabled(true);
FlurryAnalytics.logEvent('eventName');
FlurryAnalytics.logEvent('eventName', true);
FlurryAnalytics.logEvent('eventName', {param: 'true'});
FlurryAnalytics.logEvent('eventName', {param: 'true'}, true);
FlurryAnalytics.endTimedEvent('eventName');
FlurryAnalytics.endTimedEvent('eventName', {param: 'true'});
FlurryAnalytics.logPageView();
FlurryAnalytics.setUserId('userId');
FlurryAnalytics.setUserAge(28);
FlurryAnalytics.setUserGender('m');
// or
FlurryAnalytics.setUserGender('f');
Just submit a pull request!
Code and documentation copyright 2016 Dmitriy Kolesnikov. Code released under the MIT license.
FAQs
React Native wrapper for Flurry Analytics
The npm package react-native-flurry-analytics receives a total of 5 weekly downloads. As such, react-native-flurry-analytics popularity was classified as not popular.
We found that react-native-flurry-analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.