- Check latest release on startup, show 'update available' dialog with Update/ Later buttons - Download APK with progress and install via ACTION_VIEW + custom UpdateFileProvider (no androidx) - Request unknown-app-sources permission if needed, resume download on return to the app
54 lines
984 B
Kotlin
54 lines
984 B
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "ru.ua1zbe.svxremote"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "ru.ua1zbe.svxremote"
|
|
minSdk = 26
|
|
targetSdk = 34
|
|
versionCode = 4
|
|
versionName = "1.0.2"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
}
|
|
}
|
|
|
|
lint {
|
|
checkReleaseBuilds = false
|
|
abortOnError = false
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation("junit:junit:4.13.2")
|
|
}
|
|
|
|
android {
|
|
testOptions {
|
|
unitTests {
|
|
isReturnDefaultValues = true
|
|
all {
|
|
it.maxHeapSize = "256m"
|
|
}
|
|
}
|
|
}
|
|
} |