client: pawlet-client-sdk, public-SDK-only, installable:false, built for external AAR/jar publishing. device: pawlet-device, platform_apis:true, product-partition device API. system: pawlet-system + pawlet-manager-service, platform_apis:true, shared AIDL now a filegroup so client can compile its own copy without a ".." path reference. Removed core/java/pawletos/device/system/PawletManager.java -- a ServiceManager-based accessor that was never actually wired up (nothing ever called ServiceManager.addService), so it always returned null. PawletClient already covers this without a privileged-only path.
56 lines
1.6 KiB
Kotlin
56 lines
1.6 KiB
Kotlin
// Standalone Gradle module that publishes pawlet-client-sdk to PawletOS's
|
|
// Gitea Maven package registry. Not part of the AOSP/Soong build — Soong
|
|
// can't publish to Maven, so this mirrors the same sources (../client/java,
|
|
// ../system/java's IPawletManager.aidl) through a normal Android library
|
|
// module purely so external, non-AOSP Gradle projects have something to
|
|
// `implementation(...)` against.
|
|
//
|
|
// Source of truth stays in ../client and ../system — this build file only
|
|
// points sourceSets at them, it does not copy anything.
|
|
|
|
plugins {
|
|
id("com.android.library") version "8.7.2"
|
|
id("maven-publish")
|
|
}
|
|
|
|
android {
|
|
namespace = "pawletos.device.client"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
minSdk = 26
|
|
}
|
|
|
|
buildFeatures {
|
|
aidl = true
|
|
}
|
|
|
|
sourceSets["main"].java.srcDirs("../client/java")
|
|
sourceSets["main"].aidl.srcDirs("../system/java")
|
|
|
|
publishing {
|
|
singleVariant("release")
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
register<MavenPublication>("release") {
|
|
groupId = "me.pawlet"
|
|
artifactId = "pawlet-client-sdk"
|
|
version = (project.findProperty("pawletSdkVersion") as String?) ?: "0.1.0"
|
|
afterEvaluate { from(components["release"]) }
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "PawletOS"
|
|
url = uri("https://git.oxmc.me/api/packages/PawletOS/maven")
|
|
credentials {
|
|
username = System.getenv("GITEA_USER")
|
|
password = System.getenv("GITEA_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
}
|