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.

275 lines
13 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 year ago
1 year ago
1 year 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 15
  13. versionName "1.2"
  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. // TrustDock
  69. buildConfigField 'String', 'TrustDockAuthorizationId', '"gC8ULGtvqiwkMqTx4NzQexLL"'
  70. buildConfigField 'String', 'TrustDockNativeAppSdkToken', '"KYyzZzDyneU6P9CTe8ZaveyK"'
  71. buildConfigField 'String', 'ResidenceCardWithNFCPlanId', '"17f3f05f-f436-41f0-8b1c-434ee2b5e6ec"'
  72. buildConfigField 'String', 'SelfieVerificationPlanId', '"295735e5-022b-44b8-8c35-59604c425daa"'
  73. buildConfigField 'String', 'ResidenceCardWithoutNFCPlanId', '"039cfef5-0248-44c4-8464-25baef241f05"'
  74. buildConfigField 'String', 'DrivingLicenseWithNFCPlanId', '"6eaba29b-3f40-469d-9a7e-afb33252b10e"'
  75. buildConfigField 'String', 'TrustDockVerificationUrl', '"https://api.trustdock.io/v2/verifications"'
  76. //
  77. debuggable false
  78. minifyEnabled true
  79. shrinkResources true
  80. // obfuscate
  81. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  82. //proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  83. signingConfig signingConfigs.release
  84. }
  85. livedebug {
  86. buildConfigField 'String', 'BASE_URL', '"https://mobileapi.gmeremit.com:8002/api/"'
  87. buildConfigField 'String', 'API_VERSION', '"v1"'
  88. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  89. signingConfig signingConfigs.debug
  90. debuggable true
  91. minifyEnabled false
  92. shrinkResources false
  93. }
  94. stag {
  95. signingConfig signingConfigs.debug
  96. // buildConfigField 'String', 'BASE_URL', '"http://gmeuat.gmeremit.com:5008/api/"'
  97. buildConfigField 'String', 'BASE_URL', '"http://gmeuat.gmeremit.com:5022/api/"'
  98. buildConfigField 'String', 'API_VERSION', '"v1"'
  99. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  100. debuggable true
  101. minifyEnabled false
  102. shrinkResources false
  103. }
  104. dev {
  105. signingConfig signingConfigs.debug
  106. buildConfigField 'String', 'BASE_URL', '"http://gmeuat.gmeremit.com:5012/api/"'
  107. buildConfigField 'String', 'API_VERSION', '"v1"'
  108. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  109. debuggable true
  110. minifyEnabled false
  111. shrinkResources false
  112. }
  113. generic {
  114. signingConfig signingConfigs.debug
  115. buildConfigField 'String', 'BASE_URL', '"http://103.139.152.11:5555/api/"'
  116. buildConfigField 'String', 'API_VERSION', '"v1"'
  117. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  118. debuggable true
  119. minifyEnabled false
  120. shrinkResources false
  121. }
  122. jme {
  123. signingConfig signingConfigs.debug
  124. // buildConfigField 'String', 'BASE_URL', '"http://202.166.220.36:8083/api/"'
  125. buildConfigField 'String', 'BASE_URL', '"https://sandboxapi.japanremit.com:8083/api/"'
  126. buildConfigField 'String', 'API_VERSION', '"v1"'
  127. buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
  128. buildConfigField 'String', 'GME_TOKEN', '"39587YT398@FBQOW8RY3#948R7GB@CNEQW987GF87$TD18$1981..919@@##joghndvberteiru"'
  129. buildConfigField 'String', 'ClientId', '"172017F9EC11222E8107142733"'
  130. buildConfigField 'String', 'SecretKey', '"QRK2UM0Q"'
  131. // TrustDock
  132. // UAT
  133. buildConfigField 'String', 'TrustDockAuthorizationId', '"SC5ra2f1GDqMaAVZX289bpuH"'
  134. buildConfigField 'String', 'TrustDockNativeAppSdkToken', '"rbTme8F4whfAZBuSQcN5gUXr"'
  135. buildConfigField 'String', 'ResidenceCardWithNFCPlanId', '"b1da18ee-fabe-42f0-b7f6-0d375e1f505d"'
  136. buildConfigField 'String', 'SelfieVerificationPlanId', '"ee46f7fd-3988-49cd-a972-1056e498302f"'
  137. buildConfigField 'String', 'ResidenceCardWithoutNFCPlanId', '"9390019a-d41f-42a8-b044-0f41a9825847"'
  138. buildConfigField 'String', 'DrivingLicenseWithNFCPlanId', '"f8d1f271-7c95-43bf-bdf8-f84ebe96671d"'
  139. buildConfigField 'String', 'TrustDockVerificationUrl', '"https://api.test.trustdock.io/v2/verifications"'
  140. // PROD
  141. // buildConfigField 'String', 'TrustDockAuthorizationId', '"gC8ULGtvqiwkMqTx4NzQexLL"'
  142. // buildConfigField 'String', 'TrustDockNativeAppSdkToken', '"KYyzZzDyneU6P9CTe8ZaveyK"'
  143. // buildConfigField 'String', 'ResidenceCardWithNFCPlanId', '"17f3f05f-f436-41f0-8b1c-434ee2b5e6ec"'
  144. // buildConfigField 'String', 'SelfieVerificationPlanId', '"295735e5-022b-44b8-8c35-59604c425daa"'
  145. // buildConfigField 'String', 'ResidenceCardWithoutNFCPlanId', '"039cfef5-0248-44c4-8464-25baef241f05"'
  146. // buildConfigField 'String', 'DrivingLicenseWithNFCPlanId', '"6eaba29b-3f40-469d-9a7e-afb33252b10e"'
  147. // buildConfigField 'String', 'TrustDockVerificationUrl', '"https://api.trustdock.io/v2/verifications"'
  148. //
  149. debuggable true
  150. minifyEnabled false
  151. shrinkResources false
  152. //proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.txt'
  153. }
  154. }
  155. compileOptions {
  156. sourceCompatibility JavaVersion.VERSION_1_8
  157. targetCompatibility JavaVersion.VERSION_1_8
  158. }
  159. bundle {
  160. language {
  161. // Specifies that the app bundle should not support
  162. // configuration APKs for language resources. These
  163. // resources are instead packaged with each base and
  164. // dynamic feature APK.
  165. enableSplit = false
  166. }
  167. }
  168. dataBinding {
  169. enabled = true
  170. }
  171. namespace 'com.remit.jmecustomer'
  172. }
  173. repositories {
  174. // Other repositories here.
  175. maven { url "https://jitpack.io" }
  176. }
  177. dependencies {
  178. implementation fileTree(include: ['*.jar'], dir: 'libs')
  179. //noinspection GradleCompatible
  180. implementation 'androidx.appcompat:appcompat:1.1.0'
  181. implementation 'com.google.android.material:material:1.2.0'
  182. implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta7'
  183. implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  184. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  185. implementation 'com.squareup.retrofit2:retrofit:2.4.0'
  186. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  187. implementation 'com.github.bumptech.glide:glide:4.9.0'
  188. implementation 'de.hdodenhof:circleimageview:2.2.0'
  189. implementation 'com.jakewharton:butterknife:10.2.3'
  190. implementation 'com.android.volley:volley:1.2.1'
  191. kapt 'com.jakewharton:butterknife-compiler:10.2.3'
  192. implementation 'id.zelory:compressor:2.1.0'
  193. implementation 'androidx.multidex:multidex:2.0.1'
  194. implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
  195. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
  196. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  197. implementation 'io.reactivex.rxjava2:rxjava:2.2.10'
  198. implementation 'com.jakewharton.rxbinding3:rxbinding:3.1.0'
  199. implementation 'com.jakewharton.rxbinding3:rxbinding-core:3.1.0'
  200. implementation 'com.jakewharton.rxbinding3:rxbinding-appcompat:3.1.0'
  201. implementation 'com.jakewharton.rxbinding3:rxbinding-drawerlayout:3.1.0'
  202. implementation 'com.jakewharton.rxbinding3:rxbinding-recyclerview:3.1.0'
  203. implementation 'com.jakewharton.rxbinding3:rxbinding-swiperefreshlayout:3.1.0'
  204. implementation 'com.jakewharton.rxbinding3:rxbinding-viewpager:3.1.0'
  205. implementation 'androidx.cardview:cardview:1.0.0'
  206. implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
  207. implementation 'androidx.percentlayout:percentlayout:1.0.0'
  208. implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
  209. implementation project(path: ':SpinnerDatePickerLib-release')
  210. implementation 'com.intuit.sdp:sdp-android:1.0.6'
  211. implementation 'com.intuit.ssp:ssp-android:1.0.6'
  212. implementation 'com.zoyi.channel:plugin-android:6.1.3'
  213. implementation 'com.patloew.rxlocation:rxlocation:1.0.5'
  214. implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
  215. implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'
  216. implementation 'com.github.mukeshsolanki:android-otpview-pinview:2.1.0'
  217. implementation 'com.google.zxing:core:3.2.0'
  218. implementation 'com.google.android.gms:play-services-vision:20.1.0'
  219. implementation 'com.google.android.gms:play-services-location:17.1.0'
  220. // Import the BoM for the Firebase platform
  221. implementation platform('com.google.firebase:firebase-bom:29.0.1')
  222. implementation 'com.google.firebase:firebase-crashlytics'
  223. implementation 'com.google.firebase:firebase-analytics'
  224. implementation 'com.google.firebase:firebase-messaging'
  225. implementation 'com.google.firebase:firebase-dynamic-links'
  226. testImplementation 'junit:junit:4.12'
  227. testImplementation 'pl.pragmatists:JUnitParams:1.1.1'
  228. testImplementation "org.mockito:mockito-core:3.0.0"
  229. implementation 'androidx.biometric:biometric:1.1.0'
  230. implementation 'io.trustdock.sdk:verification-sandbox-full:2.7.4'
  231. //implementation 'io.trustdock.sdk:verification-full:2.7.4'
  232. implementation 'com.google.android.flexbox:flexbox:3.0.0'
  233. implementation 'me.relex:circleindicator:2.1.4'
  234. // if persistence is not needed (Data retained in memory lost on app close)
  235. debugImplementation 'com.ashokvarma.android:gander-imdb:3.1.0'
  236. releaseImplementation 'com.ashokvarma.android:gander-no-op:3.1.0'
  237. }
  238. allprojects {
  239. repositories {
  240. maven {
  241. // //PROD
  242. // url "https://native-app-sdk-repository.trustdock.io/android/release/content/repositories"
  243. // credentials {
  244. // username = "japanremit-1039"
  245. // password = "9sAWcB6ce3GSumTT"
  246. // }
  247. // UAT
  248. url "https://native-app-sdk-repository.test.trustdock.io/android/release/content/repositories"
  249. credentials {
  250. username = "japanremit-1039"
  251. password = "sHRf5Sf7S3r5Q4Hz"
  252. }
  253. }
  254. maven { url 'https://raw.githubusercontent.com/iProov/android/master/maven/' }
  255. }
  256. }