updating kotlin, gradle, commons, removing LeakCanary

This commit is contained in:
tibbi 2018-09-10 17:51:26 +02:00
parent 68f1cbeb7f
commit 3ee6bbe911
3 changed files with 5 additions and 20 deletions

View File

@ -3,13 +3,13 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android-extensions'
android { android {
compileSdkVersion 27 compileSdkVersion 28
buildToolsVersion "27.0.3" buildToolsVersion "28.0.2"
defaultConfig { defaultConfig {
applicationId "com.simplemobiletools.filemanager" applicationId "com.simplemobiletools.filemanager"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 27 targetSdkVersion 28
versionCode 55 versionCode 55
versionName "4.2.0" versionName "4.2.0"
setProperty("archivesBaseName", "file-manager") setProperty("archivesBaseName", "file-manager")
@ -40,17 +40,10 @@ android {
} }
} }
ext {
leakCanaryVersion = '1.5.4'
}
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:4.6.10' implementation 'com.simplemobiletools:commons:4.7.5'
implementation files('../libs/RootTools.jar') 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() Properties props = new Properties()

View File

@ -3,18 +3,10 @@ package com.simplemobiletools.filemanager
import android.app.Application import android.app.Application
import com.github.ajalt.reprint.core.Reprint import com.github.ajalt.reprint.core.Reprint
import com.simplemobiletools.commons.extensions.checkUseEnglish import com.simplemobiletools.commons.extensions.checkUseEnglish
import com.squareup.leakcanary.LeakCanary
class App : Application() { class App : Application() {
override fun onCreate() { override fun onCreate() {
super.onCreate() super.onCreate()
if (BuildConfig.DEBUG) {
if (LeakCanary.isInAnalyzerProcess(this)) {
return
}
LeakCanary.install(this)
}
checkUseEnglish() checkUseEnglish()
Reprint.initialize(this) Reprint.initialize(this)
} }

View File

@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { buildscript {
ext.kotlin_version = '1.2.60' ext.kotlin_version = '1.2.61'
repositories { repositories {
jcenter() jcenter()