mirror of
https://github.com/yuliskov/SmartTube.git
synced 2025-05-17 11:25:54 +08:00
42 lines
1.5 KiB
Groovy
42 lines
1.5 KiB
Groovy
apply from: gradle.ext.sharedModulesConstants
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
// FIX: Default interface methods are only supported starting with Android N (--min-api 24)
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
compileSdkVersion project.properties.compileSdkVersion
|
|
buildToolsVersion project.properties.buildToolsVersion
|
|
testOptions.unitTests.includeAndroidResources = true
|
|
|
|
defaultConfig {
|
|
minSdkVersion project.properties.minSdkVersion
|
|
targetSdkVersion project.properties.targetSdkVersion
|
|
versionCode 10
|
|
versionName "1.0.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
api 'androidx.activity:activity:' + leanbackXLibraryVersion // used inside other app modules
|
|
implementation 'androidx.annotation:annotation:' + annotationXLibraryVersion
|
|
implementation 'androidx.core:core:' + coreXLibraryVersion
|
|
implementation 'androidx.viewpager:viewpager:' + leanbackXLibraryVersion
|
|
implementation 'androidx.loader:loader:' + leanbackXLibraryVersion
|
|
}
|