From 16ed4ce433079b03274a6904d93518f44b65cfc4 Mon Sep 17 00:00:00 2001 From: emawby Date: Fri, 15 Sep 2023 14:39:03 -0700 Subject: [PATCH] Update migration guide to specify changes for cocoapods and imports --- MIGRATION_GUIDE.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index 6c46e3f..ac6fc3c 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -32,6 +32,34 @@ OneSignal uses a built-in **alias label** called `external_id` which supports ex The Flutter SDK accesses the OneSignal native iOS and Android SDKs. For this update, all SDK versions are aligning across OneSignal’s suite of client SDKs. As such, the Flutter SDK is making the jump from `v3` to `v5`. +### Code Import Changes +**Objective-C** + +```objc + // Replace the old import statement + #import + + // With the new import statement + #import +``` +**Swift** +```swift + // Replace the old import statement + import OneSignal + + // With the new import statement + import OneSignalFramework +``` + +### CocoaPods +Update your podfile to use 5.0.0+ of the OneSignalXCFramework pod +``` +target 'OneSignalNotificationServiceExtension' do + use_frameworks! + pod 'OneSignalXCFramework', '>= 5.0.0', '< 6.0' +end +``` + # API Changes ## Namespaces