blob: 20b469898498b2cd7d9588fa1d8a97dfc859ecf1 [file] [log] [blame]
Dan Sandlerf4e83e02020-05-12 21:25:31 -04001buildscript {
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:4.0.0'
11 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
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
66
67}
68
69dependencies {
70 implementation fileTree(dir: 'libs', include: ['*.jar'])
71 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
72 implementation 'androidx.appcompat:appcompat:1.1.0'
73 implementation 'androidx.core:core-ktx:1.2.0'
74 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6'
75 implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
76 implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
77 testImplementation 'junit:junit:4.12'
78 androidTestImplementation 'androidx.test.ext:junit:1.1.1'
79 androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
80 androidTestImplementation "androidx.annotation:annotation:${ANDROID_X_VERSION}"
81}
82