Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
Update Fabric Kits
Browse files Browse the repository at this point in the history
* Digits 2.0.2
* Twitter Kit 2.0.2
* Crashlytics 3.7.0
* MoPub 4.5.1
  • Loading branch information
Alex Singer committed Apr 5, 2016
1 parent bf10377 commit fb6e1d0
Show file tree
Hide file tree
Showing 232 changed files with 1,376 additions and 608 deletions.
4 changes: 2 additions & 2 deletions Cannonball.xcodeproj/project.pbxproj
Expand Up @@ -492,7 +492,7 @@
"$(PROJECT_DIR)",
);
INFOPLIST_FILE = Cannonball/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "io.fabric.samples.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = Cannonball;
Expand All @@ -511,7 +511,7 @@
"$(PROJECT_DIR)",
);
INFOPLIST_FILE = Cannonball/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "io.fabric.samples.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = Cannonball;
Expand Down
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "92A47B24199FCE4E00EDF6A8"
BuildableName = "CannonballTests.xctest"
BlueprintName = "CannonballTests"
ReferencedContainer = "container:Cannonball.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "92A47B12199FCE4D00EDF6A8"
BuildableName = "Cannonball.app"
BlueprintName = "Cannonball"
ReferencedContainer = "container:Cannonball.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "92A47B12199FCE4D00EDF6A8"
BuildableName = "Cannonball.app"
BlueprintName = "Cannonball"
ReferencedContainer = "container:Cannonball.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "92A47B12199FCE4D00EDF6A8"
BuildableName = "Cannonball.app"
BlueprintName = "Cannonball"
ReferencedContainer = "container:Cannonball.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
6 changes: 5 additions & 1 deletion Cannonball/AboutViewController.swift
Expand Up @@ -17,6 +17,7 @@
import UIKit
import Crashlytics
import TwitterKit
import DigitsKit

class AboutViewController: UIViewController {

Expand Down Expand Up @@ -63,7 +64,10 @@ class AboutViewController: UIViewController {

@IBAction func signOut(sender: AnyObject) {
// Remove any Twitter or Digits local sessions for this app.
Twitter.sharedInstance().logOut()
let sessionStore = Twitter.sharedInstance().sessionStore
if let userId = sessionStore.session()?.userID {
sessionStore.logOutUserID(userId)
}
Digits.sharedInstance().logOut()

// Remove user information for any upcoming crashes in Crashlytics.
Expand Down
2 changes: 1 addition & 1 deletion Cannonball/CountdownView.swift
Expand Up @@ -61,7 +61,7 @@ class CountdownView : UIView {
secondsRemaining = Double(countdownTime)

displayLink?.invalidate()
displayLink = UIScreen.mainScreen().displayLinkWithTarget(self, selector: Selector("tick"))
displayLink = UIScreen.mainScreen().displayLinkWithTarget(self, selector: #selector(CountdownView.tick))
displayLink!.addToRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode)
}

Expand Down
2 changes: 1 addition & 1 deletion Cannonball/PoemCell.swift
Expand Up @@ -52,7 +52,7 @@ class PoemCell: UITableViewCell {
pictureImageView.layer.addSublayer(gradient)

// Add share button target.
shareButton.addTarget(self, action: Selector("shareButtonTapped"), forControlEvents: .TouchUpInside)
shareButton.addTarget(self, action: #selector(PoemCell.shareButtonTapped), forControlEvents: .TouchUpInside)
}

override func layoutSubviews() {
Expand Down
11 changes: 2 additions & 9 deletions Cannonball/PoemTimelineViewController.swift
Expand Up @@ -33,15 +33,8 @@ class PoemTimelineViewController: TWTRTimelineViewController {
// Log Answers Custom Event.
Answers.logCustomEventWithName("Viewed Poem Timeline", customAttributes: nil)

// Login as a guest on Twitter.
Twitter.sharedInstance().logInGuestWithCompletion { session, error in
// Check we have a valid guest session.
if session != nil {
// Assign our search query to the data source of the Search Timeline which will then be rendered.
let client = Twitter.sharedInstance().APIClient
self.dataSource = TWTRSearchTimelineDataSource(searchQuery: self.poemSearchQuery, APIClient: client)
}
}
let client = TWTRAPIClient()
self.dataSource = TWTRSearchTimelineDataSource(searchQuery: self.poemSearchQuery, APIClient: client)

// Customize the table view.
let headerHeight: CGFloat = 15
Expand Down
10 changes: 6 additions & 4 deletions Cannonball/SignInViewController.swift
Expand Up @@ -75,12 +75,14 @@ class SignInViewController: UIViewController, UIAlertViewDelegate {

@IBAction func signInWithPhone(sender: UIButton) {
// Create a Digits appearance with Cannonball colors.
let appearance = DGTAppearance()
appearance.backgroundColor = UIColor.cannonballBeigeColor()
appearance.accentColor = UIColor.cannonballGreenColor()
let configuration = DGTAuthenticationConfiguration(accountFields: .DefaultOptionMask)

configuration.appearance = DGTAppearance()
configuration.appearance.backgroundColor = UIColor.cannonballBeigeColor()
configuration.appearance.accentColor = UIColor.cannonballGreenColor()

// Start the Digits authentication flow with the custom appearance.
Digits.sharedInstance().authenticateWithDigitsAppearance(appearance, viewController: nil, title: nil) { session, error in
Digits.sharedInstance().authenticateWithViewController(nil, configuration:configuration) { (session, error) in
if session != nil {
// Navigate to the main app screen to select a theme.
self.navigateToMainAppScreen()
Expand Down
2 changes: 1 addition & 1 deletion Cannonball/ThemeChooserViewController.swift
Expand Up @@ -48,7 +48,7 @@ class ThemeChooserViewController: UITableViewController {
logoView.frame.origin.y = -logoView.frame.size.height - 10
navigationController?.view.addSubview(logoView)
navigationController?.view.bringSubviewToFront(logoView)
let logoTapRecognizer = UITapGestureRecognizer(target: self, action: Selector("logoTapped"))
let logoTapRecognizer = UITapGestureRecognizer(target: self, action: #selector(ThemeChooserViewController.logoTapped))
logoView.userInteractionEnabled = true
logoView.addGestureRecognizer(logoTapRecognizer)

Expand Down
Binary file modified Crashlytics.framework/Crashlytics
Binary file not shown.
16 changes: 8 additions & 8 deletions Crashlytics.framework/Headers/Answers.h
Expand Up @@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param signUpMethodOrNil The method by which a user logged in, e.g. Twitter or Digits.
* @param signUpSucceededOrNil The ultimate success or failure of the login
* @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
*/
+ (void)logSignUpWithMethod:(nullable NSString *)signUpMethodOrNil
success:(nullable NSNumber *)signUpSucceededOrNil
Expand All @@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param loginMethodOrNil The method by which a user logged in, e.g. email, Twitter or Digits.
* @param loginSucceededOrNil The ultimate success or failure of the login
* @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
*/
+ (void)logLoginWithMethod:(nullable NSString *)loginMethodOrNil
success:(nullable NSNumber *)loginSucceededOrNil
Expand All @@ -61,7 +61,7 @@ NS_ASSUME_NONNULL_BEGIN
* your application.
*
* @param inviteMethodOrNil The method of invitation, e.g. GameCenter, Twitter, email.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
*/
+ (void)logInviteWithMethod:(nullable NSString *)inviteMethodOrNil
customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil;
Expand All @@ -74,8 +74,8 @@ NS_ASSUME_NONNULL_BEGIN
* @param currencyOrNil The ISO4217 currency code. Example: USD
* @param purchaseSucceededOrNil Was the purchase succesful or unsuccesful
* @param itemNameOrNil The human-readable form of the item's name. Example:
* @param itemIdOrNil The machine-readable, unique item identifier Example: SKU
* @param itemTypeOrNil The type, or genre of the item. Example: Song
* @param itemIdOrNil The machine-readable, unique item identifier Example: SKU
* @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
*/
+ (void)logPurchaseWithPrice:(nullable NSDecimalNumber *)itemPriceOrNil
Expand All @@ -101,7 +101,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param levelNameOrNil The name of the level completed, E.G. "1" or "Training"
* @param scoreOrNil The score the user completed the level with.
* @param levelCompletedSuccesfullyOrNil A boolean representing whether or not the level was completed succesfully.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
*/
+ (void)logLevelEnd:(nullable NSString *)levelNameOrNil
score:(nullable NSNumber *)scoreOrNil
Expand All @@ -118,7 +118,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param itemNameOrNil The human-readable form of the item's name. Example:
* @param itemTypeOrNil The type, or genre of the item. Example: Song
* @param itemIdOrNil The machine-readable, unique item identifier Example: SKU
* @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
*/
+ (void)logAddToCartWithPrice:(nullable NSDecimalNumber *)itemPriceOrNil
currency:(nullable NSString *)currencyOrNil
Expand All @@ -135,7 +135,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param totalPriceOrNil The total price of the cart.
* @param currencyOrNil The ISO4217 currency code. Example: USD
* @param itemCountOrNil The number of items in the cart.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
*/
+ (void)logStartCheckoutWithPrice:(nullable NSDecimalNumber *)totalPriceOrNil
currency:(nullable NSString *)currencyOrNil
Expand Down Expand Up @@ -188,7 +188,7 @@ NS_ASSUME_NONNULL_BEGIN
* the name of the event, since this is how the event will appear in Answers.
*
* @param eventName The human-readable name for the event.
* @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase. Attribute keys
* @param customAttributesOrNil A dictionary of custom attributes to associate with this event. Attribute keys
* must be <code>NSString</code> and and values must be <code>NSNumber</code> or <code>NSString</code>.
* @discussion How we treat <code>NSNumbers</code>:
* We will provide information about the distribution of values over time.
Expand Down
15 changes: 15 additions & 0 deletions Crashlytics.framework/Headers/Crashlytics.h
Expand Up @@ -181,6 +181,21 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)recordCustomExceptionName:(NSString *)name reason:(nullable NSString *)reason frameArray:(CLS_GENERIC_NSARRAY(CLSStackFrame *) *)frameArray;

/**
*
* This allows you to record a non-fatal event, described by an NSError object. These events will be grouped and
* displayed similarly to crashes. Keep in mind that this method can be expensive. Also, the total number of
* NSErrors that can be recorded during your app's life-cycle is limited by a fixed-size circular buffer. If the
* buffer is overrun, the oldest data is dropped. Errors are relayed to Crashlytics on a subsequent launch
* of your application.
*
* You can also use the -recordError:withAdditionalUserInfo: to include additional context not represented
* by the NSError instance itself.
*
**/
- (void)recordError:(NSError *)error;
- (void)recordError:(NSError *)error withAdditionalUserInfo:(nullable CLS_GENERIC_NSDICTIONARY(NSString *, id) *)userInfo;

- (void)logEvent:(NSString *)eventName CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:");
- (void)logEvent:(NSString *)eventName attributes:(nullable NSDictionary *) attributes CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:");
+ (void)logEvent:(NSString *)eventName CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:");
Expand Down
8 changes: 4 additions & 4 deletions Crashlytics.framework/Info.plist
Expand Up @@ -17,15 +17,15 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.4.1</string>
<string>3.7.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleVersion</key>
<string>92</string>
<string>102</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Expand All @@ -39,9 +39,9 @@
<key>DTSDKName</key>
<string>iphoneos9.1</string>
<key>DTXcode</key>
<string>0711</string>
<string>0710</string>
<key>DTXcodeBuild</key>
<string>7B1005</string>
<string>7B91b</string>
<key>MinimumOSVersion</key>
<string>6.0</string>
<key>NSHumanReadableCopyright</key>
Expand Down
4 changes: 2 additions & 2 deletions Crashlytics.framework/run
Expand Up @@ -11,8 +11,8 @@ DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
DIR="\"${DIR}"

PATH_SEP="/"
VALIDATE_COMMAND="uploadDSYM\" $@ validate"
UPLOAD_COMMAND="uploadDSYM\" $@"
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
Expand Down
Binary file modified Crashlytics.framework/submit
Binary file not shown.
Binary file modified Crashlytics.framework/uploadDSYM
Binary file not shown.
Binary file modified DigitsKit.framework/DigitsKit
Binary file not shown.
65 changes: 65 additions & 0 deletions DigitsKit.framework/Headers/DGTAPIClient.h
@@ -0,0 +1,65 @@
//
// DGTAPIClient.h
// DigitsKit
//
// Copyright © 2015 Twitter Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DGTSession.h"

@class DGTDeviceRegisterResponse;
@class DGTLogInAuthResponse;
@class DGTPhoneNumber;
@class DGTAuthenticationConfiguration;
@protocol DGTAPIAuthenticationDelegate;
@protocol DGTAPIChallengeDelegate;

@interface DGTAPIClient : NSObject

/**
* Returns an API Client capable of authenticating a Digits user programatically.
*
*/
- (instancetype)init;

/**
*
* Starts the authentication flow using a predetermined phone number.
*
* @param configuration Options to configure the Digits experience. The phoneNumber should be a string containing only numbers, and prefixed with an optional '+' character if the number includes a country dial code. Examples: '+15555555555' (USA, 5555555555), '+525555555555' (Mexico, 5555555555)
* @param authDelegate Delegate will receive a new Challenge view controller once the authentication flow has started. The delegate is required to push or present it to continue the auth flow.
* @param completion Block called after the authentication flow has ended.
*/
-(void)authenticateWithConfiguration:(DGTAuthenticationConfiguration *)configuration
delegate:(id<DGTAPIAuthenticationDelegate>)authDelegate
completion:(DGTAuthenticationCompletion)completionBlock;

@end

@protocol DGTAPIAuthenticationDelegate <NSObject>

@required

/**
* The challenge code has been sent the phone number, the next step is for this delegate is to show the challenge view controller.
*
* @param challengeViewController Challenge view controller to create or log the user in. It can be nil if there was an error.
* @param error Contains an error in the domain `DGTErrorDomain` with one of the codes in `DGTErrorCode`.
*/
-(void)challengeViewController:(UIViewController<DGTAPIChallengeDelegate> *)challengeViewController error:(NSError *)error;


@optional

/**
* Instantiate a new Challenge view controller for new users signing up for Digits
*/
- (UIViewController<DGTAPIChallengeDelegate> *)signUpViewControllerWithDeviceRegisterResponse:(DGTDeviceRegisterResponse *)deviceRegisterResponse;

/**
* Instantiate a new Challenge view controller for existing users logging into Digits
*/
- (UIViewController<DGTAPIChallengeDelegate> *)logInViewControllerWithLogInResponse:(DGTLogInAuthResponse *)logInResponse;

@end

0 comments on commit fb6e1d0

Please sign in to comment.