build.gradle 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'io.fabric'// Firebase Crashlytics
  3. // Create a variable called keystorePropertiesFile, and initialize it to your
  4. // keystore.properties file, in the rootProject folder.
  5. def keystorePropertiesFile = rootProject.file("keystore.properties")
  6. // Initialize a new Properties() object called keystoreProperties.
  7. def keystoreProperties = new Properties()
  8. // Load your keystore.properties file into the keystoreProperties object.
  9. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  10. android {
  11. compileSdkVersion 27
  12. defaultConfig {
  13. applicationId "kr.co.hanwha.hifive"
  14. minSdkVersion 21
  15. targetSdkVersion 25
  16. versionCode 1
  17. versionName '1.3.2'
  18. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  19. multiDexEnabled true
  20. buildConfigField "String", "REVISION", "\"2018082102\""
  21. buildConfigField "String", "RC", "\"rc7\""
  22. buildConfigField "String", "WEB_REAL_URL", "\"https://qtalk.dreamplus.center/newgw/b/v2\""
  23. buildConfigField "String", "WEB_DEV_URL", "\"https://qtalk-dev.dreamplus.center/newgw/b/v2\""
  24. buildConfigField "String", "WEB_LOCAL_URL", "\"http://192.168.0.27:38999/b/v2\""
  25. buildConfigField "String", "REAL_URL", "\"https://qtalk.dreamplus.center/newgw/a/v2\""
  26. buildConfigField "String", "DEV_URL", "\"https://qtalk-dev.dreamplus.center/newgw/a/v2\""
  27. buildConfigField "String", "LOCAL_URL", "\"http://192.168.0.38:38999/a/v2\""
  28. buildConfigField "String", "DOWNLOAD_URL", "\"http://qtalk.dreamplus.center/downloads/\""
  29. }
  30. signingConfigs {
  31. release {
  32. keyAlias keystoreProperties['keyAlias']
  33. keyPassword keystoreProperties['keyPassword']
  34. storeFile file(keystoreProperties['storeFile'])
  35. storePassword keystoreProperties['storePassword']
  36. }
  37. }
  38. buildTypes {
  39. release {
  40. minifyEnabled false
  41. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  42. signingConfig signingConfigs.release
  43. }
  44. debug {
  45. minifyEnabled false
  46. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  47. }
  48. }
  49. }
  50. dependencies {
  51. implementation fileTree(include: ['*.jar'], dir: 'libs')
  52. // implementation 'com.android.support:appcompat-v7:26.1.0'
  53. // implementation 'com.android.support:design:26.1.0'
  54. implementation 'com.android.support:appcompat-v7:27.1.1'
  55. implementation 'com.android.support:design:27.1.1'
  56. implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  57. implementation 'com.google.firebase:firebase-messaging:11.8.0'
  58. implementation 'com.google.firebase:firebase-core:11.8.0'
  59. /**
  60. * Test Unit
  61. */
  62. testImplementation 'junit:junit:4.12'
  63. androidTestImplementation 'com.android.support.test:runner:1.0.1'
  64. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  65. // compile 'com.android.support:design:26.1.0'
  66. /**
  67. * Network
  68. */
  69. implementation 'com.squareup.okhttp3:okhttp:3.7.0'
  70. /**
  71. * Json
  72. */
  73. implementation 'com.google.code.gson:gson:2.8.1'
  74. /**
  75. * Support
  76. */
  77. implementation('com.crashlytics.sdk.android:crashlytics:2.7.0-SNAPSHOT@aar') {
  78. // Firebase Crashlytics
  79. transitive = true
  80. }
  81. implementation 'com.github.bumptech.glide:glide:4.7.1'
  82. }
  83. apply plugin: 'com.google.gms.google-services'