Hyunyoung Song | 719eee2 | 2018-11-01 23:12:54 -0700 | [diff] [blame^] | 1 | buildscript { |
| 2 | repositories { |
| 3 | mavenCentral() |
| 4 | google() |
| 5 | } |
| 6 | dependencies { |
| 7 | classpath GRADLE_CLASS_PATH |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | apply plugin: 'com.android.library' |
| 12 | |
| 13 | android { |
| 14 | compileSdkVersion COMPILE_SDK.toInteger() |
| 15 | buildToolsVersion BUILD_TOOLS_VERSION |
| 16 | publishNonDefault true |
| 17 | |
| 18 | defaultConfig { |
| 19 | minSdkVersion 21 |
| 20 | targetSdkVersion 28 |
| 21 | versionCode 1 |
| 22 | versionName "1.0" |
| 23 | } |
| 24 | |
| 25 | sourceSets { |
| 26 | main { |
| 27 | java.srcDirs = ['src'] |
| 28 | manifest.srcFile 'AndroidManifest.xml' |
| 29 | res.srcDirs = ['res'] |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | lintOptions { |
| 34 | abortOnError false |
| 35 | } |
| 36 | |
| 37 | tasks.withType(JavaCompile) { |
| 38 | options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | |
| 43 | repositories { |
| 44 | mavenCentral() |
| 45 | google() |
| 46 | } |
| 47 | |
| 48 | dependencies { |
| 49 | implementation "androidx.core:core:${ANDROID_X_VERSION}" |
| 50 | } |