-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from c0de-wizard/kmm-hirechical-structure-mig…
…ration Kmm hirechical structure migration
- Loading branch information
Showing
93 changed files
with
992 additions
and
1,198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ jobs: | |
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
java-version: 18 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ jobs: | |
call-kmmbridge-publish: | ||
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/[email protected] | ||
with: | ||
jvmVersion: 17 | ||
jvmVersion: 18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
id("tvmaniac.android.library") | ||
id("plugin.tvmaniac.android.library") | ||
} | ||
|
||
android { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
id("tvmaniac.android.library") | ||
id("plugin.tvmaniac.android.library") | ||
alias(libs.plugins.ksp) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
core/database/src/jvmMain/kotlin/com/thomaskioko/tvmaniac/db/DatabaseComponent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.thomaskioko.tvmaniac.db | ||
|
||
actual interface DatabaseComponent |
9 changes: 9 additions & 0 deletions
9
core/database/src/jvmTest/kotlin/com/thomaskioko/tvmaniac/core/db/BaseDatabaseTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.thomaskioko.tvmaniac.core.db | ||
|
||
import app.cash.sqldelight.db.SqlDriver | ||
import app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriver | ||
|
||
actual fun inMemorySqlDriver(): SqlDriver = | ||
JdbcSqliteDriver(JdbcSqliteDriver.IN_MEMORY).apply { | ||
TvManiacDatabase.Schema.create(this) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
plugins { | ||
id("tvmaniac.kmm.library") | ||
id("plugin.tvmaniac.multiplatform") | ||
} | ||
|
||
|
||
kotlin { | ||
android() | ||
ios() | ||
|
||
sourceSets { | ||
|
||
sourceSets["commonMain"].dependencies { | ||
api(libs.coroutines.core) | ||
commonMain { | ||
dependencies { | ||
api(libs.coroutines.core) | ||
} | ||
} | ||
|
||
sourceSets["commonTest"].dependencies { | ||
implementation(kotlin("test")) | ||
commonMain { | ||
dependencies { | ||
implementation(kotlin("test")) | ||
|
||
implementation(libs.coroutines.test) | ||
implementation(libs.kotest.assertions) | ||
implementation(libs.turbine) | ||
implementation(libs.coroutines.test) | ||
implementation(libs.kotest.assertions) | ||
implementation(libs.turbine) | ||
} | ||
} | ||
|
||
} | ||
} | ||
|
||
android { | ||
namespace = "com.thomaskioko.tvmaniac.shared.domain.datastore.api" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...in/kotlin/com/thomaskioko/tvmaniac/datastore/implementation/DataStorePlatformComponent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.thomaskioko.tvmaniac.datastore.implementation | ||
|
||
actual interface DataStorePlatformComponent |
4 changes: 4 additions & 0 deletions
4
...ntation/src/jvmMain/kotlin/com/thomaskioko/tvmaniac/datastore/implementation/IgnoreIos.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.thomaskioko.tvmaniac.datastore.implementation | ||
|
||
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) | ||
actual annotation class IgnoreIos() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
plugins { | ||
id("tvmaniac.kmm.library") | ||
id("plugin.tvmaniac.multiplatform") | ||
} | ||
|
||
|
||
kotlin { | ||
android() | ||
ios() | ||
|
||
sourceSets { | ||
sourceSets["commonMain"].dependencies { | ||
implementation(projects.core.datastore.api) | ||
implementation(libs.coroutines.core) | ||
commonMain { | ||
dependencies { | ||
implementation(projects.core.datastore.api) | ||
implementation(libs.coroutines.core) | ||
} | ||
} | ||
} | ||
} | ||
|
||
android { | ||
namespace = "com.thomaskioko.tvmaniac.datastore.testing" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...mMain/kotlin/com/thomaskioko/tvmaniac/core/networkutil/inject/NetworkPlatformComponent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.thomaskioko.tvmaniac.core.networkutil.inject | ||
|
||
actual interface NetworkPlatformComponent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
plugins { | ||
id("tvmaniac.kmm.library") | ||
id("plugin.tvmaniac.multiplatform") | ||
alias(libs.plugins.serialization) | ||
} | ||
|
||
kotlin { | ||
android() | ||
ios() | ||
|
||
sourceSets { | ||
sourceSets["commonMain"].dependencies { | ||
api(projects.core.database) | ||
api(projects.core.networkutil) | ||
commonMain { | ||
dependencies { | ||
api(projects.core.database) | ||
api(projects.core.networkutil) | ||
|
||
implementation(libs.ktor.serialization) | ||
implementation(libs.ktor.serialization) | ||
} | ||
} | ||
|
||
} | ||
} | ||
|
||
android { | ||
namespace = "com.thomaskioko.tvmaniac.tmdb.api" | ||
} |
Oops, something went wrong.