- Restored canonical proto from eng-pad-server (PageData, StrokeData message names, not Notebook/Page/Stroke) - Added java_package + java_multiple_files options - Renamed service to EngPadSyncService (buf STANDARD lint compliance) - Simplified build.gradle.kts: removed broken custom GenerateProtoTask, proto stubs generated via Makefile `make proto` and checked into git - Generated stubs in app/src/main/java/gen/ - Fixed SyncClient/SyncManager to match canonical proto schema - Updated dependency versions: protobuf 4.34.1, grpc 1.80.0, grpcKotlin 1.5.0 - Added buf.yaml with STANDARD lint rules and FILE breaking detection Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
83 lines
2.0 KiB
Kotlin
83 lines
2.0 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.compose)
|
|
alias(libs.plugins.ksp)
|
|
}
|
|
|
|
android {
|
|
namespace = "net.metacircular.engpad"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "net.metacircular.engpad"
|
|
minSdk = 30
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "0.1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
lint {
|
|
warningsAsErrors = true
|
|
abortOnError = true
|
|
checkDependencies = true
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.activity.compose)
|
|
|
|
implementation(platform(libs.compose.bom))
|
|
implementation(libs.compose.ui)
|
|
implementation(libs.compose.ui.tooling.preview)
|
|
implementation(libs.compose.material3)
|
|
debugImplementation(libs.compose.ui.tooling)
|
|
|
|
implementation(libs.navigation.compose)
|
|
|
|
implementation(libs.lifecycle.viewmodel.compose)
|
|
implementation(libs.lifecycle.runtime.compose)
|
|
|
|
implementation(libs.room.runtime)
|
|
implementation(libs.room.ktx)
|
|
ksp(libs.room.compiler)
|
|
|
|
implementation(libs.coroutines.android)
|
|
implementation(libs.reorderable)
|
|
|
|
implementation(libs.protobuf.kotlin.lite)
|
|
implementation(libs.grpc.okhttp)
|
|
implementation(libs.grpc.protobuf.lite)
|
|
implementation(libs.grpc.stub)
|
|
implementation(libs.grpc.kotlin.stub)
|
|
|
|
testImplementation(libs.junit)
|
|
testImplementation(libs.coroutines.test)
|
|
testImplementation(libs.room.testing)
|
|
}
|