You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
7 months ago
|
apply plugin: 'com.android.application'
|
||
|
|
||
|
android {
|
||
|
compileSdkVersion 29
|
||
|
buildToolsVersion "29.0.2"
|
||
|
|
||
|
defaultConfig {
|
||
|
applicationId "com.vendor.vnaudiomanager"
|
||
|
minSdkVersion 29
|
||
|
targetSdkVersion 29
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
release {
|
||
|
minifyEnabled true
|
||
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),'proguard-rules.pro'
|
||
|
}
|
||
|
}
|
||
|
android {
|
||
|
lintOptions {
|
||
|
abortOnError false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
signingConfigs {
|
||
|
release {
|
||
|
keyAlias "platform"
|
||
|
}
|
||
|
}
|
||
|
task clearJar(type: Delete) {
|
||
|
delete 'build/libs/classes.jar'
|
||
|
}
|
||
|
|
||
|
task makeJar(type: org.gradle.api.tasks.bundling.Jar) {
|
||
|
baseName 'classes'
|
||
|
//linux
|
||
|
from('build/intermediates/javac/release/compileReleaseJavaWithJavac/classes/com/vendor/vnaudiomanager')
|
||
|
into('com/vendor/vnaudiomanager')
|
||
|
exclude('BuildConfig.class', 'R.class')
|
||
|
exclude { it.name.startsWith('R$') }
|
||
|
}
|
||
|
compileOptions {
|
||
|
sourceCompatibility = '1.8'
|
||
|
targetCompatibility = '1.8'
|
||
|
}
|
||
|
|
||
|
makeJar.dependsOn(clearJar, build)
|
||
|
|
||
|
afterEvaluate {
|
||
|
assembleRelease.doLast {
|
||
|
delete 'build/generated/source/aidl/release/com/vendor/ipc/IAudioService.java'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation files('libs/android.car.jar')
|
||
|
compileOnly files('libs/TvMwShare.jar')
|
||
|
compileOnly files('libs/framework.jar')
|
||
|
}
|