From 3ee6bbe911b8447f97ba5827970dd928caba3a59 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 10 Sep 2018 17:51:26 +0200 Subject: [PATCH] updating kotlin, gradle, commons, removing LeakCanary --- app/build.gradle | 15 ++++----------- .../com/simplemobiletools/filemanager/App.kt | 8 -------- build.gradle | 2 +- 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index c7967697..bdf284d6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,13 +3,13 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 27 - buildToolsVersion "27.0.3" + compileSdkVersion 28 + buildToolsVersion "28.0.2" defaultConfig { applicationId "com.simplemobiletools.filemanager" minSdkVersion 16 - targetSdkVersion 27 + targetSdkVersion 28 versionCode 55 versionName "4.2.0" setProperty("archivesBaseName", "file-manager") @@ -40,17 +40,10 @@ android { } } -ext { - leakCanaryVersion = '1.5.4' -} - dependencies { - implementation 'com.simplemobiletools:commons:4.6.10' + implementation 'com.simplemobiletools:commons:4.7.5' implementation files('../libs/RootTools.jar') - - debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" - releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" } Properties props = new Properties() diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/App.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/App.kt index 3c0991c1..1565b1d8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/App.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/App.kt @@ -3,18 +3,10 @@ package com.simplemobiletools.filemanager import android.app.Application import com.github.ajalt.reprint.core.Reprint import com.simplemobiletools.commons.extensions.checkUseEnglish -import com.squareup.leakcanary.LeakCanary class App : Application() { override fun onCreate() { super.onCreate() - if (BuildConfig.DEBUG) { - if (LeakCanary.isInAnalyzerProcess(this)) { - return - } - LeakCanary.install(this) - } - checkUseEnglish() Reprint.initialize(this) } diff --git a/build.gradle b/build.gradle index b7a33234..e89c3e94 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.2.60' + ext.kotlin_version = '1.2.61' repositories { jcenter()