Skip to content

Commit c4a3fc5

Browse files
Merge branch 'master' into offline-events
2 parents 7d48887 + 5c0407d commit c4a3fc5

File tree

22 files changed

+492
-429
lines changed

22 files changed

+492
-429
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Iterable logo](./images/Iterable-Logo.png "Iterable Logo")
1+
![Iterable logo](https://raw.githubusercontent.com/Iterable/swift-sdk/master/images/Iterable-Logo.png "Iterable Logo")
22

33
[![License](https://img.shields.io/github/license/Iterable/swift-sdk)](https://opensource.org/licenses/MIT)
44
[![Build Status](https://travis-ci.com/Iterable/swift-sdk.svg?branch=master)](https://travis-ci.com/Iterable/swift-sdk)

sample-apps/objc-sample-app/Podfile

Lines changed: 0 additions & 14 deletions
This file was deleted.

sample-apps/objc-sample-app/objc-sample-app.xcodeproj/project.pbxproj

Lines changed: 39 additions & 103 deletions
Large diffs are not rendered by default.

sample-apps/objc-sample-app/objc-sample-app.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 10 deletions
This file was deleted.

sample-apps/objc-sample-app/objc-sample-app.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.

sample-apps/objc-sample-app/objc-sample-app/AppDelegate.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
#import "AppDelegate.h"
11-
#import "DeeplinkHandler.h"
11+
#import "DeepLinkHandler.h"
1212

1313
@import IterableSDK;
1414

@@ -29,8 +29,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
2929
IterableConfig *config = [[IterableConfig alloc] init];
3030
config.urlDelegate = self;
3131
config.customActionDelegate = self;
32-
config.pushIntegrationName = @"objc-sample-app";
33-
config.sandboxPushIntegrationName = @"objc-sample-app";
3432

3533
[IterableAPI initializeWithApiKey: iterableApiKey
3634
launchOptions: launchOptions
@@ -127,7 +125,7 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNoti
127125
#pragma mark - IterableURLDelegate
128126
// return true if we handled the url
129127
- (BOOL)handleIterableURL:(NSURL *)url context:(IterableActionContext *)context {
130-
return [DeeplinkHandler handleURL:url];
128+
return [DeepLinkHandler handleURL:url];
131129
}
132130

133131
#pragma mark - IterableCustomActionDelegate
@@ -138,7 +136,7 @@ - (BOOL)handleIterableCustomAction:(IterableAction *)action context:(IterableAct
138136
if (action.userInput != nil) {
139137
NSString *urlString = [[NSString alloc] initWithFormat:@"https://majumder.me/coffee?q=%@", action.userInput];
140138
NSURL *url = [[NSURL alloc] initWithString:urlString];
141-
return [DeeplinkHandler handleURL:url];
139+
return [DeepLinkHandler handleURL:url];
142140
}
143141
}
144142

sample-apps/objc-sample-app/objc-sample-app/DeeplinkHandler.h renamed to sample-apps/objc-sample-app/objc-sample-app/DeepLinkHandler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// DeeplinkHandler.h
2+
// DeepLinkHandler.h
33
// objc-sample-app
44
//
55
// Created by Tapash Majumder on 6/21/18.
@@ -8,7 +8,7 @@
88

99
#import <Foundation/Foundation.h>
1010

11-
@interface DeeplinkHandler: NSObject
11+
@interface DeepLinkHandler: NSObject
1212

1313
+ (BOOL)handleURL:(NSURL *)url;
1414

sample-apps/objc-sample-app/objc-sample-app/DeeplinkHandler.m renamed to sample-apps/objc-sample-app/objc-sample-app/DeepLinkHandler.m

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
//
2-
// DeeplinkHandler.m
2+
// DeepLinkHandler.m
33
// objc-sample-app
44
//
55
// Created by Tapash Majumder on 6/21/18.
66
// Copyright © 2018 Iterable. All rights reserved.
77
//
88

9-
#import "DeeplinkHandler.h"
9+
#import "DeepLinkHandler.h"
1010
#import "CoffeeType.h"
1111
#import "CoffeeViewController.h"
1212
#import "CoffeeListTableViewController.h"
1313

14-
@implementation DeeplinkHandler
14+
@implementation DeepLinkHandler
1515

1616
+ (BOOL)handleURL:(NSURL *)url {
1717
NSString *page = url.lastPathComponent.lowercaseString;
1818

1919
if ([page isEqualToString:@"mocha"]) {
20-
[DeeplinkHandler showCoffee:CoffeeType.mocha];
20+
[DeepLinkHandler showCoffee:CoffeeType.mocha];
2121
return YES;
2222
} else if ([page isEqualToString:@"latte"]) {
23-
[DeeplinkHandler showCoffee:CoffeeType.latte];
23+
[DeepLinkHandler showCoffee:CoffeeType.latte];
2424
return YES;
2525
} else if ([page isEqualToString:@"cappuccino"]) {
26-
[DeeplinkHandler showCoffee:CoffeeType.cappuccino];
26+
[DeepLinkHandler showCoffee:CoffeeType.cappuccino];
2727
return YES;
2828
} else if ([page isEqualToString:@"black"]) {
29-
[DeeplinkHandler showCoffee:CoffeeType.black];
29+
[DeepLinkHandler showCoffee:CoffeeType.black];
3030
return YES;
3131
} else if ([page isEqualToString:@"coffee"]) {
32-
NSString *query = [DeeplinkHandler parseQueryFromURL: url];
33-
[DeeplinkHandler showCoffeeListWithQuery: query];
32+
NSString *query = [DeepLinkHandler parseQueryFromURL: url];
33+
[DeepLinkHandler showCoffeeListWithQuery: query];
3434
return YES;
3535
} else {
3636
[UIApplication.sharedApplication openURL: url options: @{} completionHandler: nil];

sample-apps/swift-sample-app/Podfile

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)