Skip to content

Commit e410b7c

Browse files
onesignal-deployfadi-georgegithub-actions[bot]
authored
chore: Release 5.5.0 (#1133)
Co-authored-by: Fadi George <fadii925@gmail.com> Co-authored-by: github-actions[bot] <noreply@onesignal.com>
1 parent ded4677 commit e410b7c

File tree

10 files changed

+18
-20
lines changed

10 files changed

+18
-20
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ jobs:
158158
sed -i '' "s/^version:.*/version: $NEW_VERSION/" pubspec.yaml
159159
echo "✓ Updated pubspec.yaml version to ${NEW_VERSION}"
160160
161+
# Update podspec version
162+
sed -i '' "s|s\.version[[:space:]]*=[[:space:]]*'[^']*'|s.version = '${NEW_VERSION}'|" ios/onesignal_flutter.podspec
163+
echo "✓ Updated ios/onesignal_flutter.podspec version to ${NEW_VERSION}"
164+
165+
# Update android build.gradle version
166+
sed -i '' "s|^version '[^']*'|version '${NEW_VERSION}'|" android/build.gradle
167+
echo "✓ Updated android/build.gradle version to ${NEW_VERSION}"
168+
161169
# Update OneSignalPlugin.java wrapper version
162170
sed -i '' "s/OneSignalWrapper\.setSdkVersion(\"[^\"]*\")/OneSignalWrapper.setSdkVersion(\"$WRAPPER_VERSION\")/g" android/src/main/java/com/onesignal/flutter/OneSignalPlugin.java
163171

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.onesignal.flutter'
2-
version '5.3.4'
2+
version '5.5.0'
33

44
buildscript {
55
repositories {

android/src/main/java/com/onesignal/flutter/OneSignalPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private void init(Context context, BinaryMessenger messenger) {
2424
this.messenger = messenger;
2525
OneSignalWrapper.setSdkType("flutter");
2626
// For 5.0.0, hard code to reflect SDK version
27-
OneSignalWrapper.setSdkVersion("050406");
27+
OneSignalWrapper.setSdkVersion("050500");
2828

2929
channel = new MethodChannel(messenger, "OneSignal");
3030
channel.setMethodCallHandler(this);

examples/demo/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- onesignal_flutter (5.3.4):
3+
- onesignal_flutter (5.5.0):
44
- Flutter
55
- OneSignalXCFramework (= 5.5.0)
66
- OneSignalXCFramework (5.5.0):
@@ -78,7 +78,7 @@ EXTERNAL SOURCES:
7878

7979
SPEC CHECKSUMS:
8080
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
81-
onesignal_flutter: fa28e94a7baa3cd8b503fc4d760103405882f47f
81+
onesignal_flutter: 786a2ae8d69120f3041f0f1de326bee63b319e3e
8282
OneSignalXCFramework: 943852e7d70d719f73e9669d48620aeec1b93022
8383
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
8484
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b

examples/demo/lib/widgets/sections/live_activities_section.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,6 @@ class _LiveActivitiesSectionState extends State<LiveActivitiesSection> {
8282
: () => vm.updateLiveActivity(),
8383
),
8484
AppSpacing.gapBox,
85-
SizedBox(
86-
width: double.infinity,
87-
child: OutlinedButton(
88-
onPressed: activityEmpty ? null : () => vm.exitLiveActivity(),
89-
style: OutlinedButton.styleFrom(
90-
foregroundColor: AppColors.osPrimary,
91-
side: const BorderSide(color: AppColors.osPrimary),
92-
),
93-
child: const Text('STOP UPDATING LIVE ACTIVITY'),
94-
),
95-
),
96-
AppSpacing.gapBox,
9785
SizedBox(
9886
width: double.infinity,
9987
child: OutlinedButton(

ios/onesignal_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'onesignal_flutter'
6-
s.version = '5.3.4'
6+
s.version = '5.5.0'
77
s.summary = 'The OneSignal Flutter SDK'
88
s.description = 'Allows you to easily add OneSignal to your flutter projects, to make sending and handling push notifications easy'
99
s.homepage = 'https://www.onesignal.com'

ios/onesignal_flutter/Sources/onesignal_flutter/OneSignalPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ + (instancetype)sharedInstance {
5656
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
5757

5858
OneSignalWrapper.sdkType = @"flutter";
59-
OneSignalWrapper.sdkVersion = @"050406";
59+
OneSignalWrapper.sdkVersion = @"050500";
6060
[OneSignal initialize:nil withLaunchOptions:nil];
6161

6262
OneSignalPlugin.sharedInstance.channel =

lib/src/liveactivities.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class OneSignalLiveActivities {
55
// private channels used to bridge to ObjC/Java
66
MethodChannel _channel = const MethodChannel('OneSignal#liveactivities');
77

8-
/// Indicate this device has exited a live activity, identified within OneSignal by the [activityId]. The
8+
/// Indicate this device has entered a live activity, identified within OneSignal by the [activityId]. The
99
/// [token] is the ActivityKit's update token that will be used to update the live activity.
1010
///
1111
/// Only applies to iOS.
@@ -19,6 +19,7 @@ class OneSignalLiveActivities {
1919
/// Indicate this device has exited a live activity, identified within OneSignal by the [activityId].
2020
///
2121
/// Only applies to iOS.
22+
@Deprecated('Currently unsupported, avoid using this method.')
2223
Future<void> exitLiveActivity(String activityId) async {
2324
if (defaultTargetPlatform == TargetPlatform.iOS) {
2425
return await _channel.invokeMethod(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: onesignal_flutter
22
description: OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
3-
version: 5.4.6
3+
version: 5.5.0
44
homepage: https://github.com/OneSignal/OneSignal-Flutter-SDK
55

66
# Uses rps package for scripts

test/liveactivities_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void main() {
3939

4040
group('exitLiveActivity', () {
4141
test('invokes OneSignal#exitLiveActivity with activityId', () async {
42+
// ignore: deprecated_member_use_from_same_package
4243
await liveActivities.exitLiveActivity(activityId);
4344

4445
expect(channelController.state.liveActivityExited, true);

0 commit comments

Comments
 (0)