Skip to content

chore(android): libraries compile against API 36 (ENG-605 PR2) - #735

Merged
islandbitcoin merged 1 commit into
mainfrom
chore/eng-605-lib-sdk-bumps
Sep 24, 2026
Merged

islandbitcoin merged 1 commit into
mainfrom
chore/eng-605-lib-sdk-bumps

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

Part 2 of ENG-605. Stacked on #733 (AGP 8.9.3 / Gradle 8.11.1). compileSdkVersion / targetSdkVersion stay at 35 in this PR; the goal is that every native dependency inherits rootProject.ext, so PR3 (the actual 36 bump) is a two-line change.

Libraries

Library Before After Why
@notifee/react-native ^7.8.2 (7.9.0, compileSdk 33) ^9.1.8 + patch-package 9.1.8 still hardcodes compileSdkVersion = 34; the patch makes compile/target/minSdk inherit rootProject.ext. The three APIs we call (requestPermission, createChannel, displayNotification) are unchanged. ios/Podfile.lock: RNNotifee 7.9.0 → 9.1.8.
@breeztech/react-native-breez-sdk-liquid 0.11.13 (compileSdk 34) 0.11.13, patch-package 0.11.13 is the newest release. Hardcoded compileSdk/targetSdk 34 → rootProject.ext. No JS change (app is migrating off Liquid anyway).
react-native-plaid-link-sdk 12.8.3 (compileSdk 34) 12.8.3, patch-package Not bumped: 12.8.4 also hardcodes 34; 12.8.5 requires iOS Plaid ~> 6.5.0, which needs a deployment target above our 15.1 (pod install fails); 13.x is an Expo module. Patch: compileSdk/targetSdk → rootProject.ext. use-plaid-link.ts untouched.
react-native-image-picker 8.2.1 (compileSdk 35, targetSdk 34 hardcoded) 8.2.1, patch-package Found by the node_modules/**/android/build.gradle sweep; latest release. → rootProject.ext.
@galoymoney/react-native-geetest-module 0.1.5, pinned android-31 via gradle.properties 0.1.5, patch updated, pin removed Still used at runtime (useGeetestCaptcha in request-phone-code-login.ts), so kept. Patch now reads compileSdkVersion / buildToolsVersion / minSdkVersion / targetSdkVersion from rootProject.ext; the GeetestModule_* lines in android/gradle.properties are gone.
react-native-fingerprint-scanner, react-native-html-to-pdf, react-native-secure-key-store safeExtGet defaults 29/28/28 unchanged All three are in use (biometrics, PDF export, secure storage). Their build.gradle already resolves rootProject.ext.compileSdkVersion via safeExtGet; the low numbers are only fallbacks.

Sweep: every other node_modules/*/android/build.gradle and node_modules/@*/*/android/build.gradle either inherits via rootProject.ext / safeExtGet or already targets ≥ 36.

Verification

API 36 proof (temporary, not committed). With compileSdkVersion = 36 and buildToolsVersion = "36.0.0" in android/build.gradle (platforms;android-36 + build-tools;36.0.0 installed via sdkmanager):

npx react-native bundle --platform android --dev false --entry-file index.js \
  --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
./android/gradlew -b ./android/build.gradle assembleRelease -PreactNativeArchitectures=arm64-v8a \
  -Dorg.gradle.jvmargs=-Xmx4g --warning-mode all \
  -PMYAPP_UPLOAD_STORE_FILE=$HOME/.android/debug.keystore -PMYAPP_UPLOAD_STORE_PASSWORD=android \
  -PMYAPP_UPLOAD_KEY_ALIAS=androiddebugkey -PMYAPP_UPLOAD_KEY_PASSWORD=android

Result: BUILD SUCCESSFUL in 6m 12s, 2223 tasks executed. Log shows :notifee_react-native:android.compileSdk using custom value: 36 (the patch takes effect). Both lines were then reverted; git diff android/build.gradle is empty.

Committed state (35). Same commands: BUILD SUCCESSFUL in 54s (474 executed, 1749 up-to-date), app-arm64-v8a-release.apk = 105,067,976 bytes, debug-keystore signed.

  • yarn check-code clean (tsc, translations, codegen, graphql).
  • yarn eslint on push-notification.tsx, use-plaid-link.ts clean.
  • yarn test: 110 suites, 1109 tests passed.
  • iOS: pod install ran via postinstall; only RNNotifee changed in Podfile.lock.

Generated bundle / drawable-* assets were not committed.

Device test should cover

  • Push notifications (notifee 7 → 9): permission prompt, channel creation, foreground displayNotification on Android and iOS.
  • Plaid Link open/success/exit.
  • Biometric unlock (fingerprint-scanner).
  • PDF export (html-to-pdf).
  • Phone-login captcha (Geetest) on Android, since its compileSdk goes 31 → 35.

Not verified here: no device run; iOS was only pod install, not an Xcode build.

🤖 Generated with Claude Code

@islandbitcoin
islandbitcoin changed the base branch from chore/eng-605-android-toolchain to main September 24, 2026 20:44
compileSdk/targetSdk stay at 35 here; this makes every native dependency
inherit rootProject.ext so the API 36 bump (PR3) is a two-line change.

- @notifee/react-native ^7.8.2 (7.9.0, compileSdk 33) -> ^9.1.8, plus
  patch-package so its android/build.gradle inherits rootProject.ext
  compile/target/minSdk (9.1.8 still hardcodes 34). JS API used
  (requestPermission/createChannel/displayNotification) is unchanged.
  ios/Podfile.lock: RNNotifee 7.9.0 -> 9.1.8.
- @breeztech/react-native-breez-sdk-liquid 0.11.13: patched (no newer
  release exists; hardcoded compileSdk/targetSdk 34 -> rootProject.ext).
- react-native-plaid-link-sdk 12.8.3: patched (compileSdk/targetSdk 34 ->
  rootProject.ext). Not bumped: 12.8.5 requires iOS Plaid ~>6.5 and a
  higher deployment target than 15.1; 13.x is an Expo module.
- react-native-image-picker 8.2.1: patched (hardcoded 35/34 ->
  rootProject.ext). Found by the node_modules build.gradle sweep.
- @galoymoney/react-native-geetest-module 0.1.5: still used by
  useGeetestCaptcha (phone login). Existing patch now reads
  compileSdkVersion/buildToolsVersion/minSdkVersion/targetSdkVersion from
  rootProject.ext; the android-31 GeetestModule_* pin in gradle.properties
  is removed.
- react-native-fingerprint-scanner, react-native-html-to-pdf,
  react-native-secure-key-store: all in use; already inherit via
  safeExtGet('compileSdkVersion', ...), no change needed.

Verified: assembleRelease (arm64-v8a) BUILD SUCCESSFUL with a temporary
compileSdk 36 / build-tools 36.0.0 (not committed) and with the committed
35; yarn check-code, eslint, yarn test (1109 tests) green.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@islandbitcoin
islandbitcoin force-pushed the chore/eng-605-lib-sdk-bumps branch from 09c9ee0 to dca3c28 Compare September 24, 2026 20:45
@islandbitcoin
islandbitcoin merged commit e375449 into main Sep 24, 2026
9 checks passed
islandbitcoin added a commit that referenced this pull request Sep 24, 2026
ENG-605 PR3. Stacked on #733 (AGP 8.9.3 / Gradle 8.11.1) and #735
(every native dependency now inherits rootProject.ext), so this is the
two-line bump those prepared for:

- compileSdkVersion 35 -> 36
- buildToolsVersion 35.0.0 -> 36.0.0

targetSdkVersion stays at 35 (PR5), minSdkVersion unchanged, so there is
no runtime behaviour change: the app is compiled against the API 36
headers but Android still applies API 35 compatibility behaviour.

AGP 8.9.3 supports compileSdk 36 natively; no
android.suppressUnsupportedCompileSdk entry was needed in
gradle.properties. CI is unchanged: both Android workflows install only
platform-tools and let Gradle fetch the pinned platform/build-tools.

Verified locally (platforms;android-36 + build-tools;36.0.0):
assembleRelease and assembleDebug (arm64-v8a) BUILD SUCCESSFUL, all 8
libraries that print a compileSdk report "using custom value: 36";
yarn tsc:check clean; yarn test 1161 passed.

Co-authored-by: Dread <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
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.

1 participant