Files
android_packages_apps_Setup…/Android.bp
T
oxmc f7f9adbc01 Fix the Soong build: restore library wiring, fix API 36 skew
- Android.bp: android-device-info is used by the wizard source (b11cf5b
  dropped it in error); re-add its android_library_import plus the
  core-splashscreen and coil-compose imports 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 pass a value-discarding lambda; the wizard
  only advances.
- SetupCompleteScreen: drawContent() needs the explicit drawWithContent
  receiver inside clipPath after the Compose receiver-scoping change.
2026-07-15 15:45:05 -07:00

72 lines
1.9 KiB
Plaintext

// SPDX-FileCopyrightText: The PawletOS Project
// SPDX-License-Identifier: Apache-2.0
android_app {
name: "PawletSetupWizard",
srcs: [
"app/src/main/java/**/*.kt",
// Soong-only BuildConfig stand-in (Gradle generates its own).
"soong-stubs/**/*.kt",
],
resource_dirs: ["app/src/main/res"],
manifest: "AndroidManifest.xml",
kotlincflags: ["-Xjvm-default=all"],
certificate: "platform",
privileged: true,
privapp_allowlist: "me.pawlet.setupwizard.xml",
system_ext_specific: true,
platform_apis: true,
overrides: ["Provision"],
optimize: {
proguard_flags_files: ["proguard.flags"],
},
static_libs: [
// AndroidX core
"androidx.core_core-ktx",
"androidx.appcompat_appcompat",
"androidx.activity_activity",
"androidx.activity_activity-compose",
"androidx.lifecycle_lifecycle-runtime-ktx",
"androidx.core_core-splashscreen",
// Compose runtime + UI
"androidx.compose.runtime_runtime",
"androidx.compose.ui_ui",
"androidx.compose.ui_ui-graphics",
"androidx.compose.foundation_foundation",
// Material3 + icons
"androidx.compose.material3_material3",
"androidx.compose.material_material-icons-extended",
// Compose animation
"androidx.compose.animation_animation",
// JSON
"gson",
// PawletOS platform APIs
"pawlet-system",
// Telephony helpers
"telephony-common",
// Device info library — source android_library from
// external/application_libs/AndroidDeviceInfo (the app/libs/ AAR is
// Gradle-only; defining an import here would collide with that module)
"android-device-info",
// Images — prebuilts/application_libs/coil (pulls okhttp3/okio/
// coroutines transitively via the import's static_libs)
"coil-compose",
],
}