build.gradle 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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"
  24. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  25. multiDexEnabled true
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  31. signingConfig signingConfigs.release
  32. }
  33. debug {
  34. versionNameSuffix "-debug"
  35. manifestPlaceholders = [appLabel: "@string/app_name_debug"]
  36. signingConfig signingConfigs.release
  37. // signingConfig signingConfigs.debug
  38. }
  39. }
  40. flavorDimensions "build"
  41. productFlavors {
  42. dev {
  43. versionNameSuffix "-dev"
  44. manifestPlaceholders = [appLabel: "@string/app_name"]
  45. }
  46. product {
  47. versionNameSuffix ""
  48. manifestPlaceholders = [appLabel: "@string/app_name"]
  49. }
  50. }
  51. applicationVariants.all { variant ->
  52. variant.outputs.all { output ->
  53. def SEP = "_"
  54. def buildType = variant.variantData.variantConfiguration.buildType.name
  55. def version = variant.versionName
  56. def formattedDate = new Date().format('yyMMddHHmm')
  57. def newApkName = "lifeplus" + SEP + buildType + SEP + version + SEP + formattedDate + ".apk"
  58. outputFileName = new File(newApkName)
  59. }
  60. }
  61. compileOptions {
  62. sourceCompatibility JavaVersion.VERSION_1_8
  63. targetCompatibility JavaVersion.VERSION_1_8
  64. }
  65. testOptions {
  66. unitTests {
  67. includeAndroidResources = true
  68. returnDefaultValues = true
  69. }
  70. }
  71. }
  72. dependencies {
  73. implementation fileTree(dir: 'libs', include: ['*.jar'])
  74. implementation 'com.android.support:appcompat-v7:27.1.1'
  75. implementation 'com.android.support:design:27.1.1'
  76. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  77. implementation 'com.android.support:support-v4:27.1.1'
  78. implementation 'com.android.support:recyclerview-v7:27.1.1'
  79. implementation 'com.google.android.gms:play-services-plus:15.0.1'
  80. implementation 'com.google.code.gson:gson:2.8.5'
  81. implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
  82. implementation 'com.squareup.retrofit2:retrofit:2.4.0'
  83. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
  84. implementation('com.squareup.retrofit2:converter-gson:2.3.0')
  85. {
  86. exclude group: 'com.google.code.gson', module: 'gson'
  87. }
  88. implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'
  89. implementation "android.arch.lifecycle:extensions:1.1.1"
  90. implementation "android.arch.lifecycle:viewmodel:1.1.1"
  91. /*********************************
  92. * UNIT TEST
  93. *********************************/
  94. // Required for local unit tests (JUnit 4 framework)
  95. testImplementation 'junit:junit:4.12'
  96. // Required for instrumented tests
  97. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  98. androidTestImplementation 'com.android.support.test:rules:1.0.2'
  99. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  100. androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2'
  101. androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
  102. // Mockito
  103. // testImplementation "org.mockito:mockito-core:2.21.0"
  104. // Robolectric
  105. testImplementation 'org.robolectric:robolectric:3.8'
  106. testImplementation "org.robolectric:shadows-support-v4:3.3.2"
  107. testImplementation "org.robolectric:multidex:3.4.2"
  108. // PowerMock
  109. testImplementation 'org.powermock:powermock-core:1.7.4'
  110. testImplementation "org.powermock:powermock-module-junit4:1.7.4"
  111. testImplementation "org.powermock:powermock-api-mockito2:1.7.4"
  112. }