-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Fabric |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Headers |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Resources |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// | ||
// 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 nonnull | ||
#define nullable | ||
#define _Nullable | ||
#define _Nonnull | ||
#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 native nullability | ||
* macros. | ||
*/ | ||
#define fab_nullable nullable | ||
#define fab_nonnull nonnull | ||
#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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// | ||
// 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."); | ||
|
||
/** | ||
* Unavailable. Use `+sharedSDK` to retrieve the shared Fabric instance. | ||
*/ | ||
+ (instancetype)new FAB_UNAVAILABLE("Use +sharedSDK to retrieve the shared Fabric instance."); | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
framework module Fabric { | ||
umbrella header "Fabric.h" | ||
|
||
export * | ||
module * { export * } | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?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>15G31</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>Fabric</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>io.fabric.sdk.mac</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.11</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleSupportedPlatforms</key> | ||
<array> | ||
<string>MacOSX</string> | ||
</array> | ||
<key>CFBundleVersion</key> | ||
<string>60</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTPlatformBuild</key> | ||
<string>7D1014</string> | ||
<key>DTPlatformVersion</key> | ||
<string>GM</string> | ||
<key>DTSDKBuild</key> | ||
<string>15E60</string> | ||
<key>DTSDKName</key> | ||
<string>macosx10.11</string> | ||
<key>DTXcode</key> | ||
<string>0731</string> | ||
<key>DTXcodeBuild</key> | ||
<string>7D1014</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright © 2015 Twitter. All rights reserved.</string> | ||
<key>UIDeviceFamily</key> | ||
<array> | ||
<integer>3</integer> | ||
<integer>2</integer> | ||
<integer>1</integer> | ||
<integer>4</integer> | ||
</array> | ||
</dict> | ||
</plist> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A |
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 & |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.