87 lines
2.2 KiB
Groovy
87 lines
2.2 KiB
Groovy
|
buildscript {
|
||
|
ext.kotlin_version = '1.3.71'
|
||
|
|
||
|
repositories {
|
||
|
google()
|
||
|
jcenter()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
classpath 'com.android.tools.build:gradle:7.0.0-alpha08'
|
||
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
allprojects {
|
||
|
repositories {
|
||
|
google()
|
||
|
jcenter()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
apply plugin: 'com.android.application'
|
||
|
apply plugin: 'kotlin-android'
|
||
|
apply plugin: 'kotlin-android-extensions'
|
||
|
|
||
|
final String ANDROID_ROOT = "${rootDir}/../../../.."
|
||
|
|
||
|
android {
|
||
|
compileSdkVersion COMPILE_SDK
|
||
|
buildToolsVersion BUILD_TOOLS_VERSION
|
||
|
|
||
|
defaultConfig {
|
||
|
applicationId "com.android.egg"
|
||
|
minSdkVersion 28
|
||
|
targetSdkVersion 30
|
||
|
versionCode 1
|
||
|
versionName "1.0"
|
||
|
|
||
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
|
}
|
||
|
|
||
|
compileOptions {
|
||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||
|
}
|
||
|
|
||
|
sourceSets {
|
||
|
main {
|
||
|
res.srcDirs = ['res']
|
||
|
java.srcDirs = ['src']
|
||
|
manifest.srcFile 'AndroidManifest.xml'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
signingConfigs {
|
||
|
debug.storeFile file("${ANDROID_ROOT}/vendor/google/certs/devkeys/platform.keystore")
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
release {
|
||
|
minifyEnabled false
|
||
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
|
}
|
||
|
}
|
||
|
buildFeatures {
|
||
|
viewBinding true
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
||
|
implementation 'androidx.core:core-ktx:1.2.0'
|
||
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6'
|
||
|
implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
|
||
|
implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
|
||
|
implementation 'com.google.android.material:material:1.3.0'
|
||
|
testImplementation 'junit:junit:4.12'
|
||
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
||
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
||
|
androidTestImplementation "androidx.annotation:annotation:${ANDROID_X_VERSION}"
|
||
|
}
|
||
|
|