Scaffold the Android Gradle project under android/ mirroring the proven internet_use_control toolchain: Gradle wrapper 8.11.1, AGP 8.7.3, Kotlin 2.0.21, compileSdk/targetSdk 35, Java/Kotlin 17, minSdk 29 (AGENTS.md §9). One Activity calls GET http://192.168.20.13:8788/health off the main thread and renders ok, service, version and every checks value plus the raw body. INTERNET permission and usesCleartextTraffic are declared for the LAN Hub. A failed or non-2xx call renders an explicit error line and never reports success (AGENTS.md §10 rule 4). applicationId au.audasmedia.hub.phone, versionName 0.1.0-phase1. Co-Authored-By: Paperclip <noreply@paperclip.ing>
44 lines
1.1 KiB
Kotlin
44 lines
1.1 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "au.audasmedia.hub.phone"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "au.audasmedia.hub.phone"
|
|
// AGENTS.md §9: API 29 (Android 10) is the suggested minimum. The app
|
|
// targets API 35 but runs on Android 10 and up.
|
|
minSdk = 29
|
|
targetSdk = 35
|
|
versionCode = 1
|
|
versionName = "0.1.0-phase1"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro",
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
|
|
// Phase 1 keeps the dependency set empty on purpose: the health check uses
|
|
// HttpURLConnection (JDK/Android) and org.json (Android platform). No appcompat,
|
|
// no okhttp, no gson.
|
|
dependencies {
|
|
}
|