Skip to content

Commit

Permalink
iOS CX SDK 7.0.0
Browse files Browse the repository at this point in the history
Added supported for CX SDK 7.0.0
  • Loading branch information
savitha-rudramuni committed Aug 27, 2024
1 parent 4921e2e commit 8be2e9d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 7.0.0
- This version merges the functionality of Responsys, CX Core and CX Analytics SDKs.
IMPORTANT: Please check the Upgrade documentation on how to integrate this new version


## 6.56.7
- Location Support is removed in iOS

Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,13 @@ Before installing the plugin, you must setup your app to receive push notificati
- Log in to the [Responsys Mobile App Developer Console](https://docs.oracle.com/en/cloud/saas/marketing/responsys-develop-mobile/dev-console/login/) and enter your Auth Key and other details for your iOS app.
- Download the `pushio_config.json` file generated from your credentials.
- Download the SDK binary from [here](https://www.oracle.com/downloads/applications/cx/responsys-mobile-sdk.html).
- After adding the plugin in your app, copy `PushIOManager.xcframework` and place it in the plugin ios directory - `pushiomanager-flutter/ios/`.
- Run `pod install` in the `your_app_directory/ios/` directory, after adding the plugin in to your app and copying `PushIOManager.xcframework` in `pushiomanager-flutter/ios/` directory.
- After adding the plugin in your app, copy `CX_Mobile_SDK.xcframework` and place it in the plugin ios directory - `pushiomanager-flutter/ios/`.
- Run `pod install` in the `your_app_directory/ios/` directory, after adding the plugin in to your app and copying `CX_Mobile_SDK.xcframework` in `pushiomanager-flutter/ios/` directory.
![framework Image](./img/ios_framework.png "framework Image")

> **_NOTE:_** Copy `OracleCXLocationSDK.xcframework` to support Location feature in iOS and add releated Privacy Location descriptiions in Info.plist, refer this for more info
[Location Descriptions](https://developer.apple.com/documentation/corelocation/requesting-authorization-to-use-location-services#Provide-descriptions-of-how-you-use-location-services)

## Installation

Add the following dependency to your `pubspec.yaml`,
Expand Down Expand Up @@ -214,7 +217,7 @@ import 'package:pushiomanager_flutter/pushiomanager_flutter.dart';
.catchError((error) => print("Registration error: $error"));
} else if (Platform.isIOS) {
PushIOManager.registerForAllRemoteNotificationTypes().then((_) => {
PushIOManager.registerApp()
PushIOManager.registerApp(true)
}).then((_) => print("Registration Successful"))
.catchError((error) => print("Registration error: $error"));
}
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

group 'com.pushio.manager.flutter'
version '6.56.7'
version '7.0.0'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 6.56.6
version: 7.0.0

environment:
sdk: '>=2.14.0 <3.0.0'
Expand Down
7 changes: 5 additions & 2 deletions ios/Classes/PushIOManagerFlutterPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@

#import "PushIOManagerFlutterPlugin.h"
#import <CX_Mobile_SDK/CX_Mobile_SDK.h>
#import <CX_Mobile_SDK/ORACoreConfig.h>
#import "NSDictionary+PIOConvert.h"
#import "NSArray+PIOConvert.h"
#import <UserNotifications/UserNotifications.h>
#import <UIKit/UIKit.h>



@interface PushIOManagerFlutterPlugin ()<PIODeepLinkDelegate>
@property (strong, nonatomic) FlutterMethodChannel *channel;
@end
Expand All @@ -24,6 +23,10 @@ + (instancetype)sharedInstance {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedInstance = [PushIOManagerFlutterPlugin new];

ORACoreConfig *config = [[ORACoreConfig alloc] init];
[config setConfigValue:@"rsys" forKey:kORAModules];

[sharedInstance setUpDeeplinkHandler];
});
return sharedInstance;
Expand Down
2 changes: 1 addition & 1 deletion ios/pushiomanager_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Pod::Spec.new do |s|
s.name = 'pushiomanager_flutter'
s.version = '6.56.7'
s.version = '7.0.0'
s.summary = 'Flutter Plugin for Responsys Mobile SDK'
s.description = 'Flutter Plugin for Responsys Mobile SDK'
s.homepage = 'https://github.com/oracle-samples/pushiomanager-flutter'
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: pushiomanager_flutter
description: Flutter plugin for Responsys Mobile SDK

version: 6.56.7
version: 7.0.0
repository: https://github.com/oracle-samples/pushiomanager-flutter

environment:
Expand Down

0 comments on commit 8be2e9d

Please sign in to comment.