apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'io.fabric'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
google()
}
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "by.frandesa.spokesman"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
buildConfigField "int", "VERSION_SHARED_PREFERENCES",
"$rootProject.ext.versionSharedPreferences"
buildConfigField "int", "VERSION_DATABASE", "$rootProject.ext.versionDatabase"
buildConfigField "String", "DATABASE_NAME", "\"$rootProject.ext.database_name\""
buildConfigField "boolean", "LOGGING_LOCAL_DATABASE", "$rootProject.ext.logging_local_database"
buildConfigField "boolean", "LOGGING_REMOTE_DATABASE",
"$rootProject.ext.logging_remote_database"
buildConfigField "boolean", "LOGGING_STACK_TRACE", "$rootProject.ext.logging_stack_trace"
buildConfigField "boolean", "LOGGING_CHECK", "$rootProject.ext.logging_check"
buildConfigField "boolean", "EXCEPTION_THROW", "$rootProject.ext.exception_throw"
vectorDrawables.useSupportLibrary = true
multiDexEnabled = true
}
dexOptions {
preDexLibraries = false
javaMaxHeapSize "2g"
}
buildTypes {
debug {
shrinkResources false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
release {
shrinkResources false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/rxjava.properties'
}
productFlavors {
mock {
// applicationIdSuffix = ".mock"
applicationIdSuffix = ""
}
prod {
applicationIdSuffix = ""
}
}
// Remove mockRelease as it's not needed.
android.variantFilter { variant ->
if (variant.buildType.name.equals('release') && variant.getFlavors().
get(0).name.
equals('mock')) {
variant.setIgnore(true);
}
}
// Always showItems the mDrawer of every unit test, even if it passes.
// testOptions.unitTests.ALL {
// testLogging {
// events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
// }
// }
}
/*
Dependency versions are defined in the top level build.gradle file. This helps keeping track of
ALL versions in a single place. This improves readability and helps managing project complexity.
*/
dependencies {
// App's dependencies, including test
compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:design:$rootProject.supportLibraryVersion"
compile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
compile "com.android.support:support-vector-drawable:$rootProject.supportLibraryVersion"
compile "com.android.support.constraint:constraint-layout:$rootProject.constraintLayoutVersion"
compile "com.google.guava:guava:$rootProject.guavaVersion"
compile "com.google.maps.android:android-maps-utils:$rootProject.androidMapsUtilsVersion"
compile "com.google.android.gms:play-services-maps:$rootProject.playServicesVersion"
compile "com.google.android.gms:play-services-location:$rootProject.playServicesVersion"
compile "com.google.android.gms:play-services-places:$rootProject.playServicesVersion"
compile 'pl.charmas.android:android-reactive-location:0.10@aar'
compile "com.github.arimorty:floatingsearchview:$rootProject.floatingsearchview"
compile "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
compile "com.squareup.retrofit2:converter-gson:$rootProject.converterGsonVersion"
compile "com.squareup.okhttp3:logging-interceptor:$rootProject.loggingInterceptorVersion"
compile "com.google.code.gson:gson:$rootProject.gson"
compile "com.squareup.sqlbrite:sqlbrite:$rootProject.sqlbriteVersion"
compile "com.squareup.picasso:picasso:$rootProject.picassoVersion"
compile "com.jakewharton.timber:timber:$rootProject.timberVersion"
compile("com.mikepenz:materialdrawer:$rootProject.materialdrawerVersion") {
transitive = true
}
// used to provide the two step crossfade DrawerLayout
compile("com.mikepenz:crossfadedrawerlayout:$rootProject.crossfadeDrawerLayoutVersion")
compile "com.ogaclejapan.smarttablayout:library:$rootProject.SmartTabLayoutLibraryVersion"
compile "com.github.rey5137:material:$rootProject.rey5137MaterialVersion"
compile "io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:$rootProject.sectionedrecyclerviewadapter"
compile "com.tapadoo.android:alerter:$rootProject.alerter"
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
//Authorization module
// compile 'com.github.floor12apps:Authorization:0.5.9'
// debugCompile project(path: ':authorization', configuration: "debug")
compile project(path: ':authorization')
debugCompile 'im.dino:dbinspector:3.4.1@aar'
//Moxy
compile 'com.arello-mobile:moxy:1.5.3'
compile 'com.arello-mobile:moxy-app-compat:1.5.3'
compile 'com.arello-mobile:moxy-android:1.5.3'
annotationProcessor 'com.arello-mobile:moxy-compiler:1.5.3'
//multidex
compile 'com.android.support:multidex:1.0.1'
compile 'com.github.PhilJay:MPAndroidChart:v3.0.2'
compile 'com.basgeekball:awesome-validation:2.0'
compile 'com.daimajia.numberprogressbar:library:1.4@aar'
compile 'org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.4-3'
compile 'com.github.jakob-grabner:Circle-Progress-View:v1.3'
debugCompile 'com.zxy.android:recovery:0.1.4'
releaseCompile 'com.zxy.android:recovery-no-op:0.1.4'
compile 'net.danlew:android.joda:2.9.9'
compile 'com.github.pchmn:MaterialChipsInput:1.0.8'
compile 'com.squareup.retrofit2:adapter-rxjava:2.2.0'
compile 'io.reactivex:rxjava:1.2.9'
compile 'io.reactivex.rxjava2:rxjava:2.0.8'
compile 'io.reactivex:rxandroid:1.2.1'
compile 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.3@aar'
compile 'com.github.kobakei:MaterialFabSpeedDial:1.1.7'
compile 'com.aurelhubert:ahbottomnavigation:2.1.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.4.6'
compile 'com.evernote:android-job:1.2.0'
/* compile "com.google.android.gms:play-services-gcm:11.0.1"*/
compile 'me.zhanghai.android.materialratingbar:library:1.2.0'
}
Проблема именно в передаче пароль и логина через Retrofit, через RESTED работает