Replaces the LineageOS-based Java wizard with a new Kotlin/Jetpack Compose wizard built on the PawletOS design language. Key changes: - Extensible WizardPage registry with DeviceProfile-based gating (phone/tablet/embedded form factors, hasWifi, hasTelephony) - SetupWizardManager drives navigation via StateFlow<Int> over a runtime-built page list; supports oxn://page?id= deep link jumps - Circular-reveal collapse animation on finish (900ms, matches LineageOS FinishActivity behaviour) via Compose drawWithContent/clipPath - finishSetupWizard() sets DEVICE_PROVISIONED + USER_SETUP_COMPLETE and disables the HOME component on completion - EntryPoint registered with CATEGORY_HOME + CATEGORY_SETUP_WIZARD so AOSP launches the wizard on first boot - Deep link handling: cdn.oxmc.me / oxmc.me / pawlet.oxmc.me (http/https) and oxn:// scheme (apk install, page navigation, management) - Full package rename: dev.oxmc.setupwizard -> me.pawlet.setupwizard - Dual build system: Gradle (app/build.gradle.kts) for Studio development, Android.bp + root AndroidManifest.xml for AOSP/Soong ROM build - Signed with platform certificate, system_ext, sharedUserId=android.uid.system
75 lines
1.9 KiB
Kotlin
75 lines
1.9 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
}
|
|
|
|
android {
|
|
namespace = "me.pawlet.setupwizard"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "me.pawlet.setupwizard"
|
|
minSdk = 31
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "1.0.0"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Core + Compose
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.ui)
|
|
implementation(libs.androidx.ui.graphics)
|
|
implementation(libs.androidx.ui.tooling.preview)
|
|
implementation(libs.androidx.material)
|
|
implementation(libs.androidx.material.icons.extended)
|
|
implementation(libs.androidx.material3)
|
|
implementation(libs.androidx.appcompat)
|
|
|
|
// Coil (images)
|
|
implementation(libs.coil.compose)
|
|
implementation(libs.coil.svg)
|
|
|
|
// OkHttp (networking)
|
|
implementation(libs.okhttp)
|
|
implementation(libs.okhttp.logging)
|
|
|
|
// SplashScreen
|
|
implementation(libs.androidx.splashscreen)
|
|
|
|
// Gson (JSON)
|
|
implementation(libs.gson)
|
|
|
|
// Android Device Info library
|
|
implementation(files("libs/android-device-info.aar"))
|
|
implementation(libs.androidx.compose.animation)
|
|
} |