Skip to content

fix(mobile): declare androidx.activity for the photo-picker probe - #532

Merged
huichen merged 1 commit into
mainfrom
claude/android-build-fix
Sep 9, 2026
Merged

huichen merged 1 commit into
mainfrom
claude/android-build-fix

Conversation

@huichen

@huichen huichen commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

future-native-ui gained a PickVisualMedia.isPhotoPickerAvailable probe in #531 (gating the gallery fallback for devices without a system Photo Picker), but the module never declared androidx.activity. This was hidden while the local Android toolchain was incomplete; a full toolchain reveals it as a Kotlin compile error in :future-native-ui:compileReleaseKotlin.

This adds androidx.activity:activity-ktx:1.11.0 (already resolved via expo-image-picker, no new download).

Validation

  • ./scripts/build-mobile-android.sh completes and produces mobile/android/app/build/outputs/apk/release/app-release.apk (100MB, targetSdk 36, cn.futureos.mobile).
  • Fixed by also completing the local Android SDK: installed platforms;android-36, build-tools;36.0.0, and a repaired ndk;27.1.12297006 (previous NDK dir was a broken .installer remnant).

The Photo Picker availability probe (PickVisualMedia.isPhotoPickerAvailable)
added in #531 references androidx.activity, which the future-native-ui module
did not declare. The missing dependency surfaced as a Kotlin compile error
(:future-native-ui:compileReleaseKotlin) once a complete Android toolchain was
installed. Match expo-image-picker's activity-ktx:1.11.0.
@huichen
huichen enabled auto-merge (squash) September 9, 2026 02:06
@huichen
huichen merged commit 94e9e89 into main Sep 9, 2026
12 checks passed
@huichen
huichen deleted the claude/android-build-fix branch September 9, 2026 02:07
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