Skip to content

Commit f8c169a

Browse files
ngapp-devngapps
andauthored
🔄 Update dependencies (#17)
* Update dependencies Remove redundant files * Update README.md --------- Co-authored-by: ngapps <[email protected]>
1 parent f453ef7 commit f8c169a

File tree

9 files changed

+94
-291
lines changed

9 files changed

+94
-291
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
![Android Gradle Plugin](https://img.shields.io/badge/gradle-8.9.0-brightgreen?logo=gradle)
2-
![kotlin-version](https://img.shields.io/badge/kotlin-2.1.10-blue?logo=kotlin)
1+
![Android Gradle Plugin](https://img.shields.io/badge/gradle-8.9.2-brightgreen?logo=gradle)
2+
![kotlin-version](https://img.shields.io/badge/kotlin-2.1.20-blue?logo=kotlin)
33

44
![Metan Mobile](docs/images/play_graphic.png "Metan Mobile")
55

build-logic/convention/src/main/kotlin/HiltConventionPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class HiltConventionPlugin : Plugin<Project> {
4242
pluginManager.withPlugin("com.android.base") {
4343
apply(plugin = "dagger.hilt.android.plugin")
4444
dependencies {
45-
"implementation"(libs.findLibrary("hilt.android").get())
45+
add("implementation", libs.findLibrary("hilt.android").get())
4646
}
4747
}
4848
}

core/datastore/src/main/kotlin/com/ngapp/metanmobile/core/datastore/di/DataStoreModule.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import com.ngapp.metanmobile.core.common.network.MMDispatchers.IO
2626
import com.ngapp.metanmobile.core.common.network.di.ApplicationScope
2727
import com.ngapp.metanmobile.core.datastore.UserPreferences
2828
import com.ngapp.metanmobile.core.datastore.UserPreferencesSerializer
29-
import com.ngapp.metanmobile.core.datastore.pref.CacheManager
3029
import dagger.Module
3130
import dagger.Provides
3231
import dagger.hilt.InstallIn
@@ -54,9 +53,4 @@ object DataStoreModule {
5453
) {
5554
context.dataStoreFile("user_preferences.pb")
5655
}
57-
58-
@Provides
59-
@Singleton
60-
internal fun provideCacheManager(@ApplicationContext context: Context): CacheManager =
61-
CacheManager(context)
6256
}

core/datastore/src/main/kotlin/com/ngapp/metanmobile/core/datastore/pref/CacheManager.kt

Lines changed: 0 additions & 135 deletions
This file was deleted.

core/datastore/src/main/kotlin/com/ngapp/metanmobile/core/datastore/pref/CacheManagerExtension.kt

Lines changed: 0 additions & 54 deletions
This file was deleted.

core/datastore/src/main/kotlin/com/ngapp/metanmobile/core/datastore/pref/CacheStore.kt

Lines changed: 0 additions & 62 deletions
This file was deleted.

gradle/init.gradle.kts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Copyright 2022 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
val ktlintVersion = "1.4.0"
18+
19+
initscript {
20+
val spotlessVersion = "7.0.3"
21+
22+
repositories {
23+
mavenCentral()
24+
}
25+
26+
dependencies {
27+
classpath("com.diffplug.spotless:spotless-plugin-gradle:$spotlessVersion")
28+
}
29+
}
30+
31+
rootProject {
32+
subprojects {
33+
apply<com.diffplug.gradle.spotless.SpotlessPlugin>()
34+
extensions.configure<com.diffplug.gradle.spotless.SpotlessExtension> {
35+
kotlin {
36+
target("**/*.kt")
37+
targetExclude("**/build/**/*.kt")
38+
ktlint(ktlintVersion).editorConfigOverride(
39+
mapOf(
40+
"android" to "true",
41+
),
42+
)
43+
licenseHeaderFile(rootProject.file("spotless/copyright.kt"))
44+
}
45+
format("kts") {
46+
target("**/*.kts")
47+
targetExclude("**/build/**/*.kts")
48+
// Look for the first line that doesn't have a block comment (assumed to be the license)
49+
licenseHeaderFile(rootProject.file("spotless/copyright.kts"), "(^(?![\\/ ]\\*).*$)")
50+
}
51+
format("xml") {
52+
target("**/*.xml")
53+
targetExclude("**/build/**/*.xml")
54+
// Look for the first XML tag that isn't a comment (<!--) or the xml declaration (<?xml)
55+
licenseHeaderFile(rootProject.file("spotless/copyright.xml"), "(<[^!?])")
56+
}
57+
}
58+
}
59+
}
60+

0 commit comments

Comments
 (0)