Nenhuma descrição

build.gradle 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. buildToolsVersion "28.0.3"
  5. defaultConfig {
  6. // Specify the version code, only once for each new version of your app, for your App Bundle
  7. // No need to have different version codes for different APKs generated.
  8. // All split APKs will share the same version code once installed via Google Play.
  9. applicationId "uprrp.tania"
  10. minSdkVersion 26
  11. targetSdkVersion 28
  12. versionCode 7
  13. versionName "4.1"
  14. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  15. vectorDrawables.useSupportLibrary = true
  16. }
  17. // Add this block and enable/disable the parameters as follows
  18. bundle {
  19. density {
  20. // Different APKs are generated for devices with different screen densities; true by default.
  21. enableSplit true
  22. }
  23. abi {
  24. // Different APKs are generated for devices with different CPU architectures; true by default.
  25. enableSplit true
  26. }
  27. language {
  28. // This is disabled so that the App Bundle does NOT split the APK for each language.
  29. // We're gonna use the same APK for all languages.
  30. enableSplit false
  31. }
  32. }
  33. buildTypes {
  34. release {
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  37. }
  38. }
  39. packagingOptions {
  40. exclude 'META-INF/DEPENDENCIES'
  41. exclude 'META-INF/LICENSE'
  42. exclude 'META-INF/LICENSE.txt'
  43. exclude 'META-INF/license.txt'
  44. exclude 'META-INF/NOTICE'
  45. exclude 'META-INF/NOTICE.txt'
  46. exclude 'META-INF/notice.txt'
  47. exclude 'META-INF/ASL2.0'
  48. }
  49. useLibrary 'org.apache.http.legacy'
  50. }
  51. repositories {
  52. jcenter()
  53. maven { url "https://jitpack.io" }
  54. }
  55. dependencies {
  56. implementation fileTree(dir: 'libs', include: ['*.jar'])
  57. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  58. implementation 'com.google.android.material:material:1.1.0'
  59. implementation 'androidx.navigation:navigation-fragment:2.2.1'
  60. implementation 'androidx.navigation:navigation-ui:2.2.1'
  61. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  62. implementation 'androidx.appcompat:appcompat:1.1.0'
  63. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  64. testImplementation 'junit:junit:4.12'
  65. implementation 'com.android.support:support-v4:28.0.0'
  66. implementation 'com.android.support:preference-v14:28.0.0'
  67. implementation 'com.android.support:design:28.0.0'
  68. androidTestImplementation 'com.android.support:support-annotations:28.0.0'
  69. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  70. androidTestImplementation 'com.android.support.test:rules:1.0.2'
  71. implementation 'org.researchstack:backbone:1.1.2'
  72. implementation 'org.researchstack:skin:1.1.1'
  73. implementation 'com.google.firebase:firebase-core:17.2.3'
  74. implementation 'com.google.firebase:firebase-messaging:20.1.2'
  75. implementation 'com.google.android.gms:play-services-gcm:17.0.0'
  76. implementation 'org.apache.httpcomponents:httpcore:4.4.11'
  77. implementation 'org.apache.httpcomponents:httpclient:4.5.8'
  78. implementation 'com.amazonaws:aws-android-sdk-sns:2.13.3'
  79. implementation 'com.android.support:support-annotations:28.0.0'
  80. implementation 'com.google.android.play:core:1.7.0'
  81. implementation 'com.amazonaws:aws-android-sdk-core:2.13.4'
  82. implementation 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.13.4'
  83. implementation 'com.itextpdf:itextg:5.5.10'
  84. implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
  85. }
  86. configurations {
  87. all {
  88. exclude module: 'httpclient'
  89. resolutionStrategy.force 'com.android.support:support-annotations:23.1.0'
  90. }
  91. }
  92. apply plugin: 'com.google.gms.google-services'