Skip to content
CAI
Software that uses CAICheck a score

davidtakac/prognoza

52.3

Adequate · 9 November 2026

9.4k

lines of production code

Kotlin

with Swift

10

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a cross-platform weather application built using Kotlin Multiplatform Mobile, sharing business logic and data access between Android and iOS clients. It provides weather forecasts and location management by supporting multiple data providers, such as Open-Meteo and MetNorway, with configurable update frequencies and unit preferences. The application features a modern UI with dynamic theming and dark mode support, utilizing a centralized architecture for dependency management and build configuration.

How it got here

2021 — Kotlin Multiplatform migration

6 changes.

The project underwent a significant architectural shift from a single-module Android app to a Kotlin Multiplatform structure, introducing a shared module for cross-platform business logic. This migration involved replacing legacy Android dependencies with modern KMP-compatible libraries like Ktor and SQLDelight, while also upgrading the Gradle build system and cleaning up obsolete boilerplate code and resources.

2022 — KMM migration and iOS launch

6 changes.

The project underwent a major architectural shift to Kotlin Multiplatform Mobile, refactoring the Android app and shared modules to support a unified codebase. This period established the foundational structure for the new iOS application while centralizing build configurations and introducing features like dynamic theming and multiple forecast providers.

Features

Added dark mode weather icons for iOS and Android

The weather-icons library now includes a complete set of dark-mode SVG assets and conversion scripts for both iOS and Android. The dark variants feature adjusted colors for moon, rain, lightning, and snow to ensure legibility on dark backgrounds, addressing the issue where the original light-mode icons were too dark. This update provides the necessary assets for displaying weather conditions correctly in dark mode on mobile platforms.

weather-icons · high confidence

Initial iOS app skeleton and weather icon assets

This change introduces the foundational structure for the iOS application, including the Xcode project configuration, Swift source files for the app entry point, forecast view, view model, and UI mapper, along with a build script to embed shared frameworks. It also adds a comprehensive set of localized weather condition icons (supporting light and dark modes across multiple resolutions) and localizable strings to the iOS asset catalog.

iosApp · high confidence

Shared module refactored for Kotlin Multiplatform with new forecast providers

The shared module has been restructured to support Kotlin Multiplatform Mobile (KMM), introducing platform-specific implementations for Android (including SQLite database drivers, logging, and decimal formatting) and a common interface for the SDK. This refactor adds support for two new weather forecast providers, MetNorway and Open-Meteo, alongside the existing data, allowing users to select their preferred data source. It also introduces the ability to delete saved places and implements a 'frugal' forecast retrieval mode that refreshes data less frequently (every 6 hours) compared to the standard mode, optimizing network usage.

shared · high confidence

Removals

Removal of legacy Activity, layout, and theme resources

The app has removed the legacy \MainActivity\ (including its \AppCompatActivity\ base and \activity\_main.xml\ layout), along with the associated default launcher icons (\ic\_launcher\_foreground.xml\, \ic\_launcher\_background.xml\) and the standard Material Components theme definitions (\themes.xml\, \values-night/themes.xml\, \colors.xml\). This cleanup eliminates the default scaffold and styling infrastructure, indicating a shift away from the initial Activity-based setup toward a different UI architecture or theme organization.

app/src/main · high confidence

Architecture

Android app migration to Kotlin Multiplatform Mobile (KMM)

The Android application module has been refactored to support Kotlin Multiplatform Mobile, moving from a standalone Android implementation to a shared codebase structure. This architectural shift includes the addition of ProGuard rules specifically configured for kotlinx.serialization to ensure proper obfuscation handling, and the reorganization of project files such as the relocation of the .gitignore file to the new androidApp directory. Users benefit from a unified codebase that facilitates the introduction of iOS support while maintaining the existing Android feature set.

androidApp · high confidence

Behavioural changes

Android app refactored to use PrognozaSdk and Material You dynamic theming

The Android app has been refactored to delegate data access and business logic to the PrognozaSdk, with dependency injection modules now providing use cases (forecast, places, units) from the SDK rather than local implementations. This change introduces a new settings system supporting Material You dynamic theming (MoodMode) alongside standard UI modes (UiMode), allowing the app's appearance to adapt to the device wallpaper on Android 12+. Additionally, the app now supports multiple forecast providers (including Open-Meteo) and unit preferences, all managed through a centralized settings screen.

androidApp/src · high confidence

Removed local ProGuard rules file

The app-level proguard-rules.pro file has been deleted, removing the default commented-out configuration for ProGuard optimizations and debugging aids such as line number preservation. This change indicates that ProGuard rules are now managed exclusively through the build configuration (build.gradle) rather than a separate local file.

app · high confidence

Test coverage

Removed boilerplate unit test; Removed default instrumented test boilerplate.

Dependencies

Establishes centralized dependency and build configuration for the project

This change introduces the \buildSrc\ module, which centralizes the management of project dependencies and build settings. It defines global versions for Kotlin (1.7.10), Compose (1.3.1), and other key libraries, while also setting Android build configurations such as a minimum SDK of 26 and compile SDK of 33. This structure provides a single source of truth for dependency versions used across the project.

buildSrc · high confidence

Gradle wrapper upgraded to version 7.3.3

The Gradle wrapper has been updated from version 6.7.1 to 7.3.3. This change ensures that the project uses a newer, supported version of the Gradle build tool for consistent and potentially faster builds.

gradle · high confidence

Migrate to Kotlin Multiplatform and Gradle Version Catalogs

The Android project has been refactored from a single-module structure to a Kotlin Multiplatform (KMP) architecture, introducing a new \shared\ module that compiles to Android, iOS (x64, arm64, simulator), and provides common business logic. This migration replaces the previous Android-only \app\ module and its dependencies (Retrofit, Gson, Room, Koin) with a modern stack using Ktor for networking, kotlinx-serialization for JSON, and SQLDelight for database access, all managed via Gradle version catalogs in \buildSrc\. The build system has also been upgraded to use Kotlin DSL (\build.gradle.kts\) and centralized version management, while \gradle.properties\ enables KMP interop commonization and non-transitive R classes for optimized resource handling.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 52 → 52 (-0.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 82 → 82 (+0.0)
  • Architecture 94 → 93 (-0.4)
  • Maturity 52 → 52 (+0.0)
  • Readiness 36 → 36 (+0.0)
  • Security 68 → 68 (+0.0)
  • Performance 100 → 100 (+0.0)

Resolved (4)

  • Documentation: no contributor guidance (README.md)
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no project overview (README.md)
  • Documentation: no usage examples (README.md)

New (1)

  • Documentation: no build, run or usage example (README.md)

Architecture

  • Unchanged — 0 containers · 2 contexts · 1 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

davidtakac/prognoza was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 9 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit fd4640da90b1f9aaacf4a7d4977ffec90853fa41 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-b921b700395b.