Skip to content

Commit 2457135

Browse files
authored
Merge pull request #987 from OneSignal/release-3.7.0
Release 3.7.0
2 parents 7673c5a + 4164af4 commit 2457135

File tree

18 files changed

+97
-22
lines changed

18 files changed

+97
-22
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 = "3.6.2"
3+
s.version = "3.7.0"
44
s.summary = "OneSignal push notification library for mobile apps."
55
s.homepage = "https://onesignal.com"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

OneSignalDynamic.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 = "OneSignalDynamic"
3-
s.version = "3.6.2"
3+
s.version = "3.7.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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "OneSignalXCFramework"
3-
s.version = "3.6.2"
4-
s.summary = "OneSignal push notification library for mobile apps."
3+
s.version = "3.7.0"
4+
r s.summary = "OneSignal push notification library for mobile apps."
55
s.homepage = "https://onesignal.com"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }
77
s.author = { "Joseph Kalash" => "[email protected]", "Josh Kasten" => "[email protected]" , "Brad Hesse" => "[email protected]"}

iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ typedef NS_ENUM(NSUInteger, OSNotificationActionType) {
156156

157157
@end;
158158

159+
@interface OSInAppMessage : NSObject
160+
161+
@property (strong, nonatomic, nonnull) NSString *messageId;
162+
163+
@end
164+
159165
@interface OSInAppMessageOutcome : NSObject
160166

161167
@property (strong, nonatomic, nonnull) NSString *name;
@@ -210,6 +216,14 @@ typedef NS_ENUM(NSUInteger, OSNotificationActionType) {
210216
- (void)handleMessageAction:(OSInAppMessageAction * _Nonnull)action NS_SWIFT_NAME(handleMessageAction(action:));
211217
@end
212218

219+
@protocol OSInAppMessageLifecycleHandler <NSObject>
220+
@optional
221+
- (void)onWillDisplayInAppMessage:(OSInAppMessage *)message;
222+
- (void)onDidDisplayInAppMessage:(OSInAppMessage *)message;
223+
- (void)onWillDismissInAppMessage:(OSInAppMessage *)message;
224+
- (void)onDidDismissInAppMessage:(OSInAppMessage *)message;
225+
@end
226+
213227
// Pass in nil means a notification will not display
214228
typedef void (^OSNotificationDisplayResponse)(OSNotification* _Nullable notification);
215229
/* OneSignal Influence Types */
@@ -472,6 +486,7 @@ typedef void (^OSInAppMessageClickBlock)(OSInAppMessageAction * _Nonnull action)
472486
+ (void)setNotificationWillShowInForegroundHandler:(OSNotificationWillShowInForegroundBlock _Nullable)block;
473487
+ (void)setNotificationOpenedHandler:(OSNotificationOpenedBlock _Nullable)block;
474488
+ (void)setInAppMessageClickHandler:(OSInAppMessageClickBlock _Nullable)block;
489+
+ (void)setInAppMessageLifecycleHandler:(NSObject<OSInAppMessageLifecycleHandler> *_Nullable)delegate;
475490

476491
#pragma mark Post Notification
477492
+ (void)postNotification:(NSDictionary* _Nonnull)jsonData;
Binary file not shown.

iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework/Info.plist

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_x86_64-maccatalyst</string>
9+
<string>ios-arm64_armv7_armv7s</string>
1010
<key>LibraryPath</key>
1111
<string>OneSignal.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>x86_64</string>
15+
<string>armv7</string>
16+
<string>armv7s</string>
1617
</array>
1718
<key>SupportedPlatform</key>
1819
<string>ios</string>
19-
<key>SupportedPlatformVariant</key>
20-
<string>maccatalyst</string>
2120
</dict>
2221
<dict>
2322
<key>LibraryIdentifier</key>
@@ -37,17 +36,18 @@
3736
</dict>
3837
<dict>
3938
<key>LibraryIdentifier</key>
40-
<string>ios-arm64_armv7_armv7s</string>
39+
<string>ios-arm64_x86_64-maccatalyst</string>
4140
<key>LibraryPath</key>
4241
<string>OneSignal.framework</string>
4342
<key>SupportedArchitectures</key>
4443
<array>
4544
<string>arm64</string>
46-
<string>armv7</string>
47-
<string>armv7s</string>
45+
<string>x86_64</string>
4846
</array>
4947
<key>SupportedPlatform</key>
5048
<string>ios</string>
49+
<key>SupportedPlatformVariant</key>
50+
<string>maccatalyst</string>
5151
</dict>
5252
</array>
5353
<key>CFBundlePackageType</key>

iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework/ios-arm64_armv7_armv7s/OneSignal.framework/Headers/OneSignal.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ typedef NS_ENUM(NSUInteger, OSNotificationActionType) {
156156

157157
@end;
158158

159+
@interface OSInAppMessage : NSObject
160+
161+
@property (strong, nonatomic, nonnull) NSString *messageId;
162+
163+
@end
164+
159165
@interface OSInAppMessageOutcome : NSObject
160166

161167
@property (strong, nonatomic, nonnull) NSString *name;
@@ -210,6 +216,14 @@ typedef NS_ENUM(NSUInteger, OSNotificationActionType) {
210216
- (void)handleMessageAction:(OSInAppMessageAction * _Nonnull)action NS_SWIFT_NAME(handleMessageAction(action:));
211217
@end
212218

219+
@protocol OSInAppMessageLifecycleHandler <NSObject>
220+
@optional
221+
- (void)onWillDisplayInAppMessage:(OSInAppMessage *)message;
222+
- (void)onDidDisplayInAppMessage:(OSInAppMessage *)message;
223+
- (void)onWillDismissInAppMessage:(OSInAppMessage *)message;
224+
- (void)onDidDismissInAppMessage:(OSInAppMessage *)message;
225+
@end
226+
213227
// Pass in nil means a notification will not display
214228
typedef void (^OSNotificationDisplayResponse)(OSNotification* _Nullable notification);
215229
/* OneSignal Influence Types */
@@ -472,6 +486,7 @@ typedef void (^OSInAppMessageClickBlock)(OSInAppMessageAction * _Nonnull action)
472486
+ (void)setNotificationWillShowInForegroundHandler:(OSNotificationWillShowInForegroundBlock _Nullable)block;
473487
+ (void)setNotificationOpenedHandler:(OSNotificationOpenedBlock _Nullable)block;
474488
+ (void)setInAppMessageClickHandler:(OSInAppMessageClickBlock _Nullable)block;
489+
+ (void)setInAppMessageLifecycleHandler:(NSObject<OSInAppMessageLifecycleHandler> *_Nullable)delegate;
475490

476491
#pragma mark Post Notification
477492
+ (void)postNotification:(NSDictionary* _Nonnull)jsonData;

iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework/ios-arm64_i386_x86_64-simulator/OneSignal.framework/Headers/OneSignal.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ typedef NS_ENUM(NSUInteger, OSNotificationActionType) {
156156

157157
@end;
158158

159+
@interface OSInAppMessage : NSObject
160+
161+
@property (strong, nonatomic, nonnull) NSString *messageId;
162+
163+
@end
164+
159165
@interface OSInAppMessageOutcome : NSObject
160166

161167
@property (strong, nonatomic, nonnull) NSString *name;
@@ -210,6 +216,14 @@ typedef NS_ENUM(NSUInteger, OSNotificationActionType) {
210216
- (void)handleMessageAction:(OSInAppMessageAction * _Nonnull)action NS_SWIFT_NAME(handleMessageAction(action:));
211217
@end
212218

219+
@protocol OSInAppMessageLifecycleHandler <NSObject>
220+
@optional
221+
- (void)onWillDisplayInAppMessage:(OSInAppMessage *)message;
222+
- (void)onDidDisplayInAppMessage:(OSInAppMessage *)message;
223+
- (void)onWillDismissInAppMessage:(OSInAppMessage *)message;
224+
- (void)onDidDismissInAppMessage:(OSInAppMessage *)message;
225+
@end
226+
213227
// Pass in nil means a notification will not display
214228
typedef void (^OSNotificationDisplayResponse)(OSNotification* _Nullable notification);
215229
/* OneSignal Influence Types */
@@ -472,6 +486,7 @@ typedef void (^OSInAppMessageClickBlock)(OSInAppMessageAction * _Nonnull action)
472486
+ (void)setNotificationWillShowInForegroundHandler:(OSNotificationWillShowInForegroundBlock _Nullable)block;
473487
+ (void)setNotificationOpenedHandler:(OSNotificationOpenedBlock _Nullable)block;
474488
+ (void)setInAppMessageClickHandler:(OSInAppMessageClickBlock _Nullable)block;
489+
+ (void)setInAppMessageLifecycleHandler:(NSObject<OSInAppMessageLifecycleHandler> *_Nullable)delegate;
475490

476491
#pragma mark Post Notification
477492
+ (void)postNotification:(NSDictionary* _Nonnull)jsonData;

0 commit comments

Comments
 (0)