File tree 12 files changed +30
-45
lines changed
12 files changed +30
-45
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import extensions.applyDefault
18
18
19
- plugins.apply (" git-hooks-config " )
20
- plugins.apply (" update-dependencies-config " )
19
+ plugins.apply (BuildPlugins . GIT_HOOKS )
20
+ plugins.apply (BuildPlugins . UPDATE_DEPENDENCIES )
21
21
22
22
allprojects {
23
23
repositories.applyDefault()
24
24
25
- plugins.apply (" detekt-config " )
26
- plugins.apply (" dokka-config " )
27
- plugins.apply (" ktlint-config " )
28
- plugins.apply (" spotless-config " )
25
+ plugins.apply (BuildPlugins . DETEKT )
26
+ plugins.apply (BuildPlugins . DOKKA )
27
+ plugins.apply (BuildPlugins . KTLINT )
28
+ plugins.apply (BuildPlugins . SPOTLESS )
29
29
}
Original file line number Diff line number Diff line change @@ -28,8 +28,13 @@ object BuildPlugins {
28
28
const val KOTLIN_ALLOPEN = " kotlin-allopen"
29
29
30
30
const val NAVIGATION_SAFE_ARGS = " androidx.navigation.safeargs.kotlin"
31
- const val SPOTLESS = " com.diffplug.gradle.spotless"
32
- const val DETEKT = " io.gitlab.arturbosch.detekt"
33
31
const val JACOCO = " com.vanniktech.android.junit.jacoco"
34
32
const val FABRIC = " io.fabric"
33
+
34
+ const val DETEKT = " plugins.detekt"
35
+ const val DOKKA = " plugins.dokka"
36
+ const val GIT_HOOKS = " plugins.git-hooks"
37
+ const val KTLINT = " plugins.ktlint"
38
+ const val SPOTLESS = " plugins.spotless"
39
+ const val UPDATE_DEPENDENCIES = " plugins.update-dependencies"
35
40
}
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package plugins
18
+
17
19
import io.gitlab.arturbosch.detekt.DetektPlugin
18
20
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
19
21
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package plugins
18
+
17
19
import org.jetbrains.dokka.gradle.DokkaPlugin
18
20
import org.jetbrains.dokka.gradle.DokkaTask
19
21
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package plugins
18
+
17
19
import utils.isLinuxOrMacOs
18
20
19
21
tasks {
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package plugins
18
+
17
19
val ktlint: Configuration by configurations.creating
18
20
19
21
dependencies {
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package plugins
18
+
17
19
import com.diffplug.gradle.spotless.SpotlessExtension
18
20
import com.diffplug.gradle.spotless.SpotlessPlugin
19
21
@@ -71,7 +73,7 @@ configure<SpotlessExtension> {
71
73
target(" **/*.gradle.kts" , " *.gradle.kts" )
72
74
licenseHeaderFile(
73
75
rootProject.file(" COPYRIGHT" ),
74
- " import|tasks|apply|plugins|include|val|object|interface"
76
+ " package| import|tasks|apply|plugins|include|val|object|interface"
75
77
)
76
78
trimTrailingWhitespace()
77
79
indentWithSpaces()
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package plugins
18
+
17
19
import com.github.benmanes.gradle.versions.VersionsPlugin
18
20
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
19
21
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ package utils
19
19
import org.gradle.api.Project
20
20
import java.io.File
21
21
import java.lang.Exception
22
- import extensions.getLocalProperty
23
22
24
23
private const val FABRIC_PROPERTIES_FILE_NAME = " app/fabric.properties"
25
24
private const val FABRIC_API_KEY_PROPERTY_NAME = " fabric.key"
Original file line number Diff line number Diff line change 1
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" com.vmadalin.core" />
1
+ <manifest package =" com.vmadalin.core" />
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ sealed class NetworkState {
32
32
val isAdditional : Boolean = false
33
33
) : NetworkState()
34
34
35
- fun isLoading () = this is NetworkState . Loading
36
- fun isSuccess () = this is NetworkState . Success
37
- fun isError () = this is NetworkState . Error
35
+ fun isLoading () = this is Loading
36
+ fun isSuccess () = this is Success
37
+ fun isError () = this is Error
38
38
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments