mirror of
https://github.com/fankes/unmeta-gradle-plugin.git
synced 2025-12-14 05:21:05 +08:00
Furnish with android examples
This commit is contained in:
@@ -1,8 +1,42 @@
|
||||
plugins {
|
||||
java
|
||||
id("com.android.application")
|
||||
id("com.axzae.unmeta")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = libs.versions.compileSdkVersion.get().toInt()
|
||||
defaultConfig {
|
||||
namespace = "com.axzae.unmeta.example"
|
||||
applicationId = "com.axzae.unmeta.example"
|
||||
minSdk = libs.versions.minSdkVersion.get().toInt()
|
||||
targetSdk = libs.versions.targetSdkVersion.get().toInt()
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = false
|
||||
isDebuggable = false
|
||||
}
|
||||
getByName("debug") {
|
||||
isDebuggable = true
|
||||
applicationIdSuffix = ".debug"
|
||||
versionNameSuffix = "-debug"
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.appcompat)
|
||||
implementation(libs.kotlinStdlib)
|
||||
}
|
||||
|
||||
unmeta {
|
||||
isEnabled.set(true)
|
||||
verbose.set(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user