├── VERSION ├── Example ├── Assets.xcassets │ ├── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── LoginViewController.h ├── SuccessViewController.h ├── AppDelegate.h ├── main.m ├── Example.entitlements ├── SuccessViewController.m ├── LoginViewController.m ├── Info.plist ├── AppDelegate.m ├── LaunchScreen.xib ├── LoginViewController.xib └── SuccessViewController.xib ├── CleverSDKTests ├── PrefixHeader.pch ├── Info.plist └── CleverSDKTests.m ├── CleverSDK ├── Info.plist ├── CleverLoginButton.h ├── CleverSDK.h ├── CleverSDK.m └── CleverLoginButton.m ├── CleverSDK.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── xcshareddata │ └── xcschemes │ │ ├── CleverSDKTests.xcscheme │ │ ├── Example.xcscheme │ │ └── CleverSDK.xcscheme └── project.pbxproj ├── CleverSDK.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── Podfile ├── .gitignore ├── CleverSDK.podspec ├── .circleci └── config.yml ├── README.md └── LICENSE /VERSION: -------------------------------------------------------------------------------- 1 | 2.0.0 2 | -------------------------------------------------------------------------------- /Example/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/LoginViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface LoginViewController : UIViewController 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /CleverSDKTests/PrefixHeader.pch: -------------------------------------------------------------------------------- 1 | #ifndef PrefixHeader_pch 2 | #define PrefixHeader_pch 3 | #import 4 | #import 5 | #endif 6 | -------------------------------------------------------------------------------- /Example/SuccessViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface SuccessViewController : UIViewController 4 | 5 | - (id)initWithCode:(NSString *)code; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /Example/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface AppDelegate : UIResponder 4 | 5 | @property (strong, nonatomic) UIWindow *window; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /CleverSDK/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /CleverSDKTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /CleverSDK.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "AppDelegate.h" 3 | 4 | int main(int argc, char * argv[]) { 5 | @autoreleasepool { 6 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /CleverSDK/CleverLoginButton.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface CleverLoginButton : UIButton 4 | 5 | + (CleverLoginButton *)createLoginButton; 6 | 7 | - (void)setOrigin:(CGPoint)origin; 8 | 9 | - (void)setWidth:(CGFloat)width; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /CleverSDK.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /CleverSDK.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /CleverSDK.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | target "CleverSDK" do 2 | platform :ios, "9.0" 3 | inhibit_all_warnings! 4 | podspec 5 | 6 | target "CleverSDKTests" do 7 | inherit! :search_paths 8 | 9 | pod "Specta", "~> 1.0" 10 | pod "Expecta", "~> 1.0" 11 | end 12 | 13 | target "Example" do 14 | inherit! :search_paths 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /Example/Example.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.associated-domains 6 | 7 | applinks:example.com 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/SuccessViewController.m: -------------------------------------------------------------------------------- 1 | #import "SuccessViewController.h" 2 | 3 | @interface SuccessViewController () 4 | 5 | @property (nonatomic, weak) IBOutlet UILabel *codeLabel; 6 | @property (nonatomic, strong) NSString *code; 7 | 8 | @end 9 | 10 | @implementation SuccessViewController 11 | 12 | - (id)initWithCode:(NSString *)code { 13 | self = [self initWithNibName:nil bundle:nil]; 14 | if (self) { 15 | self.code = code; 16 | } 17 | return self; 18 | } 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | self.codeLabel.text = self.code; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # We recommend against adding the Pods directory to your .gitignore. However 26 | # you should judge for yourself, the pros and cons are mentioned at: 27 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 28 | # 29 | # Note: if you ignore the Pods directory, make sure to uncomment 30 | # `pod install` in .travis.yml 31 | # 32 | Pods/ 33 | Podfile.lock 34 | -------------------------------------------------------------------------------- /CleverSDK/CleverSDK.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "CleverLoginButton.h" 3 | 4 | #define SDK_VERSION @"iOS-2.0.0" 5 | 6 | @interface CleverSDK : NSObject 7 | 8 | + (void)startWithClientId:(NSString *)clientId LegacyIosClientId:(NSString *)legacyIosClientId RedirectURI:(NSString *)redirectUri successHandler:(void (^)(NSString *code, BOOL validState))successHandler failureHandler:(void (^)(NSString *errorMessage))failureHandler; 9 | 10 | + (void)startWithClientId:(NSString *)clientId RedirectURI:(NSString *)redirectUri successHandler:(void (^)(NSString *code, BOOL validState))successHandler failureHandler:(void (^)(NSString *errorMessage))failureHandler; 11 | 12 | + (BOOL)handleURL:(NSURL *)url; 13 | 14 | + (void)login; 15 | 16 | + (void)loginWithDistrictId:(NSString *)districtId; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Example/LoginViewController.m: -------------------------------------------------------------------------------- 1 | #import "LoginViewController.h" 2 | #import "CleverSDK.h" 3 | 4 | @interface LoginViewController () 5 | 6 | @property (nonatomic, weak) IBOutlet UILabel *detailLabel; 7 | 8 | @end 9 | 10 | @implementation LoginViewController 11 | 12 | - (void)viewDidLoad { 13 | [super viewDidLoad]; 14 | 15 | self.navigationController.navigationBar.translucent = NO; 16 | 17 | // Creates the "Log in with Clever" button 18 | CleverLoginButton *loginButton = [CleverLoginButton createLoginButton]; 19 | 20 | CGRect frame = loginButton.frame; 21 | CGSize size = [UIScreen mainScreen].bounds.size; 22 | [loginButton setOrigin:CGPointMake((size.width - frame.size.width) / 2, self.detailLabel.frame.origin.y + self.detailLabel.frame.size.height + 50)]; 23 | [self.view addSubview:loginButton]; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /CleverSDKTests/CleverSDKTests.m: -------------------------------------------------------------------------------- 1 | #import "CleverSDK.h" 2 | 3 | SpecBegin(InitialSpecs) 4 | 5 | describe(@"CleverLoginButton", ^{ 6 | 7 | __block CleverLoginButton *button; 8 | 9 | before(^{ 10 | button = [CleverLoginButton createLoginButton]; 11 | }); 12 | 13 | it(@"can set origin", ^{ 14 | expect(button.frame.origin.x).to.beCloseTo(0); 15 | expect(button.frame.origin.y).to.beCloseTo(0); 16 | [button setOrigin:CGPointMake(10.0, 20.0)]; 17 | expect(button.frame.origin.x).to.beCloseTo(10); 18 | expect(button.frame.origin.y).to.beCloseTo(20); 19 | }); 20 | 21 | it(@"can set width", ^{ 22 | expect(button.frame.size.width).to.beCloseTo(240); 23 | expect(button.frame.size.height).to.beCloseTo(52); 24 | [button setWidth:300]; 25 | expect(button.frame.size.width).to.beCloseTo(300); 26 | expect(button.frame.size.height).to.beCloseTo(52); 27 | }); 28 | 29 | }); 30 | 31 | SpecEnd 32 | -------------------------------------------------------------------------------- /CleverSDK.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint CleverSDK.podspec` to ensure this is a 3 | # valid spec and remove all comments before submitting the spec. 4 | # 5 | # Any lines starting with a # are optional, but encouraged 6 | # 7 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 8 | # 9 | 10 | Pod::Spec.new do |s| 11 | s.name = "CleverSDK" 12 | s.version = File.read("VERSION") 13 | s.summary = "A simple iOS library to access Clever Instant Login" 14 | s.description = "CleverSDK provides developers with a simple library to access Clever Instant Login." 15 | s.homepage = "https://github.com/Clever/ios-sdk" 16 | s.license = "Apache 2.0" 17 | s.authors = { "Clever" => "tech-notify@clever.com" } 18 | s.source = { :git => "https://github.com/Clever/ios-sdk.git", :tag => s.version.to_s } 19 | s.social_media_url = "https://twitter.com/clever" 20 | s.documentation_url = "https://dev.clever.com/" 21 | 22 | s.platform = :ios, "9.0" 23 | s.requires_arc = true 24 | 25 | s.public_header_files = "CleverSDK/**/*.h" 26 | s.source_files = "CleverSDK/**/*" 27 | s.exclude_files = "CleverSDK/**/*.plist" 28 | 29 | s.dependency "PocketSVG", "~> 0.7" 30 | end 31 | -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | jobs: 3 | build: 4 | macos: 5 | xcode: "10.1.0" 6 | working_directory: ~/Clever/ios-sdk 7 | steps: 8 | - checkout 9 | - run: 10 | name: Fetch CocoaPods 11 | command: | 12 | curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf 13 | - run: 14 | command: cd $HOME && git clone --depth 1 -v https://github.com/Clever/ci-scripts.git && cd ci-scripts && git show --oneline -s 15 | name: Clone ci-scripts 16 | - run: 17 | name: Install CocoaPods 18 | command: pod install --verbose 19 | - run: 20 | name: Run Tests 21 | command: fastlane scan 22 | environment: 23 | SCAN_DEVICE: iPhone XS 24 | SCAN_SCHEME: CleverSDK 25 | LANG: en_US.UTF-8 26 | - run: 27 | name: Publish github release 28 | command: if [ "${CIRCLE_BRANCH}" == "master" ] && ! pod trunk info CleverSDK | grep -q "$(cat VERSION)"; then $HOME/ci-scripts/circleci/github-release $GH_RELEASE_TOKEN; fi; 29 | - run: 30 | name: Publish CocoaPods release 31 | command: if [ "${CIRCLE_BRANCH}" == "master" ] && ! pod trunk info CleverSDK | grep -q "$(cat VERSION)"; then pod trunk push; fi; 32 | -------------------------------------------------------------------------------- /Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | SimpleLogin 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Example/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /CleverSDK.xcodeproj/xcshareddata/xcschemes/CleverSDKTests.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 14 | 15 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 39 | 40 | 41 | 42 | 48 | 49 | 51 | 52 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | #import "LoginViewController.h" 3 | #import "SuccessViewController.h" 4 | #import "CleverSDK.h" 5 | 6 | @interface AppDelegate () 7 | 8 | @property (nonatomic, strong) UINavigationController* navigationController; 9 | 10 | @end 11 | 12 | @implementation AppDelegate 13 | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 15 | // Override point for customization after application launch. 16 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 17 | LoginViewController *vc = [[LoginViewController alloc] initWithNibName:nil bundle:nil]; 18 | self.navigationController = [[UINavigationController alloc] initWithRootViewController:vc]; 19 | self.window.rootViewController = self.navigationController; 20 | 21 | // Start the CleverSDK with your client 22 | // Do not forget to replace CLIENT_ID with your client_id 23 | [CleverSDK startWithClientId:@"CLIENT_ID" RedirectURI:@"http://example.com" successHandler:^(NSString *code, BOOL validState) { 24 | SuccessViewController *vc = [[SuccessViewController alloc] initWithCode:code]; 25 | [self.navigationController popToRootViewControllerAnimated:NO]; 26 | [self.navigationController pushViewController:vc animated:YES]; 27 | } failureHandler:^(NSString *errorMessage) { 28 | UIAlertController * alert = [UIAlertController 29 | alertControllerWithTitle:@"Error" 30 | message: errorMessage 31 | preferredStyle:UIAlertControllerStyleAlert]; 32 | [alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]]; 33 | [vc presentViewController:alert animated:YES completion:nil]; 34 | [self.navigationController popToRootViewControllerAnimated:YES]; 35 | return; 36 | }]; 37 | 38 | [self.window makeKeyAndVisible]; 39 | return YES; 40 | } 41 | 42 | - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler { 43 | return [CleverSDK handleURL:[userActivity webpageURL]]; 44 | } 45 | @end 46 | -------------------------------------------------------------------------------- /Example/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /CleverSDK.xcodeproj/xcshareddata/xcschemes/Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /CleverSDK.xcodeproj/xcshareddata/xcschemes/CleverSDK.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 65 | 71 | 72 | 73 | 74 | 75 | 76 | 82 | 83 | 89 | 90 | 91 | 92 | 94 | 95 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /Example/LoginViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 33 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /CleverSDK/CleverSDK.m: -------------------------------------------------------------------------------- 1 | #import "CleverSDK.h" 2 | 3 | @interface CleverSDK () 4 | 5 | @property (nonatomic, strong) NSString *clientId; 6 | @property (nonatomic, strong) NSString *legacyIosClientId; 7 | @property (nonatomic, strong) NSString *redirectUri; 8 | 9 | @property (nonatomic, strong) NSString *state; 10 | @property (atomic, assign) BOOL alreadyMissedCode; 11 | 12 | @property (nonatomic, copy) void (^successHandler)(NSString *, BOOL); 13 | @property (nonatomic, copy) void (^failureHandler)(NSString *); 14 | 15 | + (instancetype)sharedManager; 16 | 17 | @end 18 | 19 | @implementation CleverSDK 20 | 21 | + (instancetype)sharedManager { 22 | static CleverSDK *_sharedManager = nil; 23 | static dispatch_once_t onceToken; 24 | dispatch_once(&onceToken, ^{ 25 | _sharedManager = [[self alloc] init]; 26 | }); 27 | return _sharedManager; 28 | } 29 | 30 | + (void) startWithClientId:(NSString *)clientId LegacyIosClientId:(NSString *)legacyIosClientId RedirectURI:(NSString *)redirectUri successHandler:(void (^)(NSString *code, BOOL validState))successHandler failureHandler:(void (^)(NSString *errorMessage))failureHandler { 31 | CleverSDK *manager = [self sharedManager]; 32 | manager.clientId = clientId; 33 | manager.alreadyMissedCode = NO; 34 | manager.legacyIosClientId = legacyIosClientId; 35 | manager.redirectUri = redirectUri; 36 | manager.successHandler = successHandler; 37 | manager.failureHandler = failureHandler; 38 | } 39 | + (void)startWithClientId:(NSString *)clientId RedirectURI:(NSString *)redirectUri successHandler:(void (^)(NSString *code, BOOL validState))successHandler failureHandler:(void (^)(NSString *errorMessage))failureHandler { 40 | [self startWithClientId:clientId LegacyIosClientId:nil RedirectURI:redirectUri successHandler:successHandler failureHandler:failureHandler]; 41 | } 42 | 43 | + (NSString *)generateRandomString:(int)length { 44 | NSAssert(length % 2 == 0, @"Must generate random string with even length"); 45 | NSMutableData *data = [NSMutableData dataWithLength:length / 2]; 46 | NSAssert(SecRandomCopyBytes(kSecRandomDefault, length, [data mutableBytes]) == 0, @"Failure in SecRandomCopyBytes: %d", errno); 47 | NSMutableString *hexString = [NSMutableString stringWithCapacity:(length)]; 48 | const unsigned char *dataBytes = [data bytes]; 49 | for (int i = 0; i < length / 2; ++i) 50 | { 51 | [hexString appendFormat:@"%02x", (unsigned int)dataBytes[i]]; 52 | } 53 | return [NSString stringWithString:hexString]; 54 | } 55 | 56 | + (void)login { 57 | [self loginWithDistrictId:nil]; 58 | } 59 | 60 | + (void)loginWithDistrictId:(NSString *)districtId { 61 | CleverSDK *manager = [self sharedManager]; 62 | manager.state = [self generateRandomString:32]; 63 | 64 | NSString *legacyIosRedirectURI = nil; 65 | if (manager.legacyIosClientId != nil) { 66 | legacyIosRedirectURI = [NSString stringWithFormat:@"clever-%@://oauth", manager.legacyIosClientId]; 67 | } 68 | 69 | NSString *webURLString = [NSString stringWithFormat:@"https://clever.com/oauth/authorize?response_type=code&client_id=%@&redirect_uri=%@&state=%@", manager.clientId, manager.redirectUri, manager.state]; 70 | NSString *cleverAppURLString = [NSString stringWithFormat:@"com.clever://oauth/authorize?response_type=code&client_id=%@&redirect_uri=%@&state=%@&sdk_version=%@", manager.legacyIosClientId, legacyIosRedirectURI, manager.state, SDK_VERSION]; 71 | 72 | if (districtId != nil) { 73 | webURLString = [NSString stringWithFormat:@"%@&district_id=%@", webURLString, districtId]; 74 | cleverAppURLString = [NSString stringWithFormat:@"%@&district_id=%@", cleverAppURLString, districtId]; 75 | } 76 | 77 | // Switch to native Clever app if possible 78 | if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:cleverAppURLString]] && manager.legacyIosClientId != nil) { 79 | if (@available(iOS 10, *)) { 80 | [[UIApplication sharedApplication] openURL:[NSURL URLWithString:cleverAppURLString] options:@{} completionHandler:nil]; 81 | } else { 82 | [[UIApplication sharedApplication] openURL:[NSURL URLWithString:cleverAppURLString]]; 83 | } 84 | return; 85 | } 86 | 87 | if (@available(iOS 10, *)) { 88 | [[UIApplication sharedApplication] openURL:[NSURL URLWithString:webURLString] options:@{} completionHandler:nil]; 89 | } else { 90 | [[UIApplication sharedApplication] openURL:[NSURL URLWithString:webURLString]]; 91 | } 92 | } 93 | 94 | + (BOOL)handleURL:(NSURL *)url { 95 | CleverSDK *manager = [self sharedManager]; 96 | 97 | NSURL *redirectURL = [NSURL URLWithString:manager.redirectUri]; 98 | 99 | if (!( 100 | [url.scheme isEqualToString:[NSString stringWithFormat:@"clever-%@", manager.legacyIosClientId]] || ( 101 | [url.scheme isEqualToString:redirectURL.scheme] && 102 | [url.host isEqualToString:redirectURL.host] && 103 | [url.path isEqualToString:redirectURL.path] 104 | ))) { 105 | return NO; 106 | } 107 | 108 | NSString *query = url.query; 109 | NSMutableDictionary *kvpairs = [NSMutableDictionary dictionaryWithCapacity:1]; 110 | NSArray *components = [query componentsSeparatedByString:@"&"]; 111 | for (NSString *component in components) { 112 | NSArray *kv = [component componentsSeparatedByString:@"="]; 113 | kvpairs[kv[0]] = kv[1]; 114 | } 115 | 116 | // if code is missing, then this is a Clever Portal initiated login, and we should kick off the Oauth flow 117 | NSString *code = kvpairs[@"code"]; 118 | if (!code) { 119 | CleverSDK* manager = [self sharedManager]; 120 | if (manager.alreadyMissedCode) { 121 | manager.alreadyMissedCode = NO; 122 | manager.failureHandler([NSString localizedStringWithFormat:@"Authorization failed. Please try logging in again."]); 123 | return YES; 124 | } 125 | manager.alreadyMissedCode = YES; 126 | [self login]; 127 | return YES; 128 | } 129 | 130 | BOOL validState = NO; 131 | 132 | NSString *state = kvpairs[@"state"]; 133 | if ([state isEqualToString:manager.state]) { 134 | validState = YES; 135 | } 136 | 137 | manager.successHandler(code, validState); 138 | return YES; 139 | } 140 | 141 | @end 142 | -------------------------------------------------------------------------------- /Example/SuccessViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 32 | 41 | 56 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CleverSDK 2 | 3 | CleverSDK is a simple iOS library that makes it easy for iOS developers to integrate Clever Instant Login into their application. 4 | You can read more about integrating Clever Instant Login in your app [here](https://dev.clever.com/docs/il-native-ios). 5 | 6 | ## Installation 7 | 8 | CleverSDK is available through [CocoaPods](https://cocoapods.org/pods/CleverSDK). 9 | To install it, simply add the following line to your Podfile: 10 | 11 | ``` 12 | pod "CleverSDK" 13 | ``` 14 | 15 | to import the SDK into your codebase simply add the following header 16 | 17 | ```obj-c 18 | #import 19 | ``` 20 | 21 | ## Usage 22 | 23 | The `CleverSDK` utilizes [universal links](https://developer.apple.com/documentation/uikit/core_app/allowing_apps_and_websites_to_link_to_your_content) to open your application during the login flow. 24 | In order to use `CleverSDK` you will first have to configure your application to support universal links. 25 | Specifically you'll need to configure your application to handle your primary Clever redirect URI via universal links. 26 | This means that if your users are directed to your redirect URI during the login flow (either from the Clever Portal or a [Log in with Clever button](https://dev.clever.com/docs/identity-api#section-log-in-with-clever)) your application will open and can complete the login. 27 | 28 | Once your application is configured to handle your primary redirect URI you can instantiate the `CleverSDK`. 29 | 30 | ```obj-C 31 | [CleverSDK startWithClientId:@"YOUR_CLIENT_ID" // Your Clever client ID 32 | RedirectURI:@"http://example.com" // A valid Clever redirect URI (that your app is configured to open with universal links) 33 | successHandler:^(NSString *code, BOOL validState) { 34 | // At this point your application has a code, which it should send to your backend to exchange for whatever information 35 | // is needed to complete the login into your application. 36 | // Additionally you're given the "validState" param which indicates that the CleverSDK initiated the login and that the 37 | // state param was validated. The Clever SDK generates and validates the state param when it initiates a login. 38 | // However if the login comes from the Clever Portal it will not have a state param. If your application needs extra 39 | // guarantees that the user who is logging in is who they say they are you can start another login in the case that 40 | // validState is false. This will result in a slower and more disruptive login experience (since users will be redirected 41 | // back to Clever), but will provide an extra layer of security during the login flow. You can learn more about this here 42 | // https://dev.clever.com/docs/il-design#section-protecting-against-cross-site-request-forgery-csrf 43 | } 44 | failureHandler:^(NSString *errorMessage) { 45 | // If an unexpected error happened during the login you'll receive it here. 46 | } 47 | ]; 48 | ``` 49 | 50 | You'll also need to configure your application to call the `CleverSDK` when it receives a universal link. 51 | This is done by implementing the `application:continueUserActivity:restorationHandler:` method of the AppDelegate: 52 | 53 | ```obj-C 54 | - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler { 55 | // handleURL returns a boolean indicating if the url was handled by Clever. If your application has other universal links you 56 | // can check to see if Clever handled the url with this boolean, and if it's false continue to handle the url in your application. 57 | return [CleverSDK handleURL:[userActivity webpageURL]]; 58 | } 59 | ``` 60 | 61 | Once the `CleverSDK` is instantiated you can start a login by calling the `login` method. 62 | 63 | ```obj-C 64 | [CleverSDK login]; 65 | ``` 66 | 67 | Alternatively if you know the Clever district ID of the user before the log in you can simplify their login experience by providing it when beginning the login. 68 | 69 | ```obj-C 70 | [CleverSDK loginWithDistrictId:@"CLEVER_DISTRICT_ID"]; 71 | ``` 72 | 73 | ### Log in with Clever Button 74 | To render a [Log in with Clever Button](https://dev.clever.com/docs/identity-api#section-log-in-with-clever) you can use the provided `CleverLoginButton` class. 75 | In a `UIViewController` simply add the following code to the `viewDidLoad` method: 76 | 77 | ```obj-C 78 | loginButton = [CleverLoginButton createLoginButton]; 79 | [self.view addSubview:loginButton]; 80 | ``` 81 | 82 | The button is instantiated with a particular width and height. 83 | You can update the width of the button by calling `setWidth:` method on the button and the height will be adjusted automatically to preserve the design. 84 | ```obj-C 85 | [self.loginButton setWidth:300.0]; 86 | ``` 87 | 88 | ### Supporting Legacy iOS Instant Login 89 | 90 | Before Clever released v2.0.0 of the `CleverSDK` Instant Login on iOS was powered using custom protocol urls (such as `com.clever://oauth/authorize`), not universal links. 91 | If your application made use of these custom urls (or the old version of the `CleverSDK`) v2.0.0 of the SDK has additional features you can use to stay backwards compatible. 92 | 93 | When you instantiate the SDK you should also provide the `LegacyIosClientId` client ID (this is the client ID you used specifically in your iOS app). 94 | ```obj-C 95 | [CleverSDK startWithClientId:@"YOUR_CLIENT_ID" // Your Clever client ID 96 | LegacyIosClientId:@"YOUR_IOS_SPECIFIC_LEGACY_CLIENT_ID" 97 | RedirectURI:@"http://example.com" // A valid Clever redirect URI (that your app is configured to open with universal links) 98 | successHandler:^(NSString *code, BOOL validState) { 99 | // ... 100 | } 101 | failureHandler:^(NSString *errorMessage) { 102 | // ... 103 | } 104 | ]; 105 | ``` 106 | 107 | Besides the above change, you also need to add some code to handle the iOS redirect URI. 108 | This is done by implementing the `application:openURL:sourceApplication:annotation:` method of the AppDelegate: 109 | ```obj-C 110 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { 111 | return [CleverSDK handleURL:url]; 112 | } 113 | ``` 114 | 115 | You'll also need to add some information to your `Info.plist` to support the custom URI schemes. 116 | 1. Add `com.clever` to your [LSApplicationQueriesSchemes](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW14) so you can redirect directly to the Clever app. 117 | 2. Add your custom clever redirect URI (should look like `clever-YOUR_CLIENT_ID`) to [URL types](https://developer.apple.com/documentation/uikit/core_app/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app?language=objc), so the Clever app can open your application. 118 | 119 | ## Example 120 | 121 | The `CleverSDK` project comes with a simple example application to show usage of the SDK. You can view the code for this example in the [/Example](./Example) directory, or you can open the project in Xcode and run the `Example` target. 122 | 123 | ## License 124 | 125 | Apache 2.0 126 | -------------------------------------------------------------------------------- /CleverSDK/CleverLoginButton.m: -------------------------------------------------------------------------------- 1 | #import "CleverSDK.h" 2 | #import 3 | 4 | const CGFloat CleverLoginButtonBaseWidth = 240.0; 5 | const CGFloat CleverLoginButtonBaseHeight = 52.0; 6 | 7 | @interface CleverLoginButton () 8 | 9 | @property (nonatomic, strong) UIImageView *textImage; 10 | 11 | @property (nonatomic, strong) NSString *districtId; 12 | 13 | @end 14 | 15 | @implementation CleverLoginButton 16 | 17 | + (CleverLoginButton *)createLoginButton { 18 | CleverLoginButton *button = [CleverLoginButton buttonWithType:UIButtonTypeCustom]; 19 | button.frame = CGRectMake(0, 0, CleverLoginButtonBaseWidth, CleverLoginButtonBaseHeight); 20 | 21 | UIImage *bgImage = [CleverLoginButton backgroundImageForButton]; 22 | [button setBackgroundImage:bgImage forState:UIControlStateNormal]; 23 | [button setImage:[CleverLoginButton cleverIconWithSize:button.bounds.size] forState:UIControlStateNormal]; 24 | [button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft]; 25 | [button.layer setShadowColor:UIColor.blackColor.CGColor]; 26 | [button.layer setShadowOpacity:0.25]; 27 | [button.layer setShadowRadius:4.0]; 28 | [button.layer setShadowOffset:CGSizeMake(-1.0, 1.0)]; 29 | 30 | button.textImage = [[UIImageView alloc] initWithImage:[CleverLoginButton textForButton:button.frame.size]]; 31 | button.textImage.frame = button.bounds; 32 | [button addSubview:button.textImage]; 33 | 34 | [button addTarget:button action:@selector(loginButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 35 | 36 | return button; 37 | } 38 | 39 | - (void)setOrigin:(CGPoint)origin { 40 | CGRect frame = self.frame; 41 | frame.origin = origin; 42 | self.frame = frame; 43 | } 44 | 45 | - (void)setWidth:(CGFloat)width { 46 | CGRect frame = self.frame; 47 | frame.size = CGSizeMake(width, frame.size.height); 48 | self.frame = frame; 49 | 50 | // need to adjust the text too 51 | self.textImage.image = [CleverLoginButton textForButton:self.frame.size]; 52 | self.textImage.frame = self.bounds; 53 | } 54 | 55 | - (void)loginButtonPressed:(id)loginButton { 56 | [CleverSDK login]; 57 | } 58 | 59 | + (UIImage *)backgroundImageForButton { 60 | UIColor *color = [UIColor colorWithRed:(100.0/255.0) green:(134.0/255.0) blue:(248.0/255.0) alpha:1.0]; 61 | CGFloat cornerRadius = 4.0; 62 | CGFloat scale = [UIScreen mainScreen].scale; 63 | 64 | CGFloat size = 1.0 + 2 * cornerRadius; 65 | UIGraphicsBeginImageContextWithOptions(CGSizeMake(size, size), NO, scale); 66 | CGContextRef context = UIGraphicsGetCurrentContext(); 67 | CGContextSetFillColorWithColor(context, color.CGColor); 68 | CGMutablePathRef path = CGPathCreateMutable(); 69 | CGPathMoveToPoint(path, NULL, cornerRadius + 1.0, 0.0); 70 | CGPathAddArcToPoint(path, NULL, size, 0.0, size, cornerRadius, cornerRadius); 71 | CGPathAddLineToPoint(path, NULL, size, cornerRadius + 1.0); 72 | CGPathAddArcToPoint(path, NULL, size, size, cornerRadius + 1.0, size, cornerRadius); 73 | CGPathAddLineToPoint(path, NULL, cornerRadius, size); 74 | CGPathAddArcToPoint(path, NULL, 0.0, size, 0.0, cornerRadius + 1.0, cornerRadius); 75 | CGPathAddLineToPoint(path, NULL, 0.0, cornerRadius); 76 | CGPathAddArcToPoint(path, NULL, 0.0, 0.0, cornerRadius, 0.0, cornerRadius); 77 | CGPathCloseSubpath(path); 78 | CGContextAddPath(context, path); 79 | CGPathRelease(path); 80 | CGContextFillPath(context); 81 | 82 | UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); 83 | UIGraphicsEndImageContext(); 84 | return [image stretchableImageWithLeftCapWidth:cornerRadius topCapHeight:cornerRadius]; 85 | } 86 | 87 | 88 | + (UIImage *)cleverIconWithSize:(CGSize)size { 89 | CGFloat scale = [UIScreen mainScreen].scale; 90 | UIGraphicsBeginImageContextWithOptions(size, NO, scale); 91 | CGContextRef context = UIGraphicsGetCurrentContext(); 92 | 93 | // the Clever C 94 | CGPathRef cleverC = [PocketSVG pathFromSVGString:@"d=\"M10.559,20.7 C4.5,20.7 0,16.307 0,10.755 L0,10.7 C0,5.203 4.412,0.7 10.735,0.7 C14.617,0.7 16.941,1.916 18.853,3.683 L15.97,6.805 C14.382,5.451 12.764,4.623 10.705,4.623 C7.234,4.623 4.734,7.33 4.734,10.645 L4.734,10.7 C4.734,14.014 7.175,16.778 10.705,16.778 C13.058,16.778 14.499,15.893 16.116,14.512 L19,17.247 C16.883,19.374 14.529,20.7 10.559,20.7 Z\""]; 95 | 96 | CGAffineTransform moveTransform = CGAffineTransformMakeTranslation(14, 16); 97 | cleverC = CGPathCreateCopyByTransformingPath(cleverC, &moveTransform); 98 | 99 | CGContextAddRect(context, CGRectMake(46.0, 8.0, 0.5, size.height - 16.0)); 100 | CGContextAddPath(context, cleverC); 101 | 102 | CGContextSetFillColorWithColor(context, [UIColor whiteColor].CGColor); 103 | CGContextFillPath(context); 104 | CGPathRelease(cleverC); 105 | 106 | UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); 107 | UIGraphicsEndImageContext(); 108 | return image; 109 | } 110 | 111 | + (UIImage *)textForButton:(CGSize)size { 112 | CGFloat scale = [UIScreen mainScreen].scale; 113 | UIGraphicsBeginImageContextWithOptions(size, NO, scale); 114 | CGContextRef context = UIGraphicsGetCurrentContext(); 115 | 116 | // "Login with Clever" 117 | CGPathRef cleverText = [PocketSVG pathFromSVGString:@"d=\"M43.923,7.019h-2.86v13.343h8.502v-2.501h-5.642V7.019z M55.684,10.459c-3.181,0-5.101,2.32-5.101,5.061s1.92,5.082,5.101,5.082c3.201,0,5.121-2.341,5.121-5.082S58.885,10.459,55.684,10.459z M55.684,18.34c-1.58,0-2.46-1.299-2.46-2.82c0-1.5,0.88-2.801,2.46-2.801c1.601,0,2.48,1.3,2.48,2.801C58.165,17.042,57.285,18.34,55.684,18.34z M69.345,11.94c-0.78-1-1.84-1.48-3.001-1.48c-2.44,0-4.261,1.76-4.261,4.921c0,3.221,1.86,4.901,4.261,4.901c1.201,0,2.241-0.541,3.001-1.5v0.939c0,1.961-1.46,2.48-2.681,2.48c-1.2,0-2.241-0.34-3.021-1.18l-1.141,1.82c1.221,1.061,2.521,1.439,4.161,1.439c2.38,0,5.221-0.899,5.221-4.561v-9.022h-2.541V11.94z M69.345,16.941c-0.44,0.62-1.36,1.101-2.181,1.101c-1.46,0-2.46-1-2.46-2.661c0-1.66,1-2.661,2.46-2.661c0.82,0,1.741,0.46,2.181,1.081V16.941zM80.803,6.639c-0.82,0-1.5,0.66-1.5,1.5c0,0.84,0.68,1.52,1.5,1.52c0.84,0,1.52-0.68,1.52-1.52C82.323,7.299,81.643,6.639,80.803,6.639z M79.543,20.362h2.541v-9.663h-2.541V20.362z M90.524,10.459c-1.561,0-2.761,0.76-3.381,1.48v-1.241h-2.541v9.663h2.541V13.84c0.44-0.561,1.2-1.121,2.201-1.121c1.08,0,1.78,0.46,1.78,1.8v5.842h2.561V13.54C93.685,11.66,92.665,10.459,90.524,10.459z M111.004,17.201l-2.12-6.501h-2.261l-2.121,6.501l-1.8-6.501h-2.641l2.94,9.663h2.721l2.04-6.582l2.041,6.582h2.721l2.94-9.663h-2.66L111.004,17.201z M116.722,20.362h2.54v-9.663h-2.54V20.362z M117.982,6.639c-0.819,0-1.5,0.66-1.5,1.5c0,0.84,0.681,1.52,1.5,1.52c0.841,0,1.521-0.68,1.521-1.52C119.502,7.299,118.823,6.639,117.982,6.639z M125.723,18.34c-0.561,0-0.881-0.459-0.881-1.08v-4.34h1.961v-2.221h-1.961V8.059h-2.54v2.641h-1.601v2.221h1.601v5.021c0,1.74,0.939,2.661,2.721,2.661c1.06,0,1.74-0.28,2.12-0.621l-0.54-1.939C126.462,18.202,126.103,18.34,125.723,18.34z M134.483,10.459c-1.58,0-2.761,0.76-3.381,1.48V7.019h-2.561v13.343h2.561V13.84c0.42-0.561,1.2-1.121,2.201-1.121c1.08,0,1.78,0.42,1.78,1.76v5.882h2.54V13.5C137.624,11.62,136.604,10.459,134.483,10.459zM151.823,9.319c1.36,0,2.561,0.86,3.12,1.94l2.441-1.2c-0.94-1.68-2.641-3.26-5.562-3.26c-4.021,0-7.122,2.78-7.122,6.901c0,4.101,3.102,6.902,7.122,6.902c2.921,0,4.621-1.621,5.562-3.281l-2.441-1.18c-0.56,1.081-1.76,1.94-3.12,1.94c-2.44,0-4.201-1.86-4.201-4.38S149.382,9.319,151.823,9.319z M159.021,20.362h2.541V7.019h-2.541V20.362z M168.462,10.459c-2.921,0-5.001,2.26-5.001,5.061c0,3.101,2.22,5.082,5.16,5.082c1.501,0,3.021-0.461,3.981-1.341l-1.141-1.681c-0.62,0.601-1.74,0.94-2.561,0.94c-1.64,0-2.601-0.979-2.78-2.16h7.182v-0.6C173.303,12.62,171.363,10.459,168.462,10.459zM166.101,14.6c0.101-0.96,0.78-2.06,2.361-2.06c1.68,0,2.32,1.14,2.4,2.06H166.101z M179.001,17.42l-2.521-6.721h-2.721l3.881,9.663h2.741l3.881-9.663h-2.721L179.001,17.42z M189.782,10.459c-2.921,0-5.001,2.26-5.001,5.061c0,3.101,2.22,5.082,5.161,5.082c1.5,0,3.021-0.461,3.98-1.341l-1.141-1.681c-0.62,0.601-1.74,0.94-2.561,0.94c-1.64,0-2.6-0.979-2.78-2.16h7.182v-0.6C194.623,12.62,192.682,10.459,189.782,10.459z M187.421,14.6c0.1-0.96,0.78-2.06,2.36-2.06c1.681,0,2.32,1.14,2.4,2.06H187.421z M199.001,12v-1.3h-2.541v9.663h2.541V13.98c0.42-0.62,1.54-1.1,2.38-1.1c0.301,0,0.521,0.02,0.7,0.06v-2.48C200.881,10.459,199.702,11.16,199.001,12z\""]; 118 | 119 | CGFloat moveX = ((size.width - CleverLoginButtonBaseWidth) / 2) + 20; 120 | CGFloat moveY = 12; 121 | CGAffineTransform moveTransform = CGAffineTransformMakeTranslation(moveX, moveY); 122 | cleverText = CGPathCreateCopyByTransformingPath(cleverText, &moveTransform); 123 | 124 | CGContextAddPath(context, cleverText); 125 | CGContextSetFillColorWithColor(context, [UIColor whiteColor].CGColor); 126 | CGContextFillPath(context); 127 | CGPathRelease(cleverText); 128 | 129 | UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); 130 | UIGraphicsEndImageContext(); 131 | return image; 132 | } 133 | 134 | @end 135 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | Copyright 2014 Clever, Inc. 179 | 180 | Licensed under the Apache License, Version 2.0 (the "License"); 181 | you may not use this file except in compliance with the License. 182 | You may obtain a copy of the License at 183 | 184 | http://www.apache.org/licenses/LICENSE-2.0 185 | 186 | Unless required by applicable law or agreed to in writing, software 187 | distributed under the License is distributed on an "AS IS" BASIS, 188 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 189 | See the License for the specific language governing permissions and 190 | limitations under the License. 191 | -------------------------------------------------------------------------------- /CleverSDK.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 262DC45821ED8B0200FE5B20 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 262DC45721ED8B0200FE5B20 /* LaunchScreen.xib */; }; 11 | 262DC46121EDAEE700FE5B20 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 262DC45921EDAEE600FE5B20 /* AppDelegate.m */; }; 12 | 262DC46221EDAEE700FE5B20 /* LoginViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 262DC45A21EDAEE600FE5B20 /* LoginViewController.m */; }; 13 | 262DC46321EDAEE700FE5B20 /* SuccessViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 262DC45D21EDAEE600FE5B20 /* SuccessViewController.m */; }; 14 | 262DC46421EDAEE700FE5B20 /* LoginViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 262DC45E21EDAEE600FE5B20 /* LoginViewController.xib */; }; 15 | 262DC46521EDAEE700FE5B20 /* SuccessViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 262DC46021EDAEE700FE5B20 /* SuccessViewController.xib */; }; 16 | 2663BEB221ED880D00ED2BC1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2663BEB121ED880D00ED2BC1 /* Assets.xcassets */; }; 17 | 2663BEB821ED880D00ED2BC1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2663BEB721ED880D00ED2BC1 /* main.m */; }; 18 | 268D08DB21ED781700DE2088 /* CleverSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = 268D08D421ED781700DE2088 /* CleverSDK.h */; }; 19 | 268D08DD21ED781700DE2088 /* CleverLoginButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 268D08D621ED781700DE2088 /* CleverLoginButton.m */; }; 20 | 268D08DE21ED781700DE2088 /* CleverSDK.m in Sources */ = {isa = PBXBuildFile; fileRef = 268D08D721ED781700DE2088 /* CleverSDK.m */; }; 21 | 268D08DF21ED781700DE2088 /* CleverLoginButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 268D08D821ED781700DE2088 /* CleverLoginButton.h */; }; 22 | 26AF353121ED59B800263628 /* CleverSDKTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 26AF353021ED59B800263628 /* CleverSDKTests.m */; }; 23 | 26AF353321ED59B800263628 /* CleverSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26BB6E7621ED23F50005D165 /* CleverSDK.framework */; }; 24 | 26F13BCA21EDB9C600852ED1 /* CleverSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26BB6E7621ED23F50005D165 /* CleverSDK.framework */; }; 25 | 2FD9B50F31FE408B616AABA6 /* libPods-CleverSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 662FD22070E12778772A2415 /* libPods-CleverSDK.a */; }; 26 | 5A0114C63E09782CA7256755 /* libPods-Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 054C6BA1F3D9B75317F5E19D /* libPods-Example.a */; }; 27 | 75410E27E408B5EA13F604C9 /* libPods-CleverSDKTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7758C224972BFFC69ED43B3E /* libPods-CleverSDKTests.a */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 26AF353421ED59B800263628 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 26BB6E6D21ED23F40005D165 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 26BB6E7521ED23F50005D165; 36 | remoteInfo = CleverSDK; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 033B10ED60FD696608AFE5DF /* Pods-CleverSDKTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CleverSDKTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CleverSDKTests/Pods-CleverSDKTests.debug.xcconfig"; sourceTree = ""; }; 42 | 054C6BA1F3D9B75317F5E19D /* libPods-Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 234F52C9664ABC5B6AD3DE57 /* Pods-CleverSDK.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CleverSDK.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CleverSDK/Pods-CleverSDK.debug.xcconfig"; sourceTree = ""; }; 44 | 262DC45721ED8B0200FE5B20 /* LaunchScreen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LaunchScreen.xib; sourceTree = ""; }; 45 | 262DC45921EDAEE600FE5B20 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 46 | 262DC45A21EDAEE600FE5B20 /* LoginViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LoginViewController.m; sourceTree = ""; }; 47 | 262DC45B21EDAEE600FE5B20 /* SuccessViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SuccessViewController.h; sourceTree = ""; }; 48 | 262DC45C21EDAEE600FE5B20 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 49 | 262DC45D21EDAEE600FE5B20 /* SuccessViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SuccessViewController.m; sourceTree = ""; }; 50 | 262DC45E21EDAEE600FE5B20 /* LoginViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LoginViewController.xib; sourceTree = ""; }; 51 | 262DC45F21EDAEE600FE5B20 /* LoginViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LoginViewController.h; sourceTree = ""; }; 52 | 262DC46021EDAEE700FE5B20 /* SuccessViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SuccessViewController.xib; sourceTree = ""; }; 53 | 2663BEA621ED880900ED2BC1 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 2663BEB121ED880D00ED2BC1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 55 | 2663BEB621ED880D00ED2BC1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 2663BEB721ED880D00ED2BC1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 57 | 267B719B21EFF9ED003A32A0 /* Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Example.entitlements; sourceTree = ""; }; 58 | 268D08D221ED780300DE2088 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 59 | 268D08D421ED781700DE2088 /* CleverSDK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CleverSDK.h; sourceTree = ""; }; 60 | 268D08D621ED781700DE2088 /* CleverLoginButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CleverLoginButton.m; sourceTree = ""; }; 61 | 268D08D721ED781700DE2088 /* CleverSDK.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CleverSDK.m; sourceTree = ""; }; 62 | 268D08D821ED781700DE2088 /* CleverLoginButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CleverLoginButton.h; sourceTree = ""; }; 63 | 26AF352E21ED59B800263628 /* CleverSDKTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CleverSDKTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | 26AF353021ED59B800263628 /* CleverSDKTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CleverSDKTests.m; sourceTree = ""; }; 65 | 26AF353221ED59B800263628 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 66 | 26AF353921ED5A3200263628 /* PrefixHeader.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PrefixHeader.pch; sourceTree = ""; }; 67 | 26BB6E7621ED23F50005D165 /* CleverSDK.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CleverSDK.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 68 | 26BB6E9C21ED4F500005D165 /* CleverSDK.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = CleverSDK.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 69 | 26BB6E9D21ED50820005D165 /* Podfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Podfile; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 70 | 26F9A8F421ED52C500ED1B6F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 71 | 2E76C922290D30329BE308FD /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig"; sourceTree = ""; }; 72 | 64E8BA1FCB6DF2477D8A9182 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = ""; }; 73 | 662FD22070E12778772A2415 /* libPods-CleverSDK.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CleverSDK.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | 74F6929F444E04352A9A747A /* Pods-CleverSDKTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CleverSDKTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-CleverSDKTests/Pods-CleverSDKTests.release.xcconfig"; sourceTree = ""; }; 75 | 7758C224972BFFC69ED43B3E /* libPods-CleverSDKTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CleverSDKTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 76 | E1499ED7E5DD886299335537 /* Pods-CleverSDK.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CleverSDK.release.xcconfig"; path = "Pods/Target Support Files/Pods-CleverSDK/Pods-CleverSDK.release.xcconfig"; sourceTree = ""; }; 77 | /* End PBXFileReference section */ 78 | 79 | /* Begin PBXFrameworksBuildPhase section */ 80 | 2663BEA321ED880900ED2BC1 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | 26F13BCA21EDB9C600852ED1 /* CleverSDK.framework in Frameworks */, 85 | 5A0114C63E09782CA7256755 /* libPods-Example.a in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 26AF352B21ED59B800263628 /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | 26AF353321ED59B800263628 /* CleverSDK.framework in Frameworks */, 94 | 75410E27E408B5EA13F604C9 /* libPods-CleverSDKTests.a in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | 26BB6E7321ED23F50005D165 /* Frameworks */ = { 99 | isa = PBXFrameworksBuildPhase; 100 | buildActionMask = 2147483647; 101 | files = ( 102 | 2FD9B50F31FE408B616AABA6 /* libPods-CleverSDK.a in Frameworks */, 103 | ); 104 | runOnlyForDeploymentPostprocessing = 0; 105 | }; 106 | /* End PBXFrameworksBuildPhase section */ 107 | 108 | /* Begin PBXGroup section */ 109 | 2663BEA721ED880900ED2BC1 /* Example */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 267B719B21EFF9ED003A32A0 /* Example.entitlements */, 113 | 262DC45C21EDAEE600FE5B20 /* AppDelegate.h */, 114 | 262DC45921EDAEE600FE5B20 /* AppDelegate.m */, 115 | 262DC45F21EDAEE600FE5B20 /* LoginViewController.h */, 116 | 262DC45A21EDAEE600FE5B20 /* LoginViewController.m */, 117 | 262DC45E21EDAEE600FE5B20 /* LoginViewController.xib */, 118 | 262DC45B21EDAEE600FE5B20 /* SuccessViewController.h */, 119 | 262DC45D21EDAEE600FE5B20 /* SuccessViewController.m */, 120 | 262DC46021EDAEE700FE5B20 /* SuccessViewController.xib */, 121 | 2663BEB121ED880D00ED2BC1 /* Assets.xcassets */, 122 | 262DC45721ED8B0200FE5B20 /* LaunchScreen.xib */, 123 | 2663BEB621ED880D00ED2BC1 /* Info.plist */, 124 | 2663BEB721ED880D00ED2BC1 /* main.m */, 125 | ); 126 | path = Example; 127 | sourceTree = ""; 128 | }; 129 | 26AF352F21ED59B800263628 /* CleverSDKTests */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 26AF353921ED5A3200263628 /* PrefixHeader.pch */, 133 | 26AF353021ED59B800263628 /* CleverSDKTests.m */, 134 | 26AF353221ED59B800263628 /* Info.plist */, 135 | ); 136 | path = CleverSDKTests; 137 | sourceTree = ""; 138 | }; 139 | 26BB6E6C21ED23F40005D165 = { 140 | isa = PBXGroup; 141 | children = ( 142 | 268D08D221ED780300DE2088 /* README.md */, 143 | 26BB6E9C21ED4F500005D165 /* CleverSDK.podspec */, 144 | 26BB6E9D21ED50820005D165 /* Podfile */, 145 | 26BB6E7821ED23F50005D165 /* CleverSDK */, 146 | 26AF352F21ED59B800263628 /* CleverSDKTests */, 147 | 2663BEA721ED880900ED2BC1 /* Example */, 148 | 26BB6E7721ED23F50005D165 /* Products */, 149 | BD0089461B7688D5F1C1F436 /* Pods */, 150 | EACD93CAD66C48AC8CD0C404 /* Frameworks */, 151 | ); 152 | sourceTree = ""; 153 | }; 154 | 26BB6E7721ED23F50005D165 /* Products */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 26BB6E7621ED23F50005D165 /* CleverSDK.framework */, 158 | 26AF352E21ED59B800263628 /* CleverSDKTests.xctest */, 159 | 2663BEA621ED880900ED2BC1 /* Example.app */, 160 | ); 161 | name = Products; 162 | sourceTree = ""; 163 | }; 164 | 26BB6E7821ED23F50005D165 /* CleverSDK */ = { 165 | isa = PBXGroup; 166 | children = ( 167 | 26F9A8F421ED52C500ED1B6F /* Info.plist */, 168 | 268D08D821ED781700DE2088 /* CleverLoginButton.h */, 169 | 268D08D621ED781700DE2088 /* CleverLoginButton.m */, 170 | 268D08D421ED781700DE2088 /* CleverSDK.h */, 171 | 268D08D721ED781700DE2088 /* CleverSDK.m */, 172 | ); 173 | path = CleverSDK; 174 | sourceTree = ""; 175 | }; 176 | BD0089461B7688D5F1C1F436 /* Pods */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 234F52C9664ABC5B6AD3DE57 /* Pods-CleverSDK.debug.xcconfig */, 180 | E1499ED7E5DD886299335537 /* Pods-CleverSDK.release.xcconfig */, 181 | 033B10ED60FD696608AFE5DF /* Pods-CleverSDKTests.debug.xcconfig */, 182 | 74F6929F444E04352A9A747A /* Pods-CleverSDKTests.release.xcconfig */, 183 | 64E8BA1FCB6DF2477D8A9182 /* Pods-Example.debug.xcconfig */, 184 | 2E76C922290D30329BE308FD /* Pods-Example.release.xcconfig */, 185 | ); 186 | name = Pods; 187 | sourceTree = ""; 188 | }; 189 | EACD93CAD66C48AC8CD0C404 /* Frameworks */ = { 190 | isa = PBXGroup; 191 | children = ( 192 | 662FD22070E12778772A2415 /* libPods-CleverSDK.a */, 193 | 7758C224972BFFC69ED43B3E /* libPods-CleverSDKTests.a */, 194 | 054C6BA1F3D9B75317F5E19D /* libPods-Example.a */, 195 | ); 196 | name = Frameworks; 197 | sourceTree = ""; 198 | }; 199 | /* End PBXGroup section */ 200 | 201 | /* Begin PBXHeadersBuildPhase section */ 202 | 26BB6E7121ED23F50005D165 /* Headers */ = { 203 | isa = PBXHeadersBuildPhase; 204 | buildActionMask = 2147483647; 205 | files = ( 206 | 268D08DF21ED781700DE2088 /* CleverLoginButton.h in Headers */, 207 | 268D08DB21ED781700DE2088 /* CleverSDK.h in Headers */, 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | /* End PBXHeadersBuildPhase section */ 212 | 213 | /* Begin PBXNativeTarget section */ 214 | 2663BEA521ED880900ED2BC1 /* Example */ = { 215 | isa = PBXNativeTarget; 216 | buildConfigurationList = 2663BEBB21ED880D00ED2BC1 /* Build configuration list for PBXNativeTarget "Example" */; 217 | buildPhases = ( 218 | F342E30368C017BF2A2695A6 /* [CP] Check Pods Manifest.lock */, 219 | 2663BEA321ED880900ED2BC1 /* Frameworks */, 220 | 2663BEA221ED880900ED2BC1 /* Sources */, 221 | 2663BEA421ED880900ED2BC1 /* Resources */, 222 | ); 223 | buildRules = ( 224 | ); 225 | dependencies = ( 226 | ); 227 | name = Example; 228 | productName = Example; 229 | productReference = 2663BEA621ED880900ED2BC1 /* Example.app */; 230 | productType = "com.apple.product-type.application"; 231 | }; 232 | 26AF352D21ED59B800263628 /* CleverSDKTests */ = { 233 | isa = PBXNativeTarget; 234 | buildConfigurationList = 26AF353621ED59B800263628 /* Build configuration list for PBXNativeTarget "CleverSDKTests" */; 235 | buildPhases = ( 236 | 7855BD6DE5CC38056255DC39 /* [CP] Check Pods Manifest.lock */, 237 | 26AF352A21ED59B800263628 /* Sources */, 238 | 26AF352B21ED59B800263628 /* Frameworks */, 239 | 26AF352C21ED59B800263628 /* Resources */, 240 | ); 241 | buildRules = ( 242 | ); 243 | dependencies = ( 244 | 26AF353521ED59B800263628 /* PBXTargetDependency */, 245 | ); 246 | name = CleverSDKTests; 247 | productName = CleverSDKTests; 248 | productReference = 26AF352E21ED59B800263628 /* CleverSDKTests.xctest */; 249 | productType = "com.apple.product-type.bundle.unit-test"; 250 | }; 251 | 26BB6E7521ED23F50005D165 /* CleverSDK */ = { 252 | isa = PBXNativeTarget; 253 | buildConfigurationList = 26BB6E8A21ED23F50005D165 /* Build configuration list for PBXNativeTarget "CleverSDK" */; 254 | buildPhases = ( 255 | 2C4008117705B8C5835CAB2E /* [CP] Check Pods Manifest.lock */, 256 | 26BB6E7121ED23F50005D165 /* Headers */, 257 | 26BB6E7221ED23F50005D165 /* Sources */, 258 | 26BB6E7321ED23F50005D165 /* Frameworks */, 259 | 26BB6E7421ED23F50005D165 /* Resources */, 260 | ); 261 | buildRules = ( 262 | ); 263 | dependencies = ( 264 | ); 265 | name = CleverSDK; 266 | productName = CleverSDK; 267 | productReference = 26BB6E7621ED23F50005D165 /* CleverSDK.framework */; 268 | productType = "com.apple.product-type.framework"; 269 | }; 270 | /* End PBXNativeTarget section */ 271 | 272 | /* Begin PBXProject section */ 273 | 26BB6E6D21ED23F40005D165 /* Project object */ = { 274 | isa = PBXProject; 275 | attributes = { 276 | LastUpgradeCheck = 1010; 277 | ORGANIZATIONNAME = Clever; 278 | TargetAttributes = { 279 | 2663BEA521ED880900ED2BC1 = { 280 | CreatedOnToolsVersion = 10.1; 281 | SystemCapabilities = { 282 | com.apple.SafariKeychain = { 283 | enabled = 1; 284 | }; 285 | }; 286 | }; 287 | 26AF352D21ED59B800263628 = { 288 | CreatedOnToolsVersion = 10.1; 289 | }; 290 | 26BB6E7521ED23F50005D165 = { 291 | CreatedOnToolsVersion = 10.1; 292 | }; 293 | }; 294 | }; 295 | buildConfigurationList = 26BB6E7021ED23F40005D165 /* Build configuration list for PBXProject "CleverSDK" */; 296 | compatibilityVersion = "Xcode 9.3"; 297 | developmentRegion = en; 298 | hasScannedForEncodings = 0; 299 | knownRegions = ( 300 | en, 301 | Base, 302 | ); 303 | mainGroup = 26BB6E6C21ED23F40005D165; 304 | productRefGroup = 26BB6E7721ED23F50005D165 /* Products */; 305 | projectDirPath = ""; 306 | projectRoot = ""; 307 | targets = ( 308 | 26BB6E7521ED23F50005D165 /* CleverSDK */, 309 | 26AF352D21ED59B800263628 /* CleverSDKTests */, 310 | 2663BEA521ED880900ED2BC1 /* Example */, 311 | ); 312 | }; 313 | /* End PBXProject section */ 314 | 315 | /* Begin PBXResourcesBuildPhase section */ 316 | 2663BEA421ED880900ED2BC1 /* Resources */ = { 317 | isa = PBXResourcesBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | 262DC45821ED8B0200FE5B20 /* LaunchScreen.xib in Resources */, 321 | 262DC46421EDAEE700FE5B20 /* LoginViewController.xib in Resources */, 322 | 262DC46521EDAEE700FE5B20 /* SuccessViewController.xib in Resources */, 323 | 2663BEB221ED880D00ED2BC1 /* Assets.xcassets in Resources */, 324 | ); 325 | runOnlyForDeploymentPostprocessing = 0; 326 | }; 327 | 26AF352C21ED59B800263628 /* Resources */ = { 328 | isa = PBXResourcesBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | runOnlyForDeploymentPostprocessing = 0; 333 | }; 334 | 26BB6E7421ED23F50005D165 /* Resources */ = { 335 | isa = PBXResourcesBuildPhase; 336 | buildActionMask = 2147483647; 337 | files = ( 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | /* End PBXResourcesBuildPhase section */ 342 | 343 | /* Begin PBXShellScriptBuildPhase section */ 344 | 2C4008117705B8C5835CAB2E /* [CP] Check Pods Manifest.lock */ = { 345 | isa = PBXShellScriptBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | ); 349 | inputFileListPaths = ( 350 | ); 351 | inputPaths = ( 352 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 353 | "${PODS_ROOT}/Manifest.lock", 354 | ); 355 | name = "[CP] Check Pods Manifest.lock"; 356 | outputFileListPaths = ( 357 | ); 358 | outputPaths = ( 359 | "$(DERIVED_FILE_DIR)/Pods-CleverSDK-checkManifestLockResult.txt", 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | shellPath = /bin/sh; 363 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 364 | showEnvVarsInLog = 0; 365 | }; 366 | 7855BD6DE5CC38056255DC39 /* [CP] Check Pods Manifest.lock */ = { 367 | isa = PBXShellScriptBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | ); 371 | inputFileListPaths = ( 372 | ); 373 | inputPaths = ( 374 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 375 | "${PODS_ROOT}/Manifest.lock", 376 | ); 377 | name = "[CP] Check Pods Manifest.lock"; 378 | outputFileListPaths = ( 379 | ); 380 | outputPaths = ( 381 | "$(DERIVED_FILE_DIR)/Pods-CleverSDKTests-checkManifestLockResult.txt", 382 | ); 383 | runOnlyForDeploymentPostprocessing = 0; 384 | shellPath = /bin/sh; 385 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 386 | showEnvVarsInLog = 0; 387 | }; 388 | F342E30368C017BF2A2695A6 /* [CP] Check Pods Manifest.lock */ = { 389 | isa = PBXShellScriptBuildPhase; 390 | buildActionMask = 2147483647; 391 | files = ( 392 | ); 393 | inputFileListPaths = ( 394 | ); 395 | inputPaths = ( 396 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 397 | "${PODS_ROOT}/Manifest.lock", 398 | ); 399 | name = "[CP] Check Pods Manifest.lock"; 400 | outputFileListPaths = ( 401 | ); 402 | outputPaths = ( 403 | "$(DERIVED_FILE_DIR)/Pods-Example-checkManifestLockResult.txt", 404 | ); 405 | runOnlyForDeploymentPostprocessing = 0; 406 | shellPath = /bin/sh; 407 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 408 | showEnvVarsInLog = 0; 409 | }; 410 | /* End PBXShellScriptBuildPhase section */ 411 | 412 | /* Begin PBXSourcesBuildPhase section */ 413 | 2663BEA221ED880900ED2BC1 /* Sources */ = { 414 | isa = PBXSourcesBuildPhase; 415 | buildActionMask = 2147483647; 416 | files = ( 417 | 262DC46321EDAEE700FE5B20 /* SuccessViewController.m in Sources */, 418 | 262DC46121EDAEE700FE5B20 /* AppDelegate.m in Sources */, 419 | 262DC46221EDAEE700FE5B20 /* LoginViewController.m in Sources */, 420 | 2663BEB821ED880D00ED2BC1 /* main.m in Sources */, 421 | ); 422 | runOnlyForDeploymentPostprocessing = 0; 423 | }; 424 | 26AF352A21ED59B800263628 /* Sources */ = { 425 | isa = PBXSourcesBuildPhase; 426 | buildActionMask = 2147483647; 427 | files = ( 428 | 26AF353121ED59B800263628 /* CleverSDKTests.m in Sources */, 429 | ); 430 | runOnlyForDeploymentPostprocessing = 0; 431 | }; 432 | 26BB6E7221ED23F50005D165 /* Sources */ = { 433 | isa = PBXSourcesBuildPhase; 434 | buildActionMask = 2147483647; 435 | files = ( 436 | 268D08DE21ED781700DE2088 /* CleverSDK.m in Sources */, 437 | 268D08DD21ED781700DE2088 /* CleverLoginButton.m in Sources */, 438 | ); 439 | runOnlyForDeploymentPostprocessing = 0; 440 | }; 441 | /* End PBXSourcesBuildPhase section */ 442 | 443 | /* Begin PBXTargetDependency section */ 444 | 26AF353521ED59B800263628 /* PBXTargetDependency */ = { 445 | isa = PBXTargetDependency; 446 | target = 26BB6E7521ED23F50005D165 /* CleverSDK */; 447 | targetProxy = 26AF353421ED59B800263628 /* PBXContainerItemProxy */; 448 | }; 449 | /* End PBXTargetDependency section */ 450 | 451 | /* Begin XCBuildConfiguration section */ 452 | 2663BEB921ED880D00ED2BC1 /* Debug */ = { 453 | isa = XCBuildConfiguration; 454 | baseConfigurationReference = 64E8BA1FCB6DF2477D8A9182 /* Pods-Example.debug.xcconfig */; 455 | buildSettings = { 456 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 457 | CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements; 458 | CODE_SIGN_IDENTITY = "iPhone Developer"; 459 | CODE_SIGN_STYLE = Automatic; 460 | DEVELOPMENT_TEAM = 6D5FQ2E2ZU; 461 | INFOPLIST_FILE = Example/Info.plist; 462 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 463 | LD_RUNPATH_SEARCH_PATHS = ( 464 | "$(inherited)", 465 | "@executable_path/Frameworks", 466 | ); 467 | PRODUCT_BUNDLE_IDENTIFIER = com.clever.SimpleLogin; 468 | PRODUCT_NAME = "$(TARGET_NAME)"; 469 | TARGETED_DEVICE_FAMILY = "1,2"; 470 | VALID_ARCHS = "arm64 arm64e armv7 armv7s"; 471 | }; 472 | name = Debug; 473 | }; 474 | 2663BEBA21ED880D00ED2BC1 /* Release */ = { 475 | isa = XCBuildConfiguration; 476 | baseConfigurationReference = 2E76C922290D30329BE308FD /* Pods-Example.release.xcconfig */; 477 | buildSettings = { 478 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 479 | CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements; 480 | CODE_SIGN_IDENTITY = "iPhone Developer"; 481 | CODE_SIGN_STYLE = Automatic; 482 | DEVELOPMENT_TEAM = 6D5FQ2E2ZU; 483 | INFOPLIST_FILE = Example/Info.plist; 484 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 485 | LD_RUNPATH_SEARCH_PATHS = ( 486 | "$(inherited)", 487 | "@executable_path/Frameworks", 488 | ); 489 | PRODUCT_BUNDLE_IDENTIFIER = com.clever.SimpleLogin; 490 | PRODUCT_NAME = "$(TARGET_NAME)"; 491 | TARGETED_DEVICE_FAMILY = "1,2"; 492 | VALIDATE_PRODUCT = YES; 493 | VALID_ARCHS = "arm64 arm64e armv7 armv7s"; 494 | }; 495 | name = Release; 496 | }; 497 | 26AF353721ED59B800263628 /* Debug */ = { 498 | isa = XCBuildConfiguration; 499 | baseConfigurationReference = 033B10ED60FD696608AFE5DF /* Pods-CleverSDKTests.debug.xcconfig */; 500 | buildSettings = { 501 | CODE_SIGN_IDENTITY = "iPhone Developer"; 502 | CODE_SIGN_STYLE = Automatic; 503 | DEVELOPMENT_TEAM = 6D5FQ2E2ZU; 504 | GCC_PRECOMPILE_PREFIX_HEADER = NO; 505 | GCC_PREFIX_HEADER = "$(PROJECT_DIR)/$(PROJECT_NAME)Tests/PrefixHeader.pch"; 506 | INFOPLIST_FILE = CleverSDKTests/Info.plist; 507 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 508 | LD_RUNPATH_SEARCH_PATHS = ( 509 | "$(inherited)", 510 | "@executable_path/Frameworks", 511 | "@loader_path/Frameworks", 512 | ); 513 | PRODUCT_BUNDLE_IDENTIFIER = clever.CleverSDKTests; 514 | PRODUCT_NAME = "$(TARGET_NAME)"; 515 | TARGETED_DEVICE_FAMILY = "1,2"; 516 | }; 517 | name = Debug; 518 | }; 519 | 26AF353821ED59B800263628 /* Release */ = { 520 | isa = XCBuildConfiguration; 521 | baseConfigurationReference = 74F6929F444E04352A9A747A /* Pods-CleverSDKTests.release.xcconfig */; 522 | buildSettings = { 523 | CODE_SIGN_IDENTITY = "iPhone Developer"; 524 | CODE_SIGN_STYLE = Automatic; 525 | DEVELOPMENT_TEAM = 6D5FQ2E2ZU; 526 | GCC_PRECOMPILE_PREFIX_HEADER = NO; 527 | GCC_PREFIX_HEADER = "$(PROJECT_DIR)/$(PROJECT_NAME)Tests/PrefixHeader.pch"; 528 | INFOPLIST_FILE = CleverSDKTests/Info.plist; 529 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 530 | LD_RUNPATH_SEARCH_PATHS = ( 531 | "$(inherited)", 532 | "@executable_path/Frameworks", 533 | "@loader_path/Frameworks", 534 | ); 535 | PRODUCT_BUNDLE_IDENTIFIER = clever.CleverSDKTests; 536 | PRODUCT_NAME = "$(TARGET_NAME)"; 537 | TARGETED_DEVICE_FAMILY = "1,2"; 538 | VALIDATE_PRODUCT = YES; 539 | }; 540 | name = Release; 541 | }; 542 | 26BB6E8821ED23F50005D165 /* Debug */ = { 543 | isa = XCBuildConfiguration; 544 | buildSettings = { 545 | ALWAYS_SEARCH_USER_PATHS = NO; 546 | CLANG_ANALYZER_NONNULL = YES; 547 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 548 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 549 | CLANG_CXX_LIBRARY = "libc++"; 550 | CLANG_ENABLE_MODULES = YES; 551 | CLANG_ENABLE_OBJC_ARC = YES; 552 | CLANG_ENABLE_OBJC_WEAK = YES; 553 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 554 | CLANG_WARN_BOOL_CONVERSION = YES; 555 | CLANG_WARN_COMMA = YES; 556 | CLANG_WARN_CONSTANT_CONVERSION = YES; 557 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 558 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 559 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 560 | CLANG_WARN_EMPTY_BODY = YES; 561 | CLANG_WARN_ENUM_CONVERSION = YES; 562 | CLANG_WARN_INFINITE_RECURSION = YES; 563 | CLANG_WARN_INT_CONVERSION = YES; 564 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 565 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 566 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 567 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 568 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 569 | CLANG_WARN_STRICT_PROTOTYPES = YES; 570 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 571 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 572 | CLANG_WARN_UNREACHABLE_CODE = YES; 573 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 574 | CODE_SIGN_IDENTITY = "Mac Developer"; 575 | COPY_PHASE_STRIP = NO; 576 | CURRENT_PROJECT_VERSION = 1; 577 | DEBUG_INFORMATION_FORMAT = dwarf; 578 | ENABLE_STRICT_OBJC_MSGSEND = YES; 579 | ENABLE_TESTABILITY = YES; 580 | GCC_C_LANGUAGE_STANDARD = gnu11; 581 | GCC_DYNAMIC_NO_PIC = NO; 582 | GCC_NO_COMMON_BLOCKS = YES; 583 | GCC_OPTIMIZATION_LEVEL = 0; 584 | GCC_PREPROCESSOR_DEFINITIONS = ( 585 | "DEBUG=1", 586 | "$(inherited)", 587 | ); 588 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 589 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 590 | GCC_WARN_UNDECLARED_SELECTOR = YES; 591 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 592 | GCC_WARN_UNUSED_FUNCTION = YES; 593 | GCC_WARN_UNUSED_VARIABLE = YES; 594 | MACOSX_DEPLOYMENT_TARGET = 10.14; 595 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 596 | MTL_FAST_MATH = YES; 597 | ONLY_ACTIVE_ARCH = YES; 598 | SDKROOT = iphoneos; 599 | VERSIONING_SYSTEM = "apple-generic"; 600 | VERSION_INFO_PREFIX = ""; 601 | }; 602 | name = Debug; 603 | }; 604 | 26BB6E8921ED23F50005D165 /* Release */ = { 605 | isa = XCBuildConfiguration; 606 | buildSettings = { 607 | ALWAYS_SEARCH_USER_PATHS = NO; 608 | CLANG_ANALYZER_NONNULL = YES; 609 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 610 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 611 | CLANG_CXX_LIBRARY = "libc++"; 612 | CLANG_ENABLE_MODULES = YES; 613 | CLANG_ENABLE_OBJC_ARC = YES; 614 | CLANG_ENABLE_OBJC_WEAK = YES; 615 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 616 | CLANG_WARN_BOOL_CONVERSION = YES; 617 | CLANG_WARN_COMMA = YES; 618 | CLANG_WARN_CONSTANT_CONVERSION = YES; 619 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 620 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 621 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 622 | CLANG_WARN_EMPTY_BODY = YES; 623 | CLANG_WARN_ENUM_CONVERSION = YES; 624 | CLANG_WARN_INFINITE_RECURSION = YES; 625 | CLANG_WARN_INT_CONVERSION = YES; 626 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 627 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 628 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 629 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 630 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 631 | CLANG_WARN_STRICT_PROTOTYPES = YES; 632 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 633 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 634 | CLANG_WARN_UNREACHABLE_CODE = YES; 635 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 636 | CODE_SIGN_IDENTITY = "Mac Developer"; 637 | COPY_PHASE_STRIP = NO; 638 | CURRENT_PROJECT_VERSION = 1; 639 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 640 | ENABLE_NS_ASSERTIONS = NO; 641 | ENABLE_STRICT_OBJC_MSGSEND = YES; 642 | GCC_C_LANGUAGE_STANDARD = gnu11; 643 | GCC_NO_COMMON_BLOCKS = YES; 644 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 645 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 646 | GCC_WARN_UNDECLARED_SELECTOR = YES; 647 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 648 | GCC_WARN_UNUSED_FUNCTION = YES; 649 | GCC_WARN_UNUSED_VARIABLE = YES; 650 | MACOSX_DEPLOYMENT_TARGET = 10.14; 651 | MTL_ENABLE_DEBUG_INFO = NO; 652 | MTL_FAST_MATH = YES; 653 | SDKROOT = iphoneos; 654 | VERSIONING_SYSTEM = "apple-generic"; 655 | VERSION_INFO_PREFIX = ""; 656 | }; 657 | name = Release; 658 | }; 659 | 26BB6E8B21ED23F50005D165 /* Debug */ = { 660 | isa = XCBuildConfiguration; 661 | baseConfigurationReference = 234F52C9664ABC5B6AD3DE57 /* Pods-CleverSDK.debug.xcconfig */; 662 | buildSettings = { 663 | CODE_SIGN_IDENTITY = ""; 664 | CODE_SIGN_STYLE = Automatic; 665 | COMBINE_HIDPI_IMAGES = YES; 666 | DEFINES_MODULE = YES; 667 | DEVELOPMENT_TEAM = 6D5FQ2E2ZU; 668 | DYLIB_COMPATIBILITY_VERSION = 1; 669 | DYLIB_CURRENT_VERSION = 1; 670 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 671 | FRAMEWORK_VERSION = A; 672 | INFOPLIST_FILE = CleverSDK/Info.plist; 673 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 674 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 675 | LD_RUNPATH_SEARCH_PATHS = ( 676 | "$(inherited)", 677 | "@executable_path/../Frameworks", 678 | "@loader_path/Frameworks", 679 | ); 680 | PRODUCT_BUNDLE_IDENTIFIER = clever.CleverSDK; 681 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 682 | SKIP_INSTALL = YES; 683 | TARGETED_DEVICE_FAMILY = "1,2"; 684 | }; 685 | name = Debug; 686 | }; 687 | 26BB6E8C21ED23F50005D165 /* Release */ = { 688 | isa = XCBuildConfiguration; 689 | baseConfigurationReference = E1499ED7E5DD886299335537 /* Pods-CleverSDK.release.xcconfig */; 690 | buildSettings = { 691 | CODE_SIGN_IDENTITY = ""; 692 | CODE_SIGN_STYLE = Automatic; 693 | COMBINE_HIDPI_IMAGES = YES; 694 | DEFINES_MODULE = YES; 695 | DEVELOPMENT_TEAM = 6D5FQ2E2ZU; 696 | DYLIB_COMPATIBILITY_VERSION = 1; 697 | DYLIB_CURRENT_VERSION = 1; 698 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 699 | FRAMEWORK_VERSION = A; 700 | INFOPLIST_FILE = CleverSDK/Info.plist; 701 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 702 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 703 | LD_RUNPATH_SEARCH_PATHS = ( 704 | "$(inherited)", 705 | "@executable_path/../Frameworks", 706 | "@loader_path/Frameworks", 707 | ); 708 | PRODUCT_BUNDLE_IDENTIFIER = clever.CleverSDK; 709 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 710 | SKIP_INSTALL = YES; 711 | TARGETED_DEVICE_FAMILY = "1,2"; 712 | }; 713 | name = Release; 714 | }; 715 | /* End XCBuildConfiguration section */ 716 | 717 | /* Begin XCConfigurationList section */ 718 | 2663BEBB21ED880D00ED2BC1 /* Build configuration list for PBXNativeTarget "Example" */ = { 719 | isa = XCConfigurationList; 720 | buildConfigurations = ( 721 | 2663BEB921ED880D00ED2BC1 /* Debug */, 722 | 2663BEBA21ED880D00ED2BC1 /* Release */, 723 | ); 724 | defaultConfigurationIsVisible = 0; 725 | defaultConfigurationName = Release; 726 | }; 727 | 26AF353621ED59B800263628 /* Build configuration list for PBXNativeTarget "CleverSDKTests" */ = { 728 | isa = XCConfigurationList; 729 | buildConfigurations = ( 730 | 26AF353721ED59B800263628 /* Debug */, 731 | 26AF353821ED59B800263628 /* Release */, 732 | ); 733 | defaultConfigurationIsVisible = 0; 734 | defaultConfigurationName = Release; 735 | }; 736 | 26BB6E7021ED23F40005D165 /* Build configuration list for PBXProject "CleverSDK" */ = { 737 | isa = XCConfigurationList; 738 | buildConfigurations = ( 739 | 26BB6E8821ED23F50005D165 /* Debug */, 740 | 26BB6E8921ED23F50005D165 /* Release */, 741 | ); 742 | defaultConfigurationIsVisible = 0; 743 | defaultConfigurationName = Release; 744 | }; 745 | 26BB6E8A21ED23F50005D165 /* Build configuration list for PBXNativeTarget "CleverSDK" */ = { 746 | isa = XCConfigurationList; 747 | buildConfigurations = ( 748 | 26BB6E8B21ED23F50005D165 /* Debug */, 749 | 26BB6E8C21ED23F50005D165 /* Release */, 750 | ); 751 | defaultConfigurationIsVisible = 0; 752 | defaultConfigurationName = Release; 753 | }; 754 | /* End XCConfigurationList section */ 755 | }; 756 | rootObject = 26BB6E6D21ED23F40005D165 /* Project object */; 757 | } 758 | --------------------------------------------------------------------------------