Detekt update
This commit is contained in:
parent
1a8f6af6eb
commit
b4867d4de9
|
|
@ -1 +1 @@
|
|||
Subproject commit cde76d7d189f5381e98dbd0535c4ca3c7c9c709c
|
||||
Subproject commit e5aad8c82854d55fd930ffe4eef5a6b8660161eb
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -26,7 +28,7 @@ task clean(type: Delete) {
|
|||
ext {
|
||||
versions = [
|
||||
compileSdk : 28,
|
||||
androidx : '1.0.1',
|
||||
androidx : '1.0.0',
|
||||
material : '1.0.0',
|
||||
lifecycle : '2.0.0',
|
||||
dagger : '2.17',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue