Detekt update
This commit is contained in:
parent
1a8f6af6eb
commit
b4867d4de9
|
|
@ -1 +1 @@
|
||||||
Subproject commit cde76d7d189f5381e98dbd0535c4ca3c7c9c709c
|
Subproject commit e5aad8c82854d55fd930ffe4eef5a6b8660161eb
|
||||||
24
build.gradle
24
build.gradle
|
|
@ -3,11 +3,13 @@ buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
|
maven { url "https://plugins.gradle.org/m2/" }
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.2.1'
|
classpath 'com.android.tools.build:gradle:3.2.1'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
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 {
|
ext {
|
||||||
versions = [
|
versions = [
|
||||||
compileSdk : 28,
|
compileSdk : 28,
|
||||||
androidx : '1.0.1',
|
androidx : '1.0.0',
|
||||||
material : '1.0.0',
|
material : '1.0.0',
|
||||||
lifecycle : '2.0.0',
|
lifecycle : '2.0.0',
|
||||||
dagger : '2.17',
|
dagger : '2.17',
|
||||||
retrofit : '2.4.0',
|
retrofit : '2.4.0',
|
||||||
rxJava : '2.2.2',
|
rxJava : '2.2.2',
|
||||||
rxAndroid : '2.1.0',
|
rxAndroid : '2.1.0',
|
||||||
crashlytics : '2.9.5',
|
crashlytics: '2.9.5',
|
||||||
location : '16.0.0'
|
location : '16.0.0'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
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")
|
@Suppress("UNCHECKED_CAST")
|
||||||
override fun <T : ViewModel> create(modelClass: Class<T>): T
|
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")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,4 +58,4 @@ class LocationLiveData(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue