Skip to content

Commit b167cc6

Browse files
mdrlzyhieuwu
andauthored
Split app into modules (#131)
* Extract domain and data modules * Extract presentation module * Remove unused about resources * Extract db module * feature modules * Remove strings from :app * return to ksp dagger * Setup ktlint * ktlint formatting * Bump kotlin and compose compiler * Delete tests in currency icons modules * typo fix * Update firebase config * Upgrade Java version to 17 * Make app widget resizable * Fix quick select currency code callback * Fix widget intents --------- Co-authored-by: Hieu Vu <[email protected]>
1 parent 6baaf95 commit b167cc6

File tree

326 files changed

+3781
-1590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

326 files changed

+3781
-1590
lines changed

app/build.gradle.kts

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ plugins {
1010

1111
android {
1212
namespace = "dev.arkbuilders.rate"
13-
compileSdk = 34
13+
compileSdk = libs.versions.compileSdk.get().toInt()
1414

1515
defaultConfig {
1616
applicationId = "dev.arkbuilders.rate"
17-
minSdk = 26
18-
targetSdk = 34
17+
minSdk = libs.versions.minSdk.get().toInt()
18+
targetSdk = libs.versions.compileSdk.get().toInt()
1919
versionCode = 3
2020
versionName = "1.2.0"
2121
setProperty("archivesBaseName", "ark-rate")
@@ -94,7 +94,7 @@ android {
9494
compose = true
9595
}
9696
composeOptions {
97-
kotlinCompilerExtensionVersion = "1.5.4"
97+
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
9898
}
9999
packaging {
100100
resources {
@@ -104,21 +104,32 @@ android {
104104
}
105105

106106
dependencies {
107+
implementation(project(":core:di"))
108+
implementation(project(":core:domain"))
109+
implementation(project(":core:data"))
110+
implementation(project(":core:presentation"))
111+
implementation(project(":feature:quick"))
112+
implementation(project(":feature:quickwidget"))
113+
implementation(project(":feature:portfolio"))
114+
implementation(project(":feature:pairalert"))
115+
implementation(project(":feature:search"))
116+
implementation(project(":feature:settings"))
107117
implementation(project(":fiaticons"))
108118
implementation(project(":cryptoicons"))
109119

110120
implementation(libs.ark.about)
111-
implementation(libs.androidx.ui)
112121

122+
implementation(libs.androidx.ui)
113123
implementation(libs.navigation.compose)
114124
implementation(libs.material3)
115125
implementation(libs.androidx.ui.tooling.preview)
116126
implementation(libs.androidx.lifecycle.runtime.ktx)
117127
implementation(libs.androidx.activity.compose)
118128
implementation(libs.constraintlayout.compose)
119129

120-
implementation(libs.dagger)
121130
implementation(libs.androidx.glance.appwidget)
131+
132+
implementation(libs.dagger)
122133
ksp(libs.dagger.compiler)
123134

124135
implementation(libs.androidx.room.runtime)
@@ -159,13 +170,6 @@ dependencies {
159170
debugImplementation(libs.androidx.ui.test.manifest)
160171
}
161172

162-
ktlint {
163-
android.set(true)
164-
outputToConsole.set(true)
165-
}
166-
167173
tasks.getByPath(":app:preBuild").dependsOn("ktlintCheck")
168174

169175
tasks.getByPath(":app:preBuild").dependsOn("ktlintFormat")
170-
171-
tasks.getByPath("ktlintCheck").shouldRunAfter("ktlintFormat")

app/google-services.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"project_info": {
3-
"project_number": "414351467383",
4-
"project_id": "ark-builders-test",
5-
"storage_bucket": "ark-builders-test.appspot.com"
3+
"project_number": "659862496072",
4+
"project_id": "ark-rate-test",
5+
"storage_bucket": "ark-rate-test.firebasestorage.app"
66
},
77
"client": [
88
{
99
"client_info": {
10-
"mobilesdk_app_id": "1:414351467383:android:be354cff9341b81e623772",
10+
"mobilesdk_app_id": "1:659862496072:android:bd9e57c870395c3802897d",
1111
"android_client_info": {
1212
"package_name": "dev.arkbuilders.rate"
1313
}
1414
},
1515
"oauth_client": [],
1616
"api_key": [
1717
{
18-
"current_key": "AIzaSyCn2k1dAY8sqK4rjsjOd38fOr54FPOAdyY"
18+
"current_key": "AIzaSyDYJv31n-7JnZB5FQ1o16zatujTXbfbbpk"
1919
}
2020
],
2121
"services": {

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</intent-filter>
3232
</activity>
3333

34-
<receiver android:name=".presentation.quick.glancewidget.QuickPairsWidgetReceiver"
34+
<receiver android:name=".feature.quickwidget.presentation.QuickPairsWidgetReceiver"
3535
android:exported="true">
3636

3737
<intent-filter>

app/src/main/java/dev/arkbuilders/rate/data/repo/TimestampRepoImpl.kt

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

app/src/main/java/dev/arkbuilders/rate/data/repo/currency/CurrencyDataSource.kt

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

app/src/main/java/dev/arkbuilders/rate/di/AppComponent.kt

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

app/src/main/java/dev/arkbuilders/rate/di/DIManager.kt

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

app/src/main/java/dev/arkbuilders/rate/di/module/RepoModule.kt

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

app/src/main/java/dev/arkbuilders/rate/domain/model/CurrencyCode.kt

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

app/src/main/java/dev/arkbuilders/rate/domain/repo/PairAlertRepo.kt

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

0 commit comments

Comments
 (0)