mirror of
https://github.com/nacabaro/vbhelper.git
synced 2026-01-27 16:05:32 +00:00
Add proto plugin and dependencies Create Secrets Proto Create Secrets Proto DataStore Replace old secrets with proto secrets Fix importers and tests to use new proto secrets.
94 lines
2.8 KiB
Plaintext
94 lines
2.8 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
id("com.google.devtools.ksp") version "2.0.21-1.0.27"
|
|
id("com.google.protobuf")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.github.nacabaro.vbhelper"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "com.github.nacabaro.vbhelper"
|
|
minSdk = 28
|
|
targetSdk = 35
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
lint {
|
|
baseline = file("lint-baseline.xml")
|
|
}
|
|
}
|
|
|
|
protobuf {
|
|
protoc {
|
|
artifact = "com.google.protobuf:protoc:4.27.0"
|
|
}
|
|
|
|
// Generates the java Protobuf-lite code for the Protobufs in this project. See
|
|
// https://github.com/google/protobuf-gradle-plugin#customizing-protobuf-compilation
|
|
// for more information.
|
|
generateProtoTasks {
|
|
all().forEach { task ->
|
|
task.builtins {
|
|
create("java") {
|
|
option("lite")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.room.runtime)
|
|
implementation(libs.vb.nfc.reader)
|
|
implementation(libs.dim.reader)
|
|
ksp(libs.androidx.room.compiler)
|
|
annotationProcessor(libs.androidx.room.compiler)
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.datastore)
|
|
implementation(libs.androidx.ui)
|
|
implementation(libs.androidx.ui.graphics)
|
|
implementation(libs.androidx.ui.tooling.preview)
|
|
implementation(libs.androidx.material3)
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
androidTestImplementation(platform(libs.androidx.compose.bom))
|
|
androidTestImplementation(libs.androidx.ui.test.junit4)
|
|
debugImplementation(libs.androidx.ui.tooling)
|
|
debugImplementation(libs.androidx.ui.test.manifest)
|
|
implementation("androidx.navigation:navigation-compose:2.7.0")
|
|
implementation("com.google.android.material:material:1.2.0")
|
|
implementation(libs.protobuf.javalite)
|
|
implementation("androidx.compose.material:material")
|
|
} |