Skip to content
Projets

À propos

Modèle KMP de l’application du New York Times pour Android, ordinateur, iOS, Windows et le Web

Développement web et applicatif

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
+1
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

NYTimes-KMP

Build Kotlin

badge-android badge-wearos badge-desktop badge-ios badge-browser-js badge-browser-wasm badge-windows

A Kotlin Multiplatform sample of the New York Times app with a shared domain (networking, storage, Molecule view models) driving

  1. Compose Multiplatform UIs for Android, Desktop (Linux, macOS, Windows), and Web (JS + WasmJs)
  2. Jetpack Compose for Wear OS, consuming the shared domain and view models
  3. Dual Compose + SwiftUI experience on iOS
  4. WPF + WinUI 3 + MAUI on native Windows via kotlin-native-nuget.

To build and run you will need an API key from the New York Times.

Libraries used

Run instructions

Run configurations available on .idea/runConfigurations for each platform.

run-config.png
platform command
android ./gradlew :app:android:assembleDebug
wear ./gradlew :app:wear:assembleDebug
ios xcodebuild -project app/ios/ios.xcodeproj -scheme NYTimes -configuration Debug
desktop ./gradlew :app:desktop:run
js ./gradlew :app:web:jsBrowserDevelopmentRun
wasm ./gradlew :app:web:wasmJsBrowserDevelopmentRun
windows (WPF) dotnet run --project app\windows\WpfApp\WpfApp.csproj
windows (WinUI) dotnet run --project app\windows\WinUiApp\WinUiApp.csproj
windows (MAUI) dotnet run --project app\windows\MauiApp\MauiApp.csproj

Build details for the WPF, WinUI and MAUI hosts are in app/windows/README.md.

Showcase

Android

https://github.com/xxfast/NYTimes-KMP/assets/13775137/25adabad-400e-4178-8a14-aaca531c8062

WearOs

https://github.com/xxfast/NYTimes-KMP/assets/13775137/e9ce8ab6-6c08-49a5-b80c-123733bf466c

iOS

https://github.com/xxfast/NYTimes-KMP/assets/13775137/43855864-a4e3-4efb-8047-3e80b0594b02

Desktop

https://github.com/xxfast/NYTimes-KMP/assets/13775137/97da961c-ef9a-40d0-9cee-f322ad8aa6ef

Web (Js & WasmJs)

https://github.com/xxfast/NYTimes-KMP/assets/13775137/eb37d767-d241-4aa8-9083-25a4b9ad3dfa

Windows (WinUI3 + WPF + MAUI)

https://github.com/user-attachments/assets/69d19efd-ab31-496f-bbd8-cd677d82b4a2

Explorer des projets similaires

Chargement…