build.gradle 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. apply plugin: 'com.android.application'
  2. android {
  3. signingConfigs {
  4. // debug {
  5. // keyAlias 'lifeplus_debug'
  6. // keyPassword 'lifeplus_debug'
  7. // storeFile rootProject.file("keystore/lifeplus_debug")
  8. // storePassword 'lifeplus_debug'
  9. // }
  10. release {
  11. keyAlias 'yeongyun_zumo'
  12. keyPassword 'yy0906'
  13. storeFile rootProject.file("keystore/yeongyun.jks")
  14. storePassword 'yy0906'
  15. }
  16. }
  17. compileSdkVersion 27
  18. defaultConfig {
  19. applicationId "kr.co.zumo.app"
  20. minSdkVersion 19 // 4.4
  21. targetSdkVersion 27
  22. versionCode 149
  23. versionName "4.0.0.22"
  24. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  25. multiDexEnabled true
  26. vectorDrawables.useSupportLibrary = true
  27. }
  28. buildTypes {
  29. release {
  30. minifyEnabled false
  31. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  32. signingConfig signingConfigs.release
  33. }
  34. debug {
  35. versionNameSuffix "-debug"
  36. manifestPlaceholders = [appLabel: "@string/app_name_debug"]
  37. signingConfig signingConfigs.release
  38. // signingConfig signingConfigs.debug
  39. }
  40. }
  41. sourceSets {
  42. /*
  43. - dev / product = NetworkConfig 를 다르게 설정
  44. - sandbox / common = sandbox 로 사용할 Class 를 설정
  45. */
  46. sandbox {
  47. java.srcDirs = ['src/dev/java', 'src/sandbox/java']
  48. }
  49. dev {
  50. java.srcDirs = ['src/dev/java', 'src/common/java']
  51. }
  52. product {
  53. java.srcDirs = ['src/product/java', 'src/common/java']
  54. }
  55. }
  56. flavorDimensions "build"
  57. productFlavors {
  58. sandbox {
  59. versionNameSuffix "-sandbox"
  60. manifestPlaceholders = [appLabel: "@string/app_name"]
  61. }
  62. dev {
  63. versionNameSuffix "-dev"
  64. manifestPlaceholders = [appLabel: "@string/app_name"]
  65. }
  66. product {
  67. versionNameSuffix ""
  68. manifestPlaceholders = [appLabel: "@string/app_name"]
  69. }
  70. }
  71. applicationVariants.all { variant ->
  72. variant.outputs.all { output ->
  73. def SEP = "_"
  74. def buildType = variant.variantData.variantConfiguration.buildType.name
  75. def version = variant.versionName
  76. def newApkName
  77. if (buildType == "release") {
  78. newApkName = "lifeplus" + SEP + buildType + SEP + version + ".apk"
  79. } else {
  80. newApkName = "lifeplus" + ".apk"
  81. }
  82. outputFileName = new File(newApkName)
  83. }
  84. }
  85. compileOptions {
  86. sourceCompatibility JavaVersion.VERSION_1_8
  87. targetCompatibility JavaVersion.VERSION_1_8
  88. }
  89. testOptions {
  90. unitTests {
  91. includeAndroidResources = true
  92. returnDefaultValues = true
  93. }
  94. }
  95. }
  96. dependencies {
  97. implementation fileTree(dir: 'libs', include: ['*.jar'])
  98. implementation 'com.android.support:appcompat-v7:27.1.1'
  99. implementation 'com.android.support:design:27.1.1'
  100. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  101. implementation 'com.android.support:support-v4:27.1.1'
  102. implementation 'com.android.support:recyclerview-v7:27.1.1'
  103. implementation "android.arch.lifecycle:extensions:1.1.1"
  104. implementation "android.arch.lifecycle:viewmodel:1.1.1"
  105. /*********************************
  106. * External lib
  107. *********************************/
  108. implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
  109. implementation 'com.google.android.gms:play-services-plus:16.0.0'
  110. implementation 'com.google.code.gson:gson:2.8.5'
  111. implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'
  112. implementation 'com.squareup.retrofit2:retrofit:2.4.0'
  113. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
  114. implementation('com.squareup.retrofit2:converter-gson:2.3.0')
  115. {
  116. exclude group: 'com.google.code.gson', module: 'gson'
  117. }
  118. // implementation 'com.github.aakira:expandable-layout:1.6.0@aar'
  119. implementation 'com.github.bumptech.glide:glide:4.8.0'
  120. annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
  121. implementation 'com.kakao.sdk:kakaolink:1.14.0'
  122. implementation 'com.facebook.android:facebook-share:4.38.1'
  123. /*********************************
  124. * UNIT TEST
  125. *********************************/
  126. // Required for local unit tests (JUnit 4 framework)
  127. testImplementation 'junit:junit:4.12'
  128. // Required for instrumented tests
  129. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  130. androidTestImplementation 'com.android.support.test:rules:1.0.2'
  131. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  132. androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2'
  133. androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
  134. // Mockito
  135. // testImplementation "org.mockito:mockito-core:2.21.0"
  136. // Robolectric
  137. testImplementation 'org.robolectric:robolectric:3.8'
  138. testImplementation "org.robolectric:shadows-support-v4:3.3.2"
  139. testImplementation "org.robolectric:multidex:3.4.2"
  140. // PowerMock
  141. testImplementation 'org.powermock:powermock-core:1.7.4'
  142. testImplementation "org.powermock:powermock-module-junit4:1.7.4"
  143. testImplementation "org.powermock:powermock-api-mockito2:1.7.4"
  144. }