Skip to content

Commit

Permalink
Migrate termux-boot to build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed May 12, 2024
1 parent 3ac508c commit 9c10607
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 51 deletions.
51 changes: 0 additions & 51 deletions termux-boot/build.gradle

This file was deleted.

59 changes: 59 additions & 0 deletions termux-boot/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
plugins {
id("com.android.application")
}

android {
namespace = "com.termux.boot"

defaultConfig {
applicationId = "com.termux.boot"
val minSdkVersion: String by project
val targetSdkVersion: String by project
val compileSdkVersion: String by project
minSdk = minSdkVersion.toInt()
targetSdk = targetSdkVersion.toInt()
compileSdk = compileSdkVersion.toInt()
versionCode = 10
versionName = "0.10"
}

signingConfigs {
getByName("debug") {
storeFile = file("testkey_untrusted.jks")
keyAlias = "alias"
storePassword = "xrj45yWGLbsO7W0v"
keyPassword = "xrj45yWGLbsO7W0v"
}
}

buildTypes {
getByName("release") {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt")
}

getByName("debug") {
signingConfig = signingConfigs.getByName("debug")
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

lint {
warningsAsErrors = true
}
}

dependencies {
implementation("androidx.annotation:annotation:1.7.1")
}

task("versionName") {
doLast {
print(android.defaultConfig.versionName)
}
}

0 comments on commit 9c10607

Please sign in to comment.