Skip to content

Commit

Permalink
Merge pull request #234 from CleverTap/SDK-3689-Support-ct-ios-sdk-v6…
Browse files Browse the repository at this point in the history
….0.0

SDK-3689-Support-ct-ios-sdk-v6.0.0
  • Loading branch information
AishwaryaNanna authored Apr 17, 2024
2 parents b18f6cc + 0c37dc5 commit ea37726
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ To get started, sign up [here](https://clevertap.com/live-product-demo/).

## ✅ Supported Versions

- [CleverTap Android SDK version 5.1.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev5.1.0_ptv1.1.0)
- [CleverTap iOS SDK version 5.1.2](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/5.1.2)
- [CleverTap Android SDK version 6.0.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev6.0.0_ptv1.2.2)
- [CleverTap iOS SDK version 6.0.0](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/6.0.0)

## 🚀 Installation and Quick Start

Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods>
<pod name="CleverTap-iOS-SDK" spec="5.2.2" />
<pod name="CleverTap-iOS-SDK" spec="6.0.0" />
</pods>
</podspec>
<!-- <framework src="CleverTap-iOS-SDK" type="podspec" spec="5.1.2" />-->
Expand Down
17 changes: 17 additions & 0 deletions src/ios/CleverTapPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,23 @@ - (void)setLocale:(CDVInvokedUrlCommand *)command {
}
}

#pragma mark - InApp Controls

- (void)clearInAppResources:(CDVInvokedUrlCommand *)command {
BOOL expiredOnly = [[command argumentAtIndex:0] boolValue];
[clevertap clearInAppResources:expiredOnly];
}

- (void)fetchInApps:(CDVInvokedUrlCommand *)command {

[self.commandDelegate runInBackground:^{
[clevertap fetchInApps:^(BOOL success){
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsBool:(BOOL)success];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}];
}];
}

#pragma mark Helper methods

- (CTVar *)createVarForName:(NSString *)name andValue:(id)value {
Expand Down

0 comments on commit ea37726

Please sign in to comment.