# rifky290301/test_fastlane architecture

> Architecture diagram of the GitHub repository rifky290301/test_fastlane, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rifky290301/test_fastlane
- Repository: https://github.com/rifky290301/test_fastlane

## Overview

##### Project type and purpose
- This is a cross-platform Flutter application (“test_fastlane”) targeting mobile (Android, iOS), desktop (macOS, Windows, Linux) and web.
- It includes Fastlane configurations for Android and iOS automated builds/distribution, and Shorebird for release management.

##### File structure
- Top-level directories:
- android/ — native Android module (Gradle scripts, Kotlin MainActivity, resources, Fastlane)
- ios/ — native iOS module (Xcode project, Swift AppDelegate, CocoaPods, Fastlane)
- macos/, windows/, linux/ — desktop embedder code (CMake, native shell, Swift/Obj-C for macOS, C++ for Windows/Linux)
- lib/ — Flutter Dart code (main.dart, firebase_options.dart)
- assets/credentials/ — environment-specific secrets
- fastlane/ — shared plugins and CI/CD scripts
- .github/workflows — GitHub Actions for distribution
- shorebird.yaml — Shorebird release config
- Configuration files: pubspec.yaml, firebase.json, CMakeLists, AndroidManifest, Info.plist, exportOptions.plist.

##### README
- Boilerplate Flutter README with pointers to Flutter resources. Confirms that this is a “starter” Flutter project scaffolded using flutter create.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Core Layer
    subgraph "Flutter Core" 
        direction TB
        FC_main["main.dart"]:::core
        FC_firebaseOpts["firebase_options.dart"]:::core
    end

    %% Platform Embedders
    subgraph "Platform Embedders"
        direction TB
        subgraph "Android Embedder"
            direction TB
            AND_KT["MainActivity.kt"]:::platform
            AND_GRADLE["build.gradle"]:::platform
            AND_FASTLANE["Fastfile"]:::cicd
        end
        subgraph "iOS Embedder"
            direction TB
            IOS_SWIFT["AppDelegate.swift"]:::platform
            IOS_PLIST["Info.plist"]:::platform
            IOS_FASTLANE["Fastfile"]:::cicd
        end
        subgraph "macOS Embedder"
            direction TB
            MAC_SWIFT["AppDelegate.swift"]:::platform
            MAC_PLIST["Info.plist"]:::platform
            MAC_REG["GeneratedPluginRegistrant.swift"]:::platform
        end
        subgraph "Windows Embedder"
            direction TB
            WIN_CPP["flutter_window.cpp"]:::platform
            WIN_CMAKE["CMakeLists.txt"]:::platform
        end
        subgraph "Linux Embedder"
            direction TB
            LNX_CC["main.cc"]:::platform
            LNX_CMAKE["CMakeLists.txt"]:::platform
        end
        subgraph "Web Host"
            direction TB
            WEB_HTML["index.html"]:::platform
            WEB_MANIFEST["manifest.json"]:::platform
            WEB_ICONS["icons"]:::platform
        end
    end

    %% External Services
    subgraph "External Services"
        direction TB
        FB_JSON["firebase.json"]:::external
        FB_ANDROID["google-services.json"]:::external
        FB_IOS["GoogleService-Info.plist"]:::external
        SHORE["Shorebird (shorebird.yaml)"]:::external
    end

    %% CI/CD
    subgraph "CI/CD Pipelines"
        direction TB
        FL_SHARED["Fastlane Shared Scripts"]:::cicd
        GH_ACTIONS["GitHub Actions"]:::cicd
    end

    %% Credentials
    subgraph "Environment Credentials" 
        direction TB
        CRED_DEV["development/"]:::creds
        CRED_PRE["preproduction/"]:::creds
        CRED_PROD["production/"]:::creds
    end

    %% Relationships: Core to Embedders
    FC_main -->|"platform channel"| AND_KT
    FC_main -->|"platform channel"| IOS_SWIFT
    FC_main -->|"platform channel"| MAC_SWIFT
    FC_main -->|"platform channel"| WIN_CPP
    FC_main -->|"platform channel"| LNX_CC
    FC_main -->|"runs in"| WEB_HTML

    %% Core to Firebase SDK
    FC_firebaseOpts -->|"Dart SDK Init"| FB_JSON

    %% Native modules to Firebase config
    FB_ANDROID --> AND_KT
    FB_IOS --> IOS_SWIFT

    %% CI/CD flows
    GH_ACTIONS --> FL_SHARED
    FL_SHARED --> AND_FASTLANE
    FL_SHARED --> IOS_FASTLANE
    FL_SHARED --> SHORE
    CRED_DEV --> FL_SHARED
    CRED_PRE --> FL_SHARED
    CRED_PROD --> FL_SHARED

    %% Shorebird distribution
    SHORE -->|"distribute releases"| SHORE

    %% Click events
    click FC_main "https://github.com/rifky290301/test_fastlane/blob/master/lib/main.dart"
    click FC_firebaseOpts "https://github.com/rifky290301/test_fastlane/blob/master/lib/firebase_options.dart"
    click AND_KT "https://github.com/rifky290301/test_fastlane/blob/master/android/app/src/main/kotlin/com/example/test_fastlane/MainActivity.kt"
    click AND_GRADLE "https://github.com/rifky290301/test_fastlane/blob/master/android/app/build.gradle"
    click AND_FASTLANE "https://github.com/rifky290301/test_fastlane/tree/master/android/fastlane/Fastfile"
    click IOS_SWIFT "https://github.com/rifky290301/test_fastlane/blob/master/ios/Runner/AppDelegate.swift"
    click IOS_PLIST "https://github.com/rifky290301/test_fastlane/blob/master/ios/Runner/Info.plist"
    click IOS_FASTLANE "https://github.com/rifky290301/test_fastlane/tree/master/ios/fastlane/Fastfile"
    click MAC_SWIFT "https://github.com/rifky290301/test_fastlane/blob/master/macos/Runner/AppDelegate.swift"
    click MAC_PLIST "https://github.com/rifky290301/test_fastlane/blob/master/macos/Runner/Info.plist"
    click MAC_REG "https://github.com/rifky290301/test_fastlane/blob/master/macos/Flutter/GeneratedPluginRegistrant.swift"
    click WIN_CPP "https://github.com/rifky290301/test_fastlane/blob/master/windows/runner/flutter_window.cpp"
    click WIN_CMAKE "https://github.com/rifky290301/test_fastlane/blob/master/windows/CMakeLists.txt"
    click LNX_CC "https://github.com/rifky290301/test_fastlane/blob/master/linux/main.cc"
    click LNX_CMAKE "https://github.com/rifky290301/test_fastlane/blob/master/linux/CMakeLists.txt"
    click WEB_HTML "https://github.com/rifky290301/test_fastlane/blob/master/web/index.html"
    click WEB_MANIFEST "https://github.com/rifky290301/test_fastlane/blob/master/web/manifest.json"
    click WEB_ICONS "https://github.com/rifky290301/test_fastlane/tree/master/web/icons"
    click FB_JSON "https://github.com/rifky290301/test_fastlane/blob/master/firebase.json"
    click FB_ANDROID "https://github.com/rifky290301/test_fastlane/blob/master/android/app/google-services.json"
    click FB_IOS "https://github.com/rifky290301/test_fastlane/blob/master/ios/Runner/GoogleService-Info.plist"
    click SHORE "https://github.com/rifky290301/test_fastlane/blob/master/shorebird.yaml"
    click FL_SHARED "https://github.com/rifky290301/test_fastlane/tree/master/fastlane/Fastfile"
    click GH_ACTIONS "https://github.com/rifky290301/test_fastlane/blob/master/.github/workflows/flutter-distribute.yml"
    click CRED_DEV "https://github.com/rifky290301/test_fastlane/tree/master/assets/credentials/development/"
    click CRED_PRE "https://github.com/rifky290301/test_fastlane/tree/master/assets/credentials/preproduction/"
    click CRED_PROD "https://github.com/rifky290301/test_fastlane/tree/master/assets/credentials/production/"

    %% Styles
    classDef core fill:#f9f,stroke:#333,stroke-width:1px
    classDef platform fill:#bbf,stroke:#333,stroke-width:1px
    classDef external fill:#bfb,stroke:#333,stroke-width:1px
    classDef cicd fill:#fbf,stroke:#333,stroke-width:1px
    classDef creds fill:#ffb,stroke:#333,stroke-width:1px
```
