Skip to content
Proyek

Tentang

Template KMP aplikasi The New York Times untuk Android, desktop, iOS, Windows, dan Web

Pengembangan web dan aplikasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+1
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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

Jelajahi proyek terkait

Memuat…