Mechele

Untitled

Feb 10th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. maven { url 'https://maven.fabric.io/public' }
  4. }
  5.  
  6. dependencies {
  7. classpath 'io.fabric.tools:gradle:1.20.1' //app crashes on start with new version 1.21.0
  8. }
  9. }
  10. apply plugin: 'com.android.application'
  11. apply plugin: 'io.fabric'
  12. apply plugin: 'me.tatarka.retrolambda'
  13.  
  14. repositories {
  15. maven { url 'https://maven.fabric.io/public' }
  16. }
  17.  
  18.  
  19. android {
  20. compileSdkVersion 17
  21. buildToolsVersion "21.1.2"
  22.  
  23. defaultConfig {
  24. applicationId "com.taxipixi.incarapp"
  25. minSdkVersion 10
  26. targetSdkVersion 21
  27. versionCode 43
  28. versionName '4.3'
  29. multiDexEnabled false
  30.  
  31. }
  32.  
  33. lintOptions {
  34. checkReleaseBuilds false
  35. // Or, if you prefer, you can continue to check for errors in release builds,
  36. // but continue the build even when errors are found:
  37. abortOnError false
  38. }
  39.  
  40. signingConfigs {
  41. release {
  42. storeFile file("taxipixi_dev.keystore")
  43. storePassword 'taxipixi#10'
  44. keyAlias "taxipixidevkey"
  45. keyPassword 'taxipixi#10'
  46. }
  47. }
  48.  
  49. buildTypes {
  50. release {
  51. minifyEnabled false
  52. shrinkResources false
  53. debuggable false
  54. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  55.  
  56. signingConfig signingConfigs.release
  57. }
  58.  
  59. debug {
  60. minifyEnabled false
  61. zipAlignEnabled true
  62. debuggable true
  63.  
  64. signingConfig signingConfigs.release
  65. }
  66. }
  67.  
  68. productFlavors {
  69. beta {
  70. buildConfigField "String", "API_URL", "\"https://beta.taxipixi.com/\""
  71. buildConfigField "String", "PICTURE_BUCKET", "\"taxipixiprod\""
  72. buildConfigField "String", "DRIVER_APP_VERSION", "\"44\""
  73. buildConfigField "String", "CURRENT_APP_VERSION", "\"12\""
  74. }
  75.  
  76. staging {
  77. buildConfigField "String", "API_URL", "\"https://staging.taxipixi.com/\""
  78. buildConfigField "String", "PICTURE_BUCKET", "\"taxipixigo\""
  79. buildConfigField "String", "DRIVER_APP_VERSION", "\"44\""
  80. buildConfigField "String", "CURRENT_APP_VERSION", "\"12\""
  81. }
  82.  
  83. production {
  84. buildConfigField "String", "API_URL", "\"https://driver.taxipixi.com/\""
  85. buildConfigField "String", "PICTURE_BUCKET", "\"taxipixiprod\""
  86. buildConfigField "String", "DRIVER_APP_VERSION", "\"44\""
  87. buildConfigField "String", "CURRENT_APP_VERSION", "\"12\""
  88. }
  89. }
  90.  
  91. compileOptions {
  92. sourceCompatibility JavaVersion.VERSION_1_8
  93. targetCompatibility JavaVersion.VERSION_1_8
  94. }
  95. }
  96.  
  97. dependencies {
  98. compile fileTree(include: ['*.jar'], dir: 'libs')
  99. compile project(':taxipixilibrary')
  100. compile 'com.android.support:support-v4:22.2.1'
  101. compile 'uk.co.chrisjenx:calligraphy:2.0.2'
  102. compile('com.crashlytics.sdk.android:crashlytics:2.2.2@aar') {
  103. transitive = true;
  104. }
  105. compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
  106. compile 'com.amazonaws:aws-android-sdk-s3:2.2.0'
  107. compile 'com.squareup.picasso:picasso:2.5.2'
  108. compile 'com.pubnub:pubnub-android:3.7.5'
  109. compile 'com.android.support:multidex:1.0.1'
  110. }
  111.  
  112. android {
  113. packagingOptions {
  114. exclude 'META-INF/DEPENDENCIES.txt'
  115. exclude 'META-INF/LICENSE.txt'
  116. exclude 'META-INF/NOTICE.txt'
  117. exclude 'META-INF/NOTICE'
  118. exclude 'META-INF/LICENSE'
  119. exclude 'META-INF/DEPENDENCIES'
  120. exclude 'META-INF/notice.txt'
  121. exclude 'META-INF/license.txt'
  122. exclude 'META-INF/dependencies.txt'
  123. exclude 'META-INF/LGPL2.1'
  124. }
  125. }
Advertisement
Add Comment
Please, Sign In to add comment