├── .gitignore ├── .npmignore ├── android ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── evollu │ │ └── react │ │ └── fa │ │ ├── FIRAnalyticsPackage.java │ │ └── FIRAnalyticsModule.java ├── build.gradle └── react-native-firebase-analytics.iml ├── ios ├── RNFIRAnalytics.h ├── RNFIRAnalytics.xcodeproj │ ├── project.xcworkspace │ │ ├── xcuserdata │ │ │ ├── LLu.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ │ └── libinlu.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── contents.xcworkspacedata │ ├── xcuserdata │ │ ├── LLu.xcuserdatad │ │ │ └── xcschemes │ │ │ │ ├── xcschememanagement.plist │ │ │ │ └── RNFIRAnalytics.xcscheme │ │ └── libinlu.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── RCTPushNotification.xcscheme │ └── project.pbxproj └── RNFIRAnalytics.m ├── react-native-firebase-analytics.podspec ├── index.js ├── package.json ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.h: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | #import 4 | #import 5 | 6 | @interface RNFIRAnalytics : NSObject 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.xcodeproj/project.xcworkspace/xcuserdata/LLu.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evollu/react-native-firebase-analytics/HEAD/ios/RNFIRAnalytics.xcodeproj/project.xcworkspace/xcuserdata/LLu.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.xcodeproj/project.xcworkspace/xcuserdata/libinlu.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evollu/react-native-firebase-analytics/HEAD/ios/RNFIRAnalytics.xcodeproj/project.xcworkspace/xcuserdata/libinlu.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | minSdkVersion 16 9 | targetSdkVersion 22 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | 14 | lintOptions { 15 | abortOnError false 16 | } 17 | } 18 | 19 | dependencies { 20 | compile fileTree(include: ['*.jar'], dir: 'libs') 21 | compile 'com.facebook.react:react-native:+' 22 | compile 'com.google.firebase:firebase-core:+' 23 | compile 'com.google.firebase:firebase-analytics:+' 24 | } 25 | 26 | -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.xcodeproj/xcuserdata/LLu.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | RNFIRAnalytics.xcscheme 8 | 9 | orderHint 10 | 5 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 58B511DA1A9E6C8500147676 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.xcodeproj/xcuserdata/libinlu.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | RCTPushNotification.xcscheme 8 | 9 | orderHint 10 | 9 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 58B511DA1A9E6C8500147676 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /react-native-firebase-analytics.podspec: -------------------------------------------------------------------------------- 1 | require 'json' 2 | package_json = JSON.parse(File.read('package.json')) 3 | 4 | Pod::Spec.new do |s| 5 | 6 | s.name = package_json["name"] 7 | s.version = package_json["version"] 8 | s.summary = package_json["description"] 9 | s.homepage = package_json["homepage"] 10 | s.license = package_json["license"] 11 | s.author = { package_json["author"] => package_json["author"] } 12 | s.platform = :ios, "7.0" 13 | s.source = { :git => package_json["repository"]["url"].gsub(/(http.*)/).first, :tag => "v#{s.version}" } 14 | s.source_files = 'ios/*.{h,m}' 15 | 16 | s.dependency 'React' 17 | s.dependency 'Firebase/Core' 18 | 19 | end 20 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var React = require('react-native'); 4 | var {NativeModules} = React; 5 | 6 | var FIRAnalytics = NativeModules.RNFIRAnalytics; 7 | 8 | class FA { 9 | 10 | static setUserId(userId) { 11 | FIRAnalytics.setUserId(userId); 12 | } 13 | 14 | static setUserProperty(name, property) { 15 | FIRAnalytics.setUserProperty(name, property); 16 | } 17 | 18 | static logEvent(name, parameters) { 19 | FIRAnalytics.logEvent(name, parameters); 20 | } 21 | 22 | static setScreenName(name) { 23 | FIRAnalytics.setScreenName(name); 24 | } 25 | 26 | static setEnabled(enabled) { 27 | FIRAnalytics.setEnabled(enabled); 28 | } 29 | } 30 | 31 | module.exports = FA; 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-firebase-analytics", 3 | "version": "4.0.3", 4 | "description": "React Native component for Firebase Analytics for IOS and Android", 5 | "repository": { 6 | "type": "git", 7 | "url": "git+https://github.com/evollu/react-native-firebase-analytics.git" 8 | }, 9 | "peerDependencies": { 10 | "react-native": ">=0.40.0" 11 | }, 12 | "keywords": [ 13 | "React-Native", 14 | "ios", 15 | "android", 16 | "firebase", 17 | "analytics" 18 | ], 19 | "author": "Libin Lu", 20 | "license": "MIT", 21 | "bugs": { 22 | "url": "https://github.com/evollu/react-native-firebase-analytics/issues" 23 | }, 24 | "main" : "index.js", 25 | "homepage": "https://github.com/evollu/react-native-firebase-analytics" 26 | } 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Howard Yang 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.m: -------------------------------------------------------------------------------- 1 | #import "RNFIRAnalytics.h" 2 | #import 3 | 4 | @implementation RNFIRAnalytics 5 | 6 | RCT_EXPORT_MODULE() 7 | 8 | @synthesize bridge = _bridge; 9 | 10 | + (BOOL)requiresMainQueueSetup 11 | { 12 | return YES; 13 | } 14 | 15 | - (void)dealloc 16 | { 17 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 18 | } 19 | 20 | RCT_EXPORT_METHOD(setUserId: (NSString*) userId) 21 | { 22 | [FIRAnalytics setUserID:userId]; 23 | } 24 | 25 | RCT_EXPORT_METHOD(setUserProperty: (NSString*)name property: (NSString*)property) 26 | { 27 | [FIRAnalytics setUserPropertyString:property forName:name]; 28 | } 29 | 30 | RCT_EXPORT_METHOD(logEvent: (NSString*)name property: (NSDictionary*)parameters) 31 | { 32 | [FIRAnalytics logEventWithName:name parameters:parameters]; 33 | } 34 | 35 | RCT_EXPORT_METHOD(setScreenName: (NSString*)name) 36 | { 37 | dispatch_async(dispatch_get_main_queue(), ^{ 38 | [FIRAnalytics setScreenName:name screenClass:nil]; 39 | }); 40 | } 41 | 42 | RCT_EXPORT_METHOD(setEnabled: (BOOL)enabled) 43 | { 44 | [[FIRAnalyticsConfiguration sharedInstance] setAnalyticsCollectionEnabled:enabled]; 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /android/src/main/java/com/evollu/react/fa/FIRAnalyticsPackage.java: -------------------------------------------------------------------------------- 1 | package com.evollu.react.fa; 2 | 3 | import com.facebook.react.ReactPackage; 4 | import com.facebook.react.bridge.JavaScriptModule; 5 | import com.facebook.react.bridge.NativeModule; 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.react.uimanager.ViewManager; 8 | import java.util.ArrayList; 9 | import java.util.Arrays; 10 | import java.util.Collections; 11 | import java.util.List; 12 | 13 | public class FIRAnalyticsPackage implements ReactPackage { 14 | 15 | public FIRAnalyticsPackage() { 16 | } 17 | 18 | @Override 19 | public List createNativeModules( 20 | ReactApplicationContext reactContext) { 21 | List modules = new ArrayList<>(); 22 | 23 | modules.add(new FIRAnalyticsModule(reactContext)); 24 | return modules; 25 | } 26 | 27 | // Deprecated RN 0.47 28 | public List> createJSModules() { 29 | return Collections.emptyList(); 30 | } 31 | 32 | @Override 33 | public List createViewManagers(ReactApplicationContext reactContext) { 34 | return Arrays.asList(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Gitter](https://badges.gitter.im/evollu/react-native-firebase-analytics.svg)](https://gitter.im/evollu/react-native-firebase-analytics?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) 2 | 3 | # DEPRECATED 4 | **This repo is no longer maintained. Please refer to [react-native-firebase](https://github.com/invertase/react-native-firebase) as replacement.** 5 | 6 | ## Version table 7 | | version | RN | FCM | 8 | | ------- |:----------|:-------:| 9 | | 2.0.0 | >= 0.40.0 | >=9.6 | 10 | | 1.0.6 | <0.40.0 | >=9.6 | 11 | 12 | ## Installation 13 | 14 | - Run `npm install react-native-firebase-analytics --save` 15 | - Run `rnpm link` 16 | 17 | or you can combine them into 18 | - Run `rnpm install react-native-firebase-analytics` 19 | 20 | ## Android Configuration 21 | 22 | - In `android/build.gradle` 23 | ```gradle 24 | dependencies { 25 | classpath 'com.android.tools.build:gradle:2.0.0' 26 | classpath 'com.google.gms:google-services:3.0.0' // <- Add this line 27 | ``` 28 | 29 | - In `android/app/build.gradle` 30 | ```gradle 31 | apply plugin: "com.android.application" 32 | apply plugin: 'com.google.gms.google-services' // <- Add this line 33 | ... 34 | ``` 35 | 36 | 37 | ### IOS Configuration 38 | 39 | install pod 'Firebase/Core' 40 | 41 | in AppDelegate.m add 42 | ```diff 43 | +@import Firebase; 44 | 45 | ... 46 | 47 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 48 | { 49 | .... 50 | + [FIRApp configure]; 51 | } 52 | 53 | } 54 | 55 | ``` 56 | 57 | 58 | ### FCM config file 59 | In [firebase console](https://console.firebase.google.com/), you can get `google-services.json` file and place it in `android/app` directory and get `googleServices-info.plist` file and place it in `/ios` directory 60 | 61 | ### Usage 62 | 63 | ```javascript 64 | 65 | var Analytics = require('react-native-firebase-analytics'); 66 | 67 | componentWillMount() { 68 | if (environment === 'staging') { 69 | Analytics.setEnabled(false); 70 | } 71 | 72 | 73 | Analytics.setUserId('11111'); 74 | Analytics.setUserProperty('propertyName', 'propertyValue'); 75 | 76 | Analytics.logEvent('view_item', { 77 | 'item_id': 'login' 78 | }); 79 | 80 | } 81 | ``` 82 | 83 | For more info regarding predefind event and params, visit [firebase api](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event#constant-summary) 84 | 85 | ### Got Issues? 86 | Issues and pull requests are welcomed! 87 | -------------------------------------------------------------------------------- /android/src/main/java/com/evollu/react/fa/FIRAnalyticsModule.java: -------------------------------------------------------------------------------- 1 | package com.evollu.react.fa; 2 | 3 | import com.facebook.react.bridge.Arguments; 4 | import com.facebook.react.bridge.LifecycleEventListener; 5 | import com.facebook.react.bridge.ReactApplicationContext; 6 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 7 | import com.facebook.react.bridge.ReactMethod; 8 | import com.facebook.react.bridge.ReadableMap; 9 | import com.google.firebase.analytics.FirebaseAnalytics; 10 | 11 | import android.app.Activity; 12 | import android.os.Bundle; 13 | import android.util.Log; 14 | 15 | import java.util.Iterator; 16 | 17 | public class FIRAnalyticsModule extends ReactContextBaseJavaModule implements LifecycleEventListener { 18 | private final static String TAG = FIRAnalyticsModule.class.getCanonicalName(); 19 | 20 | public FIRAnalyticsModule(ReactApplicationContext reactContext) { 21 | super(reactContext); 22 | 23 | getReactApplicationContext().addLifecycleEventListener(this); 24 | } 25 | 26 | @Override 27 | public String getName() { 28 | return "RNFIRAnalytics"; 29 | } 30 | 31 | @ReactMethod 32 | public void setUserId(String id){ 33 | FirebaseAnalytics.getInstance(getReactApplicationContext()).setUserId(id); 34 | } 35 | 36 | @ReactMethod 37 | public void setUserProperty(String name, String property) { 38 | FirebaseAnalytics.getInstance(getReactApplicationContext()).setUserProperty(name, property); 39 | } 40 | 41 | @ReactMethod 42 | public void logEvent(String name, ReadableMap parameters) { 43 | FirebaseAnalytics.getInstance(getReactApplicationContext()).logEvent(name, Arguments.toBundle(parameters)); 44 | } 45 | 46 | @ReactMethod 47 | public void setScreenName(final String name) { 48 | final Activity currentActivity = getCurrentActivity(); 49 | if(currentActivity != null){ 50 | currentActivity.runOnUiThread(new Runnable() { 51 | @Override 52 | public void run() { 53 | FirebaseAnalytics.getInstance(getReactApplicationContext()).setCurrentScreen(currentActivity, name, null); 54 | } 55 | }); 56 | } else { 57 | Log.e(TAG, "Set screen name " + name + "failed because current activity is null"); 58 | } 59 | } 60 | 61 | @ReactMethod 62 | public void setEnabled(Boolean enabled) { 63 | FirebaseAnalytics.getInstance(getReactApplicationContext()).setAnalyticsCollectionEnabled(enabled); 64 | } 65 | 66 | @Override 67 | public void onHostResume() { 68 | } 69 | 70 | @Override 71 | public void onHostPause() { 72 | } 73 | 74 | @Override 75 | public void onHostDestroy() { 76 | 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.xcodeproj/xcuserdata/libinlu.xcuserdatad/xcschemes/RCTPushNotification.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.xcodeproj/xcuserdata/LLu.xcuserdatad/xcschemes/RNFIRAnalytics.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 55 | 61 | 62 | 63 | 64 | 65 | 66 | 72 | 73 | 79 | 80 | 81 | 82 | 84 | 85 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /ios/RNFIRAnalytics.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3AD1DC2B1CFA802F008C092E /* RNFIRAnalytics.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AD1DC2A1CFA802F008C092E /* RNFIRAnalytics.m */; }; 11 | /* End PBXBuildFile section */ 12 | 13 | /* Begin PBXCopyFilesBuildPhase section */ 14 | 58B511D91A9E6C8500147676 /* CopyFiles */ = { 15 | isa = PBXCopyFilesBuildPhase; 16 | buildActionMask = 2147483647; 17 | dstPath = "include/$(PRODUCT_NAME)"; 18 | dstSubfolderSpec = 16; 19 | files = ( 20 | ); 21 | runOnlyForDeploymentPostprocessing = 0; 22 | }; 23 | /* End PBXCopyFilesBuildPhase section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | 134814201AA4EA6300B7C361 /* libRNFIRAnalytics.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNFIRAnalytics.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 3AD1DC291CFA802F008C092E /* RNFIRAnalytics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNFIRAnalytics.h; sourceTree = ""; }; 28 | 3AD1DC2A1CFA802F008C092E /* RNFIRAnalytics.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNFIRAnalytics.m; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 58B511D81A9E6C8500147676 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | 134814211AA4EA7D00B7C361 /* Products */ = { 43 | isa = PBXGroup; 44 | children = ( 45 | 134814201AA4EA6300B7C361 /* libRNFIRAnalytics.a */, 46 | ); 47 | name = Products; 48 | sourceTree = ""; 49 | }; 50 | 58B511D21A9E6C8500147676 = { 51 | isa = PBXGroup; 52 | children = ( 53 | 3AD1DC291CFA802F008C092E /* RNFIRAnalytics.h */, 54 | 3AD1DC2A1CFA802F008C092E /* RNFIRAnalytics.m */, 55 | 134814211AA4EA7D00B7C361 /* Products */, 56 | ); 57 | indentWidth = 2; 58 | sourceTree = ""; 59 | tabWidth = 2; 60 | }; 61 | /* End PBXGroup section */ 62 | 63 | /* Begin PBXNativeTarget section */ 64 | 58B511DA1A9E6C8500147676 /* RNFIRAnalytics */ = { 65 | isa = PBXNativeTarget; 66 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNFIRAnalytics" */; 67 | buildPhases = ( 68 | 58B511D71A9E6C8500147676 /* Sources */, 69 | 58B511D81A9E6C8500147676 /* Frameworks */, 70 | 58B511D91A9E6C8500147676 /* CopyFiles */, 71 | ); 72 | buildRules = ( 73 | ); 74 | dependencies = ( 75 | ); 76 | name = RNFIRAnalytics; 77 | productName = RCTDataManager; 78 | productReference = 134814201AA4EA6300B7C361 /* libRNFIRAnalytics.a */; 79 | productType = "com.apple.product-type.library.static"; 80 | }; 81 | /* End PBXNativeTarget section */ 82 | 83 | /* Begin PBXProject section */ 84 | 58B511D31A9E6C8500147676 /* Project object */ = { 85 | isa = PBXProject; 86 | attributes = { 87 | LastUpgradeCheck = 0610; 88 | ORGANIZATIONNAME = ""; 89 | TargetAttributes = { 90 | 58B511DA1A9E6C8500147676 = { 91 | CreatedOnToolsVersion = 6.1.1; 92 | }; 93 | }; 94 | }; 95 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNFIRAnalytics" */; 96 | compatibilityVersion = "Xcode 3.2"; 97 | developmentRegion = English; 98 | hasScannedForEncodings = 0; 99 | knownRegions = ( 100 | en, 101 | ); 102 | mainGroup = 58B511D21A9E6C8500147676; 103 | productRefGroup = 58B511D21A9E6C8500147676; 104 | projectDirPath = ""; 105 | projectRoot = ""; 106 | targets = ( 107 | 58B511DA1A9E6C8500147676 /* RNFIRAnalytics */, 108 | ); 109 | }; 110 | /* End PBXProject section */ 111 | 112 | /* Begin PBXSourcesBuildPhase section */ 113 | 58B511D71A9E6C8500147676 /* Sources */ = { 114 | isa = PBXSourcesBuildPhase; 115 | buildActionMask = 2147483647; 116 | files = ( 117 | 3AD1DC2B1CFA802F008C092E /* RNFIRAnalytics.m in Sources */, 118 | ); 119 | runOnlyForDeploymentPostprocessing = 0; 120 | }; 121 | /* End PBXSourcesBuildPhase section */ 122 | 123 | /* Begin XCBuildConfiguration section */ 124 | 58B511ED1A9E6C8500147676 /* Debug */ = { 125 | isa = XCBuildConfiguration; 126 | buildSettings = { 127 | ALWAYS_SEARCH_USER_PATHS = NO; 128 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 129 | CLANG_CXX_LIBRARY = "libc++"; 130 | CLANG_ENABLE_MODULES = YES; 131 | CLANG_ENABLE_OBJC_ARC = YES; 132 | CLANG_WARN_BOOL_CONVERSION = YES; 133 | CLANG_WARN_CONSTANT_CONVERSION = YES; 134 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 135 | CLANG_WARN_EMPTY_BODY = YES; 136 | CLANG_WARN_ENUM_CONVERSION = YES; 137 | CLANG_WARN_INT_CONVERSION = YES; 138 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 139 | CLANG_WARN_UNREACHABLE_CODE = YES; 140 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 141 | COPY_PHASE_STRIP = NO; 142 | ENABLE_STRICT_OBJC_MSGSEND = YES; 143 | GCC_C_LANGUAGE_STANDARD = gnu99; 144 | GCC_DYNAMIC_NO_PIC = NO; 145 | GCC_OPTIMIZATION_LEVEL = 0; 146 | GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1"; 147 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 148 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 149 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 150 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 151 | GCC_WARN_SHADOW = YES; 152 | GCC_WARN_UNDECLARED_SELECTOR = YES; 153 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 154 | GCC_WARN_UNUSED_FUNCTION = YES; 155 | GCC_WARN_UNUSED_VARIABLE = YES; 156 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 157 | MTL_ENABLE_DEBUG_INFO = YES; 158 | ONLY_ACTIVE_ARCH = YES; 159 | SDKROOT = iphoneos; 160 | WARNING_CFLAGS = ( 161 | "-Wextra", 162 | "-Wall", 163 | "-Wno-semicolon-before-method-body", 164 | ); 165 | }; 166 | name = Debug; 167 | }; 168 | 58B511EE1A9E6C8500147676 /* Release */ = { 169 | isa = XCBuildConfiguration; 170 | buildSettings = { 171 | ALWAYS_SEARCH_USER_PATHS = NO; 172 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 173 | CLANG_CXX_LIBRARY = "libc++"; 174 | CLANG_ENABLE_MODULES = YES; 175 | CLANG_ENABLE_OBJC_ARC = YES; 176 | CLANG_WARN_BOOL_CONVERSION = YES; 177 | CLANG_WARN_CONSTANT_CONVERSION = YES; 178 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 179 | CLANG_WARN_EMPTY_BODY = YES; 180 | CLANG_WARN_ENUM_CONVERSION = YES; 181 | CLANG_WARN_INT_CONVERSION = YES; 182 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 183 | CLANG_WARN_UNREACHABLE_CODE = YES; 184 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 185 | COPY_PHASE_STRIP = YES; 186 | ENABLE_NS_ASSERTIONS = NO; 187 | ENABLE_STRICT_OBJC_MSGSEND = YES; 188 | GCC_C_LANGUAGE_STANDARD = gnu99; 189 | GCC_PREPROCESSOR_DEFINITIONS = ""; 190 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 191 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 192 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 193 | GCC_WARN_SHADOW = YES; 194 | GCC_WARN_UNDECLARED_SELECTOR = YES; 195 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 196 | GCC_WARN_UNUSED_FUNCTION = YES; 197 | GCC_WARN_UNUSED_VARIABLE = YES; 198 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 199 | MTL_ENABLE_DEBUG_INFO = NO; 200 | SDKROOT = iphoneos; 201 | VALIDATE_PRODUCT = YES; 202 | WARNING_CFLAGS = ( 203 | "-Wextra", 204 | "-Wall", 205 | "-Wno-semicolon-before-method-body", 206 | ); 207 | }; 208 | name = Release; 209 | }; 210 | 58B511F01A9E6C8500147676 /* Debug */ = { 211 | isa = XCBuildConfiguration; 212 | buildSettings = { 213 | CLANG_STATIC_ANALYZER_MODE = deep; 214 | FRAMEWORK_SEARCH_PATHS = ( 215 | "$(PROJECT_DIR)/../../../ios/Pods/**", 216 | "$(PROJECT_DIR)", 217 | ); 218 | GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; 219 | HEADER_SEARCH_PATHS = ( 220 | "$(SRCROOT)/../../react-native/React/**", 221 | "$(SRCROOT)/../../../ios/Pods/**", 222 | ); 223 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 224 | OTHER_LDFLAGS = "-ObjC"; 225 | PRODUCT_NAME = RNFIRAnalytics; 226 | RUN_CLANG_STATIC_ANALYZER = YES; 227 | SKIP_INSTALL = YES; 228 | }; 229 | name = Debug; 230 | }; 231 | 58B511F11A9E6C8500147676 /* Release */ = { 232 | isa = XCBuildConfiguration; 233 | buildSettings = { 234 | CLANG_STATIC_ANALYZER_MODE = deep; 235 | FRAMEWORK_SEARCH_PATHS = ( 236 | "$(PROJECT_DIR)/../../../ios/Pods/**", 237 | "$(PROJECT_DIR)", 238 | ); 239 | HEADER_SEARCH_PATHS = ( 240 | "$(SRCROOT)/../../react-native/React/**", 241 | "$(SRCROOT)/../../../ios/Pods/**", 242 | ); 243 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 244 | OTHER_LDFLAGS = "-ObjC"; 245 | PRODUCT_NAME = RNFIRAnalytics; 246 | SKIP_INSTALL = YES; 247 | }; 248 | name = Release; 249 | }; 250 | /* End XCBuildConfiguration section */ 251 | 252 | /* Begin XCConfigurationList section */ 253 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNFIRAnalytics" */ = { 254 | isa = XCConfigurationList; 255 | buildConfigurations = ( 256 | 58B511ED1A9E6C8500147676 /* Debug */, 257 | 58B511EE1A9E6C8500147676 /* Release */, 258 | ); 259 | defaultConfigurationIsVisible = 0; 260 | defaultConfigurationName = Release; 261 | }; 262 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNFIRAnalytics" */ = { 263 | isa = XCConfigurationList; 264 | buildConfigurations = ( 265 | 58B511F01A9E6C8500147676 /* Debug */, 266 | 58B511F11A9E6C8500147676 /* Release */, 267 | ); 268 | defaultConfigurationIsVisible = 0; 269 | defaultConfigurationName = Release; 270 | }; 271 | /* End XCConfigurationList section */ 272 | }; 273 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 274 | } 275 | -------------------------------------------------------------------------------- /android/react-native-firebase-analytics.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | --------------------------------------------------------------------------------