123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- 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
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // Sybotan依赖
- implementation group: 'com.sybotan', name: 'sybotan-kotlin-base', version: SYBOTAN_KOTLIN_VERSION
- implementation group: 'com.sybotan', name: 'sybotan-android-base', version: SYBOTAN_ANDROID_VERSION
- implementation group: 'com.sybotan', name: 'sybotan-android-graphy', version: SYBOTAN_ANDROID_VERSION
- implementation project(':cadengine')
- }
|