Skip to content

chore: [SDK-4728] normalize no-location opt-out#1957

Merged
fadi-george merged 6 commits into
mainfrom
fadi/sdk-4728-cleanup
Jun 10, 2026
Merged

chore: [SDK-4728] normalize no-location opt-out#1957
fadi-george merged 6 commits into
mainfrom
fadi/sdk-4728-cleanup

Conversation

@fadi-george

Copy link
Copy Markdown
Collaborator

Description

One Line Summary

Normalizes the no-location opt-out environment variable parsing and cleans up remaining demo sound assets.

Details

Motivation

Follow-up for SDK-4728 after the no-location demo stack was merged. This PR keeps ONESIGNAL_DISABLE_LOCATION behavior consistent across iOS and Android by accepting true case-insensitively and 1 on both platforms.

Scope

  • Android Gradle and iOS CocoaPods now parse ONESIGNAL_DISABLE_LOCATION the same way.
  • Demo cleanup removes leftover iOS vine_boom.wav assets and references after the sound resource cleanup.
  • Documentation clarifies the accepted env var values and CI usage.

Testing

Manual testing

  • ruby -c react-native-onesignal.podspec
  • Verified parser behavior for true, TRUE, True, and 1.
  • Verified Android dependency resolution with ONESIGNAL_DISABLE_LOCATION=1 resolves core, notifications, and in-app-messages without location.
  • Checked lints for the changed TypeScript file.

Affected code checklist

  • Notifications
  • 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

Made with Cursor

fadi-george and others added 6 commits June 9, 2026 15:11
…ATION env var

Replace the Android gradle property (OneSignal_disableLocation) and the
iOS Podfile global ($OneSignalDisableLocation) with a single
ONESIGNAL_DISABLE_LOCATION environment variable read at dependency
resolution time, so the same knob works for both platforms.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove leftover cruft from the demo (the unused com.demo Android package
and the orphaned vine_boom.wav asset plus its dangling Xcode references),
and switch the demo to the ONESIGNAL_DISABLE_LOCATION environment
variable for both iOS (Podfile) and Android (run script).

Co-authored-by: Cursor <cursoragent@cursor.com>
Move the no-location environment variable out of the Podfile and onto the package scripts that run CocoaPods resolution, keeping the Podfile conventional while preserving the demo's self-contained setup.

Co-authored-by: Cursor <cursoragent@cursor.com>
Update the e2e workflow version resolver after the Android dependency string moved behind the oneSignalVersion variable.

Co-authored-by: Cursor <cursoragent@cursor.com>
Clarify that GitHub Actions can set ONESIGNAL_DISABLE_LOCATION at the job or step level so CocoaPods and Gradle inherit it during dependency resolution and builds.

Co-authored-by: Cursor <cursoragent@cursor.com>
Accept ONESIGNAL_DISABLE_LOCATION values consistently across Android and iOS by treating true case-insensitively and accepting 1. Also remove the remaining iOS demo sound asset and references after the sound resource cleanup.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fadi-george fadi-george requested a review from a team as a code owner June 9, 2026 22:14
@fadi-george fadi-george changed the title fix: [SDK-4728] normalize no-location opt-out chore: [SDK-4728] normalize no-location opt-out Jun 9, 2026
@fadi-george

Copy link
Copy Markdown
Collaborator Author

@claude review

@fadi-george fadi-george force-pushed the fadi/sdk-4728-cleanup branch from 0a3f7ee to 91d7cdf Compare June 9, 2026 23:47
@fadi-george fadi-george merged commit fa2c184 into main Jun 10, 2026
12 checks passed
@fadi-george fadi-george deleted the fadi/sdk-4728-cleanup branch June 10, 2026 00:21
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.

2 participants