-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f66c001
commit 499cb9a
Showing
11 changed files
with
79 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@file:OptIn(ExperimentalKotlinGradlePluginApi::class, ExperimentalWasmDsl::class) | ||
|
||
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi | ||
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl | ||
|
||
plugins { | ||
alias(libs.plugins.kotlin.multiplatform) | ||
alias(libs.plugins.kotlin.compose) | ||
alias(libs.plugins.compose) | ||
} | ||
|
||
kotlin { | ||
js() { | ||
browser {} | ||
} | ||
wasmJs() | ||
|
||
sourceSets { | ||
commonMain.dependencies { | ||
api(libs.bundles.jetbrains.androidx.navigation.compose.common) | ||
api(libs.bundles.koin.common) | ||
implementation(compose.material3) | ||
} | ||
} | ||
|
||
compilerOptions { | ||
jvmToolchain(libs.versions.jdk.get().toInt()) | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
feature/main-impl-web/src/commonMain/kotlin/org/michaelbel/movies/main/MainContent.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,18 @@ | ||
package org.michaelbel.movies.main | ||
|
||
import androidx.compose.material3.MaterialTheme | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.navigation.NavHostController | ||
import androidx.navigation.compose.rememberNavController | ||
|
||
@Composable | ||
fun MainContent( | ||
navHostController: NavHostController = rememberNavController() | ||
) { | ||
MaterialTheme { | ||
Text( | ||
"Content" | ||
) | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
feature/main-impl-web/src/commonMain/kotlin/org/michaelbel/movies/main/di/MainKoinModule.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,5 @@ | ||
package org.michaelbel.movies.main.di | ||
|
||
import org.koin.core.module.Module | ||
|
||
expect val mainKoinModule: Module |
5 changes: 5 additions & 0 deletions
5
feature/main-impl-web/src/jsMain/kotlin/org/michaelbel/movies/main/di/MainKoinModule.js.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,5 @@ | ||
package org.michaelbel.movies.main.di | ||
|
||
import org.koin.dsl.module | ||
|
||
actual val mainKoinModule = module {} |
5 changes: 5 additions & 0 deletions
5
.../main-impl-web/src/wasmJsMain/kotlin/org/michaelbel/movies/main/di/MainKoinModule.wasm.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,5 @@ | ||
package org.michaelbel.movies.main.di | ||
|
||
import org.koin.dsl.module | ||
|
||
actual val mainKoinModule = module {} |
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
12 changes: 0 additions & 12 deletions
12
webApp/src/commonMain/kotlin/org/michaelbel/movies/MainContent.kt
This file was deleted.
Oops, something went wrong.
25 changes: 2 additions & 23 deletions
25
webApp/src/commonMain/kotlin/org/michaelbel/movies/di/AppKoinModule.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 |
---|---|---|
@@ -1,26 +1,5 @@ | ||
package org.michaelbel.movies.di | ||
|
||
/*import org.koin.dsl.module | ||
import org.michaelbel.movies.account.di.accountKoinModule | ||
import org.michaelbel.movies.auth.di.authKoinModule | ||
import org.michaelbel.movies.details.di.detailsKoinModule | ||
import org.michaelbel.movies.feed.di.feedKoinModule | ||
import org.michaelbel.movies.gallery.di.galleryKoinModule | ||
import org.michaelbel.movies.main.di.mainKoinModule | ||
import org.michaelbel.movies.platform.inject.flavorServiceKtorModule | ||
import org.michaelbel.movies.search.di.searchKoinModule | ||
import org.michaelbel.movies.settings.di.settingsKoinModule | ||
import org.koin.dsl.module | ||
|
||
internal val appKoinModule = module { | ||
includes( | ||
flavorServiceKtorModule, | ||
mainKoinModule, | ||
accountKoinModule, | ||
authKoinModule, | ||
detailsKoinModule, | ||
feedKoinModule, | ||
galleryKoinModule, | ||
searchKoinModule, | ||
settingsKoinModule | ||
) | ||
}*/ | ||
val appKoinModule = module {} |
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