[APAM-689] Add preview environment support#38
Merged
Conversation
- 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>
aw-hector
approved these changes
May 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
previewenvironment value across the SDK (Android Kotlin, iOS Swift, JS types) and example appAlert/RNPickerSelectpickers with@expo/react-native-action-sheetjvmTargetto 17 so JDK 21 hosts build; addexample/Gemfile(withnkffor Ruby 3.4'skconvremoval) so RN CLI'sbundle exec pod installworks duringyarn iosTest plan
yarn androidbuilds on JDK 21; env switcher (Demo / Staging / Preview) persists across restarts; payment flows succeed for each envyarn iosrunsbundle exec pod installcleanly on Ruby 3.4; env switcher persists across restarts (manual reopen afterExitApp.exitApp())https://pacheckoutdemo.sandbox.airwallex.comreachable; demo test card4012000300001003accepteddemo/stagingflows🤖 Generated with Claude Code