Skip to content

Commit

Permalink
update to 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditi3 committed Sep 26, 2018
1 parent 05a70d4 commit cc37007
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGE LOG

## Version 3.2.1 (September 26, 2018)
* Fix method swizzling issue

## Version 3.2.0 (September 5, 2018)
* Adds support to create multiple instances
* Adds support for SSL-pinning
Expand Down
2 changes: 1 addition & 1 deletion CleverTap-iOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CleverTap-iOS-SDK"
s.version = "3.2.0"
s.version = "3.2.1"
s.summary = "The CleverTap iOS SDK for App Analytics and Engagement."
s.homepage = "https://github.com/CleverTap/clevertap-ios-sdk"
s.license = { :type => "MIT" }
Expand Down
8 changes: 4 additions & 4 deletions CleverTapSDK/CleverTap.m
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ + (BOOL)ct_application:(UIApplication *)application
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
CleverTapLogStaticDebug(@"Handling openURL:sourceApplication: %@", url);
[self handleOpenURL:url];
[CleverTap handleOpenURL:url];
return NO;
}
#endif
Expand All @@ -395,14 +395,14 @@ + (BOOL)ct_application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<NSString*, id> *)options {
CleverTapLogStaticDebug(@"Handling openURL:options: %@", url);
[self handleOpenURL:url];
[CleverTap handleOpenURL:url];
return NO;
}

+ (void)ct_application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
NSString *deviceTokenString = [CTUtils deviceTokenStringFromData:deviceToken];
if (!_instances || [_instances count] <= 0) {
[[self sharedInstance] setPushTokenAsString:deviceTokenString];
[[CleverTap sharedInstance] setPushTokenAsString:deviceTokenString];
return;
}
for (CleverTap *instance in [_instances allValues]) {
Expand All @@ -413,7 +413,7 @@ + (void)ct_application:(UIApplication *)application didFailToRegisterForRemoteNo
CleverTapLogStaticDebug(@"Application failed to register for remote notification: %@", error);
}
+ (void)ct_application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
[self handlePushNotification:userInfo openDeepLinksInForeground:NO];
[CleverTap handlePushNotification:userInfo openDeepLinksInForeground:NO];
}

#pragma clang diagnostic pop
Expand Down

0 comments on commit cc37007

Please sign in to comment.