Skip to content

chore: [SDK-5593] sign demos with enterprise team and sdkdemo IDs - #916

Merged
fadi-george merged 4 commits into
mainfrom
fadi/sdk-5593
Nov 18, 2026
Merged

fadi-george merged 4 commits into
mainfrom
fadi/sdk-5593

Conversation

@fadi-george

Copy link
Copy Markdown
Collaborator

Description

One Line Summary

Sign the iOS demos with the OneSignal Enterprise team and com.onesignal.sdkdemo IDs, and align the demo UI with the shared build.md (button grid, safe-area dialogs, shorter labels).

Details

Motivation

BrowserStack needs an In House signed IPA it can install without re-signing (resignApp: false) so push entitlements survive and the iOS push E2E tests run on real devices. The UI changes match the shared demo spec and the other wrapper demos.

Scope

  • demo, demo-no-location: iOS bundle ID com.onesignal.sdkdemo (NSE/LA suffixes and the app group derive from it). Android was already com.onesignal.sdkdemo.
  • SigningPostProcessor: team DL8TF3X4K3; CI-only manual signing uses iPhone Distribution with the Appium Demo - Main / NSE / Live Activity In House profiles. Local builds keep Xcode auto-signing.
  • iOS/ExportOptions.plist: method enterprise, team DL8TF3X4K3, sdkdemo profile keys.
  • SectionBuilder.CreateButtonGrid: a flex-wrap container; a USS rule makes its buttons grow from a 40% basis, so an odd last button spans and display: none buttons drop out of layout. Used by every multi-button section; replaces the manual IAM rows.
  • DialogBase: dialogs sit below the real safe-area inset (container keeps its 24px margin) instead of a fixed 80px; the language dropdown keeps its anchored position.
  • Shorter labels (ADD TAGS / ALIASES / TRIGGERS, CLEAR ALL, START / END ACTIVITY, CHECK LOCATION); buttons drop Unity's default side margins so they line up with cards.
  • Docs, run scripts and the Android icon library namespace updated. No SDK code changes.

Testing

Manual testing

  • Full sdk-shared Appium suite on an iOS 26.5 simulator: 36/36 passing.
  • Checked the grid layout on the simulator.
  • Not yet verified: the enterprise-signed IPA in CI. iOS E2E is blocked at profile download by an App Store Connect API 401 (same on every SDK repo).

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
    • Demo/CI only; covered by the sdk-shared Appium suite.
  • All automated tests pass, or I explained why that is not possible
    • iOS E2E blocked by the App Store Connect 401 (see Testing).
  • 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

🤖 Generated with Claude Code

fadi-george and others added 2 commits November 17, 2026 15:07
- iOS bundle ID com.onesignal.sdkdemo (NSE/LA and the app group derive
  from it) and team DL8TF3X4K3.
- CI manual signing uses the in-house iPhone Distribution cert and
  ExportOptions uses enterprise, so BrowserStack can install the IPA
  without re-signing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- SectionBuilder.CreateButtonGrid: a flex-wrap row where buttons grow
  from a 40% basis, so an odd last button spans and display:none buttons
  reflow. Used by every multi-button section, replacing the IAM rows.
- Dialogs anchor below the real safe-area inset instead of a fixed 80px;
  the dropdown keeps its anchored position.
- Shorter labels (ADD TAGS/ALIASES/TRIGGERS, CLEAR ALL, START/END
  ACTIVITY, CHECK LOCATION); buttons drop Unity's default side margins
  so they line up with cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fadi-george
fadi-george requested a review from a team as a code owner November 17, 2026 23:20
CI installed the latest CSharpier (1.4.0), whose formatting differs from
the 1.3.0 the repo is formatted with, failing the check on unchanged
files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@abdulraqeeb33 abdulraqeeb33 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The team, bundle IDs, and profile names match the enterprise demo (DL8TF3X4K3, com.onesignal.sdkdemo, Appium Demo - Main / NSE / Live Activity). Two signing holes will fail the device archive once the Enterprise API 401 is fixed.

  1. SigningPostProcessor still writes aps-environment=development on every build, including CI (ApsEnvironment, line 24). Export is now enterprise with iPhone Distribution and In House profile Appium Demo - Main. That profile only grants production APNs. The .NET demo sets production for this same profile. Keep development for local automatic signing, and write production when IsCiBuild() is true. BuildiOSDevice still says the development value is what lets those profiles sign.

  2. The distribution identity is only applied to Unity-iPhone, the NSE, and the widget. UnityFramework is in the Unity-iPhone scheme and is not updated. The archive command line forces CODE_SIGN_STYLE=Manual for every target and does not set an identity, so the framework keeps Unity's development identity. The cert setup-ios-demo-codesigning installs is the in-house distribution p12. Set iPhone Distribution and DL8TF3X4K3 on the framework for CI, and leave its provisioning profile empty.

Nit: the demo README calls com.onesignal.sdkdemo the app ID. In that file the app ID is ONESIGNAL_APP_ID. Say bundle ID.

CI builds now write aps-environment=production, and the archive pins the
distribution identity and team for every target, including UnityFramework
and Pods. The IPA check requires production.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fadi-george

Copy link
Copy Markdown
Collaborator Author

@abdulraqeeb33 Thanks, addressed in faae2f8. CI now writes aps-environment=production (local stays development) and the IPA check requires it. The archive pins iPhone Distribution and DL8TF3X4K3 for every target, which covers UnityFramework and Pods. README says bundle ID now. The archive can't be verified until the Enterprise API 401 is fixed.

@fadi-george
fadi-george merged commit 4f19b45 into main Nov 18, 2026
4 of 5 checks passed
@fadi-george
fadi-george deleted the fadi/sdk-5593 branch November 18, 2026 20:15
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