Fjalapeno has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/187622

Change subject: Setup crashlytics
......................................................................

Setup crashlytics

Change-Id: I945950b1e55ca34adc75efc8abf0c6c5c14d64c4
---
A Fabric.framework/Fabric
A Fabric.framework/Headers
A Fabric.framework/Modules
A Fabric.framework/Resources
A Fabric.framework/Versions/A/Fabric
A Fabric.framework/Versions/A/Headers/Fabric.h
A Fabric.framework/Versions/A/Modules/module.modulemap
A Fabric.framework/Versions/A/Resources/Info.plist
A Fabric.framework/Versions/Current
A Fabric.framework/run
M Wikipedia.xcodeproj/project.pbxproj
M wikipedia/AppDelegate.m
M wikipedia/Wikipedia-Info.plist
13 files changed, 163 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/ios/wikipedia 
refs/changes/22/187622/1

diff --git a/Fabric.framework/Fabric b/Fabric.framework/Fabric
new file mode 120000
index 0000000..4df0d3a
--- /dev/null
+++ b/Fabric.framework/Fabric
@@ -0,0 +1 @@
+Versions/Current/Fabric
\ No newline at end of file
diff --git a/Fabric.framework/Headers b/Fabric.framework/Headers
new file mode 120000
index 0000000..a177d2a
--- /dev/null
+++ b/Fabric.framework/Headers
@@ -0,0 +1 @@
+Versions/Current/Headers
\ No newline at end of file
diff --git a/Fabric.framework/Modules b/Fabric.framework/Modules
new file mode 120000
index 0000000..5736f31
--- /dev/null
+++ b/Fabric.framework/Modules
@@ -0,0 +1 @@
+Versions/Current/Modules
\ No newline at end of file
diff --git a/Fabric.framework/Resources b/Fabric.framework/Resources
new file mode 120000
index 0000000..953ee36
--- /dev/null
+++ b/Fabric.framework/Resources
@@ -0,0 +1 @@
+Versions/Current/Resources
\ No newline at end of file
diff --git a/Fabric.framework/Versions/A/Fabric 
b/Fabric.framework/Versions/A/Fabric
new file mode 100644
index 0000000..0e7b6fd
--- /dev/null
+++ b/Fabric.framework/Versions/A/Fabric
Binary files differ
diff --git a/Fabric.framework/Versions/A/Headers/Fabric.h 
b/Fabric.framework/Versions/A/Headers/Fabric.h
new file mode 100644
index 0000000..5736943
--- /dev/null
+++ b/Fabric.framework/Versions/A/Headers/Fabric.h
@@ -0,0 +1,67 @@
+//
+//  Fabric.h
+//
+//  Copyright (c) 2014 Twitter. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+/**
+ *  Fabric Base. Coordinates configuration and starts all provided kits.
+ */
+@interface Fabric : NSObject
+
+/**
+ *  Initialize Fabric and all provided kits. Call this method within your App 
Delegate's
+ *  `application:didFinishLaunchingWithOptions:` and provide the kits you wish 
to use.
+ *
+ *  For example, in Objective-C:
+ *
+ *      `[Fabric with:@[TwitterKit, CrashlyticsKit, MoPubKit]];`
+ *
+ *  Swift:
+ *
+ *      `Fabric.with([Twitter(), Crashlytics(), MoPub()])`
+ *  
+ *  @param kits An array of kit instances. Kits may provide a macro such as 
CrashlyticsKit which can be passed in as array elements in objective-c.
+ *
+ *  @return Returns the shared Fabric instance. In most cases this can be 
ignored.
+ */
++ (instancetype)with:(NSArray *)kits;
+
+/**
+ *  Returns the Fabric singleton object.
+ */
++ (instancetype)sharedSDK;
+
+/**
+ *  This BOOL enables or disables debug logging, such as kit version 
information. The default value is NO.
+ */
+@property (nonatomic, assign) BOOL debug;
+
+/**
+ *  Unavailable. Use `+sharedSDK` to retrieve the shared Fabric instance.
+ */
+- (id)init __attribute__((unavailable("Use +sharedSDK to retrieve the shared 
Fabric instance.")));
+
+/**
+ *  Returns Fabrics's instance of the specified kit.
+ *
+ *  @param klass The class of the kit.
+ *
+ *  @return The kit instance of class klass which was provided to with: or nil.
+ */
+- (id)kitForClass:(Class)klass;
+
+/**
+ *  Returns a dictionary containing the kit configuration info for the 
provided kit.
+ *  The configuration information is parsed from the application's Info.plist. 
This
+ *  method is primarily intended to be used by kits to retrieve their 
configuration.
+ *
+ *  @param kitInstance An instance of the kit whose configuration should be 
returned.
+ *
+ *  @return A dictionary containing kit specific configuration information or 
nil if none exists.
+ */
+- (NSDictionary *)configurationDictionaryForKit:(id)kitInstance;
+
+@end
diff --git a/Fabric.framework/Versions/A/Modules/module.modulemap 
b/Fabric.framework/Versions/A/Modules/module.modulemap
new file mode 100644
index 0000000..2a31223
--- /dev/null
+++ b/Fabric.framework/Versions/A/Modules/module.modulemap
@@ -0,0 +1,6 @@
+framework module Fabric {
+    umbrella header "Fabric.h"
+
+    export *
+    module * { export * }
+}
\ No newline at end of file
diff --git a/Fabric.framework/Versions/A/Resources/Info.plist 
b/Fabric.framework/Versions/A/Resources/Info.plist
new file mode 100644
index 0000000..055ffd3
--- /dev/null
+++ b/Fabric.framework/Versions/A/Resources/Info.plist
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
+<plist version="1.0">
+<dict>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
+       <key>CFBundleGetInfoString</key>
+       <string>Fabric Framework</string>
+       <key>CFBundleIdentifier</key>
+       <string>io.fabric.sdk.ios</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundleName</key>
+       <string>Fabric</string>
+       <key>CFBundlePackageType</key>
+       <string>FMWK</string>
+       <key>CFBundleShortVersionString</key>
+       <string>1.1.1</string>
+       <key>CFBundleSupportedPlatforms</key>
+       <array>
+               <string>iPhoneOS</string>
+               <string>iPhoneSimulator</string>
+               <string>MacOSX</string>
+       </array>
+       <key>CFBundleVersion</key>
+       <string>1.1.1</string>
+       <key>NSHumanReadableCopyright</key>
+       <string>Copyright 2014 Twitter Inc.</string>
+</dict>
+</plist>
diff --git a/Fabric.framework/Versions/Current 
b/Fabric.framework/Versions/Current
new file mode 120000
index 0000000..8c7e5a6
--- /dev/null
+++ b/Fabric.framework/Versions/Current
@@ -0,0 +1 @@
+A
\ No newline at end of file
diff --git a/Fabric.framework/run b/Fabric.framework/run
new file mode 100755
index 0000000..bb0ba8e
--- /dev/null
+++ b/Fabric.framework/run
Binary files differ
diff --git a/Wikipedia.xcodeproj/project.pbxproj 
b/Wikipedia.xcodeproj/project.pbxproj
index dde3063..e6c21a6 100644
--- a/Wikipedia.xcodeproj/project.pbxproj
+++ b/Wikipedia.xcodeproj/project.pbxproj
@@ -179,6 +179,8 @@
                04F27B7818FE0F2E00EDD838 /* PageHistoryViewController.m in 
Sources */ = {isa = PBXBuildFile; fileRef = 04F27B7418FE0F2E00EDD838 /* 
PageHistoryViewController.m */; };
                04F39590186CF80100B0D6FC /* TOCViewController.m in Sources */ = 
{isa = PBXBuildFile; fileRef = 04F3958F186CF80100B0D6FC /* TOCViewController.m 
*/; };
                701FF5EE601DEA3FCAB7EFD3 /* libPods.a in Frameworks */ = {isa = 
PBXBuildFile; fileRef = D82982ED992F47428037BDF2 /* libPods.a */; };
+               C42634C51A7AF2ED00D4EB58 /* Fabric.framework in Frameworks */ = 
{isa = PBXBuildFile; fileRef = C42634C41A7AF2ED00D4EB58 /* Fabric.framework */; 
};
+               C42A81691A7AFBD200987F5A /* Crashlytics.framework in Frameworks 
*/ = {isa = PBXBuildFile; fileRef = C42A81681A7AFBD200987F5A /* 
Crashlytics.framework */; };
                C9180EC418AED30C006C1DCA /* WikipediaAppUtils.m in Sources */ = 
{isa = PBXBuildFile; fileRef = C9180EC318AED30C006C1DCA /* WikipediaAppUtils.m 
*/; };
                D407E6411A51DBDA00CCC8B1 /* SchemaConverter.m in Sources */ = 
{isa = PBXBuildFile; fileRef = D407E6401A51DBDA00CCC8B1 /* SchemaConverter.m 
*/; };
                D42E75EB18D11237002EA7E5 /* MWLanguageInfo.m in Sources */ = 
{isa = PBXBuildFile; fileRef = D42E75EA18D11237002EA7E5 /* MWLanguageInfo.m */; 
};
@@ -575,6 +577,8 @@
                04F3958F186CF80100B0D6FC /* TOCViewController.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= TOCViewController.m; sourceTree = "<group>"; };
                15847B39C337F6CC5C052C54 /* Pods.test.xcconfig */ = {isa = 
PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = 
Pods.test.xcconfig; path = "Pods/Target Support Files/Pods/Pods.test.xcconfig"; 
sourceTree = "<group>"; };
                357504E50DA104E39C6ACFEB /* Pods.release.xcconfig */ = {isa = 
PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = 
Pods.release.xcconfig; path = "Pods/Target Support 
Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
+               C42634C41A7AF2ED00D4EB58 /* Fabric.framework */ = {isa = 
PBXFileReference; lastKnownFileType = wrapper.framework; path = 
Fabric.framework; sourceTree = "<group>"; };
+               C42A81681A7AFBD200987F5A /* Crashlytics.framework */ = {isa = 
PBXFileReference; lastKnownFileType = wrapper.framework; path = 
Crashlytics.framework; sourceTree = "<group>"; };
                C9180EC218AED30C006C1DCA /* WikipediaAppUtils.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
WikipediaAppUtils.h; sourceTree = "<group>"; };
                C9180EC318AED30C006C1DCA /* WikipediaAppUtils.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= WikipediaAppUtils.m; sourceTree = "<group>"; };
                D407E63F1A51DBDA00CCC8B1 /* SchemaConverter.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = 
SchemaConverter.h; path = wikipedia/Data/SchemaConverter.h; sourceTree = 
SOURCE_ROOT; };
@@ -823,6 +827,8 @@
                                D4991439181D51DE00E6073C /* 
Foundation.framework in Frameworks */,
                                041EFC371996A1F800B2CB28 /* MapKit.framework in 
Frameworks */,
                                701FF5EE601DEA3FCAB7EFD3 /* libPods.a in 
Frameworks */,
+                               C42A81691A7AFBD200987F5A /* 
Crashlytics.framework in Frameworks */,
+                               C42634C51A7AF2ED00D4EB58 /* Fabric.framework in 
Frameworks */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
@@ -1603,6 +1609,8 @@
                D4991437181D51DE00E6073C /* Frameworks */ = {
                        isa = PBXGroup;
                        children = (
+                               C42A81681A7AFBD200987F5A /* 
Crashlytics.framework */,
+                               C42634C41A7AF2ED00D4EB58 /* Fabric.framework */,
                                04649CA619F72B360071E8FA /* libPods.a */,
                                041EFC361996A1F800B2CB28 /* MapKit.framework */,
                                D4E8A8A819085CEA00DA4765 /* libsqlite3.dylib */,
@@ -1761,6 +1769,7 @@
                                046F268119C387BD00D7ACB3 /* icon-svgs-to-pngs 
*/,
                                04E0C2771A7750AB00FE22DA /* 
copy-wmflogo-to-assets */,
                                45FA417DEEAE18B42A662320 /* Copy Pods Resources 
*/,
+                               C42634BF1A7ADAB000D4EB58 /* Crashlytics */,
                        );
                        buildRules = (
                        );
@@ -2044,6 +2053,20 @@
                        shellPath = /bin/sh;
                        shellScript = "\"${SRCROOT}/Pods/Target Support 
Files/Pods/Pods-resources.sh\"\n";
                        showEnvVarsInLog = 0;
+               };
+               C42634BF1A7ADAB000D4EB58 /* Crashlytics */ = {
+                       isa = PBXShellScriptBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       inputPaths = (
+                       );
+                       name = Crashlytics;
+                       outputPaths = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+                       shellPath = /bin/sh;
+                       shellScript = "./Fabric.framework/run 
f03a2cd007c4484d21a0c7417df734b6f5393650 
588c1b88f9b81f99d28d45d2f6cea156f67dc89234979414e44695b5e9e0d385";
                };
                D4C16A621970946900CD91AD /* update-storyboard-strings */ = {
                        isa = PBXShellScriptBuildPhase;
@@ -2527,6 +2550,10 @@
                                ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = 
LaunchImage;
                                CODE_SIGN_IDENTITY = "iPhone Developer";
                                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone 
Developer";
+                               FRAMEWORK_SEARCH_PATHS = (
+                                       "$(inherited)",
+                                       "$(PROJECT_DIR)",
+                               );
                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                                GCC_PREFIX_HEADER = 
"wikipedia/Wikipedia-Prefix.pch";
                                HEADER_SEARCH_PATHS = (
@@ -2631,6 +2658,10 @@
                                ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = 
LaunchImage;
                                CODE_SIGN_IDENTITY = "iPhone Developer";
                                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone 
Developer";
+                               FRAMEWORK_SEARCH_PATHS = (
+                                       "$(inherited)",
+                                       "$(PROJECT_DIR)",
+                               );
                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                                GCC_PREFIX_HEADER = 
"wikipedia/Wikipedia-Prefix.pch";
                                HEADER_SEARCH_PATHS = (
@@ -2659,6 +2690,10 @@
                                ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = 
LaunchImage;
                                CODE_SIGN_IDENTITY = "iPhone Developer";
                                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone 
Developer";
+                               FRAMEWORK_SEARCH_PATHS = (
+                                       "$(inherited)",
+                                       "$(PROJECT_DIR)",
+                               );
                                GCC_OPTIMIZATION_LEVEL = 3;
                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                                GCC_PREFIX_HEADER = 
"wikipedia/Wikipedia-Prefix.pch";
diff --git a/wikipedia/AppDelegate.m b/wikipedia/AppDelegate.m
index dc3a01b..b30781a 100644
--- a/wikipedia/AppDelegate.m
+++ b/wikipedia/AppDelegate.m
@@ -5,11 +5,17 @@
 #import "URLCache.h"
 #import "NSDate-Utilities.h"
 #import "WikipediaAppUtils.h"
+#import <Fabric/Fabric.h>
+#import <Crashlytics/Crashlytics.h>
+
 
 @implementation AppDelegate
 
 - (BOOL)application:(UIApplication *)application 
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
+
+    [Fabric with:@[CrashlyticsKit]];
+        
     [WikipediaAppUtils copyAssetsFolderToAppDataDocuments];
     [self registerStandardUserDefaults];
     [self systemWideStyleOverrides];
diff --git a/wikipedia/Wikipedia-Info.plist b/wikipedia/Wikipedia-Info.plist
index e9c2cf5..141b5d5 100644
--- a/wikipedia/Wikipedia-Info.plist
+++ b/wikipedia/Wikipedia-Info.plist
@@ -22,6 +22,20 @@
        <string>????</string>
        <key>CFBundleVersion</key>
        <string>4.0.6.0</string>
+       <key>Fabric</key>
+       <dict>
+               <key>APIKey</key>
+               <string>f03a2cd007c4484d21a0c7417df734b6f5393650</string>
+               <key>Kits</key>
+               <array>
+                       <dict>
+                               <key>KitInfo</key>
+                               <dict/>
+                               <key>KitName</key>
+                               <string>Crashlytics</string>
+                       </dict>
+               </array>
+       </dict>
        <key>LSRequiresIPhoneOS</key>
        <true/>
        <key>NSLocationWhenInUseUsageDescription</key>

-- 
To view, visit https://gerrit.wikimedia.org/r/187622
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I945950b1e55ca34adc75efc8abf0c6c5c14d64c4
Gerrit-PatchSet: 1
Gerrit-Project: apps/ios/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Fjalapeno <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to