Commit d799b1bc authored by Libin Lu's avatar Libin Lu

update example for 4.0.0

parent 32c3ce4f
......@@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
......
#Fri Jan 06 16:34:59 EST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
......@@ -22,14 +22,14 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
4339BFD81DAEBA7300F53B62 /* FirebaseAnalytics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4339BFD21DAEBA7300F53B62 /* FirebaseAnalytics.framework */; };
4339BFD91DAEBA7300F53B62 /* FirebaseCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4339BFD31DAEBA7300F53B62 /* FirebaseCore.framework */; };
4339BFDA1DAEBA7300F53B62 /* FirebaseInstanceID.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4339BFD41DAEBA7300F53B62 /* FirebaseInstanceID.framework */; };
4339BFDB1DAEBA7300F53B62 /* GoogleInterchangeUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4339BFD51DAEBA7300F53B62 /* GoogleInterchangeUtilities.framework */; };
4339BFDC1DAEBA7300F53B62 /* GoogleSymbolUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4339BFD61DAEBA7300F53B62 /* GoogleSymbolUtilities.framework */; };
4339BFDD1DAEBA7300F53B62 /* GoogleUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4339BFD71DAEBA7300F53B62 /* GoogleUtilities.framework */; };
4339BFE01DAEBA7F00F53B62 /* FirebaseMessaging.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4339BFDE1DAEBA7F00F53B62 /* FirebaseMessaging.framework */; };
4339BFE11DAEBA7F00F53B62 /* GoogleIPhoneUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4339BFDF1DAEBA7F00F53B62 /* GoogleIPhoneUtilities.framework */; };
3A6D62871E20430000D0D2C7 /* FirebaseAnalytics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A6D62801E20430000D0D2C7 /* FirebaseAnalytics.framework */; };
3A6D62881E20430000D0D2C7 /* FirebaseCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A6D62811E20430000D0D2C7 /* FirebaseCore.framework */; };
3A6D62891E20430000D0D2C7 /* FirebaseInstanceID.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A6D62821E20430000D0D2C7 /* FirebaseInstanceID.framework */; };
3A6D628A1E20430000D0D2C7 /* FirebaseMessaging.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A6D62831E20430000D0D2C7 /* FirebaseMessaging.framework */; };
3A6D628B1E20430000D0D2C7 /* GoogleInterchangeUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A6D62841E20430000D0D2C7 /* GoogleInterchangeUtilities.framework */; };
3A6D628C1E20430000D0D2C7 /* GoogleSymbolUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A6D62851E20430000D0D2C7 /* GoogleSymbolUtilities.framework */; };
3A6D628D1E20430000D0D2C7 /* GoogleToolboxForMac.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A6D62861E20430000D0D2C7 /* GoogleToolboxForMac.framework */; };
3A6D62911E2044AB00D0D2C7 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A6D62901E2044AB00D0D2C7 /* libz.tbd */; };
4339BFE81DAEE9D100F53B62 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 4339BFE71DAEE9D100F53B62 /* GoogleService-Info.plist */; };
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
FAE94A218EB64E38BF8D8E9B /* libRNFIRMessaging.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 692E216422234A4CB6A7A838 /* libRNFIRMessaging.a */; };
......@@ -99,6 +99,97 @@
remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
remoteInfo = React;
};
3A6D62521E20427F00D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
remoteInfo = "RCTImage-tvOS";
};
3A6D62561E20427F00D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 2D2A28471D9B043800D4039D;
remoteInfo = "RCTLinking-tvOS";
};
3A6D625A1E20427F00D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
remoteInfo = "RCTNetwork-tvOS";
};
3A6D625E1E20427F00D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 2D2A28611D9B046600D4039D;
remoteInfo = "RCTSettings-tvOS";
};
3A6D62621E20427F00D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
remoteInfo = "RCTText-tvOS";
};
3A6D62671E20428000D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 2D2A28881D9B049200D4039D;
remoteInfo = "RCTWebSocket-tvOS";
};
3A6D62711E20428000D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
remoteInfo = "React-tvOS";
};
3A6D62731E20428000D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
remoteInfo = yoga;
};
3A6D62751E20428000D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
remoteInfo = "yoga-tvOS";
};
3A6D62771E20428000D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
remoteInfo = cxxreact;
};
3A6D62791E20428000D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
remoteInfo = "cxxreact-tvOS";
};
3A6D627B1E20428000D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
remoteInfo = jschelpers;
};
3A6D627D1E20428000D0D2C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
remoteInfo = "jschelpers-tvOS";
};
4339BFCF1DAEBA3900F53B62 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = C7DEB70C413E484CBFA6AC45 /* RNFIRMessaging.xcodeproj */;
......@@ -142,14 +233,15 @@
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SimpleFcmClient/Info.plist; sourceTree = "<group>"; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = SimpleFcmClient/main.m; sourceTree = "<group>"; };
146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = "<group>"; };
4339BFD21DAEBA7300F53B62 /* FirebaseAnalytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = FirebaseAnalytics.framework; sourceTree = "<group>"; };
4339BFD31DAEBA7300F53B62 /* FirebaseCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = FirebaseCore.framework; sourceTree = "<group>"; };
4339BFD41DAEBA7300F53B62 /* FirebaseInstanceID.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = FirebaseInstanceID.framework; sourceTree = "<group>"; };
4339BFD51DAEBA7300F53B62 /* GoogleInterchangeUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = GoogleInterchangeUtilities.framework; sourceTree = "<group>"; };
4339BFD61DAEBA7300F53B62 /* GoogleSymbolUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = GoogleSymbolUtilities.framework; sourceTree = "<group>"; };
4339BFD71DAEBA7300F53B62 /* GoogleUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = GoogleUtilities.framework; sourceTree = "<group>"; };
4339BFDE1DAEBA7F00F53B62 /* FirebaseMessaging.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = FirebaseMessaging.framework; sourceTree = "<group>"; };
4339BFDF1DAEBA7F00F53B62 /* GoogleIPhoneUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = GoogleIPhoneUtilities.framework; sourceTree = "<group>"; };
3A6D62801E20430000D0D2C7 /* FirebaseAnalytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseAnalytics.framework; path = frameworks/FirebaseAnalytics.framework; sourceTree = "<group>"; };
3A6D62811E20430000D0D2C7 /* FirebaseCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseCore.framework; path = frameworks/FirebaseCore.framework; sourceTree = "<group>"; };
3A6D62821E20430000D0D2C7 /* FirebaseInstanceID.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseInstanceID.framework; path = frameworks/FirebaseInstanceID.framework; sourceTree = "<group>"; };
3A6D62831E20430000D0D2C7 /* FirebaseMessaging.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseMessaging.framework; path = frameworks/FirebaseMessaging.framework; sourceTree = "<group>"; };
3A6D62841E20430000D0D2C7 /* GoogleInterchangeUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleInterchangeUtilities.framework; path = frameworks/GoogleInterchangeUtilities.framework; sourceTree = "<group>"; };
3A6D62851E20430000D0D2C7 /* GoogleSymbolUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleSymbolUtilities.framework; path = frameworks/GoogleSymbolUtilities.framework; sourceTree = "<group>"; };
3A6D62861E20430000D0D2C7 /* GoogleToolboxForMac.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleToolboxForMac.framework; path = frameworks/GoogleToolboxForMac.framework; sourceTree = "<group>"; };
3A6D628E1E20449400D0D2C7 /* libc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; };
3A6D62901E2044AB00D0D2C7 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
4339BFE21DAEBB3500F53B62 /* Firebase.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Firebase.h; sourceTree = "<group>"; };
4339BFE31DAEBB4800F53B62 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.modulemap; sourceTree = "<group>"; };
4339BFE61DAED4D900F53B62 /* SimpleFcmClient.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = SimpleFcmClient.entitlements; path = SimpleFcmClient/SimpleFcmClient.entitlements; sourceTree = "<group>"; };
......@@ -173,23 +265,23 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3A6D62911E2044AB00D0D2C7 /* libz.tbd in Frameworks */,
146834051AC3E58100842450 /* libReact.a in Frameworks */,
4339BFD91DAEBA7300F53B62 /* FirebaseCore.framework in Frameworks */,
3A6D628B1E20430000D0D2C7 /* GoogleInterchangeUtilities.framework in Frameworks */,
3A6D62881E20430000D0D2C7 /* FirebaseCore.framework in Frameworks */,
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
4339BFE01DAEBA7F00F53B62 /* FirebaseMessaging.framework in Frameworks */,
3A6D628A1E20430000D0D2C7 /* FirebaseMessaging.framework in Frameworks */,
3A6D628C1E20430000D0D2C7 /* GoogleSymbolUtilities.framework in Frameworks */,
3A6D628D1E20430000D0D2C7 /* GoogleToolboxForMac.framework in Frameworks */,
00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
4339BFDB1DAEBA7300F53B62 /* GoogleInterchangeUtilities.framework in Frameworks */,
4339BFE11DAEBA7F00F53B62 /* GoogleIPhoneUtilities.framework in Frameworks */,
4339BFDC1DAEBA7300F53B62 /* GoogleSymbolUtilities.framework in Frameworks */,
4339BFD81DAEBA7300F53B62 /* FirebaseAnalytics.framework in Frameworks */,
3A6D62871E20430000D0D2C7 /* FirebaseAnalytics.framework in Frameworks */,
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
4339BFDD1DAEBA7300F53B62 /* GoogleUtilities.framework in Frameworks */,
4339BFDA1DAEBA7300F53B62 /* FirebaseInstanceID.framework in Frameworks */,
3A6D62891E20430000D0D2C7 /* FirebaseInstanceID.framework in Frameworks */,
139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
FAE94A218EB64E38BF8D8E9B /* libRNFIRMessaging.a in Frameworks */,
);
......@@ -218,6 +310,7 @@
isa = PBXGroup;
children = (
00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
3A6D62531E20427F00D0D2C7 /* libRCTImage-tvOS.a */,
);
name = Products;
sourceTree = "<group>";
......@@ -226,6 +319,7 @@
isa = PBXGroup;
children = (
00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
3A6D625B1E20427F00D0D2C7 /* libRCTNetwork-tvOS.a */,
);
name = Products;
sourceTree = "<group>";
......@@ -259,6 +353,7 @@
isa = PBXGroup;
children = (
139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
3A6D625F1E20427F00D0D2C7 /* libRCTSettings-tvOS.a */,
);
name = Products;
sourceTree = "<group>";
......@@ -267,6 +362,7 @@
isa = PBXGroup;
children = (
139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
3A6D62681E20428000D0D2C7 /* libRCTWebSocket-tvOS.a */,
);
name = Products;
sourceTree = "<group>";
......@@ -293,6 +389,13 @@
isa = PBXGroup;
children = (
146834041AC3E56700842450 /* libReact.a */,
3A6D62721E20428000D0D2C7 /* libReact.a */,
3A6D62741E20428000D0D2C7 /* libyoga.a */,
3A6D62761E20428000D0D2C7 /* libyoga.a */,
3A6D62781E20428000D0D2C7 /* libcxxreact.a */,
3A6D627A1E20428000D0D2C7 /* libcxxreact.a */,
3A6D627C1E20428000D0D2C7 /* libjschelpers.a */,
3A6D627E1E20428000D0D2C7 /* libjschelpers.a */,
);
name = Products;
sourceTree = "<group>";
......@@ -308,14 +411,15 @@
4339BFD11DAEBA4B00F53B62 /* Frameworks */ = {
isa = PBXGroup;
children = (
4339BFDE1DAEBA7F00F53B62 /* FirebaseMessaging.framework */,
4339BFDF1DAEBA7F00F53B62 /* GoogleIPhoneUtilities.framework */,
4339BFD21DAEBA7300F53B62 /* FirebaseAnalytics.framework */,
4339BFD31DAEBA7300F53B62 /* FirebaseCore.framework */,
4339BFD41DAEBA7300F53B62 /* FirebaseInstanceID.framework */,
4339BFD51DAEBA7300F53B62 /* GoogleInterchangeUtilities.framework */,
4339BFD61DAEBA7300F53B62 /* GoogleSymbolUtilities.framework */,
4339BFD71DAEBA7300F53B62 /* GoogleUtilities.framework */,
3A6D62901E2044AB00D0D2C7 /* libz.tbd */,
3A6D628E1E20449400D0D2C7 /* libc++.tbd */,
3A6D62801E20430000D0D2C7 /* FirebaseAnalytics.framework */,
3A6D62811E20430000D0D2C7 /* FirebaseCore.framework */,
3A6D62821E20430000D0D2C7 /* FirebaseInstanceID.framework */,
3A6D62831E20430000D0D2C7 /* FirebaseMessaging.framework */,
3A6D62841E20430000D0D2C7 /* GoogleInterchangeUtilities.framework */,
3A6D62851E20430000D0D2C7 /* GoogleSymbolUtilities.framework */,
3A6D62861E20430000D0D2C7 /* GoogleToolboxForMac.framework */,
);
name = Frameworks;
sourceTree = "<group>";
......@@ -324,6 +428,7 @@
isa = PBXGroup;
children = (
78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
3A6D62571E20427F00D0D2C7 /* libRCTLinking-tvOS.a */,
);
name = Products;
sourceTree = "<group>";
......@@ -350,6 +455,7 @@
isa = PBXGroup;
children = (
832341B51AAA6A8300B99B32 /* libRCTText.a */,
3A6D62631E20427F00D0D2C7 /* libRCTText-tvOS.a */,
);
name = Products;
sourceTree = "<group>";
......@@ -565,6 +671,97 @@
remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D62531E20427F00D0D2C7 /* libRCTImage-tvOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libRCTImage-tvOS.a";
remoteRef = 3A6D62521E20427F00D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D62571E20427F00D0D2C7 /* libRCTLinking-tvOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libRCTLinking-tvOS.a";
remoteRef = 3A6D62561E20427F00D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D625B1E20427F00D0D2C7 /* libRCTNetwork-tvOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libRCTNetwork-tvOS.a";
remoteRef = 3A6D625A1E20427F00D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D625F1E20427F00D0D2C7 /* libRCTSettings-tvOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libRCTSettings-tvOS.a";
remoteRef = 3A6D625E1E20427F00D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D62631E20427F00D0D2C7 /* libRCTText-tvOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libRCTText-tvOS.a";
remoteRef = 3A6D62621E20427F00D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D62681E20428000D0D2C7 /* libRCTWebSocket-tvOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libRCTWebSocket-tvOS.a";
remoteRef = 3A6D62671E20428000D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D62721E20428000D0D2C7 /* libReact.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libReact.a;
remoteRef = 3A6D62711E20428000D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D62741E20428000D0D2C7 /* libyoga.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libyoga.a;
remoteRef = 3A6D62731E20428000D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D62761E20428000D0D2C7 /* libyoga.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libyoga.a;
remoteRef = 3A6D62751E20428000D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D62781E20428000D0D2C7 /* libcxxreact.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libcxxreact.a;
remoteRef = 3A6D62771E20428000D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D627A1E20428000D0D2C7 /* libcxxreact.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libcxxreact.a;
remoteRef = 3A6D62791E20428000D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D627C1E20428000D0D2C7 /* libjschelpers.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libjschelpers.a;
remoteRef = 3A6D627B1E20428000D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
3A6D627E1E20428000D0D2C7 /* libjschelpers.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libjschelpers.a;
remoteRef = 3A6D627D1E20428000D0D2C7 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
4339BFD01DAEBA3900F53B62 /* libRNFIRMessaging.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
......@@ -719,6 +916,7 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
"$(PROJECT_DIR)/frameworks",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
......@@ -751,6 +949,7 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
"$(PROJECT_DIR)/frameworks",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
......
......@@ -9,7 +9,7 @@
#import "AppDelegate.h"
#import "RCTBundleURLProvider.h"
#import <React/RCTBundleURLProvider.h>
#import "RCTRootView.h"
#import "RNFIRMessaging.h"
......@@ -35,34 +35,31 @@
[self.window makeKeyAndVisible];
[FIRApp configure];
#if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
[[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];
#endif
return YES;
}
#if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler {
- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler
{
[[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:notification.request.content.userInfo];
if([[notification.request.content.userInfo valueForKey:@"show_in_foreground"] isEqual:@YES]) {
if([[notification.request.content.userInfo valueForKey:@"show_in_foreground"] isEqual:@YES]){
completionHandler(UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionSound);
} else {
}else{
completionHandler(UNNotificationPresentationOptionNone);
}
}
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler {
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler
{
NSDictionary* userInfo = [[NSMutableDictionary alloc] initWithDictionary: response.notification.request.content.userInfo];
[userInfo setValue:@YES forKey:@"opened_from_tray"];
[[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:userInfo];
}
#else
//You can skip this method if you don't want to use local notification
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
[[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self + userInfo:notification.userInfo];
-(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
[[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:notification.userInfo];
}
#endif
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{
[[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:userInfo];
......
......@@ -30,17 +30,17 @@
/// <li>user_engagement</li>
/// </ul>
///
/// @param name The name of the event. Should contain 1 to 32 alphanumeric characters or
/// @param name The name of the event. Should contain 1 to 40 alphanumeric characters or
/// underscores. The name must start with an alphabetic character. Some event names are
/// reserved. See FIREventNames.h for the list of reserved event names. The "firebase_" prefix
/// is reserved and should not be used. Note that event names are case-sensitive and that
/// logging two events whose names differ only in case will result in two distinct events.
/// @param parameters The dictionary of event parameters. Passing nil indicates that the event has
/// no parameters. Parameter names can be up to 24 characters long and must start with an
/// no parameters. Parameter names can be up to 40 characters long and must start with an
/// alphabetic character and contain only alphanumeric characters and underscores. Only NSString
/// and NSNumber (signed 64-bit integer and 64-bit floating-point number) parameter types are
/// supported. NSString parameter values can be up to 36 characters long. The "firebase_" prefix
/// is reserved and should not be used for parameter names.
/// supported. NSString parameter values can be up to 100 characters long. The "firebase_"
/// prefix is reserved and should not be used for parameter names.
+ (void)logEventWithName:(nonnull NSString *)name
parameters:(nullable NSDictionary<NSString *, NSObject *> *)parameters;
......@@ -68,4 +68,28 @@
/// non-empty and no more than 36 characters long. Setting userID to nil removes the user ID.
+ (void)setUserID:(nullable NSString *)userID;
/// Sets the current screen name, which specifies the current visual context in your app. This helps
/// identify the areas in your app where users spend their time and how they interact with your app.
///
/// Note that screen reporting is enabled automatically and records the class name of the current
/// UIViewController for you without requiring you to call this method. If you implement
/// viewDidAppear in your UIViewController but do not call [super viewDidAppear:], that screen class
/// will not be automatically tracked. The class name can optionally be overridden by calling this
/// method in the viewDidAppear callback of your UIViewController and specifying the
/// screenClassOverride parameter.
///
/// If your app does not use a distinct UIViewController for each screen, you should call this
/// method and specify a distinct screenName each time a new screen is presented to the user.
///
/// The screen name and screen class remain in effect until the current UIViewController changes or
/// a new call to setScreenName:screenClass: is made.
///
/// @param screenName The name of the current screen. Should contain 1 to 100 characters. Set to nil
/// to clear the current screen name.
/// @param screenClassOverride The name of the screen class. Should contain 1 to 100 characters. By
/// default this is the class name of the current UIViewController. Set to nil to revert to the
/// default class name.
+ (void)setScreenName:(nullable NSString *)screenName
screenClass:(nullable NSString *)screenClassOverride;
@end
......@@ -6,7 +6,7 @@
/// 500 different types of Events per app and you can associate up to 25 unique parameters with each
/// Event type. Some common events are suggested below, but you may also choose to specify custom
/// Event types that are associated with your specific app. Each event type is identified by a
/// unique name. Event names can be up to 32 characters long, may only contain alphanumeric
/// unique name. Event names can be up to 40 characters long, may only contain alphanumeric
/// characters and underscores ("_"), and must start with an alphabetic character. The "firebase_"
/// prefix is reserved and should not be used.
......@@ -16,40 +16,40 @@ static NSString *const kFIREventAddPaymentInfo = @"add_payment_info";
/// E-Commerce Add To Cart event. This event signifies that an item was added to a cart for
/// purchase. Add this event to a funnel with kFIREventEcommercePurchase to gauge the effectiveness
/// of your checkout process. Note: If you supply the {@link kFIRParameterValue} parameter, you must
/// also supply the {@link kFIRParameterCurrency} parameter so that revenue metrics can be computed
/// of your checkout process. Note: If you supply the @c kFIRParameterValue parameter, you must
/// also supply the @c kFIRParameterCurrency parameter so that revenue metrics can be computed
/// accurately. Params:
///
/// <ul>
/// <li>{@link kFIRParameterQuantity} (signed 64-bit integer as NSNumber)</li>
/// <li>{@link kFIRParameterItemID} (NSString)</li>
/// <li>{@link kFIRParameterItemName} (NSString)</li>
/// <li>{@link kFIRParameterItemCategory} (NSString)</li>
/// <li>{@link kFIRParameterItemLocationID} (NSString) (optional)</li>
/// <li>{@link kFIRParameterPrice} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterCurrency} (NSString) (optional)</li>
/// <li>{@link kFIRParameterValue} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterOrigin} (NSString) (optional)</li>
/// <li>{@link kFIRParameterDestination} (NSString) (optional)</li>
/// <li>{@link kFIRParameterStartDate} (NSString) (optional)</li>
/// <li>{@link kFIRParameterEndDate} (NSString) (optional)</li>
/// <li>@c kFIRParameterQuantity (signed 64-bit integer as NSNumber)</li>
/// <li>@c kFIRParameterItemID (NSString)</li>
/// <li>@c kFIRParameterItemName (NSString)</li>
/// <li>@c kFIRParameterItemCategory (NSString)</li>
/// <li>@c kFIRParameterItemLocationID (NSString) (optional)</li>
/// <li>@c kFIRParameterPrice (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterCurrency (NSString) (optional)</li>
/// <li>@c kFIRParameterValue (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterOrigin (NSString) (optional)</li>
/// <li>@c kFIRParameterDestination (NSString) (optional)</li>
/// <li>@c kFIRParameterStartDate (NSString) (optional)</li>
/// <li>@c kFIRParameterEndDate (NSString) (optional)</li>
/// </ul>
static NSString *const kFIREventAddToCart = @"add_to_cart";
/// E-Commerce Add To Wishlist event. This event signifies that an item was added to a wishlist.
/// Use this event to identify popular gift items in your app. Note: If you supply the
/// {@link kFIRParameterValue} parameter, you must also supply the {@link kFIRParameterCurrency}
/// @c kFIRParameterValue parameter, you must also supply the @c kFIRParameterCurrency
/// parameter so that revenue metrics can be computed accurately. Params:
///
/// <ul>
/// <li>{@link kFIRParameterQuantity} (signed 64-bit integer as NSNumber)</li>
/// <li>{@link kFIRParameterItemID} (NSString)</li>
/// <li>{@link kFIRParameterItemName} (NSString)</li>
/// <li>{@link kFIRParameterItemCategory} (NSString)</li>
/// <li>{@link kFIRParameterItemLocationID} (NSString) (optional)</li>
/// <li>{@link kFIRParameterPrice} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterCurrency} (NSString) (optional)</li>
/// <li>{@link kFIRParameterValue} (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterQuantity (signed 64-bit integer as NSNumber)</li>
/// <li>@c kFIRParameterItemID (NSString)</li>
/// <li>@c kFIRParameterItemName (NSString)</li>
/// <li>@c kFIRParameterItemCategory (NSString)</li>
/// <li>@c kFIRParameterItemLocationID (NSString) (optional)</li>
/// <li>@c kFIRParameterPrice (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterCurrency (NSString) (optional)</li>
/// <li>@c kFIRParameterValue (double as NSNumber) (optional)</li>
/// </ul>
static NSString *const kFIREventAddToWishlist = @"add_to_wishlist";
......@@ -61,74 +61,74 @@ static NSString *const kFIREventAppOpen = @"app_open";
/// E-Commerce Begin Checkout event. This event signifies that a user has begun the process of
/// checking out. Add this event to a funnel with your kFIREventEcommercePurchase event to gauge the
/// effectiveness of your checkout process. Note: If you supply the {@link kFIRParameterValue}
/// parameter, you must also supply the {@link kFIRParameterCurrency} parameter so that revenue
/// effectiveness of your checkout process. Note: If you supply the @c kFIRParameterValue
/// parameter, you must also supply the @c kFIRParameterCurrency parameter so that revenue
/// metrics can be computed accurately. Params:
///
/// <ul>
/// <li>{@link kFIRParameterValue} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterCurrency} (NSString) (optional)</li>
/// <li>{@link kFIRParameterTransactionID} (NSString) (optional)</li>
/// <li>{@link kFIRParameterStartDate} (NSString) (optional)</li>
/// <li>{@link kFIRParameterEndDate} (NSString) (optional)</li>
/// <li>{@link kFIRParameterNumberOfNights} (signed 64-bit integer as NSNumber) (optional) for
/// <li>@c kFIRParameterValue (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterCurrency (NSString) (optional)</li>
/// <li>@c kFIRParameterTransactionID (NSString) (optional)</li>
/// <li>@c kFIRParameterStartDate (NSString) (optional)</li>
/// <li>@c kFIRParameterEndDate (NSString) (optional)</li>
/// <li>@c kFIRParameterNumberOfNights (signed 64-bit integer as NSNumber) (optional) for
/// hotel bookings</li>
/// <li>{@link kFIRParameterNumberOfRooms} (signed 64-bit integer as NSNumber) (optional) for
/// <li>@c kFIRParameterNumberOfRooms (signed 64-bit integer as NSNumber) (optional) for
/// hotel bookings</li>
/// <li>{@link kFIRParameterNumberOfPassengers} (signed 64-bit integer as NSNumber) (optional)
/// <li>@c kFIRParameterNumberOfPassengers (signed 64-bit integer as NSNumber) (optional)
/// for travel bookings</li>
/// <li>{@link kFIRParameterOrigin} (NSString) (optional)</li>
/// <li>{@link kFIRParameterDestination} (NSString) (optional)</li>
/// <li>{@link kFIRParameterTravelClass} (NSString) (optional) for travel bookings</li>
/// <li>@c kFIRParameterOrigin (NSString) (optional)</li>
/// <li>@c kFIRParameterDestination (NSString) (optional)</li>
/// <li>@c kFIRParameterTravelClass (NSString) (optional) for travel bookings</li>
/// </ul>
static NSString *const kFIREventBeginCheckout = @"begin_checkout";
/// Earn Virtual Currency event. This event tracks the awarding of virtual currency in your app. Log
/// this along with {@link kFIREventSpendVirtualCurrency} to better understand your virtual economy.
/// this along with @c kFIREventSpendVirtualCurrency to better understand your virtual economy.
/// Params:
///
/// <ul>
/// <li>{@link kFIRParameterVirtualCurrencyName} (NSString)</li>
/// <li>{@link kFIRParameterValue} (signed 64-bit integer or double as NSNumber)</li>
/// <li>@c kFIRParameterVirtualCurrencyName (NSString)</li>
/// <li>@c kFIRParameterValue (signed 64-bit integer or double as NSNumber)</li>
/// </ul>
static NSString *const kFIREventEarnVirtualCurrency = @"earn_virtual_currency";
/// E-Commerce Purchase event. This event signifies that an item was purchased by a user. Note:
/// This is different from the in-app purchase event, which is reported automatically for App
/// Store-based apps. Note: If you supply the {@link kFIRParameterValue} parameter, you must also
/// supply the {@link kFIRParameterCurrency} parameter so that revenue metrics can be computed
/// Store-based apps. Note: If you supply the @c kFIRParameterValue parameter, you must also
/// supply the @c kFIRParameterCurrency parameter so that revenue metrics can be computed
/// accurately. Params:
///
/// <ul>
/// <li>{@link kFIRParameterCurrency} (NSString) (optional)</li>
/// <li>{@link kFIRParameterValue} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterTransactionID} (NSString) (optional)</li>
/// <li>{@link kFIRParameterTax} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterShipping} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterCoupon} (NSString) (optional)</li>
/// <li>{@link kFIRParameterLocation} (NSString) (optional)</li>
/// <li>{@link kFIRParameterStartDate} (NSString) (optional)</li>
/// <li>{@link kFIRParameterEndDate} (NSString) (optional)</li>
/// <li>{@link kFIRParameterNumberOfNights} (signed 64-bit integer as NSNumber) (optional) for
/// <li>@c kFIRParameterCurrency (NSString) (optional)</li>
/// <li>@c kFIRParameterValue (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterTransactionID (NSString) (optional)</li>
/// <li>@c kFIRParameterTax (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterShipping (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterCoupon (NSString) (optional)</li>
/// <li>@c kFIRParameterLocation (NSString) (optional)</li>
/// <li>@c kFIRParameterStartDate (NSString) (optional)</li>
/// <li>@c kFIRParameterEndDate (NSString) (optional)</li>
/// <li>@c kFIRParameterNumberOfNights (signed 64-bit integer as NSNumber) (optional) for
/// hotel bookings</li>
/// <li>{@link kFIRParameterNumberOfRooms} (signed 64-bit integer as NSNumber) (optional) for
/// <li>@c kFIRParameterNumberOfRooms (signed 64-bit integer as NSNumber) (optional) for
/// hotel bookings</li>
/// <li>{@link kFIRParameterNumberOfPassengers} (signed 64-bit integer as NSNumber) (optional)
/// <li>@c kFIRParameterNumberOfPassengers (signed 64-bit integer as NSNumber) (optional)
/// for travel bookings</li>
/// <li>{@link kFIRParameterOrigin} (NSString) (optional)</li>
/// <li>{@link kFIRParameterDestination} (NSString) (optional)</li>
/// <li>{@link kFIRParameterTravelClass} (NSString) (optional) for travel bookings</li>
/// <li>@c kFIRParameterOrigin (NSString) (optional)</li>
/// <li>@c kFIRParameterDestination (NSString) (optional)</li>
/// <li>@c kFIRParameterTravelClass (NSString) (optional) for travel bookings</li>
/// </ul>
static NSString *const kFIREventEcommercePurchase = @"ecommerce_purchase";
/// Generate Lead event. Log this event when a lead has been generated in the app to understand the
/// efficacy of your install and re-engagement campaigns. Note: If you supply the
/// {@link kFIRParameterValue} parameter, you must also supply the {@link kFIRParameterCurrency}
/// @c kFIRParameterValue parameter, you must also supply the @c kFIRParameterCurrency
/// parameter so that revenue metrics can be computed accurately. Params:
///
/// <ul>
/// <li>{@link kFIRParameterCurrency} (NSString) (optional)</li>
/// <li>{@link kFIRParameterValue} (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterCurrency (NSString) (optional)</li>
/// <li>@c kFIRParameterValue (double as NSNumber) (optional)</li>
/// </ul>
static NSString *const kFIREventGenerateLead = @"generate_lead";
......@@ -136,7 +136,7 @@ static NSString *const kFIREventGenerateLead = @"generate_lead";
/// this event to analyze how popular certain groups or social features are in your app. Params:
///
/// <ul>
/// <li>{@link kFIRParameterGroupID} (NSString)</li>
/// <li>@c kFIRParameterGroupID (NSString)</li>
/// </ul>
static NSString *const kFIREventJoinGroup = @"join_group";
......@@ -145,8 +145,8 @@ static NSString *const kFIREventJoinGroup = @"join_group";
/// are difficult to pass. Params:
///
/// <ul>
/// <li>{@link kFIRParameterLevel} (signed 64-bit integer as NSNumber)</li>
/// <li>{@link kFIRParameterCharacter} (NSString) (optional)</li>
/// <li>@c kFIRParameterLevel (signed 64-bit integer as NSNumber)</li>
/// <li>@c kFIRParameterCharacter (NSString) (optional)</li>
/// </ul>
static NSString *const kFIREventLevelUp = @"level_up";
......@@ -159,39 +159,39 @@ static NSString *const kFIREventLogin = @"login";
/// high scores with certain audiences or behaviors. Params:
///
/// <ul>
/// <li>{@link kFIRParameterScore} (signed 64-bit integer as NSNumber)</li>
/// <li>{@link kFIRParameterLevel} (signed 64-bit integer as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterCharacter} (NSString) (optional)</li>
/// <li>@c kFIRParameterScore (signed 64-bit integer as NSNumber)</li>
/// <li>@c kFIRParameterLevel (signed 64-bit integer as NSNumber) (optional)</li>
/// <li>@c kFIRParameterCharacter (NSString) (optional)</li>
/// </ul>
static NSString *const kFIREventPostScore = @"post_score";
/// Present Offer event. This event signifies that the app has presented a purchase offer to a user.
/// Add this event to a funnel with the kFIREventAddToCart and kFIREventEcommercePurchase to gauge
/// your conversion process. Note: If you supply the {@link kFIRParameterValue} parameter, you must
/// also supply the {@link kFIRParameterCurrency} parameter so that revenue metrics can be computed
/// your conversion process. Note: If you supply the @c kFIRParameterValue parameter, you must
/// also supply the @c kFIRParameterCurrency parameter so that revenue metrics can be computed
/// accurately. Params:
///
/// <ul>
/// <li>{@link kFIRParameterQuantity} (signed 64-bit integer as NSNumber)</li>
/// <li>{@link kFIRParameterItemID} (NSString)</li>
/// <li>{@link kFIRParameterItemName} (NSString)</li>
/// <li>{@link kFIRParameterItemCategory} (NSString)</li>
/// <li>{@link kFIRParameterItemLocationID} (NSString) (optional)</li>
/// <li>{@link kFIRParameterPrice} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterCurrency} (NSString) (optional)</li>
/// <li>{@link kFIRParameterValue} (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterQuantity (signed 64-bit integer as NSNumber)</li>
/// <li>@c kFIRParameterItemID (NSString)</li>
/// <li>@c kFIRParameterItemName (NSString)</li>
/// <li>@c kFIRParameterItemCategory (NSString)</li>
/// <li>@c kFIRParameterItemLocationID (NSString) (optional)</li>
/// <li>@c kFIRParameterPrice (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterCurrency (NSString) (optional)</li>
/// <li>@c kFIRParameterValue (double as NSNumber) (optional)</li>
/// </ul>
static NSString *const kFIREventPresentOffer = @"present_offer";
/// E-Commerce Purchase Refund event. This event signifies that an item purchase was refunded.
/// Note: If you supply the {@link kFIRParameterValue} parameter, you must also supply the
/// {@link kFIRParameterCurrency} parameter so that revenue metrics can be computed accurately.
/// Note: If you supply the @c kFIRParameterValue parameter, you must also supply the
/// @c kFIRParameterCurrency parameter so that revenue metrics can be computed accurately.
/// Params:
///
/// <ul>
/// <li>{@link kFIRParameterCurrency} (NSString) (optional)</li>
/// <li>{@link kFIRParameterValue} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterTransactionID} (NSString) (optional)</li>
/// <li>@c kFIRParameterCurrency (NSString) (optional)</li>
/// <li>@c kFIRParameterValue (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterTransactionID (NSString) (optional)</li>
/// </ul>
static NSString *const kFIREventPurchaseRefund = @"purchase_refund";
......@@ -200,18 +200,18 @@ static NSString *const kFIREventPurchaseRefund = @"purchase_refund";
/// identify the most popular content in your app. Params:
///
/// <ul>
/// <li>{@link kFIRParameterSearchTerm} (NSString)</li>
/// <li>{@link kFIRParameterStartDate} (NSString) (optional)</li>
/// <li>{@link kFIRParameterEndDate} (NSString) (optional)</li>
/// <li>{@link kFIRParameterNumberOfNights} (signed 64-bit integer as NSNumber) (optional) for
/// <li>@c kFIRParameterSearchTerm (NSString)</li>
/// <li>@c kFIRParameterStartDate (NSString) (optional)</li>
/// <li>@c kFIRParameterEndDate (NSString) (optional)</li>
/// <li>@c kFIRParameterNumberOfNights (signed 64-bit integer as NSNumber) (optional) for
/// hotel bookings</li>
/// <li>{@link kFIRParameterNumberOfRooms} (signed 64-bit integer as NSNumber) (optional) for
/// <li>@c kFIRParameterNumberOfRooms (signed 64-bit integer as NSNumber) (optional) for
/// hotel bookings</li>
/// <li>{@link kFIRParameterNumberOfPassengers} (signed 64-bit integer as NSNumber) (optional)
/// <li>@c kFIRParameterNumberOfPassengers (signed 64-bit integer as NSNumber) (optional)
/// for travel bookings</li>
/// <li>{@link kFIRParameterOrigin} (NSString) (optional)</li>
/// <li>{@link kFIRParameterDestination} (NSString) (optional)</li>
/// <li>{@link kFIRParameterTravelClass} (NSString) (optional) for travel bookings</li>
/// <li>@c kFIRParameterOrigin (NSString) (optional)</li>
/// <li>@c kFIRParameterDestination (NSString) (optional)</li>
/// <li>@c kFIRParameterTravelClass (NSString) (optional) for travel bookings</li>
/// </ul>
static NSString *const kFIREventSearch = @"search";
......@@ -220,8 +220,8 @@ static NSString *const kFIREventSearch = @"search";
/// identify popular content and categories of content in your app. Params:
///
/// <ul>
/// <li>{@link kFIRParameterContentType} (NSString)</li>
/// <li>{@link kFIRParameterItemID} (NSString)</li>
/// <li>@c kFIRParameterContentType (NSString)</li>
/// <li>@c kFIRParameterItemID (NSString)</li>
/// </ul>
static NSString *const kFIREventSelectContent = @"select_content";
......@@ -229,8 +229,8 @@ static NSString *const kFIREventSelectContent = @"select_content";
/// content. Params:
///
/// <ul>
/// <li>{@link kFIRParameterContentType} (NSString)</li>
/// <li>{@link kFIRParameterItemID} (NSString)</li>
/// <li>@c kFIRParameterContentType (NSString)</li>
/// <li>@c kFIRParameterItemID (NSString)</li>
/// </ul>
static NSString *const kFIREventShare = @"share";
......@@ -239,7 +239,7 @@ static NSString *const kFIREventShare = @"share";
/// different behaviors between logged in and logged out users. Params:
///
/// <ul>
/// <li>{@link kFIRParameterSignUpMethod} (NSString)</li>
/// <li>@c kFIRParameterSignUpMethod (NSString)</li>
/// </ul>
static NSString *const kFIREventSignUp = @"sign_up";
......@@ -247,9 +247,9 @@ static NSString *const kFIREventSignUp = @"sign_up";
/// help you identify which virtual goods are the most popular objects of purchase. Params:
///
/// <ul>
/// <li>{@link kFIRParameterItemName} (NSString)</li>
/// <li>{@link kFIRParameterVirtualCurrencyName} (NSString)</li>
/// <li>{@link kFIRParameterValue} (signed 64-bit integer or double as NSNumber)</li>
/// <li>@c kFIRParameterItemName (NSString)</li>
/// <li>@c kFIRParameterVirtualCurrencyName (NSString)</li>
/// <li>@c kFIRParameterValue (signed 64-bit integer or double as NSNumber)</li>
/// </ul>
static NSString *const kFIREventSpendVirtualCurrency = @"spend_virtual_currency";
......@@ -268,39 +268,39 @@ static NSString *const kFIREventTutorialComplete = @"tutorial_complete";
/// help you understand how many users are experiencing all that your game has to offer. Params:
///
/// <ul>
/// <li>{@link kFIRParameterAchievementID} (NSString)</li>
/// <li>@c kFIRParameterAchievementID (NSString)</li>
/// </ul>
static NSString *const kFIREventUnlockAchievement = @"unlock_achievement";
/// View Item event. This event signifies that some content was shown to the user. This content may
/// be a product, a webpage or just a simple image or text. Use the appropriate parameters to
/// contextualize the event. Use this event to discover the most popular items viewed in your app.
/// Note: If you supply the {@link kFIRParameterValue} parameter, you must also supply the
/// {@link kFIRParameterCurrency} parameter so that revenue metrics can be computed accurately.
/// Note: If you supply the @c kFIRParameterValue parameter, you must also supply the
/// @c kFIRParameterCurrency parameter so that revenue metrics can be computed accurately.
/// Params:
///
/// <ul>
/// <li>{@link kFIRParameterItemID} (NSString)</li>
/// <li>{@link kFIRParameterItemName} (NSString)</li>
/// <li>{@link kFIRParameterItemCategory} (NSString)</li>
/// <li>{@link kFIRParameterItemLocationID} (NSString) (optional)</li>
/// <li>{@link kFIRParameterPrice} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterQuantity} (signed 64-bit integer as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterCurrency} (NSString) (optional)</li>
/// <li>{@link kFIRParameterValue} (double as NSNumber) (optional)</li>
/// <li>{@link kFIRParameterStartDate} (NSString) (optional)</li>
/// <li>{@link kFIRParameterEndDate} (NSString) (optional)</li>
/// <li>{@link kFIRParameterFlightNumber} (NSString) (optional) for travel bookings</li>
/// <li>{@link kFIRParameterNumberOfPassengers} (signed 64-bit integer as NSNumber) (optional)
/// <li>@c kFIRParameterItemID (NSString)</li>
/// <li>@c kFIRParameterItemName (NSString)</li>
/// <li>@c kFIRParameterItemCategory (NSString)</li>
/// <li>@c kFIRParameterItemLocationID (NSString) (optional)</li>
/// <li>@c kFIRParameterPrice (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterQuantity (signed 64-bit integer as NSNumber) (optional)</li>
/// <li>@c kFIRParameterCurrency (NSString) (optional)</li>
/// <li>@c kFIRParameterValue (double as NSNumber) (optional)</li>
/// <li>@c kFIRParameterStartDate (NSString) (optional)</li>
/// <li>@c kFIRParameterEndDate (NSString) (optional)</li>
/// <li>@c kFIRParameterFlightNumber (NSString) (optional) for travel bookings</li>
/// <li>@c kFIRParameterNumberOfPassengers (signed 64-bit integer as NSNumber) (optional)
/// for travel bookings</li>
/// <li>{@link kFIRParameterNumberOfNights} (signed 64-bit integer as NSNumber) (optional) for
/// <li>@c kFIRParameterNumberOfNights (signed 64-bit integer as NSNumber) (optional) for
/// travel bookings</li>
/// <li>{@link kFIRParameterNumberOfRooms} (signed 64-bit integer as NSNumber) (optional) for
/// <li>@c kFIRParameterNumberOfRooms (signed 64-bit integer as NSNumber) (optional) for
/// travel bookings</li>
/// <li>{@link kFIRParameterOrigin} (NSString) (optional)</li>
/// <li>{@link kFIRParameterDestination} (NSString) (optional)</li>
/// <li>{@link kFIRParameterSearchTerm} (NSString) (optional) for travel bookings</li>
/// <li>{@link kFIRParameterTravelClass} (NSString) (optional) for travel bookings</li>
/// <li>@c kFIRParameterOrigin (NSString) (optional)</li>
/// <li>@c kFIRParameterDestination (NSString) (optional)</li>
/// <li>@c kFIRParameterSearchTerm (NSString) (optional) for travel bookings</li>
/// <li>@c kFIRParameterTravelClass (NSString) (optional) for travel bookings</li>
/// </ul>
static NSString *const kFIREventViewItem = @"view_item";
......@@ -308,7 +308,7 @@ static NSString *const kFIREventViewItem = @"view_item";
/// certain category. Params:
///
/// <ul>
/// <li>{@link kFIRParameterItemCategory} (NSString)</li>
/// <li>@c kFIRParameterItemCategory (NSString)</li>
/// </ul>
static NSString *const kFIREventViewItemList = @"view_item_list";
......@@ -316,6 +316,6 @@ static NSString *const kFIREventViewItemList = @"view_item_list";
/// search. Params:
///
/// <ul>
/// <li>{@link kFIRParameterSearchTerm} (NSString)</li>
/// <li>@c kFIRParameterSearchTerm (NSString)</li>
/// </ul>
static NSString *const kFIREventViewSearchResults = @"view_search_results";
......@@ -5,9 +5,9 @@
/// Params supply information that contextualize Events. You can associate up to 25 unique Params
/// with each Event type. Some Params are suggested below for certain common Events, but you are
/// not limited to these. You may supply extra Params for suggested Events or custom Params for
/// Custom events. Param names can be up to 24 characters long, may only contain alphanumeric
/// Custom events. Param names can be up to 40 characters long, may only contain alphanumeric
/// characters and underscores ("_"), and must start with an alphabetic character. Param values can
/// be up to 36 characters long. The "firebase_" prefix is reserved and should not be used.
/// be up to 100 characters long. The "firebase_" prefix is reserved and should not be used.
/// Game achievement ID (NSString).
/// <pre>
......@@ -283,8 +283,8 @@ static NSString *const kFIRParameterTravelClass = @"travel_class";
/// a general purpose parameter that is useful for accumulating a key metric that pertains to an
/// event. Examples include revenue, distance, time and points. Value should be specified as signed
/// 64-bit integer or double as NSNumber. Notes: Currency-related values should be supplied using
/// double as NSNumber and must be accompanied by a {@link kFIRParameterCurrency} parameter. The
/// valid range of accumulated values is [-9,223,372,036,854.77, 9,223,372,036,854.77].
/// double as NSNumber and must be accompanied by a @c kFIRParameterCurrency parameter. The valid
/// range of accumulated values is [-9,223,372,036,854.77, 9,223,372,036,854.77].
/// <pre>
/// NSDictionary *params = @{
/// kFIRParameterValue : @(3.99),
......
......@@ -14,7 +14,6 @@ framework module FirebaseAnalytics {
header "FIRParameterNames.h"
header "FIRUserPropertyNames.h"
link framework "AddressBook"
link framework "StoreKit"
link "c++"
......
......@@ -5,13 +5,14 @@
NS_ASSUME_NONNULL_BEGIN
/** A block that takes a BOOL and has no return value. */
typedef void (^FIRAppVoidBoolCallback)(BOOL success);
/**
* The entry point of Firebase SDKs.
*
* Initialize and configure FIRApp using [FIRApp configure];
* Or other customized ways as shown below.
* Initialize and configure FIRApp using +[FIRApp configure]
* or other customized ways as shown below.
*
* The logging system has two modes: default mode and debug mode. In default mode, only logs with
* log level Notice, Warning and Error will be sent to device. In debug mode, all logs will be sent
......@@ -62,22 +63,22 @@ typedef void (^FIRAppVoidBoolCallback)(BOOL success);
+ (nullable FIRApp *)appNamed:(NSString *)name;
/**
* Returns the set of all extant FIRApp instances, or nil if there is no FIRApp instance. This
* Returns the set of all extant FIRApp instances, or nil if there are no FIRApp instances. This
* method is thread safe.
*/
+ (nullable NSDictionary *)allApps;
/**
* Cleans up the current FIRApp, freeing associated data and returning its name to the pool for
* future use. This method is thread safe in class level.
* future use. This method is thread safe.
*/
- (void)deleteApp:(FIRAppVoidBoolCallback)completion;
/**
* FIRFirebaseApp instances should not be initialized directly. Call |FIRApp configure|, or
* |FIRApp configureWithOptions:|, or |FIRApp configureWithNames:options| directly.
* FIRApp instances should not be initialized directly. Call +[FIRApp configure],
* +[FIRApp configureWithOptions:], or +[FIRApp configureWithNames:options:] directly.
*/
- (nullable instancetype)init NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
/**
* Gets the name of this app.
......
......@@ -6,11 +6,17 @@
* The log levels used by FIRConfiguration.
*/
typedef NS_ENUM(NSInteger, FIRLogLevel) {
/** Error */
kFIRLogLevelError __deprecated = 0,
/** Warning */
kFIRLogLevelWarning __deprecated,
/** Info */
kFIRLogLevelInfo __deprecated,
/** Debug */
kFIRLogLevelDebug __deprecated,
/** Assert */
kFIRLogLevelAssert __deprecated,
/** Max */
kFIRLogLevelMax __deprecated = kFIRLogLevelAssert
} DEPRECATED_MSG_ATTRIBUTE(
"Use -FIRDebugEnabled and -FIRDebugDisabled. See FIRApp.h for more details.");
......@@ -21,12 +27,13 @@ typedef NS_ENUM(NSInteger, FIRLogLevel) {
*/
@interface FIRConfiguration : NSObject
/** Returns the shared configuration object. */
+ (FIRConfiguration *)sharedInstance;
// The configuration class for Firebase Analytics.
/** The configuration class for Firebase Analytics. */
@property(nonatomic, readwrite) FIRAnalyticsConfiguration *analyticsConfiguration;
// Global log level. Defaults to kFIRLogLevelError.
/** Global log level. Defaults to kFIRLogLevelError. */
@property(nonatomic, readwrite, assign) FIRLogLevel logLevel DEPRECATED_MSG_ATTRIBUTE(
"Use -FIRDebugEnabled and -FIRDebugDisabled. See FIRApp.h for more details.");
......
......@@ -43,31 +43,31 @@ FOUNDATION_EXPORT NSString * __nonnull const FIRMessagingMessagesDeletedNotifica
* @enum FIRMessagingError
*/
typedef NS_ENUM(NSUInteger, FIRMessagingError) {
// Unknown error.
/// Unknown error.
FIRMessagingErrorUnknown = 0,
// Auth Error -- FIRMessaging couldn't validate request from this client.
/// FIRMessaging couldn't validate request from this client.
FIRMessagingErrorAuthentication = 1,
// NoAccess -- InstanceID service cannot be accessed.
/// InstanceID service cannot be accessed.
FIRMessagingErrorNoAccess = 2,
// Timeout -- Request to InstanceID backend timed out.
/// Request to InstanceID backend timed out.
FIRMessagingErrorTimeout = 3,
// Network -- No network available to reach the servers.
/// No network available to reach the servers.
FIRMessagingErrorNetwork = 4,
// OperationInProgress -- Another similar operation in progress,
// bailing this one.
/// Another similar operation in progress, bailing this one.
FIRMessagingErrorOperationInProgress = 5,
// InvalidRequest -- Some parameters of the request were invalid.
/// Some parameters of the request were invalid.
FIRMessagingErrorInvalidRequest = 7,
};
/// Status for the downstream message received by the app.
typedef NS_ENUM(NSInteger, FIRMessagingMessageStatus) {
/// Unknown status.
FIRMessagingMessageStatusUnknown,
/// New downstream message received by the app.
FIRMessagingMessageStatusNew,
......@@ -76,6 +76,7 @@ typedef NS_ENUM(NSInteger, FIRMessagingMessageStatus) {
/// Information about a downstream message received by the app.
@interface FIRMessagingMessageInfo : NSObject
/// The status of the downstream message
@property(nonatomic, readonly, assign) FIRMessagingMessageStatus status;
@end
......@@ -121,7 +122,7 @@ typedef NS_ENUM(NSInteger, FIRMessagingMessageStatus) {
* In order to receive FIRMessaging messages, declare application:didReceiveRemoteNotification:
*
* Client apps can send upstream messages back to the app server using the XMPP-based
* <a href="http://developers.google.com/cloud-messaging/ccs.html">Cloud Connection Server</a>,
* <a href="https://developers.google.com/cloud-messaging/ccs.html">Cloud Connection Server</a>
*
*/
@interface FIRMessaging : NSObject
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -7,7 +7,7 @@
<key>RNFIRMessaging.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>5</integer>
<integer>7</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment