Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge major_release_5.0.0 into the main branch #1331

Merged
merged 694 commits into from
Oct 31, 2023

Conversation

nan-li
Copy link
Contributor

@nan-li nan-li commented Oct 30, 2023

Description

One Line Summary

This PR rebased all commits from major_release_5.0.0 and apply them to the main branch.

Details

See https://github.com/OneSignal/OneSignal-iOS-SDK/compare/429c258..6a6b075 for a comparison of this branch vs major_release_5.0.0. After this PR, main and major_release_5.0.0 should be equivalent.

Motivation

To make the main branch reflect v5.x.x. The "old" main branch is maintained in branch 3.X.X.

Testing

Unit testing

None

Manual testing

Running example app on iPhone with iOS 17 to ensure SDK builds and runs.

Affected code checklist

  • Notifications
    • Display
    • Open
    • Push Processing
    • Confirm Deliveries
  • Outcomes
  • Sessions
  • In-App Messaging
  • REST API requests
  • Public API changes

Checklist

Overview

  • I have filled out all REQUIRED sections above
  • PR does one thing
  • Any Public API changes are explained in the PR details and conform to existing APIs

Testing

  • I have included test coverage for these changes, or explained why they are not needed
  • All automated tests pass, or I explained why that is not possible
  • I have personally tested this on my device, or explained why that is not possible

Final pass

  • Code is as readable as possible.
  • I have reviewed this PR myself, ensuring it meets each checklist item

This change is Reviewable

nan-li and others added 30 commits October 30, 2023 14:59
* calculateIsOptedIn and calculateIsEnabled were not actually using the passed in arguments
* The anonymous user has been identified, but we still need to Fetch User as we cleared local data
* This will hydrate the onesignal_id again as well as other user properties
…gration_guide

migration guide alpha-01: update SDK install instructions
[user model] Fix firing the push subscription observer
…and_push_observer

[user model] fix bug in identify user: need to fetch
emawby and others added 19 commits October 30, 2023 15:00
* Fix a bug in setting an appId that is retrieved from cache. We were overwriting it with nil or "" after reading from cache.
* Additionally, remove `appId` property from the OneSignal class because we can manage the appId via the `OneSignalConfigManager`. Better not to have two sources of truth for appId.
* Remove `kOSSettingsKeyInOmitNoAppIdLogging` as it does not appear to be used anymore
* Nit: clarifying logs
…rappers

Fix bug when setting app_id from cache
[v5] Fix crash with direct influence but nil direct id
…non_onesignal_notifs

[v5] Fix forwarding notification opens from non onesignal notifs
@nan-li nan-li force-pushed the major_release_5.0.0_rebased_with_main branch from 043647e to 3df15d0 Compare October 31, 2023 20:59
After rebasing `major_release_5.0.0` onto the `main` branch, some commits from the `major_release_5.0.0` branch are applied inappropriately, leaving the SDK in a erroneous state after the rebase.

For example, project files and storyboard files easily ended in a weird state. Or, changes that already existed in `main` are added again when their equivalent commit in the `major_release_5.0.0` branch is added.

This commit makes compares the rebased product to major_release_5.0.0 and make them essentially equivalent.
@nan-li nan-li force-pushed the major_release_5.0.0_rebased_with_main branch from 3df15d0 to 6a6b075 Compare October 31, 2023 21:32
@nan-li nan-li marked this pull request as ready for review October 31, 2023 21:40
Copy link
Contributor

@emawby emawby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job!

@nan-li nan-li merged commit 5ac5927 into main Oct 31, 2023
1 of 2 checks passed
@nan-li nan-li deleted the major_release_5.0.0_rebased_with_main branch October 31, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants