- 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.
76 lines
1.9 KiB
Plaintext
76 lines
1.9 KiB
Plaintext
// SPDX-FileCopyrightText: The PawletOS Project
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
android_library_import {
|
|
name: "android-device-info",
|
|
aars: ["app/libs/android-device-info.aar"],
|
|
sdk_version: "current",
|
|
}
|
|
|
|
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 (local prebuilt)
|
|
"android-device-info",
|
|
|
|
// Images — prebuilts/application_libs/coil (pulls okhttp3/okio/
|
|
// coroutines transitively via the import's static_libs)
|
|
"coil-compose",
|
|
],
|
|
}
|