You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

257 lines
11 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
4 years ago
4 years ago
4 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
3 years ago
6 years ago
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.google.gms.google-services'
  3. apply plugin: 'com.google.firebase.crashlytics'
  4. apply plugin: 'kotlin-android'
  5. apply plugin: 'kotlin-kapt'
  6. android {
  7. compileSdkVersion 31
  8. defaultConfig {
  9. applicationId "com.remit.jmecustomer"
  10. minSdkVersion 24
  11. targetSdkVersion 31
  12. versionCode 12
  13. versionName "0.9"
  14. multiDexEnabled true
  15. vectorDrawables.useSupportLibrary = true
  16. manifestPlaceholders = [fileProvider: "com.remit.jmecustomer.fileprovider"]
  17. buildConfigField 'String', 'FILE_PROVIDER', '"com.remit.jmecustomer.fileprovider"'
  18. def dateTime = new Date().format("MMM_dd")
  19. setProperty("archivesBaseName", "JME_NEW_" + dateTime + "_v" + versionCode + "(" + versionName + ")")
  20. }
  21. packagingOptions {
  22. exclude 'META-INF/rxjava.properties'
  23. //exclude 'lib/x86_64/libopencv_java4.so'
  24. //exclude 'lib/x86_64/libtess.so'
  25. //exclude 'lib/x86_64/libc++_shared.so'
  26. //exclude 'lib/x86_64/libface_detector_v2_jni.so'
  27. //exclude 'lib/x86/libopencv_java4.so'
  28. //exclude 'lib/x86/libface_detector_v2_jni.so'
  29. //exclude 'lib/x86/libtess.so'
  30. //exclude 'lib/x86/libc++_shared.so'
  31. //exclude 'lib/arm64-v8a/libopencv_java4.so'
  32. //exclude 'lib/arm64-v8a/libface_detector_v2_jni.so'
  33. //exclude 'lib/arm64-v8a/libtess.so'
  34. //exclude 'lib/arm64-v8a/libc++_shared.so'
  35. //exclude 'lib/armeabi-v7a/libopencv_java4.so'
  36. //exclude 'lib/armeabi-v7a/libface_detector_v2_jni.so'
  37. //exclude 'lib/armeabi-v7a/libtess.so'
  38. //exclude 'lib/armeabi-v7a/libc++_shared.so'
  39. exclude 'assets/models/fssd_100_8bit_gray_v1.tflite'
  40. exclude 'assets/models/fssd_100_8bit_v1.tflite'
  41. }
  42. buildFeatures {
  43. viewBinding = true
  44. }
  45. signingConfigs {
  46. release {
  47. keyAlias 'JME Remit Key'
  48. keyPassword 'Jme@androidKey23#'
  49. keyPassword 'Jme@androidKey23#'
  50. storeFile file('../keystores/JmeKeyStores/upload-keystore.jks')
  51. storePassword 'Jme@androidKey23#'
  52. }
  53. stag {
  54. keyAlias 'JPT'
  55. keyPassword 'asdfljk'
  56. storeFile file('/Users/gme_1/Android Projects/gme-android/gradlew')
  57. storePassword 'sdfgasd'
  58. }
  59. }
  60. buildTypes {
  61. release {
  62. buildConfigField 'String', 'BASE_URL', '"https://mobile.japanremit.com:8443/api/"'
  63. buildConfigField 'String', 'API_VERSION', '"v1"'
  64. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  65. buildConfigField 'String', 'GME_TOKEN', '"@NcRfTjWnZr4u7x!A%D*G-KaPdSgVkXp"'
  66. buildConfigField 'String', 'ClientId', '"5220224461B37738C528430"'
  67. buildConfigField 'String', 'SecretKey', '"VkYp3s6v"'
  68. buildConfigField 'String', 'TrustDockAuthorizationId', '"SC5ra2f1GDqMaAVZX289bpuH"'
  69. buildConfigField 'String', 'ResidenceCardWithNFCPlanId', '"b1da18ee-fabe-42f0-b7f6-0d375e1f505d"'
  70. buildConfigField 'String', 'SelfieVerificationPlanId', '"ee46f7fd-3988-49cd-a972-1056e498302f"'
  71. buildConfigField 'String', 'ResidenceCardWithoutNFCPlanId', '"9390019a-d41f-42a8-b044-0f41a9825847"'
  72. buildConfigField 'String', 'DrivingLicenseWithoutNFCPlanId', '"f8d1f271-7c95-43bf-bdf8-f84ebe96671d"'
  73. debuggable false
  74. minifyEnabled true
  75. shrinkResources true
  76. // obfuscate
  77. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  78. //proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  79. signingConfig signingConfigs.release
  80. }
  81. livedebug {
  82. buildConfigField 'String', 'BASE_URL', '"https://mobileapi.gmeremit.com:8002/api/"'
  83. buildConfigField 'String', 'API_VERSION', '"v1"'
  84. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  85. signingConfig signingConfigs.debug
  86. debuggable true
  87. minifyEnabled false
  88. shrinkResources false
  89. }
  90. stag {
  91. signingConfig signingConfigs.debug
  92. // buildConfigField 'String', 'BASE_URL', '"http://gmeuat.gmeremit.com:5008/api/"'
  93. buildConfigField 'String', 'BASE_URL', '"http://gmeuat.gmeremit.com:5022/api/"'
  94. buildConfigField 'String', 'API_VERSION', '"v1"'
  95. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  96. debuggable true
  97. minifyEnabled false
  98. shrinkResources false
  99. }
  100. dev {
  101. signingConfig signingConfigs.debug
  102. buildConfigField 'String', 'BASE_URL', '"http://gmeuat.gmeremit.com:5012/api/"'
  103. buildConfigField 'String', 'API_VERSION', '"v1"'
  104. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  105. debuggable true
  106. minifyEnabled false
  107. shrinkResources false
  108. }
  109. generic {
  110. signingConfig signingConfigs.debug
  111. buildConfigField 'String', 'BASE_URL', '"http://103.139.152.11:5555/api/"'
  112. buildConfigField 'String', 'API_VERSION', '"v1"'
  113. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  114. debuggable true
  115. minifyEnabled false
  116. shrinkResources false
  117. }
  118. jme {
  119. signingConfig signingConfigs.debug
  120. // buildConfigField 'String', 'BASE_URL', '"http://202.166.220.36:8083/api/"'
  121. buildConfigField 'String', 'BASE_URL', '"https://sandboxapi.japanremit.com:8083/api/"'
  122. buildConfigField 'String', 'API_VERSION', '"v1"'
  123. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  124. buildConfigField 'String', 'GME_TOKEN', '"39587YT398@FBQOW8RY3#948R7GB@CNEQW987GF87$TD18$1981..919@@##joghndvberteiru"'
  125. buildConfigField 'String', 'ClientId', '"172017F9EC11222E8107142733"'
  126. buildConfigField 'String', 'SecretKey', '"QRK2UM0Q"'
  127. buildConfigField 'String', 'TrustDockAuthorizationId', '"SC5ra2f1GDqMaAVZX289bpuH"'
  128. buildConfigField 'String', 'ResidenceCardWithNFCPlanId', '"b1da18ee-fabe-42f0-b7f6-0d375e1f505d"'
  129. buildConfigField 'String', 'SelfieVerificationPlanId', '"ee46f7fd-3988-49cd-a972-1056e498302f"'
  130. buildConfigField 'String', 'ResidenceCardWithoutNFCPlanId', '"9390019a-d41f-42a8-b044-0f41a9825847"'
  131. buildConfigField 'String', 'DrivingLicenseWithNFCPlanId', '"f8d1f271-7c95-43bf-bdf8-f84ebe96671d"'
  132. debuggable true
  133. minifyEnabled false
  134. shrinkResources false
  135. //proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.txt'
  136. }
  137. }
  138. compileOptions {
  139. sourceCompatibility JavaVersion.VERSION_1_8
  140. targetCompatibility JavaVersion.VERSION_1_8
  141. }
  142. bundle {
  143. language {
  144. // Specifies that the app bundle should not support
  145. // configuration APKs for language resources. These
  146. // resources are instead packaged with each base and
  147. // dynamic feature APK.
  148. enableSplit = false
  149. }
  150. }
  151. dataBinding {
  152. enabled = true
  153. }
  154. namespace 'com.remit.jmecustomer'
  155. }
  156. repositories {
  157. // Other repositories here.
  158. maven { url "https://jitpack.io" }
  159. }
  160. dependencies {
  161. implementation fileTree(include: ['*.jar'], dir: 'libs')
  162. //noinspection GradleCompatible
  163. implementation 'androidx.appcompat:appcompat:1.1.0'
  164. implementation 'com.google.android.material:material:1.2.0'
  165. implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta7'
  166. implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  167. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  168. implementation 'com.squareup.retrofit2:retrofit:2.4.0'
  169. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  170. implementation 'com.github.bumptech.glide:glide:4.9.0'
  171. implementation 'de.hdodenhof:circleimageview:2.2.0'
  172. implementation 'com.jakewharton:butterknife:10.2.3'
  173. implementation 'com.android.volley:volley:1.2.1'
  174. kapt 'com.jakewharton:butterknife-compiler:10.2.3'
  175. implementation 'id.zelory:compressor:2.1.0'
  176. implementation 'androidx.multidex:multidex:2.0.1'
  177. implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
  178. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
  179. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  180. implementation 'io.reactivex.rxjava2:rxjava:2.2.10'
  181. implementation 'com.jakewharton.rxbinding3:rxbinding:3.1.0'
  182. implementation 'com.jakewharton.rxbinding3:rxbinding-core:3.1.0'
  183. implementation 'com.jakewharton.rxbinding3:rxbinding-appcompat:3.1.0'
  184. implementation 'com.jakewharton.rxbinding3:rxbinding-drawerlayout:3.1.0'
  185. implementation 'com.jakewharton.rxbinding3:rxbinding-recyclerview:3.1.0'
  186. implementation 'com.jakewharton.rxbinding3:rxbinding-swiperefreshlayout:3.1.0'
  187. implementation 'com.jakewharton.rxbinding3:rxbinding-viewpager:3.1.0'
  188. implementation 'androidx.cardview:cardview:1.0.0'
  189. implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
  190. implementation 'androidx.percentlayout:percentlayout:1.0.0'
  191. implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
  192. implementation project(path: ':SpinnerDatePickerLib-release')
  193. implementation 'com.intuit.sdp:sdp-android:1.0.6'
  194. implementation 'com.intuit.ssp:ssp-android:1.0.6'
  195. implementation 'com.zoyi.channel:plugin-android:6.1.3'
  196. implementation 'com.patloew.rxlocation:rxlocation:1.0.5'
  197. implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
  198. implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'
  199. implementation 'com.github.mukeshsolanki:android-otpview-pinview:2.1.0'
  200. implementation 'com.google.zxing:core:3.2.0'
  201. implementation 'com.google.android.gms:play-services-vision:20.1.0'
  202. implementation 'com.google.android.gms:play-services-location:17.1.0'
  203. // Import the BoM for the Firebase platform
  204. implementation platform('com.google.firebase:firebase-bom:29.0.1')
  205. implementation 'com.google.firebase:firebase-crashlytics'
  206. implementation 'com.google.firebase:firebase-analytics'
  207. implementation 'com.google.firebase:firebase-messaging'
  208. implementation 'com.google.firebase:firebase-dynamic-links'
  209. testImplementation 'junit:junit:4.12'
  210. testImplementation 'pl.pragmatists:JUnitParams:1.1.1'
  211. testImplementation "org.mockito:mockito-core:3.0.0"
  212. implementation 'androidx.biometric:biometric:1.1.0'
  213. implementation 'io.trustdock.sdk:verification-sandbox-full:2.7.2'
  214. implementation 'com.google.android.flexbox:flexbox:3.0.0'
  215. implementation 'me.relex:circleindicator:2.1.4'
  216. // if persistence is not needed (Data retained in memory lost on app close)
  217. debugImplementation 'com.ashokvarma.android:gander-imdb:3.1.0'
  218. releaseImplementation 'com.ashokvarma.android:gander-no-op:3.1.0'
  219. }
  220. allprojects {
  221. repositories {
  222. maven {
  223. url "https://native-app-sdk-repository.test.trustdock.io/android/release/content/repositories"
  224. credentials {
  225. username = "japanremit-1039"
  226. password = "sHRf5Sf7S3r5Q4Hz"
  227. }
  228. }
  229. maven { url 'https://raw.githubusercontent.com/iProov/android/master/maven/' }
  230. }
  231. }