From 399d38ef97589e9fea3d679be82b959657afc062 Mon Sep 17 00:00:00 2001 From: Fadi George Date: Mon, 2 Feb 2026 10:23:43 -0800 Subject: [PATCH 1/3] remove unneeded changelog --- .../Assets/OneSignal/CHANGELOG.md | 754 ------------------ .../Assets/OneSignal/CHANGELOG.md.meta | 7 - 2 files changed, 761 deletions(-) delete mode 100644 OneSignalExample/Assets/OneSignal/CHANGELOG.md delete mode 100644 OneSignalExample/Assets/OneSignal/CHANGELOG.md.meta diff --git a/OneSignalExample/Assets/OneSignal/CHANGELOG.md b/OneSignalExample/Assets/OneSignal/CHANGELOG.md deleted file mode 100644 index 529ef4055..000000000 --- a/OneSignalExample/Assets/OneSignal/CHANGELOG.md +++ /dev/null @@ -1,754 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [5.2.0] - -Channels: Current - -### ๐ŸŽ‰ Custom Events Support - -This release introduces Custom Events support for the unity sdk. - -Please see documentation on [Custom Events](https://documentation.onesignal.com/docs/mobile-sdk-reference#trackevent). - -### ๐Ÿš€ New Features - -- feat: add custom events support (#845) - -### ๐Ÿ› ๏ธ Native Dependency Updates - -- Update Android SDK from 5.4.2 to 5.6.1 - - fix: custom events now handle null object within the event properties (https://github.com/OneSignal/OneSignal-Android-SDK/pull/2537) - - feat: ๐ŸŽ‰ introduces Custom Events Support for the Android SDK. To get started with using Custom Events, please contact [support@onesignal.com](mailto:support@onesignal.com) to enable this feature for your app. Please see documentation on [Custom Events](https://documentation.onesignal.com/docs/mobile-sdk-reference#trackevent). - - feat: IAMs now display when triggers added before first fetch ([#2528](https://github.com/OneSignal/OneSignal-Android-SDK/issues/2528)) - - fix: end initialization early if device storage is locked ([#2520](https://github.com/OneSignal/OneSignal-Android-SDK/issues/2520)) - *** - - feature: Exposing accessors thru suspend ([#2502](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2502)) - - fix: a rare NPE from PermissionViewModel introduced in 5.4.0 ([#2504](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2504)) - - fix: NPE in SyncJobService since 5.4 ([#2500](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2500)) - - fix: Rare User and Subscription creates and updates processing out of order (introduced in 5.4.0) ([#2419](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2419)) - - fix: Remove throwing "initWithContext was not called or timed out", introduced in 5.4.0 ([#2408](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2408)) - - Improvement: failure message shows that appID is missing ([#2506](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2506)) - - improvement: Offloaded work on background threads. ([#2394](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2394)) - *** -- Update iOS SDK from 5.2.16 to 5.4.0 - - feat: IAMs now display when triggers added before first fetch ([OneSignal-iOS-SDK#1635](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1635)) - - fix: use locale-independent formatting for purchase prices ([OneSignal-iOS-SDK#1634](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1634)) - - It is recommended to test this beta version with a new iOS-only app, as Identity Verification is not yet supported on the OneSignal Android and Web SDKs. - - Enabling Identity Verification in the dashboard will affect all existing app installations using the OneSignal user model SDKs. - - Please test thoroughly prior to production use, and reach out with any questions, feedback, or concerns. - - While emails and sms numbers can be added using the SDK, removing them is not yet supported. - - Live Activities is not yet supported. - - Rebased to 5.2.14 for more bug fixes and stability improvement. - - add public log listener methods (see PR for usage) #1576 - - It is recommended to test this beta version with a new iOS-only app, as Identity Verification is not yet supported on the OneSignal Android and Web SDKs. - - Enabling Identity Verification in the dashboard will affect all existing app installations using the OneSignal user model SDKs. - - Please test thoroughly prior to production use, and reach out with any questions, feedback, or concerns. - - While emails and sms numbers can be added using the SDK, removing them is not yet supported. - - Live Activities is not yet supported. - -## [5.1.16] - -Channels: Current - -### ๐Ÿ› ๏ธ Native Dependency Updates - -- Update Android SDK from 5.1.37 to 5.4.2 - - feat: Enable docs ([#2507](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2507)) - - bug: catch exception if opening a notification fails ([#2508](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2508)) - - fix: IAM with NOT_EQUAL_TO trigger always shows up ([#2509](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2509)) - - fix: NPE when setting timezone on app focus ([#2505](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2505)) - - fix: send receive receipt even when preventDefault is called ([#2512](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2512)) - - chore: Kotlin 1.9 update ([#2403](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2403)) - - chore: Bump firebase-messaging to 24.0.0 ([#2149](https://github.com/OneSignal/OneSignal-Android-SDK/pull/2149)) - *** -- Update iOS SDK from 5.2.14 to 5.2.16 - - Feat: live activities click events ([OneSignal-iOS-SDK#1593](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1593)) - - fix: Retry IAM fetch when OneSignal ID becomes available ([OneSignal-iOS-SDK#1626](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1626)) - - fix: NotEqualTo trigger no longer matches non-existent properties ([OneSignal-iOS-SDK#1625](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1625)) - - fix: Remove exposing var and let macros ([OneSignal-iOS-SDK#1622](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1622)) - - fix: forward declarations for Objective-C++ compatibility ([OneSignal-iOS-SDK#1621](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1621)) - - Add confirmed deliveries for live activities notifications for OneSignal-aware activities (https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1592) - - New Log Listener methods to allow an app developer to capture logs as strings at runtime. The log listener is independent of logLevel, all message are always sent to listeners. Please see linked PR for example usage (https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1580) - - Prevent extra server calls to send duplicate live activity requests (https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1589) - - Fix an `NSInvalidArgumentException` that happens on rare occasions when localized description is not copied properly (https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1594) - -## [5.1.15] - -### Changed - -- Updated included Android SDK from 5.1.31 to [5.1.37](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.37) - - [Fix] IAM not shown when calling login immediately after init - - [Fix] IAM now showing after switching to 3-button-navigation mode - - [Fix] very rare bug where app doesn't opening from notification tap when it cold starts the app - - [Fix] NPE when accessing WindowInsets used in isKeyboardUp() - - [Fix] NotificationOpenedActivity "freeze" when a large amount of notification is clicked - - [Fix] Crash when adding alias with some labels - - [Fix] Crashes with Amazon IAP tracking by dropping support for this - - [Fix] Push subscription observers not firing - - [Fix] Handle in-app messages dismissed by back press - - [Fix] Android 7 and lower crashes with getParameterCount calls - - [Fix] Logout incorrectly uses the old subscription ID - - [Fix] NPE in PermissionsActivity - - [Fix] Fix parsing subscriptions from server, and improve handling of deleted push subscriptions - - [Fix] Multiple create subscription operations exist without token - - [Fix] Finishing the activity on main thread when a notification is opened - - [Feature] Adds the following new public methods (#2311): - - OneSignal.Debug.addLogListener - - OneSignal.Debug.removeLogListener - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.2.10 to [5.2.14](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.2.14) - - [Fix] Synchronize to fix crashes in the user module - - [Fix] Prevent deadlocks when user manager runs its startup tasks - - [Fix] Bug when notification has badge set to zero - - [Fix] drop deprecated applicationIconBadgeNumber usage - - [Improvement] Ensure push tokens are registered for existing Live Activities during setup - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.14] - -### Changed - -- [Fix] Missing .meta Android Migration files Unity editor error - -## [5.1.13] - -### Changed - -- Updated included Android SDK from 5.1.26 to [5.1.31](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.31) - - [Compatibility] Unity 6 build error with Android - - [Fix] Incorrect activity path for NotificationOpenedActivityHMS - - [Fix] Anonymous Login request not cleared if app is forced close within 5 seconds on a new install - - [Fix] V4 to v5 upgrade will migrate app ID - - [Fix] Notification click not foreground the app in the first click if app is closed and no clickListener is added - - [Fix] Subscription/IAM not updated after upgrading from 5.2.0-beta or between 5.1.9 to 5.1.27 - - [Fix] ANR caused by model.add(), model.initializeFromJson(), or modelstore.load() - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.2.9 to [5.2.10](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.2.10) - - [Fix] Requiring privacy consent blocks confirmed deliveries indefinitely - - [Fix] Detect for timezone changes and update the user - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.12] - -### Changed - -- Updated included Android SDK from 5.1.25 to [5.1.26](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.26) - - [Fix] ANR caused by operationRepo.enqueue while loading is in progress - - [Fix] Check subscription Id before executing delete and update subscription operations - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.2.8 to [5.2.9](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.2.9) - - [Fix] Use new OneSignalClientError type for callbacks which fixes crash report of NSInvalidArgumentException - - [Fix] Donโ€™t evaluate in app messages when paused which fixes issues with duration-since-last In-App Messages when pausing and unpausing - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.11] - -### Changed - -- Updated included Android SDK from 5.1.24 to [5.1.25](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.25) - - Fix NullPointerException from getScheduleBackgroundRunIn - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.2.7 to [5.2.8](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.2.8) - - Fix [__NSPlaceholderDictionary initWithObjects:forKeys:count:] crashes caused by nil HTTPResponse headers - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.10] - -### Changed - -- Updated included Android SDK from 5.1.21 to [5.1.24](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.24) - - Pausing in-app messages now dismisses any currently displaying in-app messages - - Fix setting consentGiven throwing if called before initWithContext - - Fix BadTokenException and WindowLeaked exception caused by showing a dialog on a finishing or destroyed activity - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.2.4 to [5.2.7](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.2.7) - - Pausing in-app messages now dismisses any currently displaying in-app messages - - Don't use cached in-app messages if the SDK encounters an error fetching them or when the server returns none - - Improve segment membership calculation that allows for fetching more accurate and updated in-app messages for a user - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.9] - -### Changed - -- Updated included Android SDK from 5.1.20 to [5.1.21](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.21) - - Fix ending an already ended session - - Fix permissions returned by onRequestPermissionResult when the list is empty - - Fix keyboard input in HTML in-app messages - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) - -## [5.1.8] - -### Changed - -- Updated included Android SDK from 5.1.17 to [5.1.20](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.20) - - Optimized the initialization process by moving some service initialization to a background thread - - Recover null onesignal ID crashes for Operations - - Add option to default to HMS over FCM - - Prevent retrying IAM display if 410 is received from backend - - Fix dynamic triggers showing IAM repeatedly after being dismissed - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.2.2 to [5.2.4](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.2.4) - - Handle incorrect `404` by delaying making updates to new users or subscriptions - - The user executor needs to uncache first which fixes some cached requests being dropped for past users - - Omit misleading fatal-level log for cross-platform SDKs - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.7] - -### Changed - -- Updated SDK to support Live Activities PushToStart and added a concept of a "Default" Live Activity to facilitate easier adoption. Please check out https://documentation.onesignal.com/docs/push-to-start-live-activities for more information and our [example app](https://github.com/OneSignal/OneSignal-Unity-SDK/tree/main/OneSignalExample) for an example implementation. -- Updated included Android SDK from 5.1.13 to [5.1.17](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.17) - - Fixed Xiaomi notification click not foregrounding app - - Fixed FCM push token not being refreshed - - Poll for notification permission changes to detect permission change when prompting outside of OneSignal - - Cold start creates new session and refreshes the user from the server - - Immediately process pending operations when privacy consent goes from false to true - - Fixed OneSignal.Notifications.RequestPermissionAsync() not firing when permission was already granted - - Fixed Operation Model Store adding duplicate operations when the same ones that were previously added to the store and persisted, are re-read from cache - - Fixed a bug causing clicking an unexpanded group notification results in only registering the click result for the final notification in the group - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.2.0 to [5.2.2](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.2.2) - - Prevent In-App Message request crashes by making null values safe - - Added Dispatch Queues to all executors to prevent concurrency crashes - - Fixed clearing notifications incorrectly such as when pulling down the notification center - - Fixed a purchases bug for the amount spent - - Fixed a build issue for mac catalyst - - Fixed crash when IAM window fails to load by using the main thread - - Network call optimizations: Combine user property updates for network call improvements - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -### Fixed - -- Additional instance of OneSignal error when calling OneSignal methods in Awake() -- iOS Mac Catalyst build error: Use of undeclared identifier 'OneSignalLiveActivitiesManagerImpl' - -## [5.1.6] - -### Fixed - -- iOS build error: No type or protocol named OSLiveActivities - -## [5.1.5] - -### Changed - -- Updated included Android SDK from 5.1.10 to [5.1.13](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.13) - - Fixed the ANR issue caused by prolonged loading of OperationRepo and potentially by extended holding of the model lock during disk I/O read operations - - Fixed IndexOutOfBounds exception thrown from OperationRepo.loadSavedOperations if app was opened offline, some operations done, and then the app is opened again - - Targets JDK11 instead of JDK21 to address build errors encountered on certain development environments using JDK versions below 21 - - Fixed grouping skipping opRepoPostCreateDelay, causing operations being applied out of order when multiple login operations are pending - - Fixed cancelling permission request dialog not firing continuation - - Fixed RecoverFromDroppedLoginBug not running in very rare cases - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.1.6 to [5.2.0](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.2.0) - - Added additional 6 privacy manifests to the 6 sub-targets that are included in the primary targets clients import - - Updated User Defaults API reason to include app groups for appropriate modules - - Fixed rare scenario of dropping data when multiple logins are called - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.4] - -### Changed - -- Updated included Android SDK from 5.1.9 to [5.1.10](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.10) - - Handle incorrect 404 responses; add a delay after creates and retries on 404 of new ids - - Added network call optimizations - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.1.5 to [5.1.6](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.6) - - Fixed pending properties from being sent to the incorrect user when quickly changing users - - Fixed crashes when encoding user models - - Fixed crash in OneSignalAttachmentHandler trimURLSpacing method - - Fixed crash when handling a dialog result - - Removed IAM window when an in app message is inactive - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.3] - -### Changed - -- Updated included Android SDK from 5.1.8 to [5.1.9](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.9) - - Added AndroidManifest option to override In-App Messages gray overlay and dropshadow - - \ - - \ - - Fixed WorkManager not initialized crash - - Fixed don't re-create user on failed remove alias - - Added network call optimizations - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.1.4 to [5.1.5](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.5) - - Added plist option to hide gray overlay and disable dropshadow for In-App Messages - - OneSignal_in_app_message_hide_gray_overlay - - OneSignal_in_app_message_hide_drop_shadow - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.2] - -### Changed - -- Updated included Android SDK from 5.1.6 to [5.1.8](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.8) - - Fixed externalId being skipped and updates to stop if something updates the User (such as addTag) shortly before login is called - - Fixed optIn() not prompting if called before push subscription is created on backend - - Fixed crash with EventProducer's fire events - - Fixed context not being set on all entry points - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-Android-SDK/releases) -- Updated included iOS SDK from 5.1.3 to [5.1.4](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.4) - - Signed XCFrameworks - - Fixed stuck login requests - - For full changes, see the [native release notes](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) - -## [5.1.1] - -### Changed - -- Updated included Android SDK to [5.1.6](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.6) -- Updated included iOS SDK to [5.1.3](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.3) - -## [5.1.0] - -### Fixed - -- iOS crash when calling OneSignal.User.PushSubscription.Id and OneSignal.User.PushSubscription.Token when they are null. - -### Changed - -- Add public getters for OneSignalId and ExternalId in the User namespace -- Add public event handler OneSignal.User.Changed that fires when the OneSignalId or ExternalId changes -- Updated included Android SDK to [5.1.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.5) - -## [5.0.6] - -### Fixed - -- Duplicate symbol errors when building with other iOS plugins -- Removed READ_PHONE_STATE permission in Android builds. Delete your OneSignalConfig.androidlib and run the - "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to apply the fix. -- Fixed lower build-tools versions being needed for Android builds. Delete your OneSignalConfig.androidlib and run the - "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to apply the fix. - -### Changed - -- Updated included Android SDK to [5.1.2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.1.2). - - Android builds now require the Target API Level to be set to 33 or higher. -- Updated included iOS SDK to [5.1.0](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.1.0) - -## [5.0.5] - -### Changed - -- Add public get tags method -- Updated included Android SDK to [5.0.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.5) -- Updated included iOS SDK to [5.0.5](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.5) - -### Fixed - -- Included meta files in OneSignalConfig.androidlib to prevent asset from being ignored -- Package download url in the "Sync example code bundle package" step from the OneSignal SDK Setup - -## [5.0.4] - -### Changed - -- Updated included Android SDK to [5.0.3](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.3) - -## [5.0.3] - -### Changed - -- `InstallEdm4uStep` now imports version [1.2.177](https://github.com/googlesamples/unity-jar-resolver/releases/tag/v1.2.177) of [EDM4U](https://github.com/googlesamples/unity-jar-resolver) -- Updated included Android SDK to [5.0.2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.2) -- Updated included iOS SDK to [5.0.2](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.2) -- `OneSignalConfig.plugin` has been changed to `OneSignalConfig.androidlib`. Run the "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup** to migrate. Custom notification icons are now located in `Assets/Plugins/Android/OneSignalConfig.androidlib/src/main/res` - -### Fixed - -- Sending VSAttribution data from the editor -- iOS notifications clicked event firing if the app was cold started from clicking a notification -- ClassNotFoundException: com.onesignal.OneSignal for Android builds with minify enabled. You must run the "Copy Android plugin to Assets" step in **Window > OneSignal SDK Setup**. -- Disabled bitcode to avoid iOS build error - -## [5.0.2] - -### Fixed - -- Stop foreground notifications from displaying after calling prevent default on iOS - -## [5.0.1] - -### Fixed - -- Push subscription Id and Token malloc error on iOS - -## [5.0.0] - -### Changed - -- Removed `SetLaunchURLsInApp` -- Removed async from location request permission and updated method name to `RequestPermission` -- Updated included iOS SDK to [5.0.1](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.1) -- Updated included Android SDK to [5.0.0](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0) -- Updated default OneSignal Android notification icons to new logo - -### Fixed - -- NoSuchMethodError for outcome methods on Android -- Completion check for the Copy Android plugin to Assets setup step - -## [5.0.0-beta.3] - -### Changed - -- Updated `Notifications`, `InAppMessages`, and `User` models to have Pascal Case properties -- Updated public API. Please see the updated [migration guide](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.3/MIGRATION_GUIDE_v3_to_v5.md) for the most up to date signatures. -- Updated included Android SDK to [5.0.0-beta4](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0-beta4) -- Updated included iOS SDK to [5.0.0-beta-04](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.0-beta-04) - -## [5.0.0-beta.2] - -### Added - -- SDK type and version to api headers - -### Changed - -- Updated included Android SDK to [5.0.0-beta2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0-beta2) -- Updated included iOS SDK to [5.0.0-beta-02](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.0-beta-02) - -## [5.0.0-beta.1] - -### Added - -- [Migration guide](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.1/MIGRATION_GUIDE_v3_to_v5.md) for updating from 3.x.x to 5.x.x - -### Changed - -- Overhauled public API of the SDK to a user-centered model. While this release is in beta please see our included [example MonoBehaviour](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/5.0.0-beta.1/OneSignalExample/Assets/OneSignal/Example/OneSignalExampleBehaviour.cs) for usage. -- Updated included Android SDK to [5.0.0-beta1](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/5.0.0-beta1) -- Updated included iOS SDK to [5.0.0-beta-01](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/5.0.0-beta-01) - -If you run into any problems, please donโ€™t hesitate to add to this [issue](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/585)! - -## [3.0.11] - -### Fixed - -- Fixed rare Android ANRs on callbacks firing and also when backgrounding the app. - -## [3.0.10] - -### Changed - -- Updated included Android SDK to [4.8.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.8.5) -- Updated included iOS SDK to [3.12.4](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.12.4) - -### Fixed - -- Fixed InstallEdm4uStep to work with UPM EDM4U installations - -## [3.0.9] - -### Fixed - -- Android - Lock OneSignal version so it doesn't get bumped to the next major version. - -## [3.0.8] - -### Changed - -- Renamed `enterLiveActivity` to `EnterLiveActivity` and `exitLiveActivity` to `ExitLiveActivity` -- Updated Unity Verified Solutions Attribution script from VspAttribution to VSAttribution - -### Fixed - -- Resolved serialization depth limit 10 exceeded warning log - -## [3.0.7] - -### Changed - -- Updated included iOS SDK to [3.12.3](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.12.3) -- Added support for OneSignal iOS functionality `enterLiveActivity` and `exitLiveActivity` - -## [3.0.6] - -### Fixed - -- Android builds failing without the Unity iOS module -- Fixed app group name to be a property. Fixes [#545](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/545) - -## [3.0.5] - -### Changed - -- Updated included Android SDK to [4.8.3](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.8.3) -- Updated included iOS SDK to [3.11.5](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.11.5) - -### Fixed - -- Log current version number of the OneSignal SDK - -## [3.0.4] - -### Fixed - -- Android `DeleteTags` and `RemoveTriggers` calls correctly use a Java array list instead of an array - -## [3.0.3] - -### Changed - -- Added support for OneSignal Android functionality `promptForPushNotifications` -- Updated included Android SDK to [4.8.1](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.8.1) -- Updated included iOS SDK to [3.11.2](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.11.2) -- Added support for OneSignal Android `setLanguage` callbacks - -## [3.0.2] - -### Changed - -- Updated included Android SDK to [4.7.1](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.7.1) -- Explicitly check for a diff and handle overwrites for the `AndroidManifest.xml` between the project's and package's `OneSignalConfig.plugin` -- `InstallEdm4uStep` checks for version number to determine if step is completed - -### Fixed - -- iOS build post processor checks for complete presence of extension -- iOS publishing error 90206 when uploading app to Apple. -- iOS builds on Unity on Windows failing on Entitlements file path. Fixes [#491](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/442) -- `OneSignalXCFramework` pod version of `OneSignalNotificationServiceExtension` target in Podfile of iOS builds will be upgraded if target is present during post processing - -## [3.0.1] - -### Added - -- [Migration guide](../../../MIGRATION.md) for updating from 2.x.x to 3.x.x - -### Changed - -- Added support for OneSignal iOS functionality `setLaunchURLsInApp` -- Improved included [README](../../../com.onesignal.unity.android/Editor/OneSignalConfig.plugin/README.md) for changing the notification icons in the Android plugin. -- Added inline documentation and Unity idiomatic fields to the `InAppMessageAction` - -### Fixed - -- Android deserialization of `NotificationAction` type now accounts for `actionID` -- Android deserialization of `Notification` type now accounts for `additionalData` in all cases -- Reverted [#430](https://github.com/OneSignal/OneSignal-Unity-SDK/pull/430) due to a deprecation of where Android resources can be stored in Unity. Notification icons to be changed for Android can again be found at `Assets/Plugins/Android/OneSignalConfig.plugin`. Fixes [#470](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/470) -- Example code for `PostNotification` to show an example that works without the API key -- Reimplemented support for `RemoveExternalUserId` -- Reimplemented `disablePush` as `PushEnabled` -- iOS deserialization of `Notification` type now accounts for `additionalData` and `rawPayload` in all cases -- iOS notifications opened from cold start will be received via `NotificationOpened` -- Added missing `Notification` fields -- Added prefix to the NSExtensionPrincipalClass in the NotificationServiceExtension Info.plist -- Error deserialization for identity methods on Android - -## [3.0.0] - -### Changed - -- Updated VSP Attribution with the latest version of script -- Moved EDM4U installer step to the core package as it is needed for both platforms - -### Fixed - -- Checks for VERSION file before attempting to read it -- Added podfile amendments to iOS Append builds -- Include utilities necessary for independent use of the initial unitypackage install -- Removed unused helper method in the iOS post processor which used code from after Unity 2018 - -## [3.0.0-beta.6] - -### Fixed - -- iOS build post processor will determine extension's imported OneSignalXCFramework from the package's dependencies xml. Fixes [#442](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/442) -- iOS callbacks for the `NotificationPermissionChanged` event will no longer cause an il2cpp exception - -### Changed - -- Added AndroidManifest with location permissions to the example app to display `PromptLocation` -- `InstallEdm4uStep` now imports version [1.2.169](https://github.com/googlesamples/unity-jar-resolver/releases/tag/v1.2.169) of [EDM4U](https://github.com/googlesamples/unity-jar-resolver) -- Log an error in the example app when `RequiresPrivacyConsent` is attempted to be set to false from true -- Internal state mappings on iOS now rely on class defined objects over dynamic Dictionary types -- Replaced manual manipulation of iOS entitlements in post processing with Unity's [ProjectCapabilityManager](https://docs.unity3d.com/ScriptReference/iOS.Xcode.ProjectCapabilityManager.html) - -## [3.0.0-beta.5] - -### Changed - -- Default export path for notification icons on Android changed to `Assets/Plugins/Android/res` -- Froze imported OneSignal iOS SDK to [3.10.0](https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/3.10.0) release -- Froze imported OneSignal Android SDK to [4.6.5](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.6.5) release - -### Removed - -- Legacy AndroidManifest from past version of imported OneSignal Android SDK -- Legacy Android notification icons - -## [3.0.0-beta.4] - -### Added - -- Included a new setup step from the OneSignal Unity Editor menu (**Window > OneSignal**) which syncs the example code bundle with the core package version - -### Fixed - -- `NotificationPermission` return from native SDK no longer raises a casting exception on iOS -- Resolved infinite loops on logging initialization conditions -- iOS postprocessing will respect existing entitlement files -- Will no longer init SDK again if done before `RuntimeInitializeOnLoadMethod` - -## [3.0.0-beta.3] - -### Fixed - -- Eliminated syntax only supported on Unity 2020 or above -- Global callbacks on Android are now correctly setup post `initWithContext` -- Properly push `LogLevel` and `AlertLevel` settings to native SDKs -- Added missing setter to override the detected language. Fixes [#416](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/416) -- Add missing getters for permission and subscription states - -### Changed - -- Implemented missing `Notification` properties `additionalData` and `actionButtons` -- `LogLevel` and `AlertLevel` now use a custom enum instead of the Unity `LogType` -- Removed `PermissionState` in favor of `NotificationPermission` enum - - Renamed `PermissionStateChanged` event to `NotificationPermissionChanged` - -## [3.0.0-beta.2] - -### Fixed - -- Correctly namedspaced the common MiniJSON utility to fix [#404](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/404) -- Ensured code distributed with unitypackage would not reference other packages if missing -- Swapped out code that was only available in Unity 2020 for backwards compatible implementations - -## [3.0.0-beta.1] - -- Complete overhaul to the public API of the SDK. While this release is in beta please see our included [example MonoBehaviour](Example/OneSignalExampleBehaviour.cs) for usage. -- The included OneSignal Android SDK is now fully imported via EDM4U/gradle and will pull the latest version. Please see [OneSignal-Android-SDK Releases](https://github.com/OneSignal/OneSignal-Android-SDK/releases) for latest changes. -- The included OneSignal iOS SDK is now fully imported via EDM4U/Cocoapods and will pull the latest version. Please see [OneSignal-iOS-SDK Releases](https://github.com/OneSignal/OneSignal-iOS-SDK/releases) for latest changes. - -If you run into any problems, please donโ€™t hesitate to [open an issue](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/new)! - -## [2.14.6] - -### Added - -- Included [Unity's VSP Attribution](https://github.com/Unity-Technologies/com.unity.vsp-attribution) code for distribution via the Asset Store. - -## [2.14.5] - -### Changed - -- Updated included Android SDK to [3.16.2](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/3.16.2) - - Fixes for background image not showing and text not rendering in the RTL direction when a RTL system language is set. [#1475](https://github.com/OneSignal/OneSignal-Android-SDK/pull/1475) - - Fix IAM preview message returning NPE in a preview case, due to message id being null. [#1463](https://github.com/OneSignal/OneSignal-Android-SDK/pull/1463) - -## [2.14.4] - -### Fixed - -- Removed use of C# 8.0 features to maintain compatibility - -### Changed - -- Updated included Android SDK to [3.16.1](https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/3.16.1) - - Avoid continuing with null IAM message Ids [#1386](https://github.com/OneSignal/OneSignal-Android-SDK/pull/1386) -- Updated included iOS SDK to version [2.16.7](https://github.com/OneSignal/OneSignal-iOS-SDK/tree/2.16.7/) - - In App Messaging now respects device orientation locks for Unity Applications [#1000](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/1000) - -## [2.14.3] - -### Fixed - -- Added a delayed call when attempting to reshow the `OneSignalSetupWindow` after importing packages. -- Moved the example code to a separate assembly definition so that it may be utilized in place. -- The EDM4U setup step will rename the `Google.IOSResolver_v1.2.165.dll` on import in Unity 2021 and above. See EDM4U issue [#441](https://github.com/googlesamples/unity-jar-resolver/issues/441) for more information. - -### Changed - -- Updated formatting and documentation within the [OneSignalExampleBehaviour.cs](https://github.com/OneSignal/OneSignal-Unity-SDK/blob/main/OneSignalExample/Assets/OneSignal/Example/Scripts/OneSignalExampleBehaviour.cs) example code for clarity. -- Marked `EnabledVibrate` and `EnableSound` as `Obsolete` with as they do not function on Android 8+. Please check out https://documentation.onesignal.com/docs/android-notification-categories for more information. - -## [2.14.2] - -### Fixed - -- Fixes rare iOS crash with some apps due to a threading issue. From [OneSignal-iOS-SDK PR #979](https://github.com/OneSignal/OneSignal-iOS-SDK/pull/979) - -## [2.14.1] - -### Fixed - -- Corrected directory separators in post processor when building for iOS in a - Windows environment. From PR [#376](https://github.com/OneSignal/OneSignal-Unity-SDK/pull/376) - by [@SplenectomY](https://github.com/SplenectomY). Fixes [#375](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/375), [#377](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/377), [#380](https://github.com/OneSignal/OneSignal-Unity-SDK/issues/380) - -## [2.14.0] - -### Added - -- A new Editor window under **Window > OneSignal** can be found which currently includes additional setup steps for installation. - -### Changed - -- The OneSignal Unity SDK has now transitioned to [Unity Package Manager](https://docs.unity3d.com/Packages/com.unity.package-manager-ui@1.8/manual/index.html) support - - If you are updating from a previous version of the OneSignal Unity SDK please follow the Unity Asset Store instructions in - the [README](https://github.com/OneSignal/OneSignal-Unity-SDK/README.md#unity-asset-store) to ensure a smooth transition. - -[Unreleased]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.15...HEAD -[5.1.15]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.14...5.1.15 -[5.1.14]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.13...5.1.14 -[5.1.13]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.12...5.1.13 -[5.1.12]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.11...5.1.12 -[5.1.11]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.10...5.1.11 -[5.1.10]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.9...5.1.10 -[5.1.9]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.8...5.1.9 -[5.1.8]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.7...5.1.8 -[5.1.7]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.6...5.1.7 -[5.1.6]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.5...5.1.6 -[5.1.5]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.4...5.1.5 -[5.1.4]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.3...5.1.4 -[5.1.3]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.2...5.1.3 -[5.1.2]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.1...5.1.2 -[5.1.1]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.1.0...5.1.1 -[5.1.0]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.6...5.1.0 -[5.0.6]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.5...5.0.6 -[5.0.5]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.4...5.0.5 -[5.0.4]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.3...5.0.4 -[5.0.3]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.2...5.0.3 -[5.0.2]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.1...5.0.2 -[5.0.1]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.0...5.0.1 -[5.0.0]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.0-beta.3...5.0.0 -[5.0.0-beta.3]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.0-beta.2...5.0.0-beta.3 -[5.0.0-beta.2]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/5.0.0-beta.1...5.0.0-beta.2 -[5.0.0-beta.1]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.9...5.0.0-beta.1 -[3.0.9]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.8...3.0.9 -[3.0.8]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.7...3.0.8 -[3.0.7]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.6...3.0.7 -[3.0.6]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.5...3.0.6 -[3.0.5]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.4...3.0.5 -[3.0.4]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.3...3.0.4 -[3.0.3]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.2...3.0.3 -[3.0.2]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.1...3.0.2 -[3.0.1]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.0...3.0.1 -[3.0.0]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.0-beta.6...3.0.0 -[3.0.0-beta.6]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.0-beta.5...3.0.0-beta.6 -[3.0.0-beta.5]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.0-beta.4...3.0.0-beta.5 -[3.0.0-beta.4]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.0-beta.3...3.0.0-beta.4 -[3.0.0-beta.3]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.0-beta.2...3.0.0-beta.3 -[3.0.0-beta.2]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/3.0.0-beta.1...3.0.0-beta.2 -[3.0.0-beta.1]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/2.14.6...3.0.0-beta.1 -[2.14.6]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/2.14.5...2.14.6 -[2.14.5]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/2.14.4...2.14.5 -[2.14.4]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/2.14.3...2.14.4 -[2.14.3]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/2.14.2...2.14.3 -[2.14.2]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/2.14.1...2.14.2 -[2.14.1]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/2.14.0...2.14.1 -[2.14.0]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/2.13.6...2.14.0 diff --git a/OneSignalExample/Assets/OneSignal/CHANGELOG.md.meta b/OneSignalExample/Assets/OneSignal/CHANGELOG.md.meta deleted file mode 100644 index edd525fe1..000000000 --- a/OneSignalExample/Assets/OneSignal/CHANGELOG.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3b9534e804db602489afdcf8b50452da -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: From 73e7a48aa5180a58a802b7dd4abf0bf887324590 Mon Sep 17 00:00:00 2001 From: Fadi George Date: Mon, 2 Feb 2026 10:24:31 -0800 Subject: [PATCH 2/3] remove unneeded compose releease --- composeRelease.sh | 338 ---------------------------------------------- 1 file changed, 338 deletions(-) delete mode 100755 composeRelease.sh diff --git a/composeRelease.sh b/composeRelease.sh deleted file mode 100755 index 8febddb11..000000000 --- a/composeRelease.sh +++ /dev/null @@ -1,338 +0,0 @@ -#!/bin/bash - -manual=" - OneSignal Unity SDK - composeRelease - Performs operations necessary to ready current changes for release. - - Updates all version numbers required to properly identify the SDK and generates a commit - - Sets up a new release/* branch pegged to the new version number - - Creates a pull request back to the main branch - - Generates a *.unitypackage file to distribute - - Composes a GitHub release and uploads the *.unitypackage file - - Usage: - ./composeRelease.sh {bump_command} {postfix (optional)} - - Examples: - (with an initial verison of 2.14.3) - ./composeRelease.sh minor preview Change all verison numbers to 2.15.0-preview - ./composeRelease.sh major Change all verison numbers to 3.0.0 - ./composeRelease.sh patch Change all verison numbers to 2.14.4 - ./composeRelease.sh specify 3.2.1-beta.123 Change all verison numbers to 3.2.1-beta.123 -" - -# check for help command before continuing -if [[ "$#" -ge "1" && "$1" = '-h' || "$1" = '--help' || "$1" = "-?" ]] -then - echo -e "${manual}" - exit 0 -fi - -# gather args -bump_command=$1 -postfix=$2 - -# validate input -if [[ -z "$bump_command" || ! "$bump_command" =~ ^(major|minor|patch|specify)$ ]] -then - echo -e "composeRelease must be run with one of the following arguments - major Increment the MAJOR version by 1 and reset MINOR and PATCH to 0 - minor Increment the MINOR version by 1 and reset PATCH to 0 - patch Increment the PATCH version by 1 - specify Provide a specific version number" - exit 1 -fi - -if [[ "$bump_command" = "specify" ]] -then - if [[ -z "$postfix" ]] - then - echo -e "a valid version must be specified" - exit 1 - fi -elif [[ -n "$postfix" && ! "$postfix" =~ ^(preview|beta)$ ]] -then - echo -e "a postfix can be included with either of the following arguments - (none) If no argument then no postfix will be added - preview Attach the 'preview' postfix - beta Attach the 'beta' postfix" - exit 1 -fi - -# is github cli available to compose release? -if ! command -v gh &> /dev/null -then - echo "GitHub CLI could not be found. Please visit https://cli.github.com/ or run brew install gh. Make sure you login after installation via gh auth login" - exit 1 -fi - -# try to find unity executable -unity_project_version_path="OneSignalExample/ProjectSettings/ProjectVersion.txt" -unity_project_version=$(cat ${unity_project_version_path} | sed -n 's/^m_EditorVersion: //p') -unity_versions_path="/Applications/Unity/Hub/Editor" -unity_path="${unity_versions_path}/${unity_project_version}" - -if [[ ! -d "${unity_versions_path}" ]] -then - echo "Could not find any versions of Unity installed at path: ${unity_versions_path}" - exit 1 -elif [[ ! -d "${unity_path}" ]] -then - echo "Could not find Unity ${unity_project_version}" - pushd "${unity_versions_path}" > /dev/null 2>&1 - - options=(* "Exit") - PS3="Please select an installed Unity version: " - select option in "${options[@]}" - do - if [[ "$option" = "Exit" ]] - then - exit 1 - elif [[ "${options[@]}" =~ "$option" ]] - then - echo "Using ${option}" - unity_path="${unity_versions_path}/${option}" - break - fi - done - - popd > /dev/null 2>&1 -fi - -unity_executable="${unity_path}/Unity.app/Contents/MacOS/Unity" - -# VERSION file will act as the source of truth -version_filepath="OneSignalExample/Assets/OneSignal/VERSION" -current_version=$(cat "$version_filepath") - -echo "Current Version is ${current_version}" - - -if [[ "$bump_command" = "specify" ]] -then - new_version="${postfix}" -else - # loose semver checking; use official standard if going advanced - # https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string - version_regex="([0-9]+)\.([0-9]+)\.([0-9]+)(-([a-zA-Z]+))?(\.([0-9])+)?" - - current_major=$([[ ${current_version} =~ $version_regex ]] && echo "${BASH_REMATCH[1]}") - current_minor=$([[ ${current_version} =~ $version_regex ]] && echo "${BASH_REMATCH[2]}") - current_patch=$([[ ${current_version} =~ $version_regex ]] && echo "${BASH_REMATCH[3]}") - - # get new verison number - if [[ "$bump_command" = "major" ]] - then - new_major=$((current_major + 1)) - new_minor=0 - new_patch=0 - elif [[ "$bump_command" = "minor" ]] - then - new_major="${current_major}" - new_minor=$((current_minor + 1)) - new_patch=0 - elif [[ "$bump_command" = "patch" ]] - then - new_major="${current_major}" - new_minor="${current_minor}" - new_patch=$((current_patch + 1)) - else - echo "How did we get here?" - exit 1 - fi - - new_version="${new_major}.${new_minor}.${new_patch}" - - if [[ -n "$postfix" ]] - then - new_version="${new_version}-${postfix}" - fi -fi - -echo " New version is ${new_version}" - -# update VERSION file -echo -n "${new_version}" > ${version_filepath} -echo "Updated - ${version_filepath}" - -# update version numbers -onesignal_path="com.onesignal.unity.core/Runtime/OneSignal.cs" -onesignal_version_regex="Version = \"${current_version}\";" -onesignal_new_version="Version = \"${new_version}\";" -onesignal_file=$(cat "$onesignal_path") - -onesignal_version=$([[ ${onesignal_file} =~ $onesignal_version_regex ]] && echo "${BASH_REMATCH[0]}") -onesignal_file=${onesignal_file/$onesignal_version/$onesignal_new_version} - -echo "${onesignal_file}" > ${onesignal_path} -echo "Updated - ${onesignal_path}" - -# The version number sent to iOS and Android use a 000000 format. For example: 5.1.9 should be sent as 050109 -toHeaderVersion() { - local version=$1 - - a=(${version//./ }) - - for i in ${!a[@]}; do - a[$i]=$(printf "%02d" ${a[$i]}) - done - - retval=$(IFS=; echo "${a[*]}"); - return -} - -# update Android header -toHeaderVersion $current_version -current_header_version=$retval -toHeaderVersion $new_version -new_header_version=$retval - -onesignalplatform_path="com.onesignal.unity.core/Runtime/OneSignalPlatform.cs" -onesignalplatform_version_regex="VersionHeader = \"${current_header_version}\";" -onesignalplatform_new_version="VersionHeader = \"${new_header_version}\";" -onesignalplatform_file=$(cat "$onesignalplatform_path") - -onesignalplatform_version=$([[ ${onesignalplatform_file} =~ $onesignalplatform_version_regex ]] && echo "${BASH_REMATCH[0]}") -onesignalplatform_file=${onesignalplatform_file/$onesignalplatform_version/$onesignalplatform_new_version} - -echo "${onesignalplatform_file}" > ${onesignalplatform_path} -echo "Updated - ${onesignalplatform_path}" - -# update iOS header -uiapplicationonesignalunity_path="com.onesignal.unity.ios/Runtime/Plugins/iOS/UIApplication+OneSignalUnity.mm" -uiapplicationonesignalunity_version_regex="setSdkVersion:@\"${current_header_version}\"];" -uiapplicationonesignalunity_new_version="setSdkVersion:@\"${new_header_version}\"];" -uiapplicationonesignalunity_file=$(cat "$uiapplicationonesignalunity_path") - -uiapplicationonesignalunity_version=$([[ ${uiapplicationonesignalunity_file} =~ $uiapplicationonesignalunity_version_regex ]] && echo "${BASH_REMATCH[0]}") -uiapplicationonesignalunity_file=${uiapplicationonesignalunity_file/$uiapplicationonesignalunity_version/$uiapplicationonesignalunity_new_version} - -echo "${uiapplicationonesignalunity_file}" > ${uiapplicationonesignalunity_path} -echo "Updated - ${uiapplicationonesignalunity_path}" - -# update package.json files -packagejson_path="com.onesignal.unity.*/package.json" -packagejson_version_regex="\"version\": \"${current_version}\"," -packagejson_new_version="\"version\": \"${new_version}\"," - -# just going to keep these all in sync for now -packagejson_core_regex="\"com.onesignal.unity.core\": \"${current_version}\"" -packagejson_new_core="\"com.onesignal.unity.core\": \"${new_version}\"" - -for packagejson_filepath in $packagejson_path -do - packagejson_file=$(cat "$packagejson_filepath") - - packagejson_version=$([[ ${packagejson_file} =~ $packagejson_version_regex ]] && echo "${BASH_REMATCH[0]}") - packagejson_file=${packagejson_file/$packagejson_version/$packagejson_new_version} - - packagejson_core=$([[ ${packagejson_file} =~ $packagejson_core_regex ]] && echo "${BASH_REMATCH[0]}") - packagejson_file=${packagejson_file/$packagejson_core/$packagejson_new_core} - - echo "${packagejson_file}" > ${packagejson_filepath} - echo "Updated - ${packagejson_filepath}" -done - -# update packages-lock.json -packageslockjson_path="OneSignalExample/Packages/packages-lock.json" -packageslockjson_file=$(cat "$packageslockjson_path") - -packageslockjson_core=$([[ ${packageslockjson_file} =~ $packagejson_core_regex ]] && echo "${BASH_REMATCH[0]}") -packageslockjson_file=${packageslockjson_file/$packageslockjson_core/$packagejson_new_core} - -echo "${packageslockjson_file}" > ${packageslockjson_path} -echo "Updated - ${packageslockjson_path}" - -# update .asmdef files -asmdef_path="OneSignalExample/Assets/OneSignal/*/OneSignal.UnityPackage.*.asmdef" -asmdef_version_regex="\"expression\": \"${current_version}\"," -asmdef_new_version="\"expression\": \"${new_version}\"," - -for asmdef_filepath in $asmdef_path -do - asmdef_file=$(cat "$asmdef_filepath") - - asmdef_version=$([[ ${asmdef_file} =~ $asmdef_version_regex ]] && echo "${BASH_REMATCH[0]}") - asmdef_file=${asmdef_file/$asmdef_version/$asmdef_new_version} - - echo "${asmdef_file}" > ${asmdef_filepath} - echo "Updated - ${asmdef_filepath}" -done - -# update CHANGELOG -changelog_path="OneSignalExample/Assets/OneSignal/CHANGELOG.md" -changelog_file=$(cat "$changelog_path") - -# append new version to notes -changelog_notes_unreleased="\#\# \[Unreleased\]" -changelog_notes_new_version="## [Unreleased] -## [${new_version}]" -changelog_file="${changelog_file/${changelog_notes_unreleased}/$changelog_notes_new_version}" - -# update links -compare_link_unreleased="\[Unreleased\]: https:\/\/github\.com\/OneSignal\/OneSignal-Unity-SDK\/compare\/${current_version}\.\.\.HEAD" -compare_links_new_version="[Unreleased]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/${new_version}...HEAD -[${new_version}]: https://github.com/OneSignal/OneSignal-Unity-SDK/compare/${current_version}...${new_version}" -changelog_file="${changelog_file/${compare_link_unreleased}/${compare_links_new_version}}" - -# output changes -echo "${changelog_file}" > ${changelog_path} -echo "Updated - ${changelog_path}" - -executeUnityMethod() { - local project_path=$1 - local build_target=$2 - local method_name=$3 - local log_path="${PWD}/logs/${method_name}-${build_target}-$(date +%Y%m%d%H%M%S).txt" - - ${unity_executable} -projectpath "${project_path}"\ - -quit\ - -batchmode\ - -nographics\ - -buildTarget "${build_target}"\ - -executeMethod "${method_name}"\ - -logFile "${log_path}" - - local method_result=$? - - if [[ ${method_result} -ne 0 ]]; then - echo "Unity method failed with ${method_result}" - exit ${method_result} - else - echo "Unity method completed" - fi -} - -# update project version -projectsettings_path="OneSignalExample/ProjectSettings/ProjectSettings.asset" -executeUnityMethod "OneSignalExample" "Android" "OneSignalSDK.OneSignalPackagePublisher.UpdateProjectVersion" - -# build a unitypackage for release -package_path="OneSignalExample/OneSignal-v${new_version}.unitypackage" -executeUnityMethod "OneSignalExample" "Android" "OneSignalSDK.OneSignalPackagePublisher.ExportUnityPackage" - -# preserve current workspace -current_branch=$(git branch --show-current) -git add ${version_filepath} ${packagejson_path} ${projectsettings_path} ${changelog_path} ${onesignal_path} ${onesignalplatform_path} ${uiapplicationonesignalunity_path} ${packageslockjson_path} ${asmdef_path} -git stash push --keep-index - -# generate new release branch and commit all changes -release_branch="release/${new_version}" -git checkout -b "${release_branch}" # todo - branch off main once these changes are there -git commit -m "Bumped version to ${new_version}" -git push --set-upstream origin "${release_branch}" - -# create a pull request and draft release for these changes -gh pr create\ - --base main\ - --head "${release_branch}"\ - --title "Release ${new_version}"\ - --body "Pull request for version ${new_version}" - -gh release create "${new_version}" "${package_path}"\ - --draft\ - --title "${new_version} Release"\ - --notes "TODO" - -# return to workspace -git checkout "${current_branch}" -git stash pop \ No newline at end of file From 950b96d8ff546551d8d72af5e18288a305ebec95 Mon Sep 17 00:00:00 2001 From: Fadi George Date: Mon, 2 Feb 2026 10:24:59 -0800 Subject: [PATCH 3/3] remove changelog changes in create release workflow --- .github/workflows/create-release-pr.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index ca2748b0e..9c83dd759 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -185,14 +185,3 @@ jobs: echo "RELEASE_NOTES<> $GITHUB_ENV echo "$cleaned_notes" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV - - - name: Update CHANGELOG.md - run: | - awk -v ver="${{ inputs.unity_version }}" -v notes="$RELEASE_NOTES" \ - '/^## \[Unreleased\]/ { print $0; print "## [" ver "]\n### Changed"; print notes "\n"; next } { print $0 }' \ - OneSignalExample/Assets/OneSignal/CHANGELOG.md > /tmp/changelog.tmp && mv /tmp/changelog.tmp OneSignalExample/Assets/OneSignal/CHANGELOG.md - - # Only commit if there are changes - git add -A - git diff --staged --quiet && exit 0 - git commit -m "Update CHANGELOG.md for ${{ inputs.unity_version }}" && git push