88 lines
2.1 KiB
Groovy
88 lines
2.1 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
|
|
compileSdk 34
|
|
defaultConfig {
|
|
applicationId "com.android.domain.aml"
|
|
minSdk 24
|
|
targetSdk 34
|
|
versionCode 105
|
|
versionName "Domain-1.0.105-amlogic"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile file("../app/platform.keystore")
|
|
storePassword 'android'
|
|
keyAlias 'platform'
|
|
keyPassword 'android'
|
|
v1SigningEnabled true
|
|
v2SigningEnabled true
|
|
}
|
|
|
|
debug {
|
|
storeFile file("../app/platform.keystore")
|
|
storePassword 'android'
|
|
keyAlias 'platform'
|
|
keyPassword 'android'
|
|
v1SigningEnabled true
|
|
v2SigningEnabled true
|
|
}
|
|
}
|
|
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all {
|
|
if (variant.buildType.name == "release") {
|
|
packageApplicationProvider.get().outputDirectory = new File(project.rootDir, "apk")
|
|
outputFileName = "app-${variant.versionName}-${new Date().format('yyyyMMdd')}-${variant.buildType.name}.apk"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
lintOptions {
|
|
checkReleaseBuilds false
|
|
abortOnError false
|
|
}
|
|
|
|
dexOptions {
|
|
preDexLibraries false
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig true
|
|
}
|
|
|
|
namespace 'com.android.domain.aml'
|
|
}
|
|
|
|
tasks.whenTaskAdded { task ->
|
|
if (task.name.contains("ReleaseApkListingFileRedirect")) {
|
|
task.enabled = false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'androidx.leanback:leanback:1.0.0'
|
|
implementation project(':nebula-sdk')
|
|
|
|
} |