Skip to content

Commit

Permalink
Split app into modules (#131)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
mdrlzy and hieuwu authored Dec 14, 2024
1 parent 6baaf95 commit b167cc6
Show file tree
Hide file tree
Showing 326 changed files with 3,781 additions and 1,590 deletions.
30 changes: 17 additions & 13 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ plugins {

android {
namespace = "dev.arkbuilders.rate"
compileSdk = 34
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
applicationId = "dev.arkbuilders.rate"
minSdk = 26
targetSdk = 34
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.compileSdk.get().toInt()
versionCode = 3
versionName = "1.2.0"
setProperty("archivesBaseName", "ark-rate")
Expand Down Expand Up @@ -94,7 +94,7 @@ android {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.4"
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
packaging {
resources {
Expand All @@ -104,21 +104,32 @@ android {
}

dependencies {
implementation(project(":core:di"))
implementation(project(":core:domain"))
implementation(project(":core:data"))
implementation(project(":core:presentation"))
implementation(project(":feature:quick"))
implementation(project(":feature:quickwidget"))
implementation(project(":feature:portfolio"))
implementation(project(":feature:pairalert"))
implementation(project(":feature:search"))
implementation(project(":feature:settings"))
implementation(project(":fiaticons"))
implementation(project(":cryptoicons"))

implementation(libs.ark.about)
implementation(libs.androidx.ui)

implementation(libs.androidx.ui)
implementation(libs.navigation.compose)
implementation(libs.material3)
implementation(libs.androidx.ui.tooling.preview)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.activity.compose)
implementation(libs.constraintlayout.compose)

implementation(libs.dagger)
implementation(libs.androidx.glance.appwidget)

implementation(libs.dagger)
ksp(libs.dagger.compiler)

implementation(libs.androidx.room.runtime)
Expand Down Expand Up @@ -159,13 +170,6 @@ dependencies {
debugImplementation(libs.androidx.ui.test.manifest)
}

ktlint {
android.set(true)
outputToConsole.set(true)
}

tasks.getByPath(":app:preBuild").dependsOn("ktlintCheck")

tasks.getByPath(":app:preBuild").dependsOn("ktlintFormat")

tasks.getByPath("ktlintCheck").shouldRunAfter("ktlintFormat")
10 changes: 5 additions & 5 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"project_info": {
"project_number": "414351467383",
"project_id": "ark-builders-test",
"storage_bucket": "ark-builders-test.appspot.com"
"project_number": "659862496072",
"project_id": "ark-rate-test",
"storage_bucket": "ark-rate-test.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:414351467383:android:be354cff9341b81e623772",
"mobilesdk_app_id": "1:659862496072:android:bd9e57c870395c3802897d",
"android_client_info": {
"package_name": "dev.arkbuilders.rate"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCn2k1dAY8sqK4rjsjOd38fOr54FPOAdyY"
"current_key": "AIzaSyDYJv31n-7JnZB5FQ1o16zatujTXbfbbpk"
}
],
"services": {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</intent-filter>
</activity>

<receiver android:name=".presentation.quick.glancewidget.QuickPairsWidgetReceiver"
<receiver android:name=".feature.quickwidget.presentation.QuickPairsWidgetReceiver"
android:exported="true">

<intent-filter>
Expand Down

This file was deleted.

This file was deleted.

85 changes: 0 additions & 85 deletions app/src/main/java/dev/arkbuilders/rate/di/AppComponent.kt

This file was deleted.

12 changes: 0 additions & 12 deletions app/src/main/java/dev/arkbuilders/rate/di/DIManager.kt

This file was deleted.

52 changes: 0 additions & 52 deletions app/src/main/java/dev/arkbuilders/rate/di/module/RepoModule.kt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b167cc6

Please sign in to comment.