Skip to content

Commit 87daa49

Browse files
authored
Merge pull request #1301 from OneSignal/release-5.0.0
Release 5.0.0
2 parents eeb94a5 + b8a5588 commit 87daa49

File tree

148 files changed

+2431
-1123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+2431
-1123
lines changed

MIGRATION_GUIDE.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 align="center">OneSignal iOS SDK v5.0.0-beta-04 Migration Guide</h1>
1+
<h1 align="center">OneSignal iOS SDK v5.0.0 Migration Guide</h1>
22

33
![OneSignal Omni Channel Banner](https://user-images.githubusercontent.com/11739227/208625336-d28c8d01-a7cf-4f8e-9643-ac8d1948e9ae.png)
44

@@ -8,7 +8,7 @@ In this release, we are making a significant shift from a device-centered model
88

99
To facilitate this change, the `externalId` approach for identifying users is being replaced by the `login` and `logout` methods. In addition, the SDK now makes use of namespaces such as `User`, `Notifications`, and `InAppMessages` to better separate code.
1010

11-
The iOS SDK is making the jump from `v3` to `v5`, in order to align across OneSignal’s suite of client SDKs. This guide will walk you through the iOS SDK `5.0.0-beta-04` changes as a result of this shift.
11+
The iOS SDK is making the jump from `v3` to `v5`, in order to align across OneSignal’s suite of client SDKs. This guide will walk you through the iOS SDK `5.0.0` changes as a result of this shift.
1212

1313
# Overview
1414

@@ -60,10 +60,10 @@ As mentioned above, the iOS SDK is making the jump from `v3` to `v5`, in order t
6060
```
6161

6262
### Option 1. Swift Package Manager
63-
Update the version of the OneSignal-XCFramework your application uses to `5.0.0-beta-04`. In addition, the Package Product name has been changed from `OneSignal` to `OneSignalFramework`. See [the existing installation instructions](https://documentation.onesignal.com/docs/swift-package-manager-setup).
63+
Update the version of the OneSignal-XCFramework your application uses to `5.0.0`. In addition, the Package Product name has been changed from `OneSignal` to `OneSignalFramework`. See [the existing installation instructions](https://documentation.onesignal.com/docs/swift-package-manager-setup).
6464

6565
### Option 2. CocoaPods
66-
Update the version of the OneSignalXCFramework your application uses to `5.0.0-beta-04`. Other than updating the import statement above, there are no additional changes needed to import the OneSignal SDK in your Xcode project. See [the existing installation instructions](https://documentation.onesignal.com/docs/ios-sdk-setup#step-3-import-the-onesignal-sdk-into-your-xcode-project).
66+
Update the version of the OneSignalXCFramework your application uses to `5.0.0`. Other than updating the import statement above, there are no additional changes needed to import the OneSignal SDK in your Xcode project. See [the existing installation instructions](https://documentation.onesignal.com/docs/ios-sdk-setup#step-3-import-the-onesignal-sdk-into-your-xcode-project).
6767

6868
# API Changes
6969
## Namespaces
@@ -214,7 +214,7 @@ Email and/or SMS subscriptions can be added or removed via the following methods
214214

215215
# API Reference
216216

217-
Below is a comprehensive reference to the `5.0.0-beta-04` OneSignal SDK.
217+
Below is a comprehensive reference to the `5.0.0` OneSignal SDK.
218218

219219
## OneSignal
220220

@@ -756,11 +756,10 @@ The Debug namespace is accessible via `OneSignal.Debug` and provide access to de
756756
757757
# Limitations
758758

759-
- This is a Beta release so please test thorougly prior to production use.
760759
- Changing app IDs is not supported.
761760
- Any `User` namespace calls must be invoked **after** initialization. Example: `OneSignal.User.addTag("tag", "2")`
762761
- In the SDK, the user state is only refreshed from the server when a new session is started (cold start or backgrounded for over 30 seconds) or when the user is logged in. This is by design.
763762

764763
# Known issues
765764
- Identity Verification
766-
- We will be introducing JWT in a follow up Beta release
765+
- We will be introducing Identity Verification using JWT in a follow up release

OneSignal.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OneSignal"
3-
s.version = "5.0.0-beta-06"
3+
s.version = "5.0.0"
44
s.summary = "OneSignal push notification library for mobile apps."
55
s.homepage = "https://onesignal.com"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

OneSignalXCFramework.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OneSignalXCFramework"
3-
s.version = "5.0.0-beta-06"
3+
s.version = "5.0.0"
44
s.summary = "OneSignal push notification library for mobile apps."
55
s.homepage = "https://onesignal.com"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

Package.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -105,48 +105,48 @@ let package = Package(
105105
),
106106
.binaryTarget(
107107
name: "OneSignalFramework",
108-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0-beta-06/OneSignalFramework.xcframework.zip",
109-
checksum: "f0c7a65cbcab6d82e3bd241b19c6cd4a0d9fc446e6f8f4c657322066dc547ee8"
108+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0/OneSignalFramework.xcframework.zip",
109+
checksum: "e9d9cba7604dc4a9e75592689ca2944d774bebcd68e4c8f3796d2f559e6919e1"
110110
),
111111
.binaryTarget(
112112
name: "OneSignalInAppMessages",
113-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0-beta-06/OneSignalInAppMessages.xcframework.zip",
114-
checksum: "5c48f1a16166f043eaf510e83d77428c6dab6b27b4544ad8a9fc438a442a7d33"
113+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0/OneSignalInAppMessages.xcframework.zip",
114+
checksum: "639e8b11bf77cf438b021e2f06edde42b34bc718c59947685aada28b59e8f62b"
115115
),
116116
.binaryTarget(
117117
name: "OneSignalLocation",
118-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0-beta-06/OneSignalLocation.xcframework.zip",
119-
checksum: "fd711bec318dcb9b1fc8087ae83e70f3e39c886d983d258ca96aa1c7241e7a9b"
118+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0/OneSignalLocation.xcframework.zip",
119+
checksum: "118e937eeb43654bf4b10c0d70985a81985530a8e43e3992af7b728603349d82"
120120
),
121121
.binaryTarget(
122122
name: "OneSignalUser",
123-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0-beta-06/OneSignalUser.xcframework.zip",
124-
checksum: "5bf8f7807c8ddabe2f55d7284e3cc084bf0bbf7b8fc21c3d5ea7890b99c5725c"
123+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0/OneSignalUser.xcframework.zip",
124+
checksum: "9153935350d7fdd2a7a530723cb678a49fda662b6098cb8b4b354db9c49911aa"
125125
),
126126
.binaryTarget(
127127
name: "OneSignalNotifications",
128-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0-beta-06/OneSignalNotifications.xcframework.zip",
129-
checksum: "d377cee1c5b0f208a4ef6eedaf36b59ae966cc7db25e0074e46ec3f6294a8d41"
128+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0/OneSignalNotifications.xcframework.zip",
129+
checksum: "fd883e8944a1530335601c944c5d22c7ccf1d80c0b106031e2f83d8489040597"
130130
),
131131
.binaryTarget(
132132
name: "OneSignalExtension",
133-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0-beta-06/OneSignalExtension.xcframework.zip",
134-
checksum: "38ed96d71694f425a9aaae9226f58e2630a0e841fd2d598b1fa75a14758e998f"
133+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0/OneSignalExtension.xcframework.zip",
134+
checksum: "cd50a84aeb99ffabf561976c2576e47fde4411a38eb071d9bd7624a3e4d10534"
135135
),
136136
.binaryTarget(
137137
name: "OneSignalOutcomes",
138-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0-beta-06/OneSignalOutcomes.xcframework.zip",
139-
checksum: "7b273ca6b35fd5f9cce8dfdd9076b495950a12d96f543e02e133dde5b1d0e4f5"
138+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0/OneSignalOutcomes.xcframework.zip",
139+
checksum: "9e7c86c7e9fd1f070b9fc25327a5a9482390819995f2276cbe25760f263972e7"
140140
),
141141
.binaryTarget(
142142
name: "OneSignalOSCore",
143-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0-beta-06/OneSignalOSCore.xcframework.zip",
144-
checksum: "e665db8193cd76d79487b64deff9361fe9798240b74b748cbac09311607b3484"
143+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0/OneSignalOSCore.xcframework.zip",
144+
checksum: "7e69eda2258da9c33b7c2368480e4b7620b7be2e1ded950a44e2d4788eb88bbd"
145145
),
146146
.binaryTarget(
147147
name: "OneSignalCore",
148-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0-beta-06/OneSignalCore.xcframework.zip",
149-
checksum: "9e08924dfc49453c75b01389bb8bb2eadb571b53d722a334c0889dc8e0de2348"
148+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.0.0/OneSignalCore.xcframework.zip",
149+
checksum: "cf07a0e4914c21b29f4475e861e11a3ecb6173dbda1592764a03f06127fe4095"
150150
)
151151
]
152152
)

iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalCommonDefines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
// "*" in comment line ending comment means the string value has not been changed
4747
// App
4848

49-
#define ONESIGNAL_VERSION @"050000-beta-06"
49+
#define ONESIGNAL_VERSION @"050000"
5050

5151
#define OSUD_APP_ID @"GT_APP_ID" // * OSUD_APP_ID
5252
#define OSUD_REGISTERED_WITH_APPLE @"GT_REGISTERED_WITH_APPLE" // * OSUD_REGISTERED_WITH_APPLE
-33 Bytes
Binary file not shown.

iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework/Info.plist

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,19 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_x86_64-maccatalyst</string>
9+
<string>ios-arm64</string>
1010
<key>LibraryPath</key>
1111
<string>OneSignalCore.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>x86_64</string>
1615
</array>
1716
<key>SupportedPlatform</key>
1817
<string>ios</string>
19-
<key>SupportedPlatformVariant</key>
20-
<string>maccatalyst</string>
2118
</dict>
2219
<dict>
2320
<key>LibraryIdentifier</key>
24-
<string>ios-arm64_x86_64-simulator</string>
21+
<string>ios-arm64_x86_64-maccatalyst</string>
2522
<key>LibraryPath</key>
2623
<string>OneSignalCore.framework</string>
2724
<key>SupportedArchitectures</key>
@@ -32,19 +29,22 @@
3229
<key>SupportedPlatform</key>
3330
<string>ios</string>
3431
<key>SupportedPlatformVariant</key>
35-
<string>simulator</string>
32+
<string>maccatalyst</string>
3633
</dict>
3734
<dict>
3835
<key>LibraryIdentifier</key>
39-
<string>ios-arm64</string>
36+
<string>ios-arm64_x86_64-simulator</string>
4037
<key>LibraryPath</key>
4138
<string>OneSignalCore.framework</string>
4239
<key>SupportedArchitectures</key>
4340
<array>
4441
<string>arm64</string>
42+
<string>x86_64</string>
4543
</array>
4644
<key>SupportedPlatform</key>
4745
<string>ios</string>
46+
<key>SupportedPlatformVariant</key>
47+
<string>simulator</string>
4848
</dict>
4949
</array>
5050
<key>CFBundlePackageType</key>

iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework/ios-arm64/OneSignalCore.framework/Headers/OneSignalCommonDefines.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
// "*" in comment line ending comment means the string value has not been changed
4747
// App
4848

49-
#define ONESIGNAL_VERSION @"050000-beta-06"
49+
#define ONESIGNAL_VERSION @"050000"
5050

5151
#define OSUD_APP_ID @"GT_APP_ID" // * OSUD_APP_ID
5252
#define OSUD_REGISTERED_WITH_APPLE @"GT_REGISTERED_WITH_APPLE" // * OSUD_REGISTERED_WITH_APPLE
@@ -184,9 +184,13 @@ typedef enum {ATTRIBUTED, NOT_ATTRIBUTED} FocusAttributionState;
184184
#define focusAttributionStateString(enum) [@[@"ATTRIBUTED", @"NOT_ATTRIBUTED"] objectAtIndex:enum]
185185

186186
// OneSignal Background Task Identifiers
187-
#define ATTRIBUTED_FOCUS_TASK @"ATTRIBUTED_FOCUS_TASK"
188-
#define UNATTRIBUTED_FOCUS_TASK @"UNATTRIBUTED_FOCUS_TASK"
189-
#define USER_MANAGER_BACKGROUND_TASK @"USER_MANAGER_BACKGROUND_TASK"
187+
#define ATTRIBUTED_FOCUS_TASK @"ATTRIBUTED_FOCUS_TASK"
188+
#define UNATTRIBUTED_FOCUS_TASK @"UNATTRIBUTED_FOCUS_TASK"
189+
#define SEND_SESSION_TIME_TO_USER_TASK @"SEND_SESSION_TIME_TO_USER_TASK"
190+
#define OPERATION_REPO_BACKGROUND_TASK @"OPERATION_REPO_BACKGROUND_TASK"
191+
#define IDENTITY_EXECUTOR_BACKGROUND_TASK @"IDENTITY_EXECUTOR_BACKGROUND_TASK_"
192+
#define PROPERTIES_EXECUTOR_BACKGROUND_TASK @"PROPERTIES_EXECUTOR_BACKGROUND_TASK_"
193+
#define SUBSCRIPTION_EXECUTOR_BACKGROUND_TASK @"SUBSCRIPTION_EXECUTOR_BACKGROUND_TASK_"
190194

191195
// OneSignal constants
192196
#define OS_PUSH @"push"

iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework/ios-arm64/OneSignalCore.framework/Headers/OneSignalLog.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
4444
@interface OneSignalLog : NSObject<OSDebug>
4545
+ (Class<OSDebug>)Debug;
4646
+ (void)onesignalLog:(ONE_S_LOG_LEVEL)logLevel message:(NSString* _Nonnull)message;
47+
+ (ONE_S_LOG_LEVEL)getLogLevel;
4748
@end

0 commit comments

Comments
 (0)