Skip to content

Commit

Permalink
Rename client to app
Browse files Browse the repository at this point in the history
  • Loading branch information
xxfast committed Sep 24, 2024
1 parent d620ef9 commit 25cee30
Show file tree
Hide file tree
Showing 123 changed files with 21 additions and 20 deletions.
5 changes: 2 additions & 3 deletions .idea/runConfigurations/android.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/runConfigurations/desktop.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# <img src=".idea/icon.svg" height="23"/> NYTimes-KMP

[![Build](https://github.com/xxfast/NYTimes-KMP/actions/workflows/build.yml/badge.svg)](https://github.com/xxfast/NYTimes-KMP/actions/workflows/build.yml)
[![Kotlin](https://img.shields.io/badge/Kotlin-1.9.20-blue.svg?style=flat&logo=kotlin)](https://kotlinlang.org)
[![Kotlin](https://img.shields.io/badge/Kotlin-2.0.10-blue.svg?style=flat&logo=kotlin)](https://kotlinlang.org)

![badge-android](http://img.shields.io/badge/platform-android-6EDB8D.svg?style=flat)
![badge-wearos](http://img.shields.io/badge/platform-wearos-8ECDA0.svg?style=flat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ android {
}

dependencies {
implementation(project(":client"))
implementation(project(":app"))
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

dependencies {
implementation(project(":client"))
implementation(project(":app"))
implementation(compose.desktop.currentOs)
implementation(compose.runtime)
implementation(compose.foundation)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd \"$SRCROOT/../..\"\n./gradlew :client:embedAndSignAppleFrameworkForXcode\n";
shellScript = "cd \"$SRCROOT/../..\"\n./gradlew :app:embedAndSignAppleFrameworkForXcode\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -322,7 +322,7 @@
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../../client/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
"$(SRCROOT)/../../app/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
);
INFOPLIST_FILE = ios/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = NYTimes;
Expand All @@ -334,7 +334,7 @@
OTHER_LDFLAGS = (
"$(inherited)",
"-framework",
NyTimes,
App,
);
PRODUCT_BUNDLE_IDENTIFIER = io.github.xxfast.nytimes.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -355,7 +355,7 @@
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../../client/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
"$(SRCROOT)/../../app/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
);
INFOPLIST_FILE = ios/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = NYTimes;
Expand All @@ -367,7 +367,7 @@
OTHER_LDFLAGS = (
"$(inherited)",
"-framework",
NyTimes,
App,
);
PRODUCT_BUNDLE_IDENTIFIER = io.github.xxfast.nytimes.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/wear/build.gradle.kts → app/wear/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ android {
}

dependencies {
implementation(project(":client"))
implementation(project(":app"))
implementation(compose.uiTooling)
implementation(compose.materialIconsExtended)
implementation(libs.horologist.compose.layouts)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/web/build.gradle.kts → app/web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ kotlin {
sourceSets {
val jsMain by getting {
dependencies {
implementation(project(":client"))
implementation(project(":app"))
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ import androidx.compose.material3.windowsizeclass.calculateWindowSizeClass
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.window.CanvasBasedWindow
import androidx.compose.ui.window.ComposeViewport
import io.github.xxfast.androidx.compose.material3.windowsizeclass.LocalWindowSizeClass
import io.github.xxfast.decompose.router.LocalRouterContext
import io.github.xxfast.decompose.router.RouterContext
import io.github.xxfast.decompose.router.defaultRouterContext
import io.github.xxfast.nytimes.screens.home.HomeScreen
import kotlinx.browser.document
import org.jetbrains.skiko.wasm.onWasmReady

@OptIn(ExperimentalComposeUiApi::class, ExperimentalMaterial3WindowSizeClassApi::class)
fun main() {
onWasmReady {
val rootRouterContext: RouterContext = defaultRouterContext()

CanvasBasedWindow(title = "NYTime-KMP", canvasElementId = "ComposeTargetContainer") {
ComposeViewport(document.body!!) {
BoxWithConstraints {
val windowSizeClass: WindowSizeClass = calculateWindowSizeClass()
CompositionLocalProvider(
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ dependencyResolutionManagement {

rootProject.name = "NYTimes-KMP"

include(":client")
include(":client:android")
include(":client:desktop")
include(":client:web")
include(":client:wear")
include(":app")
include(":app:android")
include(":app:desktop")
include(":app:web")
include(":app:wear")

0 comments on commit 25cee30

Please sign in to comment.