Skip to content

Commit 6d06079

Browse files
authored
Merge pull request #1379 from OneSignal/release_5.1.1
Release 5.1.1
2 parents 9fba0fc + acbc139 commit 6d06079

File tree

135 files changed

+1436
-984
lines changed

Some content is hidden

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

135 files changed

+1436
-984
lines changed

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.1.0"
3+
s.version = "5.1.1"
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.1.0"
3+
s.version = "5.1.1"
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.1.0/OneSignalFramework.xcframework.zip",
109-
checksum: "9f1b8c8c3cba585b5861d3b04df167a5e74a48400e7b6d4db7b61767b9c8bb46"
108+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.1/OneSignalFramework.xcframework.zip",
109+
checksum: "6af9aeeda23d25953aa2d74b309a30208dbad559c767695f10e18cddee664bd7"
110110
),
111111
.binaryTarget(
112112
name: "OneSignalInAppMessages",
113-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.0/OneSignalInAppMessages.xcframework.zip",
114-
checksum: "92212c029622ac585cb55ac29f36f68ce9c1f50bf500c33008477f96b229f7e1"
113+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.1/OneSignalInAppMessages.xcframework.zip",
114+
checksum: "3b3da7782b3db958036883037ca788cc2364086f268f32d042b5120e70d6dab2"
115115
),
116116
.binaryTarget(
117117
name: "OneSignalLocation",
118-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.0/OneSignalLocation.xcframework.zip",
119-
checksum: "8b1fee64e9dcebc85d5220e5600be23e560895f25aa2d6d02472d7ddb2bfd899"
118+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.1/OneSignalLocation.xcframework.zip",
119+
checksum: "d47a9bc2d633889c16026160ec161bc73471bd29bb99da6c0657c2b3cbd82855"
120120
),
121121
.binaryTarget(
122122
name: "OneSignalUser",
123-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.0/OneSignalUser.xcframework.zip",
124-
checksum: "04c4226583588782a3c7eab7fc5432e5c2e5d3f7b93dbe035f11420d040edba6"
123+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.1/OneSignalUser.xcframework.zip",
124+
checksum: "2f5acd46e71c10425f49880be0b1beed48fdc40b05f9545153f9bd8226899173"
125125
),
126126
.binaryTarget(
127127
name: "OneSignalNotifications",
128-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.0/OneSignalNotifications.xcframework.zip",
129-
checksum: "2383ae631e80b06f42557eff3f06a41a3e2614dccd854b767950e975ded70838"
128+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.1/OneSignalNotifications.xcframework.zip",
129+
checksum: "634dec194bf0bbee746606baf8d8742c760d131d7e39e7395e1e0d100115fc9d"
130130
),
131131
.binaryTarget(
132132
name: "OneSignalExtension",
133-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.0/OneSignalExtension.xcframework.zip",
134-
checksum: "9cc6c0e0b9090c7c9816157e4ba1193194f132ebf0dae6c28533c2de3fb7c5dd"
133+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.1/OneSignalExtension.xcframework.zip",
134+
checksum: "424eb4229074afb25e0fa4cb44d900597fd3c057e7d4c864ea5c034e60701137"
135135
),
136136
.binaryTarget(
137137
name: "OneSignalOutcomes",
138-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.0/OneSignalOutcomes.xcframework.zip",
139-
checksum: "91e675c23450803d96554820dbe5a1d6aec4157364699bb141a58f24106ee7fc"
138+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.1/OneSignalOutcomes.xcframework.zip",
139+
checksum: "f96a931893acc89791481b9978b9874725ccb70c079058fea5365150843ca51f"
140140
),
141141
.binaryTarget(
142142
name: "OneSignalOSCore",
143-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.0/OneSignalOSCore.xcframework.zip",
144-
checksum: "a7e039b2a43bb88d2e1de3feeac977db5cf941959379ef7a196813a4f9a048da"
143+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.1/OneSignalOSCore.xcframework.zip",
144+
checksum: "b8e2e5dbcc0ef0b3634071fa0d3c8404fb4475c6112e98f033d4bcd675ce33d4"
145145
),
146146
.binaryTarget(
147147
name: "OneSignalCore",
148-
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.0/OneSignalCore.xcframework.zip",
149-
checksum: "b78ec86cbed1f271fe868eaa4cdce6a2ee7de5be514548f9d21e0b122653cde3"
148+
url: "https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.1.1/OneSignalCore.xcframework.zip",
149+
checksum: "801123d53c8aadf51290800361a50394651c2b2852935739b9a7e640ad8def16"
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 @"050100"
49+
#define ONESIGNAL_VERSION @"050101"
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
-25.1 KB
Binary file not shown.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,30 @@
2121
</dict>
2222
<dict>
2323
<key>LibraryIdentifier</key>
24-
<string>ios-arm64</string>
24+
<string>ios-arm64_x86_64-simulator</string>
2525
<key>LibraryPath</key>
2626
<string>OneSignalCore.framework</string>
2727
<key>SupportedArchitectures</key>
2828
<array>
2929
<string>arm64</string>
30+
<string>x86_64</string>
3031
</array>
3132
<key>SupportedPlatform</key>
3233
<string>ios</string>
34+
<key>SupportedPlatformVariant</key>
35+
<string>simulator</string>
3336
</dict>
3437
<dict>
3538
<key>LibraryIdentifier</key>
36-
<string>ios-arm64_x86_64-simulator</string>
39+
<string>ios-arm64</string>
3740
<key>LibraryPath</key>
3841
<string>OneSignalCore.framework</string>
3942
<key>SupportedArchitectures</key>
4043
<array>
4144
<string>arm64</string>
42-
<string>x86_64</string>
4345
</array>
4446
<key>SupportedPlatform</key>
4547
<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/OSDialogInstanceManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ typedef void (^OSDialogActionCompletion)(int tappedActionIndex);
3535
@end
3636

3737
@interface OSDialogInstanceManager : NSObject
38-
+ (void)setSharedInstance:(NSObject<OSDialogPresenter> *_Nonnull)instance;
38+
+ (void)setSharedOSDialogInstance:(NSObject<OSDialogPresenter> *_Nonnull)instance;
3939
+ (NSObject<OSDialogPresenter> *_Nullable)sharedInstance;
4040
@end

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

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -31,52 +31,12 @@
3131
#ifndef OneSignalClient_h
3232
#define OneSignalClient_h
3333

34-
typedef void (^OSDataRequestSuccessBlock)(NSData *data);
35-
36-
typedef void (^OSMultipleCompletionBlock)(NSDictionary *responses);
37-
typedef void (^OSMultipleFailureBlock)(NSDictionary<NSString *, NSError *> *errors);
38-
typedef void (^OSMultipleSuccessBlock)(NSDictionary<NSString *, NSDictionary *> *results);
39-
40-
@interface OneSignalClient : NSObject
41-
+ (OneSignalClient *)sharedClient;
34+
@protocol IOneSignalClient <NSObject>
4235
- (void)executeRequest:(OneSignalRequest *)request onSuccess:(OSResultSuccessBlock)successBlock onFailure:(OSFailureBlock)failureBlock;
43-
- (void)executeSynchronousRequest:(OneSignalRequest *)request onSuccess:(OSResultSuccessBlock)successBlock onFailure:(OSFailureBlock)failureBlock;
44-
45-
// ie. for loading HTML or other non-JSON based requests
46-
- (void)executeDataRequest:(OneSignalRequest *)request onSuccess:(OSDataRequestSuccessBlock)successBlock onFailure:(OSFailureBlock)failureBlock;
47-
48-
// Executes multiple OneSignalRequest's simultaneously, needs a unique identifier for each request
49-
- (void)executeSimultaneousRequests:(NSDictionary<NSString *, OneSignalRequest *> *)requests withSuccess:(OSMultipleSuccessBlock)successBlock onFailure:(OSMultipleFailureBlock)failureBlock;
50-
51-
/*
52-
TODO: We want to eventually migrate over to using this method for executing simultaneous requests:
53-
This allows us to combine multiple async concurrent requests to return from a single callback with the proper formatted responses from each reuqest (successful or not, account for params returning from GETs).
54-
A generalized format should be followed and we should make sure not to break form that as it could break peoples apps in the future if we add params and remove params from this callback.
55-
Currently for the only implementation this is used for "setExternalUserId:withCOmpletion:" the format is as follows:
56-
57-
NSDictionary response = @{
58-
(required) @"push" : {
59-
@"success" : @(true) or @(false)
60-
},
61-
62-
(optional) @"email" : {
63-
@"success" : @(true) or @(false)
64-
}
65-
}
36+
@end
6637

67-
68-
Building off of this format now will require:
69-
70-
1. Including other attributes and whether they are required or not
71-
ex. @"push" is always going to be within the callback resposne (required), meanwhile,
72-
@"email" will not always exist in the callback resposne (optoinal)
73-
74-
2. Can't remove params that are required as an app may be expecting them and removing/modifying a key could break there app with an SDK upgrade
75-
76-
3. Add more requirements...
77-
78-
*/
79-
- (void)executeSimultaneousRequests:(NSDictionary<NSString *, OneSignalRequest *> *)requests withCompletion:(OSMultipleCompletionBlock)completionBlock;
38+
@interface OneSignalClient : NSObject <IOneSignalClient>
39+
+ (OneSignalClient *)sharedClient;
8040
@end
8141

8242
#endif

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

Lines changed: 7 additions & 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 @"050100"
49+
#define ONESIGNAL_VERSION @"050101"
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
@@ -255,6 +255,9 @@ typedef enum {GET, POST, HEAD, PUT, DELETE, OPTIONS, CONNECT, TRACE, PATCH} HTTP
255255

256256
// Defines the maximum delay time for confirmed deliveries
257257
#define MAX_CONF_DELIVERY_DELAY 25.0
258+
259+
// Flush interval for operation repo in milliseconds
260+
#define POLL_INTERVAL_MS 5000
258261
#else
259262
// Test defines for API Client
260263
#define REATTEMPT_DELAY 0.004
@@ -272,6 +275,9 @@ typedef enum {GET, POST, HEAD, PUT, DELETE, OPTIONS, CONNECT, TRACE, PATCH} HTTP
272275
// We don't want to delay confirmed deliveries in unit tests
273276
#define MAX_CONF_DELIVERY_DELAY 0
274277

278+
// Reduce flush interval for operation repo in tests
279+
#define POLL_INTERVAL_MS 100
280+
275281
#endif
276282

277283
// A max timeout for a request, which might include multiple reattempts

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,11 @@
5656
#import <OneSignalCore/OneSignalWrapper.h>
5757
#import <OneSignalCore/OSInAppMessages.h>
5858
#import <OneSignalCore/OSLocation.h>
59+
60+
// TODO: Testing: Should this class be defined in this file?
61+
@interface OneSignalCore : NSObject
62+
63+
+ (void)setSharedClient:(nonnull id<IOneSignalClient>)client;
64+
+ (nonnull id<IOneSignalClient>)sharedClient;
65+
66+
@end

0 commit comments

Comments
 (0)