Fix the AOSP (Soong) build: library wiring and API 36 skew

- Android.bp: pull in coil-compose from prebuilts/application_libs and a
  Soong-only BuildConfig stub under soong-stubs/ (Gradle generates its own,
  so the stub stays out of the Gradle source set).
- onNewIntent takes a non-null Intent on API 36.
- Region/Locale wizard pages: the screens report the chosen value to their
  onContinue callback; the wizard only advances, so adapt the lambda.
- SetupCompleteScreen: drawContent() needs the explicit drawWithContent
  receiver inside clipPath since the Compose receiver-scoping change.
This commit is contained in:
oxmc
2026-07-15 15:38:51 -07:00
parent c85367f3d4
commit d6016c2f6f
5 changed files with 29 additions and 10 deletions
+9 -6
View File
@@ -10,7 +10,11 @@ android_library_import {
android_app {
name: "PawletSetupWizard",
srcs: ["app/src/main/java/**/*.kt"],
srcs: [
"app/src/main/java/**/*.kt",
// Soong-only BuildConfig stand-in (Gradle generates its own).
"soong-stubs/**/*.kt",
],
resource_dirs: ["app/src/main/res"],
@@ -63,10 +67,9 @@ android_app {
// Device info library (local prebuilt)
"android-device-info",
],
// OkHttp and Coil are not available as AOSP static_libs.
// Add them as android_library_import entries pointing to AARs in app/libs/
// once prebuilts are sourced from the Gradle dependency cache.
// See: https://git.oxmc.me/PawletOS/android_packages_apps_SetupWizard
// Images — prebuilts/application_libs/coil (pulls okhttp3/okio/
// coroutines transitively via the import's static_libs)
"coil-compose",
],
}