1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- android {
- compileSdkVersion ANDROID_SDK_VERSION.toInteger()
- buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
- defaultConfig {
- minSdkVersion ANDROID_MIN_SDK_VERSION.toInteger()
- targetSdkVersion ANDROID_SDK_VERSION.toInteger()
- versionCode SYBOTAN_CODE.toInteger()
- versionName SYBOTAN_ANDROID_VERSION
- testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
- vectorDrawables.useSupportLibrary = true
- }
- buildTypes {
- release {
- // minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- // 解决lint语法检查错误(kotlin语法无法通过lint)
- lintOptions {
- abortOnError false
- }
- kotlinOptions {
- jvmTarget = JVM_TARGET
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'com.android.support.constraint:constraint-layout:1.1.2'
- testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: JUNIT_VERSION
- androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
- exclude group: 'com.android.support', module: 'support-annotations'
- })
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // kotlin 依赖
- implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: KOTLIN_VERSION
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // android支持
- implementation group: 'com.android.support', name: 'appcompat-v7', version: ANDROID_SUPPORT_VERSION
- implementation group: 'com.android.support', name: 'design', version: ANDROID_SUPPORT_VERSION
- implementation group: 'com.android.support', name: 'support-v4', version: ANDROID_SUPPORT_VERSION
- implementation group: 'com.android.support.constraint', name: 'constraint-layout', version: CONSTRAINT_VERSION
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // anko依赖
- // https://mvnrepository.com/artifact/org.jetbrains.anko/anko-commons
- implementation group: 'org.jetbrains.anko', name: 'anko-commons', version: ANKO_VERSION
- }
|