This repository has been archived by the owner on Jan 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
232 changed files
with
1,376 additions
and
608 deletions.
There are no files selected for viewing
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
84 changes: 84 additions & 0 deletions
84
Cannonball.xcodeproj/xcshareddata/xcschemes/CannonballTests.xcscheme
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,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> |
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
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
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
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
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
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.
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
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
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
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.
Binary file not shown.
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,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 |
Oops, something went wrong.