Skip to content

Commit

Permalink
Release commit to 3.1.0
Browse files Browse the repository at this point in the history
* Update Android to 4.4.1
* Update iOS to 3.5.3, update Notification Service to new didReceiveNotificationExtensionRequest method
  • Loading branch information
Jeasmine committed Jul 13, 2021
1 parent f9da702 commit 6cc8416
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 17 deletions.
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.onesignal.flutter'
version '3.0.0'
version '3.1.0'

buildscript {
repositories {
Expand Down Expand Up @@ -34,7 +34,7 @@ android {
}

dependencies {
api 'com.onesignal:OneSignal:4.4.0'
api 'com.onesignal:OneSignal:4.4.1'
}

// Adds required manifestPlaceholders keys to allow mainifest merge gradle step to complete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,7 @@ - (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withConte
self.contentHandler = contentHandler;
self.bestAttemptContent = [request.content mutableCopy];

[OneSignal didReceiveNotificationExtensionRequest:self.receivedRequest withMutableNotificationContent:self.bestAttemptContent];

// DEBUGGING: Uncomment the 2 lines below and comment out the one above to ensure this extension is excuting
// Note, this extension only runs when mutable-content is set
// Setting an attachment or action buttons automatically adds this
// NSLog(@"Running NotificationServiceExtension");
// self.bestAttemptContent.body = [@"[Modified] " stringByAppendingString:self.bestAttemptContent.body];

self.contentHandler(self.bestAttemptContent);
[OneSignal didReceiveNotificationExtensionRequest:self.receivedRequest withMutableNotificationContent:self.bestAttemptContent withContentHandler:self.contentHandler];
}

- (void)serviceExtensionTimeWillExpire {
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ target 'Runner' do
end

target 'OneSignalNotificationServiceExtension' do
pod 'OneSignalXCFramework', '3.4.4'
pod 'OneSignalXCFramework', '3.5.3'
end

post_install do |installer|
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dev_dependencies:
sdk: flutter

onesignal_flutter:
path: ^3.0.0
path: ^3.1.0

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/OneSignalPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#import <Flutter/Flutter.h>
#import <OneSignal/OneSignal.h>

@interface OneSignalPlugin : NSObject<FlutterPlugin, OSSubscriptionObserver, OSPermissionObserver, OSEmailSubscriptionObserver>
@interface OneSignalPlugin : NSObject<FlutterPlugin, OSSubscriptionObserver, OSPermissionObserver, OSEmailSubscriptionObserver, OSSMSSubscriptionObserver>

// Do NOT initialize instances of this class.
// You must only reference the shared instance.
Expand Down
4 changes: 2 additions & 2 deletions ios/onesignal_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
Pod::Spec.new do |s|
s.name = 'onesignal_flutter'
s.version = '3.0.0'
s.version = '3.1.0'
s.summary = 'The OneSignal Flutter SDK'
s.description = 'Allows you to easily add OneSignal to your flutter projects, to make sending and handling push notifications easy'
s.homepage = 'https://www.onesignal.com'
Expand All @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'OneSignalXCFramework', '3.4.4'
s.dependency 'OneSignalXCFramework', '3.5.3'
s.ios.deployment_target = '9.0'
s.static_framework = true
end
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: onesignal_flutter
description: OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
version: 3.0.0
version: 3.1.0
author: Brad Hesse <brad@onesignal.com>, Josh Kasten <josh@onesignal.com>
homepage: https://github.com/OneSignal/OneSignal-Flutter-SDK

Expand Down

0 comments on commit 6cc8416

Please sign in to comment.