Guest User

Untitled

a guest
May 23rd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. def enableProguardInReleaseBuilds = false
  2.  
  3. android {
  4. compileSdkVersion 26
  5. buildToolsVersion '27.0.3'
  6.  
  7. defaultConfig {
  8. applicationId "com.afbmobile"
  9. minSdkVersion 16
  10. targetSdkVersion 26
  11. versionCode 1
  12. versionName "1.0"
  13. ndk {
  14. abiFilters "armeabi-v7a", "x86"
  15. }
  16. }
  17. signingConfigs {
  18. release {
  19. if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
  20. storeFile file(MYAPP_RELEASE_STORE_FILE)
  21. storePassword MYAPP_RELEASE_STORE_PASSWORD
  22. keyAlias MYAPP_RELEASE_KEY_ALIAS
  23. keyPassword MYAPP_RELEASE_KEY_PASSWORD
  24. }
  25. }
  26. }
  27. buildTypes {
  28. release {
  29. debuggable false
  30. // minifyEnabled true
  31. // shrinkResources true
  32. signingConfig signingConfigs.release
  33. // minifyEnabled enableProguardInReleaseBuilds
  34. proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
  35. }
  36. }
  37. splits {
  38. abi {
  39. reset()
  40. enable enableSeparateBuildPerCPUArchitecture
  41. universalApk false // If true, also generate a universal APK
  42. include "armeabi-v7a", "x86"
  43. }
  44. }
  45. // buildTypes {
  46. // release {
  47. // minifyEnabled enableProguardInReleaseBuilds
  48. // proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
  49. // }
  50. // }
  51. // applicationVariants are e.g. debug, release
  52. applicationVariants.all { variant ->
  53. variant.outputs.each { output ->
  54. // For each separate APK per architecture, set a unique version code as described here:
  55. // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
  56. def versionCodes = ["armeabi-v7a": 1, "x86": 2]
  57. def abi = output.getFilter(OutputFile.ABI)
  58. if (abi != null) { // null for the universal-debug, universal-release variants
  59. output.versionCodeOverride =
  60. versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
  61. }
  62. }
  63. }
  64. }
  65.  
  66. dependencies {
  67. implementation project(':react-native-maps')
  68. implementation project(':react-native-device-info')
  69. implementation project(':react-native-i18n')
  70. implementation fileTree(dir: "libs", include: ["*.jar"])
  71. implementation "com.android.support:appcompat-v7:23.0.1"
  72. implementation "com.facebook.react:react-native:+" // From node_modules
  73. implementation 'com.facebook.fresco:animated-gif:1.3.0'
  74. implementation(project(':react-native-maps')) {
  75. exclude group: 'com.google.android.gms', module: 'play-services-base'
  76. exclude group: 'com.google.android.gms', module: 'play-services-maps'
  77. }
  78. implementation 'com.google.android.gms:play-services-base:11.0.4'
  79. implementation 'com.google.android.gms:play-services-maps:11.0.4'
  80. }
  81.  
  82. // Run this once to be able to run the application with BUCK
  83. // puts all compile dependencies into folder libs for BUCK to use
  84. task copyDownloadableDepsToLibs(type: Copy) {
  85. from configurations.compile
  86. into 'libs'
  87. }
Add Comment
Please, Sign In to add comment