build.gradle 6.0 KB

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