123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-kapt'
- apply plugin: 'kotlin-android-extensions'
- android {
- compileSdkVersion rootProject.ext.android["compileSdkVersion"]
- buildToolsVersion rootProject.ext.android["buildToolsVersion"]
- useLibrary 'org.apache.http.legacy'
- compileOptions {
- targetCompatibility JavaVersion.VERSION_1_8
- sourceCompatibility JavaVersion.VERSION_1_8
- }
- defaultConfig {
- multiDexEnabled true
- applicationId "me.hegj.wandroid"
- minSdkVersion rootProject.ext.android["minSdkVersion"]
- targetSdkVersion rootProject.ext.android["targetSdkVersion"]
- versionCode rootProject.ext.android["versionCode"]
- versionName rootProject.ext.android["versionName"]
- testInstrumentationRunner rootProject.ext.dependencies["androidJUnitRunner"]
- ndk {
-
- abiFilters 'armeabi-v7a'
- }
- }
-
- buildTypes {
- debug {
- buildConfigField "boolean", "LOG_DEBUG", "true"
- buildConfigField "boolean", "USE_CANARY", "true"
- buildConfigField "String", "BUGLY_KEY", '"xxxxxx"'
- minifyEnabled false
- shrinkResources false
- zipAlignEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- release {
- buildConfigField "boolean", "LOG_DEBUG", "false"
- buildConfigField "boolean", "USE_CANARY", "false"
- buildConfigField "String", "BUGLY_KEY", '"5a5f6366fc"'
- minifyEnabled true
- shrinkResources true
- zipAlignEnabled true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- lintOptions {
- disable 'InvalidPackage'
- disable "ResourceType"
- abortOnError false
- }
- dexOptions {
- javaMaxHeapSize "4g"
- jumboMode = true
- preDexLibraries = false
- additionalParameters = [
- '--multi-dex',
- '--set-max-idx-number=60000'
- ]
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
-
- annotationProcessor rootProject.ext.dependencies["dagger2-compiler"]
- kapt rootProject.ext.dependencies["dagger2-compiler"]
-
- implementation "com.jakewharton:butterknife:10.1.0"
- kapt "com.jakewharton:butterknife-compiler:10.1.0"
-
- testImplementation rootProject.ext.dependencies["junit"]
- debugImplementation rootProject.ext.dependencies["canary-debug"]
- releaseImplementation rootProject.ext.dependencies["canary-release"]
- testImplementation rootProject.ext.dependencies["canary-release"]
-
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.1"
-
- implementation rootProject.ext.customLibs
- }
- repositories {
- mavenCentral()
- }
|