Skip to content

[APAM-689] Add preview environment support#38

Merged
weiping-awx merged 1 commit into
mainfrom
feat/APAM-689-preview
May 11, 2026
Merged

[APAM-689] Add preview environment support#38
weiping-awx merged 1 commit into
mainfrom
feat/APAM-689-preview

Conversation

@weiping-awx
Copy link
Copy Markdown
Contributor

@weiping-awx weiping-awx commented Apr 27, 2026

Summary

  • Adds preview environment value across the SDK (Android Kotlin, iOS Swift, JS types) and example app
  • Example app: persist selected env via AsyncStorage (with stored-value validation), restart on env change, and replace Alert/RNPickerSelect pickers with @expo/react-native-action-sheet
  • Build/dev-env fixes: align Kotlin jvmTarget to 17 so JDK 21 hosts build; add example/Gemfile (with nkf for Ruby 3.4's kconv removal) so RN CLI's bundle exec pod install works during yarn ios
Android iOS
Screenshot_20260427_182546 Simulator Screenshot - iPhone 17 Pro - 2026-04-27 at 18 25 29
Screenshot_20260427_182602 Simulator Screenshot - iPhone 17 Pro - 2026-04-27 at 18 25 36

Test plan

  • Android: yarn android builds on JDK 21; env switcher (Demo / Staging / Preview) persists across restarts; payment flows succeed for each env
  • iOS: yarn ios runs bundle exec pod install cleanly on Ruby 3.4; env switcher persists across restarts (manual reopen after ExitApp.exitApp())
  • Preview env: https://pacheckoutdemo.sandbox.airwallex.com reachable; demo test card 4012000300001003 accepted
  • No regression for existing demo / staging flows

🤖 Generated with Claude Code

- Map "preview" env in Android, iOS, and JS SDK layers
- Example app: persist env via AsyncStorage with stored-value
  validation, restart on env change, add Preview option, and
  replace Alert/RNPickerSelect pickers with
  @expo/react-native-action-sheet
- Build: align Kotlin jvmTarget to 17 in SDK and example so JDK 21
  hosts can build without target-mismatch failures
- iOS dev env: add Gemfile (with nkf for Ruby 3.4 kconv) so RN CLI's
  `bundle exec pod install` works during `yarn ios`

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@weiping-awx weiping-awx requested a review from aw-hector April 27, 2026 10:31
@weiping-awx weiping-awx merged commit 92d908b into main May 11, 2026
5 checks passed
@weiping-awx weiping-awx deleted the feat/APAM-689-preview branch May 11, 2026 03:17
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