From 20e7c6d8735e84dce9f61e86be191a7c06196bb0 Mon Sep 17 00:00:00 2001 From: Lyubomir Marinov Date: Mon, 31 Oct 2016 13:42:45 -0500 Subject: [PATCH] [iOS] Crashlytics --- ios/Podfile | 12 ++++++++++++ ios/Podfile.lock | 16 ++++++++++++++++ ios/app/AppDelegate.m | 5 ++++- ios/app/Info.plist | 14 ++++++++++++++ ios/jitsi-meet-react.xcodeproj/project.pbxproj | 14 ++++++++++++++ .../contents.xcworkspacedata | 10 ++++++++++ 6 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 ios/Podfile create mode 100644 ios/Podfile.lock create mode 100644 ios/jitsi-meet-react.xcworkspace/contents.xcworkspacedata diff --git a/ios/Podfile b/ios/Podfile new file mode 100644 index 000000000..29ee98f1e --- /dev/null +++ b/ios/Podfile @@ -0,0 +1,12 @@ +# Uncomment the next line to define a global platform for your project +# platform :ios, '9.0' + +target 'jitsi-meet-react' do + # Uncomment the next line if you're using Swift or would like to use dynamic frameworks + # use_frameworks! + + # Pods for jitsi-meet-react + pod 'Crashlytics' + pod 'Fabric' + +end diff --git a/ios/Podfile.lock b/ios/Podfile.lock new file mode 100644 index 000000000..6e3f58de3 --- /dev/null +++ b/ios/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - Crashlytics (3.8.3): + - Fabric (~> 1.6.3) + - Fabric (1.6.11) + +DEPENDENCIES: + - Crashlytics + - Fabric + +SPEC CHECKSUMS: + Crashlytics: 2b6dbe138a42395577cfa73dfa1aa7248cadf39e + Fabric: 5911403591946b8228ab1c51d98f1d7137e863c6 + +PODFILE CHECKSUM: 672d557f679f28c07b3364884b4580e605000f01 + +COCOAPODS: 1.1.1 diff --git a/ios/app/AppDelegate.m b/ios/app/AppDelegate.m index 66ba68dee..1632d759b 100644 --- a/ios/app/AppDelegate.m +++ b/ios/app/AppDelegate.m @@ -8,7 +8,8 @@ */ #import "AppDelegate.h" - +#import +#import #import "RCTBundleURLProvider.h" #import "RCTLinkingManager.h" #import "RCTRootView.h" @@ -28,6 +29,8 @@ continueUserActivity:(NSUserActivity *)userActivity - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [Fabric with:@[[Crashlytics class]]]; + NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; diff --git a/ios/app/Info.plist b/ios/app/Info.plist index ae2a3132a..376516cbd 100644 --- a/ios/app/Info.plist +++ b/ios/app/Info.plist @@ -22,6 +22,20 @@ ???? CFBundleVersion 1 + Fabric + + APIKey + a8ae24a58302ba79da1d312138e941f6b86e3242 + Kits + + + KitInfo + + KitName + Crashlytics + + + LSRequiresIPhoneOS NSAppTransportSecurity diff --git a/ios/jitsi-meet-react.xcodeproj/project.pbxproj b/ios/jitsi-meet-react.xcodeproj/project.pbxproj index c8f67ee94..caa30851a 100644 --- a/ios/jitsi-meet-react.xcodeproj/project.pbxproj +++ b/ios/jitsi-meet-react.xcodeproj/project.pbxproj @@ -458,6 +458,7 @@ 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, B30EF2341DC0EEA500690F45 /* Embed Frameworks */, + B3DBBAC41DC6A3BE001DA4DD /* ShellScript */, ); buildRules = ( ); @@ -720,6 +721,19 @@ shellPath = /bin/sh; shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; }; + B3DBBAC41DC6A3BE001DA4DD /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Fabric/run\" a8ae24a58302ba79da1d312138e941f6b86e3242 256ed316263eb534e26a1ad5dcc42ca9c179af5937dd864c3e44cfefa2e8b54c"; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ diff --git a/ios/jitsi-meet-react.xcworkspace/contents.xcworkspacedata b/ios/jitsi-meet-react.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..c506067b0 --- /dev/null +++ b/ios/jitsi-meet-react.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + +