Skip to content
CAI
Software that uses CAICheck a score

darkmoonight/Rain

46.8

Weak · 5 November 2026

20k

lines of production code

Dart

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added domain logic for loading and validating saved city weather cards

This change introduces two new domain classes to handle the integrity and retrieval of saved city data. The \CitiesLoadResolver\ manages the result of database reads, ensuring that an empty database is treated as a valid state with no saved cities rather than an error. The \WeatherCardValidator\ provides utilities to check if a weather card contains all necessary fields for network refreshes, determine if cached data has expired, filter cards based on completeness or expiry, perform case-insensitive search matching against city or district names, locate cards by ID, and repair index mismatches within the card list.

lib/features/cities/domain · high confidence

Added i18n validation tool and FLOSS dependency override

The tool directory now includes a new Dart script, validate\_i18n.dart, which validates internationalization JSON files by checking for key parity across locales and detecting untranslated English keys. Additionally, a new pubspec\_overrides.floss.yaml file has been added to override the geolocator\_android dependency with a specific Git fork (Zverik/flutter-geolocator, ref floss), likely to support FLOSS (Free/Libre and Open Source Software) compliance requirements.

tool · high confidence

Added web splash screen support

The web entry point now displays a branded splash screen while the application loads. This includes a new splash.js script to remove the splash overlay once the app is ready, a style.css file defining the splash layout, and updates to index.html that inject inline styles and a picture element for the splash image (supporting both light and dark color schemes).

web · high confidence

Automated APK build and release asset preparation scripts

Added a suite of shell scripts to automate the build and packaging of Android APKs for both GMS and FLOSS variants. The \build\_apk.sh\ script handles flavor-specific builds, applying necessary pubspec overrides and patching JNI CMake files to ensure reproducible builds. The \build\_release\_apks.sh\ script orchestrates the full release process, generating split and universal APKs for both variants and restoring default dependencies afterward. Supporting scripts \rename\_apk\_outputs.sh\ and \restore\_pub\_default.sh\ manage output file naming conventions and dependency state, while \patch\_jni\_reproducible\_build.sh\ modifies local JNI build configurations to enforce consistent linking options.

scripts · high confidence

Introduce Riverpod-based weather state management

The application layer for the weather feature now uses a new \MainWeatherNotifier\ powered by Riverpod to manage state, replacing the previous implementation. This notifier handles location resolution, weather data caching, and refresh logic using a stale-while-revalidate strategy to ensure the UI remains responsive while fetching updates. It integrates with connectivity checks, local data sources, and notification services to keep the displayed forecast accurate and up-to-date.

lib/features/weather/application · high confidence

Introduce new data repositories for cities, settings, and weather

Added three new repository classes in the data layer to manage local persistence and remote data coordination. CitiesRepository handles the storage, ordering, and caching of user-saved city weather cards using Isar. SettingsRepository manages app configuration and location cache persistence. WeatherRepository coordinates fetching fresh weather data from remote sources and managing the local main weather and location caches.

lib/data/repositories · high confidence

Linux platform adds support for new Flutter plugins

The Linux build now registers five new Flutter plugins: dynamic\_system\_colors, flutter\_timezone, isar\_community\_flutter\_libs, restart\_app, and url\_launcher\_linux. Additionally, the jni plugin is added to the FFI plugin list, enabling native JNI integration on Linux.

linux/flutter · high confidence

Migrate internationalization to Slang with lazy-loaded locale support

The application's internationalization system has been replaced with the Slang library, introducing a new \locale\_utils.dart\ module to handle locale parsing and date formatting. This change adds support for 36 languages, including Arabic, Bengali, and Czech, which are now loaded lazily via deferred imports to optimize app startup performance. Users will benefit from improved localization reliability and reduced memory usage when switching between languages.

lib/i18n · high confidence

New Air Quality Card with detailed pollutant breakdown

Users can now view a dedicated Air Quality Card in the weather forecast. This card displays the current Air Quality Index (AQI) value, a severity badge, and a visual scale bar indicating the AQI level. Below the main index, a collapsible section reveals a list of individual pollutant concentrations, each shown with a colored progress bar to help users understand the specific components contributing to the air quality reading.

_lib/features/weather/presentation/widgets/air\quality · high confidence

New Material You home-screen widgets with system theme integration

The app now includes three new Android home-screen widgets: a 1x1 Material You forecast widget, a current-conditions widget, and a horizontal clock widget. These widgets display weather data and respect the device's light/dark mode, automatically refreshing when the system theme changes. They also support custom background and text colors via the app's settings.

android/app/src · high confidence

New city weather detail and list screens

Added PlaceInfo and PlaceList views for the cities feature. PlaceInfo displays full weather details for a single saved city, including hourly forecasts with automatic time-slot synchronization and scroll-to-current-hour behavior. PlaceList provides a searchable, pull-to-refresh list of saved city cards with loading, error, and empty states.

lib/features/cities/presentation/view · high confidence

The app now supports air quality data by introducing new model classes (AirQualityDataApi, AirQualityHourly) that parse hourly metrics like European and US AQI, PM2.5, and pollutants from the Open-Meteo Air Quality API. Existing weather and city models have been updated to align with this new data structure, and the local database (db.dart) has been extended to cache these air quality fields alongside standard weather forecasts.

lib/data/models · high confidence

New domain entities for settings, locations, and weather data

The domain layer now includes immutable, freezed-based entities to model core application data. AppSettings defines user preferences such as theme, notifications, and unit systems. GeoPlace and CitySearchResult represent location data, with GeoPlace providing a display label helper. SavedPlace aggregates weather forecast data with location details for saved cities, including factory methods to construct instances from forecasts. WeatherForecast models the primary location's hourly and daily weather data, offering helpers to check data completeness and retrieve temperature ranges.

lib/domain · high confidence

The map feature now includes a new \MapPage\ that renders an interactive map using \flutter\_map\, displaying weather markers for the main location and saved cities. Users can search for locations via an integrated search field, tap markers to view detailed weather cards with animated slide-in overlays, and interact with an expandable floating action button. The screen utilizes Riverpod for state management and includes caching for map tiles.

lib/features/map · high confidence

New open-source license screen and widget configuration in Settings

The Settings feature now includes a dedicated Open Source Licenses screen (AppLicensePage) that lists all third-party packages and allows users to view their full license texts in a dialog, complete with shimmer loading states. Additionally, a new Widget Settings page (WidgetSettingsPage) has been added to manage Android home-screen widget configurations, including pin-to-home actions, background refresh status, and customizable light/dark color themes via a new HSV color picker. These changes are supported by new reusable UI components such as a searchable selection dialog, notification weekday pickers, and consistent settings card shapes.

lib/features/settings · high confidence

New weather and air quality data sources with local caching

The app now fetches weather and air quality data from the Open-Meteo API, including a 7-day air quality forecast (European and US AQI, PM2.5, PM10, ozone, CO, NO2, SO2) alongside the standard 12-day weather forecast. Data is persisted locally using Isar for offline access and faster load times, with automatic cache expiration and validation. The system also handles city search via Open-Meteo's geocoding API and reverse geocoding via Nominatim as a fallback.

lib/data/datasources · high confidence

New widget data bridge for home screen integration

A new WidgetDataBridge component has been added to the app to handle data retrieval for the home screen widget. This class reads weather information (location, temperature, icon) and user preferences (time format, theme mode, colors) from shared preferences, parses the JSON payload, and provides a structured WidgetBundle to the widget UI, ensuring the widget displays current weather data and respects the user's appearance settings.

app · high confidence

Redesigned home shell with Riverpod state management and persistent notifications

The home screen shell has been rebuilt to use Riverpod for state management and a new tab-based navigation structure (Weather, Cities, Map, Settings). This change introduces a persistent notification feature on Android that refreshes weather data every minute when enabled, and adds an inline city search field within the weather tab's app bar. The UI now dynamically adjusts the tab count based on settings (e.g., hiding the map tab) and handles lifecycle events to refresh data upon app resume.

lib/features/shell · high confidence

Architecture

Introduces Riverpod dependency injection and GoRouter navigation

The app's core architecture has been refactored to use Riverpod for dependency injection and GoRouter for navigation. A new \lib/core/di\ directory provides a centralized provider registry (\provider\_refs.dart\) that wires up services (such as \NotificationService\, \HomeWidgetService\, and \WeatherRepository\) and repositories. Navigation is now handled by \app\_router.dart\, which manages app-wide routing, onboarding guards, and location resolution. This change replaces the previous state management and navigation approach, establishing a new foundation for how the app initializes and manages its internal components.

lib/core · high confidence

Behavioural changes

Added ProGuard rules to preserve Flutter, Isar, and native code during minification

A new proguard-rules.pro file has been added to the Android app to configure code shrinking and obfuscation. The rules explicitly preserve Flutter plugin and utility classes to prevent issues with Play Core deferred APIs, keep Isar database classes and their Gson annotations intact, and retain all native methods. Additionally, warnings regarding the unused Play Core splitinstall module are suppressed.

android/app · high confidence

Application window title capitalization corrected

The main application window title has been changed from the lowercase 'rain' to the capitalized 'Rain'. This affects the text displayed in the window's header bar or title bar, depending on the current UI configuration.

linux · high confidence

Geolocation screen rewritten with Riverpod and GoRouter

The geolocation selection screen has been completely rewritten to migrate from GetX to Riverpod for state management and GoRouter for navigation. This change introduces a new UI implementation using Material UI and FlutterMap, integrating with the updated dependency stack (including Iconsax Plus and Slang for i18n) to allow users to select or edit their primary weather location via map interaction, city search, or current location detection.

lib/features/geolocation · high confidence

Gradle wrapper upgraded to version 9.3.1

The Android build system now uses Gradle 9.3.1 (upgraded from 7.4) via the wrapper configuration. This ensures that builds are executed with the newer Gradle release, which may bring changes to build performance, plugin compatibility, and build script syntax requirements.

android/gradle · high confidence

Migrate cities state management to Riverpod

The saved-cities list and its load/refresh logic have been migrated from the previous state management approach to Riverpod. A new \CitiesNotifier\ manages the \CitiesState\, handling initial loading from local storage, background refreshing with a 12-hour cache expiry, and error states. This change introduces a stale-while-revalidate pattern where cached cards remain visible while fresh data is fetched in the background, improving perceived performance and reliability when the device is offline or connectivity is intermittent.

lib/features/cities/application · high confidence

Migrate to Riverpod, GoRouter, and Material UI

The application has been refactored to replace the previous state management and routing stack with Riverpod for dependency injection and state, GoRouter for navigation, and the material\_ui package for UI components. The entry point now initializes an AppBootstrap object and wraps the root RainApp widget in a ProviderScope, while the app itself is configured with dynamic color support, edge-to-edge display handling, and a compatibility bridge for third-party packages still using the standard Flutter Material library.

lib · high confidence

New main weather screen with Riverpod state management and persistent clock sync

The main weather screen in the presentation layer has been rewritten to use Riverpod for state management, replacing the previous implementation. It now features a persistent timer that syncs current time indices every 30 seconds, ensuring the displayed hourly forecast remains accurate. The screen renders a detailed weather view with support for daily forecasts, AQI standards, and handles loading states with shimmer placeholders and empty states with error messaging when forecast data is unavailable.

lib/features/weather/presentation · high confidence

Redesigned city card UI with new editing and list management widgets

The cities feature now uses a new set of presentation widgets to manage saved city weather data. Users can create or edit city cards via a bottom sheet form (PlaceAction) that validates inputs and handles unsaved-change warnings. Saved cities are displayed in a reorderable list (PlaceCardList) where cards can be swiped to delete or tapped to view details. The card display (PlaceCard) shows current temperature, weather conditions, location, and a live wall-clock time, with shimmer placeholders during loading. Incomplete or error-state cards show a retry button to refresh data.

lib/features/cities/presentation/widgets · high confidence

Rewritten weather detail UI with Riverpod and Material 3

The weather detail view and its components (daily forecast, hourly strip, current conditions, and variable grids) have been rebuilt from the ground up. The presentation layer now uses Riverpod for state management and the Material 3 (material\_ui) library for styling, replacing the previous implementation. This change introduces a new layout for the 7-day forecast preview and detail pages, a redesigned hourly forecast strip with selectable tiles, and an expandable grid for hourly/daily weather metrics. The widgets are now fully locale-aware for dates and units, and the current conditions header supports a toggleable large-icon layout based on user settings.

lib/features/weather/presentation/widgets · high confidence

Windows build now supports multiple target platforms and registers additional native plugins

The Windows build configuration has been updated to support target platforms beyond the hardcoded x64 architecture by introducing a configurable \FLUTTER\_TARGET\_PLATFORM\ variable, allowing the build to adapt to different Windows architectures. Additionally, the Windows platform now registers several new native plugins, including connectivity\_plus, dynamic\_system\_colors, flutter\_timezone, geolocator\_windows, isar\_community\_flutter\_libs, restart\_app, and url\_launcher\_windows, enabling these features to function correctly on Windows devices.

windows · high confidence

iOS app now requires iOS 13+ and includes location permissions

The iOS build now targets a minimum of iOS 13.0 (up from 11.0) and includes the necessary permission descriptions for accessing the device's location (NSLocationWhenInUseUsageDescription and NSLocationTemporaryUsageDescriptionDictionary) in the Info.plist. The launch screen has been updated to support a background image, and the project has been configured to use CocoaPods for dependency management.

ios · high confidence

macOS app now supports background tasks, location, and system integrations

The macOS build now registers a suite of new plugins, enabling features such as background work execution (workmanager), device information retrieval, dynamic system color support, local notifications, timezone handling, geocoding, geolocation, package info, app restart capabilities, URL launching, and connectivity monitoring. This expands the macOS platform's feature parity with other supported platforms by activating these native capabilities.

macos/Flutter · high confidence

Test coverage

Added comprehensive test suite for core application logic; Added initial macOS test suite scaffold; Added unit tests for cities feature application and domain logic.

Dependencies

Major dependency upgrade and Android build system migration

The project has upgraded its core dependencies, including the Dart SDK to 3.13.5, Flutter to 3.47.6, and Kotlin to 2.4.0. The Android build system has been migrated to the new Gradle plugin management DSL, updating the Android Gradle Plugin to 9.1.1 and raising the compile SDK to 37 and Java compatibility to 17. Key library updates include connectivity\_plus to 7.3.1, dio to 5.11.1, and the introduction of new packages such as slang for localization and freezed for code generation.

(dependencies) · high confidence

Housekeeping

Project documentation and configuration scaffolding

The repository now includes essential project documentation and configuration files to support development and community contribution. A new Code of Conduct and Contributing guide have been added to establish community standards and provide setup instructions for building the app (including the gms and floss flavors). An MIT License file has been introduced to define usage rights. Additionally, developer tooling has been configured with a build.yaml for Freezed code generation and a slang.yaml for managing internationalization assets, while the README has been updated to reflect the app's features and build requirements.

(repo-wide) · 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 48 → 47 (-0.9)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 70 → 70 (+0.1)
  • Architecture 94 → 93 (-0.3)
  • Maturity 55 → 52 (-3.6)
  • Readiness 23 → 23 (+0.0)
  • Security 100 → 100 (+0.0)
  • Domain Modelling 100 → 100 (+0.0)
  • Performance 79 → 79 (+0.0)

Resolved (4)

  • Change coupling: now.dart ↔ sunset_sunrise.dart (lib/features/weather/presentation/widgets/now.dart)
  • Change-coupling hub: daily_container.dart → daily_card_list.dart, desc.dart, now.dart, sunset_sunrise.dart (lib/features/weather/presentation/widgets/daily/daily_container.dart)
  • Change-coupling hub: settings.dart → notification_service.dart, status_data.dart, main_weather_notifier.dart, sunset_sunrise.dart (lib/features/settings/presentation/view/settings.dart)
  • MethodTooLong: _MapPageState.build (lib/features/map/presentation/map_screen.dart)

New (4)

  • Change coupling: daily_card_list.dart ↔ daily_container.dart (lib/features/weather/presentation/widgets/daily/daily_card_list.dart)
  • Change coupling: daily_container.dart ↔ now.dart (lib/features/weather/presentation/widgets/daily/daily_container.dart)
  • Change-coupling hub: settings.dart → notification_service.dart, status_data.dart, main_weather_notifier.dart (lib/features/settings/presentation/view/settings.dart)
  • Off-boarding risk: anonymized user #1

Changes since last survey

  • 3 commits — 2 feature/other, 1 fixes

By area

  • (root) — 2 commits
  • android/app — 1 commit

Notable commits

  • fix: Fix card in map
  • change: Update dependencies
  • change: Update implementation

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 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

darkmoonight/Rain 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 5 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 3006c0b5ccfa2aa607153e6d086ed6963e6350f9 — 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.2+preprod-5c4e66d9318b.