build.gradle 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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
  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_dev"]
  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. dataBinding {
  60. enabled = true
  61. }
  62. testOptions {
  63. unitTests {
  64. includeAndroidResources = true
  65. returnDefaultValues = true
  66. }
  67. }
  68. }
  69. dependencies {
  70. implementation fileTree(dir: 'libs', include: ['*.jar'])
  71. implementation 'com.android.support:appcompat-v7:27.1.1'
  72. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  73. implementation 'com.android.support:support-v4:27.1.1'
  74. implementation 'com.google.android.gms:play-services-plus:15.0.1'
  75. implementation 'com.android.support:recyclerview-v7:27.1.1'
  76. implementation 'com.google.code.gson:gson:2.8.5'
  77. /*********************************
  78. * UNIT TEST
  79. *********************************/
  80. // Required for local unit tests (JUnit 4 framework)
  81. testImplementation 'junit:junit:4.12'
  82. // Required for instrumented tests
  83. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  84. androidTestImplementation 'com.android.support.test:rules:1.0.2'
  85. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  86. androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2'
  87. androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
  88. // Mockito
  89. // testImplementation "org.mockito:mockito-core:2.21.0"
  90. // Robolectric
  91. testImplementation 'org.robolectric:robolectric:3.8'
  92. testImplementation "org.robolectric:shadows-support-v4:3.3.2"
  93. testImplementation "org.robolectric:multidex:3.4.2"
  94. // PowerMock
  95. testImplementation 'org.powermock:powermock-core:1.7.4'
  96. testImplementation "org.powermock:powermock-module-junit4:1.7.4"
  97. testImplementation "org.powermock:powermock-api-mockito2:1.7.4"
  98. }