-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
222 changed files
with
3,126 additions
and
1,786 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// | ||
// FABAttributes.h | ||
// Fabric | ||
// | ||
// Copyright (C) 2015 Twitter, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#pragma once | ||
|
||
#define FAB_UNAVAILABLE(x) __attribute__((unavailable(x))) | ||
|
||
#if __has_feature(nullability) | ||
#define fab_nullable nullable | ||
#define fab_nonnull nonnull | ||
#define fab_null_unspecified null_unspecified | ||
#define fab_null_resettable null_resettable | ||
#define __fab_nullable __nullable | ||
#define __fab_nonnull __nonnull | ||
#define __fab_null_unspecified __null_unspecified | ||
#else | ||
#define fab_nullable | ||
#define fab_nonnull | ||
#define fab_null_unspecified | ||
#define fab_null_resettable | ||
#define __fab_nullable | ||
#define __fab_nonnull | ||
#define __fab_null_unspecified | ||
#endif | ||
|
||
#ifndef NS_ASSUME_NONNULL_BEGIN | ||
#define NS_ASSUME_NONNULL_BEGIN | ||
#endif | ||
|
||
#ifndef NS_ASSUME_NONNULL_END | ||
#define NS_ASSUME_NONNULL_END | ||
#endif | ||
|
||
|
||
/** | ||
* The following macros are defined here to provide | ||
* backwards compatability. If you are still using | ||
* them you should migrate to the new versions that | ||
* are defined above. | ||
*/ | ||
#define FAB_NONNULL __fab_nonnull | ||
#define FAB_NULLABLE __fab_nullable | ||
#define FAB_START_NONNULL NS_ASSUME_NONNULL_BEGIN | ||
#define FAB_END_NONNULL NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// | ||
// Fabric.h | ||
// Fabric | ||
// | ||
// Copyright (C) 2015 Twitter, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "FABAttributes.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
#if TARGET_OS_IPHONE | ||
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 60000 | ||
#error "Fabric's minimum iOS version is 6.0" | ||
#endif | ||
#else | ||
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1070 | ||
#error "Fabric's minimum OS X version is 10.7" | ||
#endif | ||
#endif | ||
|
||
/** | ||
* 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:@[[Crashlytics class], [Twitter class], [Digits class], [MoPub class]]];` | ||
* | ||
* Swift: | ||
* | ||
* `Fabric.with([Crashlytics.self(), Twitter.self(), Digits.self(), MoPub.self()])` | ||
* | ||
* Only the first call to this method is honored. Subsequent calls are no-ops. | ||
* | ||
* @param kitClasses An array of kit Class objects | ||
* | ||
* @return Returns the shared Fabric instance. In most cases this can be ignored. | ||
*/ | ||
+ (instancetype)with:(NSArray *)kitClasses; | ||
|
||
/** | ||
* 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 FAB_UNAVAILABLE("Use +sharedSDK to retrieve the shared Fabric instance."); | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?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>BuildMachineOSBuild</key> | ||
<string>14F1021</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>Fabric</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.6.6</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleSupportedPlatforms</key> | ||
<array> | ||
<string>iPhoneOS</string> | ||
</array> | ||
<key>CFBundleVersion</key> | ||
<string>49</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTPlatformBuild</key> | ||
<string>13B137</string> | ||
<key>DTPlatformName</key> | ||
<string>iphoneos</string> | ||
<key>DTPlatformVersion</key> | ||
<string>9.1</string> | ||
<key>DTSDKBuild</key> | ||
<string>13B137</string> | ||
<key>DTSDKName</key> | ||
<string>iphoneos9.1</string> | ||
<key>DTXcode</key> | ||
<string>0710</string> | ||
<key>DTXcodeBuild</key> | ||
<string>7B91b</string> | ||
<key>MinimumOSVersion</key> | ||
<string>6.0</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright © 2015 Twitter. All rights reserved.</string> | ||
<key>UIDeviceFamily</key> | ||
<array> | ||
<integer>1</integer> | ||
<integer>2</integer> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
framework module Fabric { | ||
umbrella header "Fabric.h" | ||
|
||
export * | ||
module * { export * } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
# run | ||
# | ||
# Copyright (c) 2015 Crashlytics. All rights reserved. | ||
|
||
# Figure out where we're being called from | ||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
|
||
# Quote path in case of spaces or special chars | ||
DIR="\"${DIR}" | ||
|
||
PATH_SEP="/" | ||
VALIDATE_COMMAND="uploadDSYM\" $@ validate run-script" | ||
UPLOAD_COMMAND="uploadDSYM\" $@ run-script" | ||
|
||
# Ensure params are as expected, run in sync mode to validate | ||
eval $DIR$PATH_SEP$VALIDATE_COMMAND | ||
return_code=$? | ||
|
||
if [[ $return_code != 0 ]]; then | ||
exit $return_code | ||
fi | ||
|
||
# Verification passed, upload dSYM in background to prevent Xcode from waiting | ||
# Note: Validation is performed again before upload. | ||
# Output can still be found in Console.app | ||
eval $DIR$PATH_SEP$UPLOAD_COMMAND > /dev/null 2>&1 & |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.