Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
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 1 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.