1buildscript { 2 ext.kotlin_version = '1.3.71' 3 4 repositories { 5 google() 6 jcenter() 7 } 8 9 dependencies { 10 classpath 'com.android.tools.build:gradle:7.0.0-alpha08' 11 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30" 12 } 13} 14 15allprojects { 16 repositories { 17 google() 18 jcenter() 19 } 20} 21 22apply plugin: 'com.android.application' 23apply plugin: 'kotlin-android' 24apply plugin: 'kotlin-android-extensions' 25 26final String ANDROID_ROOT = "${rootDir}/../../../.." 27 28android { 29 compileSdkVersion COMPILE_SDK 30 buildToolsVersion BUILD_TOOLS_VERSION 31 32 defaultConfig { 33 applicationId "com.android.egg" 34 minSdkVersion 28 35 targetSdkVersion 30 36 versionCode 1 37 versionName "1.0" 38 39 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 40 } 41 42 compileOptions { 43 sourceCompatibility JavaVersion.VERSION_1_8 44 targetCompatibility JavaVersion.VERSION_1_8 45 } 46 47 sourceSets { 48 main { 49 res.srcDirs = ['res'] 50 java.srcDirs = ['src'] 51 manifest.srcFile 'AndroidManifest.xml' 52 } 53 } 54 55 signingConfigs { 56 debug.storeFile file("${ANDROID_ROOT}/vendor/google/certs/devkeys/platform.keystore") 57 } 58 59 buildTypes { 60 release { 61 minifyEnabled false 62 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 63 } 64 } 65 buildFeatures { 66 viewBinding true 67 } 68 69 70} 71 72dependencies { 73 implementation fileTree(dir: 'libs', include: ['*.jar']) 74 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 75 implementation 'androidx.appcompat:appcompat:1.1.0' 76 implementation 'androidx.core:core-ktx:1.2.0' 77 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6' 78 implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}" 79 implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}" 80 implementation 'com.google.android.material:material:1.3.0' 81 testImplementation 'junit:junit:4.12' 82 androidTestImplementation 'androidx.test.ext:junit:1.1.1' 83 androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' 84 androidTestImplementation "androidx.annotation:annotation:${ANDROID_X_VERSION}" 85} 86 87