Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 6.44 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'realm-android'
  3.  
  4. repositories {
  5.     maven { url 'https://maven.fabric.io/public' }
  6.     maven {
  7.         url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo'
  8.     }
  9.  
  10. }
  11.  
  12. android {
  13.  
  14.  
  15.     configurations.all {
  16.         resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
  17.     }
  18.     packagingOptions {
  19.         exclude 'META-INF/rxjava.properties'
  20.     }
  21.     compileOptions.incremental = false
  22.     compileSdkVersion 26
  23.     buildToolsVersion "25.0.3"
  24.     publishNonDefault true
  25.     defaultConfig {
  26.         applicationId "ru.rgs.insurance"
  27.         minSdkVersion 21
  28.         targetSdkVersion 26
  29.         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  30.         //buildConfigField "String", "API_RGSSAT_ENDPOINT", '"http://rgssat.spider.ru/api/v1/"'
  31.         buildConfigField "String", "API_RGSSAT_ENDPOINT", '"https://mmw.rgs.ru/api/v1/"'
  32.         buildConfigField "String", "SHOW_BANNER_FLAG", '"falseq"'
  33.  
  34.         multiDexEnabled = true
  35.         versionCode 33
  36.         versionName "0.82"
  37.         setProperty("archivesBaseName", "rgs_europrotocol-$versionName")
  38.         //multiDexEnabled true
  39.  
  40.     }
  41.     buildTypes {
  42.         release {
  43.             debuggable false
  44.             zipAlignEnabled true
  45.             shrinkResources true
  46.             minifyEnabled false
  47.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  48.  
  49.         }
  50.     }
  51.     packagingOptions {
  52.         exclude 'META-INF/DEPENDENCIES'
  53.         exclude 'LICENSE.txt'
  54.         exclude 'META-INF/LICENSE'
  55.         exclude 'META-INF/LICENSE.txt'
  56.         exclude 'META-INF/NOTICE'
  57.     }
  58.     sourceSets {
  59.         def commonTestDir = 'src/commonTest/java'
  60.         test {
  61.             java.srcDir commonTestDir
  62.         }
  63.         androidTest {
  64.             java.srcDir commonTestDir
  65.         }
  66.     }
  67.     //Needed because of this https://github.com/square/okio/issues/58
  68.     lintOptions {
  69.         warning 'InvalidPackage'
  70.     }
  71.     productFlavors {
  72.     }
  73. }
  74. def dbflow_version = "4.0.3"
  75. def butterknife_version = "8.6.0"
  76. def rxJava_version = "2.1.0"
  77. def rxAndroid_version = "2.0.1"
  78. def retrofitRxJava2_version = "2.3.0"
  79. def retrofitVersion = "2.3.0"
  80. def rxJava2Interop_version = "0.9.0"
  81. def rxLocation_version = "1.0.3"
  82. def rxPreferences_version = "2.0.0-RC2"
  83. def moxy_version = "1.5.3"
  84. def dagger_version = "2.10"
  85. def okhttp_version = "3.8.0"
  86.  
  87. dependencies {
  88.     compile fileTree(dir: 'libs', include: ['*.jar'])
  89.     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  90.         exclude group: 'com.android.support', module: 'support-annotations'
  91.     })
  92.     annotationProcessor "com.github.Raizlabs.DBFlow:dbflow-processor:${dbflow_version}"
  93.  
  94.     compile "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
  95.     compile "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}"
  96.     compile "com.github.Raizlabs.DBFlow:dbflow-rx2:${dbflow_version}"
  97.     compile "io.reactivex.rxjava2:rxandroid:${rxAndroid_version}"
  98.     compile "io.reactivex.rxjava2:rxjava:${rxJava_version}"
  99.     compile "com.squareup.retrofit2:adapter-rxjava2:${retrofitRxJava2_version}"
  100.     compile "com.github.akarnokd:rxjava2-interop:${rxJava2Interop_version}"
  101.  
  102.  
  103.     compile "com.arello-mobile:moxy:${moxy_version}"
  104.     annotationProcessor "com.arello-mobile:moxy-compiler:${moxy_version}"
  105.     compile "com.arello-mobile:moxy-android:${moxy_version}"
  106.     compile "com.arello-mobile:moxy-app-compat:${moxy_version}"
  107.     compile "com.google.dagger:dagger:${dagger_version}"
  108.     annotationProcessor "com.google.dagger:dagger-compiler:${dagger_version}"
  109.     compile "com.google.dagger:dagger-android:${dagger_version}"
  110.     compile "com.google.dagger:dagger-android-support:${dagger_version}"
  111.     // if you use the support libraries
  112.     annotationProcessor "com.google.dagger:dagger-android-processor:${dagger_version}"
  113.  
  114.     compile "com.squareup.retrofit2:converter-gson:${retrofitVersion}"
  115.     compile "com.squareup.retrofit2:retrofit:${retrofitVersion}"
  116.     compile 'com.google.firebase:firebase-messaging:11.0.1'
  117.     compile "com.squareup.okhttp3:logging-interceptor:${okhttp_version}"
  118.     compile "com.squareup.okhttp3:okhttp:${okhttp_version}"
  119.  
  120.     compile "com.jakewharton:butterknife:${butterknife_version}"
  121.     annotationProcessor "com.jakewharton:butterknife-compiler:${butterknife_version}"
  122.  
  123.     compile 'com.android.support:support-v4:25.3.1'
  124.     compile 'com.android.support:appcompat-v7:25.3.1'
  125.     compile 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
  126.     compile 'com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.0.0'
  127.     compile 'net.danlew:android.joda:2.9.9'
  128.     compile 'com.google.firebase:firebase-messaging:11.0.1'
  129.     compile 'com.google.firebase:firebase-core:11.0.1'
  130.     compile 'org.greenrobot:eventbus:3.0.0'
  131.     compile 'com.google.android.gms:play-services-maps:11.0.1'
  132.     compile 'com.google.android.gms:play-services-location:11.0.1'
  133.     compile 'com.github.pinball83:masked-edittext:1.0.3'
  134.     compile 'com.android.support:support-v4:25.3.1'
  135.     compile 'com.vicmikhailau:MaskedEditText:2.0.1'
  136.     compile 'com.android.support:appcompat-v7:25.3.1'
  137.     compile 'com.android.support.constraint:constraint-layout:1.0.2'
  138.     compile 'io.reactivex:rxandroid:1.1.0'
  139.     compile 'com.android.support:gridlayout-v7:25.3.1'
  140.     compile 'com.squareup.picasso:picasso:2.5.2'
  141.     compile 'info.hoang8f:android-segmented:1.0.6'
  142.     compile 'com.android.support:design:25.3.1'
  143.     compile 'com.android.support:cardview-v7:25.3.1'
  144.     compile 'com.android.support:support-v13:25.3.1'
  145.     compile 'com.ogaclejapan.smarttablayout:library:1.6.1@aar'
  146.     compile 'com.ogaclejapan.smarttablayout:utils-v13:1.6.1@aar'
  147.     compile 'com.facebook.stetho:stetho:1.5.0'
  148.     compile 'com.facebook.stetho:stetho-okhttp3:1.5.0'
  149.     compile 'com.uphyca:stetho_realm:2.0.0'
  150.     compile 'com.yarolegovich:discrete-scrollview:1.2.0'
  151.     compile 'me.relex:circleindicator:1.2.2@aar'
  152.     compile 'com.google.auto.value:auto-value:1.2'
  153.     compile 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.4@aar'
  154.     testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
  155.     testCompile 'junit:junit:4.12'
  156.     annotationProcessor 'com.google.auto.value:auto-value:1.2'
  157.     debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
  158.     releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
  159. }
  160. apply plugin: 'com.google.gms.google-services'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement