Android app for HART protocol field devices (Bluetooth SPP / USB CP210x). Kotlin, MVVM, Jetpack Navigation, Material Design. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "ru.kaptsov.hartmobile"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "ru.kaptsov.hartmobile"
|
|
minSdk = 23
|
|
targetSdk = 34
|
|
versionCode = 2
|
|
versionName = "1.0.1"
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
storeFile = file("../hart_mobile.keystore")
|
|
storePassword = project.findProperty("KEYSTORE_PASSWORD") as String? ?: ""
|
|
keyAlias = "hart_mobile"
|
|
keyPassword = project.findProperty("KEY_PASSWORD") as String? ?: ""
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
signingConfig = signingConfigs.getByName("release")
|
|
isMinifyEnabled = true
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
implementation("com.google.android.material:material:1.11.0")
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0")
|
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.7.0")
|
|
implementation("androidx.navigation:navigation-fragment-ktx:2.7.6")
|
|
implementation("androidx.navigation:navigation-ui-ktx:2.7.6")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
|
|
// USB Serial для CP210x (BriC USB)
|
|
implementation("com.github.mik3y:usb-serial-for-android:3.7.0")
|
|
}
|