Detekt update

This commit is contained in:
Denis Karmyshakov 2018-11-07 16:25:52 +03:00
parent 1a8f6af6eb
commit b4867d4de9
5 changed files with 17 additions and 15 deletions

@ -1 +1 @@
Subproject commit cde76d7d189f5381e98dbd0535c4ca3c7c9c709c
Subproject commit e5aad8c82854d55fd930ffe4eef5a6b8660161eb

View File

@ -3,11 +3,13 @@ buildscript {
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'de.aaschmid:gradle-cpd-plugin:1.0'
classpath 'de.aaschmid:gradle-cpd-plugin:1.1'
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.0.0-RC10"
}
}
@ -25,15 +27,15 @@ task clean(type: Delete) {
ext {
versions = [
compileSdk : 28,
androidx : '1.0.1',
material : '1.0.0',
lifecycle : '2.0.0',
dagger : '2.17',
retrofit : '2.4.0',
rxJava : '2.2.2',
rxAndroid : '2.1.0',
crashlytics : '2.9.5',
location : '16.0.0'
compileSdk : 28,
androidx : '1.0.0',
material : '1.0.0',
lifecycle : '2.0.0',
dagger : '2.17',
retrofit : '2.4.0',
rxJava : '2.2.2',
rxAndroid : '2.1.0',
crashlytics: '2.9.5',
location : '16.0.0'
]
}

View File

@ -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-4.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

View File

@ -12,6 +12,6 @@ class ViewModelFactory @Inject constructor(
@Suppress("UNCHECKED_CAST")
override fun <T : ViewModel> create(modelClass: Class<T>): T
= (creators[modelClass]?.get() as? T) ?: throw IllegalArgumentException("Unknown model class $modelClass")
= creators[modelClass]?.get() as? T ?: throw IllegalArgumentException("Unknown model class $modelClass")
}

View File

@ -58,4 +58,4 @@ class LocationLiveData(
)
}
}
}