瀏覽代碼

[iOS] Crashlytics

j8
Lyubomir Marinov 8 年之前
父節點
當前提交
20e7c6d873

+ 12
- 0
ios/Podfile 查看文件

@@ -0,0 +1,12 @@
1
+# Uncomment the next line to define a global platform for your project
2
+# platform :ios, '9.0'
3
+
4
+target 'jitsi-meet-react' do
5
+  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
6
+  # use_frameworks!
7
+
8
+  # Pods for jitsi-meet-react
9
+  pod 'Crashlytics'
10
+  pod 'Fabric'
11
+
12
+end

+ 16
- 0
ios/Podfile.lock 查看文件

@@ -0,0 +1,16 @@
1
+PODS:
2
+  - Crashlytics (3.8.3):
3
+    - Fabric (~> 1.6.3)
4
+  - Fabric (1.6.11)
5
+
6
+DEPENDENCIES:
7
+  - Crashlytics
8
+  - Fabric
9
+
10
+SPEC CHECKSUMS:
11
+  Crashlytics: 2b6dbe138a42395577cfa73dfa1aa7248cadf39e
12
+  Fabric: 5911403591946b8228ab1c51d98f1d7137e863c6
13
+
14
+PODFILE CHECKSUM: 672d557f679f28c07b3364884b4580e605000f01
15
+
16
+COCOAPODS: 1.1.1

+ 4
- 1
ios/app/AppDelegate.m 查看文件

@@ -8,7 +8,8 @@
8 8
  */
9 9
 
10 10
 #import "AppDelegate.h"
11
-
11
+#import <Crashlytics/Crashlytics.h>
12
+#import <Fabric/Fabric.h>
12 13
 #import "RCTBundleURLProvider.h"
13 14
 #import "RCTLinkingManager.h"
14 15
 #import "RCTRootView.h"
@@ -28,6 +29,8 @@ continueUserActivity:(NSUserActivity *)userActivity
28 29
 - (BOOL)application:(UIApplication *)application
29 30
 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
30 31
 {
32
+  [Fabric with:@[[Crashlytics class]]];
33
+
31 34
   NSURL *jsCodeLocation
32 35
     = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios"
33 36
                                                      fallbackResource:nil];

+ 14
- 0
ios/app/Info.plist 查看文件

@@ -22,6 +22,20 @@
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24 24
 	<string>1</string>
25
+	<key>Fabric</key>
26
+	<dict>
27
+		<key>APIKey</key>
28
+		<string>a8ae24a58302ba79da1d312138e941f6b86e3242</string>
29
+		<key>Kits</key>
30
+		<array>
31
+			<dict>
32
+				<key>KitInfo</key>
33
+				<dict/>
34
+				<key>KitName</key>
35
+				<string>Crashlytics</string>
36
+			</dict>
37
+		</array>
38
+	</dict>
25 39
 	<key>LSRequiresIPhoneOS</key>
26 40
 	<true/>
27 41
 	<key>NSAppTransportSecurity</key>

+ 14
- 0
ios/jitsi-meet-react.xcodeproj/project.pbxproj 查看文件

@@ -458,6 +458,7 @@
458 458
 				13B07F8E1A680F5B00A75B9A /* Resources */,
459 459
 				00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
460 460
 				B30EF2341DC0EEA500690F45 /* Embed Frameworks */,
461
+				B3DBBAC41DC6A3BE001DA4DD /* ShellScript */,
461 462
 			);
462 463
 			buildRules = (
463 464
 			);
@@ -720,6 +721,19 @@
720 721
 			shellPath = /bin/sh;
721 722
 			shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
722 723
 		};
724
+		B3DBBAC41DC6A3BE001DA4DD /* ShellScript */ = {
725
+			isa = PBXShellScriptBuildPhase;
726
+			buildActionMask = 2147483647;
727
+			files = (
728
+			);
729
+			inputPaths = (
730
+			);
731
+			outputPaths = (
732
+			);
733
+			runOnlyForDeploymentPostprocessing = 0;
734
+			shellPath = /bin/sh;
735
+			shellScript = "\"${PODS_ROOT}/Fabric/run\" a8ae24a58302ba79da1d312138e941f6b86e3242 256ed316263eb534e26a1ad5dcc42ca9c179af5937dd864c3e44cfefa2e8b54c";
736
+		};
723 737
 /* End PBXShellScriptBuildPhase section */
724 738
 
725 739
 /* Begin PBXSourcesBuildPhase section */

+ 10
- 0
ios/jitsi-meet-react.xcworkspace/contents.xcworkspacedata 查看文件

@@ -0,0 +1,10 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Workspace
3
+   version = "1.0">
4
+   <FileRef
5
+      location = "group:jitsi-meet-react.xcodeproj">
6
+   </FileRef>
7
+   <FileRef
8
+      location = "group:Pods/Pods.xcodeproj">
9
+   </FileRef>
10
+</Workspace>

Loading…
取消
儲存