build.gradle 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion 30
  7. buildToolsVersion "30.0.3"
  8. defaultConfig {
  9. flavorDimensions 'version'
  10. applicationId "com.dbs.consent.ynu"
  11. minSdkVersion 26
  12. targetSdkVersion 30
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. }
  17. signingConfigs {
  18. release {
  19. storeFile file('ynuConsent.jks') // 기준은 App 폴더 기준이다.
  20. storePassword "#3wnffkdl#"
  21. keyAlias "ynuConsent"
  22. keyPassword "#3wnffkdl#"
  23. }
  24. }
  25. buildTypes {
  26. release {
  27. buildConfigField "String", "NAME_SPACE", "\"http://tempuri.org/\""
  28. minifyEnabled false
  29. proguardFile 'proguard-rules.pro'
  30. ndk {
  31. abiFilters "armeabi-v7a", "armeabi" // includes ARM SO files only, so no x86 SO file
  32. }
  33. // proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  34. }
  35. debug {
  36. buildConfigField "String", "NAME_SPACE", "\"http://tempuri.org/\""
  37. minifyEnabled false
  38. proguardFile 'proguard-rules.pro'
  39. ndk {
  40. abiFilters "armeabi-v7a", "armeabi" // includes ARM SO files only, so no x86 SO file
  41. }
  42. }
  43. }
  44. productFlavors {
  45. product {
  46. buildConfigField "String", "originalPackageName", "\"com.dbs.consent.ynuConsent\""
  47. buildConfigField "String", "CONSENT_SERVER_URL", "\"http://consentApi\""
  48. buildConfigField "String", "CONSENT_EFORM_SERVER_URL", "\"http://consentEformServer\""
  49. buildConfigField "String", "INST_CD", "\"123\""
  50. manifestPlaceholders = [appLabel: "영남대학교병원"]
  51. signingConfig signingConfigs.release
  52. }
  53. dev {
  54. applicationIdSuffix ".dev"
  55. buildConfigField "String", "originalPackageName", "\"com.dbs.consent.ynuConsent\""
  56. // buildConfigField "String", "CONSENT_SERVER_URL", "\"http://localhost\""
  57. // buildConfigField "String", "CONSENT_SERVER_URL", "\"http://172.16.10.194/\"" // Local
  58. buildConfigField "String", "CONSENT_SERVER_URL", "\"http://172.21.116.202/\"" // Local
  59. buildConfigField "String", "CONSENT_EFORM_SERVER_URL", "\"http://locahostConsentEformServer\""
  60. buildConfigField "String", "INST_CD", "\"031\""
  61. manifestPlaceholders = [appLabel: "영남대학교병원 교육"]
  62. }
  63. }
  64. compileOptions {
  65. sourceCompatibility JavaVersion.VERSION_1_8
  66. targetCompatibility JavaVersion.VERSION_1_8
  67. }
  68. kotlinOptions {
  69. jvmTarget = '1.8'
  70. }
  71. }
  72. repositories {
  73. maven { url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases/' }
  74. }
  75. dependencies {
  76. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  77. implementation 'androidx.core:core-ktx:1.3.1'
  78. implementation 'androidx.appcompat:appcompat:1.3.0'
  79. implementation 'com.google.android.material:material:1.3.0'
  80. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  81. implementation 'com.github.ybq:Android-SpinKit:1.4.0'
  82. implementation 'gun0912.ted:tedpermission:2.0.0'
  83. implementation 'com.squareup.picasso:picasso:2.71828'
  84. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  85. implementation 'com.github.smart-fun:XmlToJson:1.5.1'
  86. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  87. implementation 'androidx.recyclerview:recyclerview-selection:1.1.0'
  88. implementation 'com.google.code.ksoap2-android:ksoap2-android:3.6.4'
  89. // implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  90. // implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  91. // implementation 'com.squareup.okhttp3:okhttp:3.4.1'
  92. // implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
  93. testImplementation 'junit:junit:4.+'
  94. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  95. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  96. }