50 lines
1.4 KiB
Groovy
50 lines
1.4 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
def ext = rootProject.ext
|
|
android {
|
|
compileSdk ext.compileSdk
|
|
|
|
defaultConfig {
|
|
minSdk ext.minSdk
|
|
targetSdk ext.targetSdk
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_21
|
|
targetCompatibility JavaVersion.VERSION_21
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
res.srcDirs +=
|
|
[
|
|
'src/main/res/layouts/bird',
|
|
]
|
|
}
|
|
}
|
|
namespace 'com.engineer.android.game'
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation "androidx.core:core-ktx:${ext.core_ktx}"
|
|
implementation "androidx.appcompat:appcompat:$ext.androidx_appcompat"
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
|
|
implementation "androidx.lifecycle:lifecycle-extensions:$ext.archLifecycleVersion"
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
|
|
}
|