| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- apply plugin: 'com.android.application'
- android {
- signingConfigs {
- // debug {
- // keyAlias 'lifeplus_debug'
- // keyPassword 'lifeplus_debug'
- // storeFile rootProject.file("keystore/lifeplus_debug")
- // storePassword 'lifeplus_debug'
- // }
- release {
- keyAlias 'yeongyun_zumo'
- keyPassword 'yy0906'
- storeFile rootProject.file("keystore/yeongyun.jks")
- storePassword 'yy0906'
- }
- }
- compileSdkVersion 27
- defaultConfig {
- applicationId "kr.co.zumo.app"
- minSdkVersion 19 // 4.4
- targetSdkVersion 27
- versionCode 149
- versionName "4.0.0.33"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- multiDexEnabled true
- vectorDrawables.useSupportLibrary = true
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- signingConfig signingConfigs.release
- }
- debug {
- versionNameSuffix "-debug"
- manifestPlaceholders = [appLabel: "@string/app_name_debug"]
- signingConfig signingConfigs.release
- // signingConfig signingConfigs.debug
- }
- }
- sourceSets {
- /*
- - dev / product = NetworkConfig 를 다르게 설정
- - sandbox / common = sandbox 로 사용할 Class 를 설정
- */
- sandbox {
- java.srcDirs = ['src/dev/java', 'src/sandbox/java']
- }
- dev {
- java.srcDirs = ['src/dev/java', 'src/common/java']
- }
- product {
- java.srcDirs = ['src/product/java', 'src/common/java']
- }
- }
- flavorDimensions "build"
- productFlavors {
- sandbox {
- versionNameSuffix "-sandbox"
- manifestPlaceholders = [appLabel: "@string/app_name"]
- }
- dev {
- versionNameSuffix "-dev"
- manifestPlaceholders = [appLabel: "@string/app_name"]
- }
- product {
- versionNameSuffix ""
- manifestPlaceholders = [appLabel: "@string/app_name"]
- }
- }
- applicationVariants.all { variant ->
- variant.outputs.all { output ->
- def SEP = "_"
- def buildType = variant.variantData.variantConfiguration.buildType.name
- def version = variant.versionName
- def newApkName
- if (buildType == "release") {
- newApkName = "lifeplus" + SEP + buildType + SEP + version + ".apk"
- } else {
- newApkName = "lifeplus" + ".apk"
- }
- outputFileName = new File(newApkName)
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- testOptions {
- unitTests {
- includeAndroidResources = true
- returnDefaultValues = true
- }
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'com.android.support:appcompat-v7:27.1.1'
- implementation 'com.android.support:design:27.1.1'
- implementation 'com.android.support.constraint:constraint-layout:1.1.3'
- implementation 'com.android.support:support-v4:27.1.1'
- implementation 'com.android.support:recyclerview-v7:27.1.1'
- implementation "android.arch.lifecycle:extensions:1.1.1"
- implementation "android.arch.lifecycle:viewmodel:1.1.1"
- /*********************************
- * External lib
- *********************************/
- implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
- implementation 'com.google.android.gms:play-services-plus:16.0.0'
- implementation 'com.google.code.gson:gson:2.8.5'
- implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'
- implementation 'com.squareup.retrofit2:retrofit:2.4.0'
- implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
- implementation('com.squareup.retrofit2:converter-gson:2.3.0')
- {
- exclude group: 'com.google.code.gson', module: 'gson'
- }
- // implementation 'com.github.aakira:expandable-layout:1.6.0@aar'
- implementation 'com.github.bumptech.glide:glide:4.8.0'
- annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
- implementation 'com.kakao.sdk:kakaolink:1.14.0'
- implementation 'com.facebook.android:facebook-share:4.38.1'
- implementation 'com.githang:status-bar-compat:0.7'
- /*********************************
- * UNIT TEST
- *********************************/
- // Required for local unit tests (JUnit 4 framework)
- testImplementation 'junit:junit:4.12'
- // Required for instrumented tests
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test:rules:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2'
- androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
- // Mockito
- // testImplementation "org.mockito:mockito-core:2.21.0"
- // Robolectric
- testImplementation 'org.robolectric:robolectric:3.8'
- testImplementation "org.robolectric:shadows-support-v4:3.3.2"
- testImplementation "org.robolectric:multidex:3.4.2"
- // PowerMock
- testImplementation 'org.powermock:powermock-core:1.7.4'
- testImplementation "org.powermock:powermock-module-junit4:1.7.4"
- testImplementation "org.powermock:powermock-api-mockito2:1.7.4"
- }
|