Skip to content

Commit 8fb0b23

Browse files
committed
Update migration guide to specify changes for cocoapods and imports
1 parent ae76516 commit 8fb0b23

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

MIGRATION_GUIDE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,34 @@ OneSignal uses a built-in **alias label** called `external_id` which supports ex
3232

3333
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`.
3434

35+
### Code Import Changes
36+
**Objective-C**
37+
38+
```objc
39+
// Replace the old import statement
40+
#import <OneSignal/OneSignal.h>
41+
42+
// With the new import statement
43+
#import <OneSignalFramework/OneSignalFramework.h>
44+
```
45+
**Swift**
46+
```swift
47+
// Replace the old import statement
48+
import OneSignal
49+
50+
// With the new import statement
51+
import OneSignalFramework
52+
```
53+
54+
### CocoaPods
55+
Update your podfile to use 5.0.0+ of the OneSignalXCFramework pod
56+
```
57+
target 'OneSignalNotificationServiceExtension' do
58+
use_frameworks!
59+
pod 'OneSignalXCFramework', '>= 5.0.0', '< 6.0'
60+
end
61+
```
62+
3563
# API Changes
3664

3765
## Namespaces

0 commit comments

Comments
 (0)