build.gradle 4.3 KB

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