diff --git a/app/build.gradle b/app/build.gradle index 1461e91..5171081 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,13 +3,13 @@ import org.apache.tools.ant.taskdefs.condition.Os apply plugin: 'com.android.application' android { - compileSdkVersion 24 - buildToolsVersion "24.0.1" + compileSdkVersion 25 + buildToolsVersion '25.0.2' defaultConfig { applicationId "com.nowsecure.android.vts" minSdkVersion 15 - targetSdkVersion 24 + targetSdkVersion 25 versionCode 13 versionName "v.13" } @@ -40,26 +40,20 @@ android { } } -repositories { - maven { url "https://jitpack.io" } -} - dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:24.1.1' - compile 'com.android.support:cardview-v7:24.1.1' - compile 'com.android.support:design:24.1.1' - compile 'com.evernote:android-job:1.0.8' - compile 'com.github.paolorotolo:appintro:4.0.0' - compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0' - compile 'com.squareup.retrofit2:converter-gson:2.1.0' - compile 'com.squareup.retrofit2:retrofit:2.1.0' + compile 'com.android.support:appcompat-v7:25.3.1' + compile 'com.android.support:cardview-v7:25.3.1' + compile 'com.android.support:design:25.3.1' + compile 'com.evernote:android-job:1.1.8' + compile 'com.github.paolorotolo:appintro:4.1.0' + compile 'com.squareup.retrofit2:adapter-rxjava:2.2.0' + compile 'com.squareup.retrofit2:converter-gson:2.2.0' + compile 'com.squareup.retrofit2:retrofit:2.2.0' compile 'commons-io:commons-io:2.5' - compile 'io.reactivex:rxandroid:1.2.0' - compile 'org.apache.commons:commons-compress:1.12' - compile('com.github.afollestad.material-dialogs:core:0.8.6.2@aar') { - transitive = true - } + compile 'io.reactivex:rxandroid:1.2.1' + compile 'org.apache.commons:commons-compress:1.13' + compile 'com.afollestad.material-dialogs:core:0.9.4.2' } Properties properties = new Properties() @@ -89,7 +83,17 @@ task cleanNative(type: Exec, description: 'Clean JNI object files') { clean.dependsOn 'cleanNative' - tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn buildNative } + +configurations.all { + resolutionStrategy.eachDependency { DependencyResolveDetails details -> + def requested = details.requested + if (requested.group == 'com.android.support') { + if (!requested.name.startsWith("multidex")) { + details.useVersion '25.3.1' + } + } + } +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 6e08d5c..a7d989c 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -15,3 +15,11 @@ #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/build.gradle b/build.gradle index e220f0b..c6f2f50 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.1.2' + classpath 'com.android.tools.build:gradle:2.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle.properties b/gradle.properties index 1d3591c..aac7c9b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,10 +9,9 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -# Default value: -Xmx10248m -XX:MaxPermSize=256m -# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx1536m # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true \ No newline at end of file +# org.gradle.parallel=true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1081cc3..3907cb5 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip