Skip to content

noxo/CMPWeatherApp

Repository files navigation

CMP Weather App

A Kotlin Multiplatform weather application for Android and iOS using Compose Multiplatform.

Features

  • Real-time Weather: Current weather conditions for selected locations.
  • Daily Forecast: Upcoming weather trends.
  • Location Search: Search and save multiple locations.
  • Dark Mode Support: Seamlessly switches between light and dark themes.
  • Shared UI: Almost 100% UI code sharing between Android and iOS.

Tech Stack

Project Structure

  • /shared: Contains all the shared logic, ViewModels, and Compose UI.
    • commonMain: Shared logic and UI for both platforms.
    • androidMain & iosMain: Platform-specific implementations.
  • /androidApp: Android-specific entry point and configuration.
  • /iosApp: iOS-specific Xcode project and entry point.

Getting Started

Android

  1. Open the project in Android Studio.
  2. Run the :androidApp configuration.

iOS

  1. Open iosApp/iosApp.xcworkspace in Xcode.
  2. Run the iosApp target on a simulator or device.
    • Note: Ensure you have a recent version of Xcode installed.

Dependencies

  • Koin (Core, Compose, ViewModel)
  • Ktor (Client, Content Negotiation, Logging)
  • Kotlinx Datetime
  • Jetpack Lifecycle (ViewModel)

About

A Kotlin Multiplatform weather application for Android and iOS using Compose Multiplatform.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors