
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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
-keep class com.flurry.** { *; }
-dontwarn com.flurry.**
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepclasseswithmembers class * {
public (android.content.Context, android.util.AttributeSet, int);
}
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.setUserId('userId');
FlurryAnalytics.setUserAge(28);
FlurryAnalytics.setUserGender('m');
// or
FlurryAnalytics.setUserGender('f');
!!! method must be called prior to invoking __startSession
FlurryAnalytics.setEventLoggingEnabled(true);
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 2 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.