Full Code of vauvenal5/yaga for AI

master 0ac666be88c9 cached
349 files
496.8 KB
126.8k tokens
687 symbols
1 requests
Download .txt
Showing preview only (581K chars total). Download the full file or copy to clipboard to get everything.
Repository: vauvenal5/yaga
Branch: master
Commit: 0ac666be88c9
Files: 349
Total size: 496.8 KB

Directory structure:
gitextract_rmnzmdnm/

├── .fvm/
│   └── fvm_config.json
├── .github/
│   └── workflows/
│       ├── build-android.yml
│       └── publish-play-store.yml
├── .gitignore
├── .metadata
├── .vscode/
│   └── launch.json
├── Gemfile
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android/
│   ├── .gitignore
│   ├── app/
│   │   ├── build.gradle
│   │   └── src/
│   │       ├── debug/
│   │       │   └── AndroidManifest.xml
│   │       ├── dev/
│   │       │   └── res/
│   │       │       └── drawable/
│   │       │           └── ic_launcher_background.xml
│   │       ├── main/
│   │       │   ├── AndroidManifest.xml
│   │       │   ├── kotlin/
│   │       │   │   └── com/
│   │       │   │       └── github/
│   │       │   │           └── vauvenal5/
│   │       │   │               └── yaga/
│   │       │   │                   └── MainActivity.kt
│   │       │   └── res/
│   │       │       ├── drawable/
│   │       │       │   ├── ic_launcher_background.xml
│   │       │       │   ├── ic_launcher_foreground.xml
│   │       │       │   └── launch_background.xml
│   │       │       ├── drawable-anydpi-v24/
│   │       │       │   └── ic_bg_service_small.xml
│   │       │       ├── drawable-v21/
│   │       │       │   └── launch_background.xml
│   │       │       ├── mipmap-anydpi-v26/
│   │       │       │   └── ic_launcher.xml
│   │       │       ├── values/
│   │       │       │   ├── colors.xml
│   │       │       │   └── styles.xml
│   │       │       ├── values-night/
│   │       │       │   └── styles.xml
│   │       │       └── xml/
│   │       │           └── file_paths_yaga.xml
│   │       └── profile/
│   │           └── AndroidManifest.xml
│   ├── build.gradle
│   ├── gradle/
│   │   └── wrapper/
│   │       └── gradle-wrapper.properties
│   ├── gradle.properties
│   ├── settings.gradle
│   └── settings_aar.gradle
├── assets/
│   ├── icon/
│   │   └── readme.md
│   └── news.md
├── build.yaml
├── fastlane/
│   ├── Appfile
│   ├── Fastfile
│   └── metadata/
│       └── android/
│           └── en-US/
│               ├── changelogs/
│               │   ├── 134.txt
│               │   ├── 140.txt
│               │   ├── 141.txt
│               │   ├── 142.txt
│               │   ├── 143.txt
│               │   ├── 144.txt
│               │   ├── 145.txt
│               │   ├── 146.txt
│               │   ├── 147.txt
│               │   ├── 150.txt
│               │   ├── 151.txt
│               │   ├── 1510.txt
│               │   ├── 1511.txt
│               │   ├── 152.txt
│               │   ├── 153.txt
│               │   ├── 154.txt
│               │   ├── 155.txt
│               │   ├── 156.txt
│               │   ├── 157.txt
│               │   ├── 158.txt
│               │   ├── 159.txt
│               │   ├── 1600.txt
│               │   ├── 1601.txt
│               │   ├── 1602.txt
│               │   ├── 1603.txt
│               │   ├── 1700.txt
│               │   ├── 1701.txt
│               │   ├── 1702.txt
│               │   ├── 1703.txt
│               │   ├── 1704.txt
│               │   ├── 1705.txt
│               │   ├── 1800.txt
│               │   ├── 1801.txt
│               │   ├── 1802.txt
│               │   ├── 1900.txt
│               │   ├── 1901.txt
│               │   ├── 2000.txt
│               │   ├── 2001.txt
│               │   ├── 2002.txt
│               │   ├── 2003.txt
│               │   ├── 2100.txt
│               │   ├── 2101.txt
│               │   ├── 2102.txt
│               │   ├── 2103.txt
│               │   ├── 2104.txt
│               │   ├── 2105.txt
│               │   ├── 2200.txt
│               │   ├── 2201.txt
│               │   ├── 2202.txt
│               │   ├── 2203.txt
│               │   ├── 2204.txt
│               │   ├── 2205.txt
│               │   ├── 2206.txt
│               │   ├── 2207.txt
│               │   ├── 2208.txt
│               │   ├── 2300.txt
│               │   ├── 2301.txt
│               │   ├── 2302.txt
│               │   ├── 2303.txt
│               │   ├── 2304.txt
│               │   ├── 2305.txt
│               │   ├── 2306.txt
│               │   ├── 2307.txt
│               │   ├── 2308.txt
│               │   ├── 2309.txt
│               │   ├── 2310.txt
│               │   ├── 2311.txt
│               │   ├── 2312.txt
│               │   ├── 2400.txt
│               │   ├── 2500.txt
│               │   ├── 2501.txt
│               │   ├── 2502.txt
│               │   ├── 2503.txt
│               │   ├── 2600.txt
│               │   ├── 2601.txt
│               │   ├── 2700.txt
│               │   ├── 2701.txt
│               │   ├── 2800.txt
│               │   ├── 2801.txt
│               │   ├── 2802.txt
│               │   ├── 2803.txt
│               │   ├── 2804.txt
│               │   ├── 2805.txt
│               │   ├── 2900.txt
│               │   ├── 2901.txt
│               │   ├── 2902.txt
│               │   ├── 3000.txt
│               │   ├── 3001.txt
│               │   ├── 3002.txt
│               │   ├── 3003.txt
│               │   ├── 4000.txt
│               │   ├── 4001.txt
│               │   ├── 4002.txt
│               │   ├── 4003.txt
│               │   ├── 4004.txt
│               │   ├── 4005.txt
│               │   ├── 4100.txt
│               │   ├── 4200.txt
│               │   ├── 4201.txt
│               │   ├── 4300.txt
│               │   └── 4301.txt
│               ├── full_description.txt
│               ├── short_description.txt
│               └── title.txt
├── ios/
│   ├── .gitignore
│   ├── Flutter/
│   │   ├── AppFrameworkInfo.plist
│   │   ├── Debug.xcconfig
│   │   └── Release.xcconfig
│   ├── Runner/
│   │   ├── AppDelegate.swift
│   │   ├── Assets.xcassets/
│   │   │   ├── AppIcon.appiconset/
│   │   │   │   └── Contents.json
│   │   │   └── LaunchImage.imageset/
│   │   │       ├── Contents.json
│   │   │       └── README.md
│   │   ├── Base.lproj/
│   │   │   ├── LaunchScreen.storyboard
│   │   │   └── Main.storyboard
│   │   ├── Info.plist
│   │   └── Runner-Bridging-Header.h
│   ├── Runner.xcodeproj/
│   │   ├── project.pbxproj
│   │   ├── project.xcworkspace/
│   │   │   └── contents.xcworkspacedata
│   │   └── xcshareddata/
│   │       └── xcschemes/
│   │           └── Runner.xcscheme
│   └── Runner.xcworkspace/
│       └── contents.xcworkspacedata
├── lib/
│   ├── main.dart
│   ├── managers/
│   │   ├── file_manager/
│   │   │   ├── file_manager.dart
│   │   │   ├── file_manager_base.dart
│   │   │   └── isolateable/
│   │   │       ├── file_action_manager.dart
│   │   │       └── isolated_file_manager.dart
│   │   ├── file_service_manager/
│   │   │   ├── favorite_not_supported_mixin.dart
│   │   │   ├── file_service_manager.dart
│   │   │   ├── isolateable/
│   │   │   │   ├── local_file_manager.dart
│   │   │   │   ├── nextcloud_background_file_manager.dart
│   │   │   │   └── nextcloud_file_manger.dart
│   │   │   └── media_file_manager.dart
│   │   ├── global_settings_manager.dart
│   │   ├── isolateable/
│   │   │   ├── isolated_global_settings_manager.dart
│   │   │   ├── isolated_settings_manager.dart
│   │   │   ├── mapping_manager.dart
│   │   │   ├── sort_manager.dart
│   │   │   └── sync_manager.dart
│   │   ├── navigation_manager.dart
│   │   ├── nextcloud_manager.dart
│   │   ├── settings_manager.dart
│   │   ├── settings_manager_base.dart
│   │   ├── tab_manager.dart
│   │   └── widget_local/
│   │       └── file_list_local_manager.dart
│   ├── model/
│   │   ├── category_view_config.dart
│   │   ├── fetched_file.dart
│   │   ├── general_view_config.dart
│   │   ├── local_file.dart
│   │   ├── mapping_node.dart
│   │   ├── nc_file.dart
│   │   ├── nc_login_data.dart
│   │   ├── nc_origin.dart
│   │   ├── preferences/
│   │   │   ├── action_preference.dart
│   │   │   ├── bool_preference.dart
│   │   │   ├── choice_preference.dart
│   │   │   ├── complex_preference.dart
│   │   │   ├── int_preference.dart
│   │   │   ├── mapping_preference.dart
│   │   │   ├── preference.dart
│   │   │   ├── section_preference.dart
│   │   │   ├── serializable_preference.dart
│   │   │   ├── serializers/
│   │   │   │   ├── base_type_serializer.dart
│   │   │   │   ├── int_serializer.dart
│   │   │   │   └── uri_serializer.dart
│   │   │   ├── string_list_preference.dart
│   │   │   ├── string_preference.dart
│   │   │   ├── uri_preference.dart
│   │   │   └── value_preference.dart
│   │   ├── preview_fetch_meta.dart
│   │   ├── route_args/
│   │   │   ├── choice_selector_screen_arguments.dart
│   │   │   ├── directory_navigation_screen_arguments.dart
│   │   │   ├── focus_view_arguments.dart
│   │   │   ├── image_screen_arguments.dart
│   │   │   ├── navigatable_screen_arguments.dart
│   │   │   ├── path_selector_screen_arguments.dart
│   │   │   └── settings_screen_arguments.dart
│   │   ├── sort_config.dart
│   │   ├── sorted_category_list.dart
│   │   ├── sorted_file_folder_list.dart
│   │   ├── sorted_file_list.dart
│   │   ├── sync_file.dart
│   │   └── system_location.dart
│   ├── services/
│   │   ├── file_provider_service.dart
│   │   ├── intent_service.dart
│   │   ├── isolateable/
│   │   │   ├── local_file_service.dart
│   │   │   ├── nextcloud_service.dart
│   │   │   └── system_location_service.dart
│   │   ├── media_file_service.dart
│   │   ├── name_exchange_service.dart
│   │   ├── secure_storage_service.dart
│   │   ├── service.dart
│   │   ├── shared_preferences_service.dart
│   │   └── uri_name_resolver.dart
│   ├── utils/
│   │   ├── background_worker/
│   │   │   ├── background_channel.dart
│   │   │   ├── background_commands.dart
│   │   │   ├── background_worker.dart
│   │   │   ├── json_convertable.dart
│   │   │   ├── messages/
│   │   │   │   ├── background_downloaded_request.dart
│   │   │   │   └── background_init_msg.dart
│   │   │   └── work_tracker.dart
│   │   ├── download_file_image.dart
│   │   ├── forground_worker/
│   │   │   ├── bridges/
│   │   │   │   ├── file_manager_bridge.dart
│   │   │   │   ├── nextcloud_manager_bridge.dart
│   │   │   │   └── settings_manager_bridge.dart
│   │   │   ├── foreground_worker.dart
│   │   │   ├── handlers/
│   │   │   │   ├── file_list_request_handler.dart
│   │   │   │   ├── nextcloud_file_manager_handler.dart
│   │   │   │   └── user_handler.dart
│   │   │   ├── isolate_handler_regestry.dart
│   │   │   ├── isolate_msg_handler.dart
│   │   │   ├── isolateable.dart
│   │   │   └── messages/
│   │   │       ├── download_file_request.dart
│   │   │       ├── download_preview_complete.dart
│   │   │       ├── download_preview_request.dart
│   │   │       ├── file_list_done.dart
│   │   │       ├── file_list_message.dart
│   │   │       ├── file_list_request.dart
│   │   │       ├── file_list_response.dart
│   │   │       ├── file_update_msg.dart
│   │   │       ├── files_action/
│   │   │       │   ├── delete_files_request.dart
│   │   │       │   ├── destination_action_files_request.dart
│   │   │       │   ├── favorite_files_request.dart
│   │   │       │   ├── files_action_done.dart
│   │   │       │   └── files_action_request.dart
│   │   │       ├── flush_logs_message.dart
│   │   │       ├── image_update_msg.dart
│   │   │       ├── init_msg.dart
│   │   │       ├── login_state_msg.dart
│   │   │       ├── merge_sort_done.dart
│   │   │       ├── merge_sort_request.dart
│   │   │       ├── message.dart
│   │   │       ├── preference_msg.dart
│   │   │       ├── single_file_message.dart
│   │   │       └── sort_request.dart
│   │   ├── log_error_file_handler.dart
│   │   ├── logger.dart
│   │   ├── navigation/
│   │   │   ├── yaga_route_information_parser.dart
│   │   │   ├── yaga_router.dart
│   │   │   └── yaga_router_delegate.dart
│   │   ├── ncfile_stream_extensions.dart
│   │   ├── nextcloud_client_factory.dart
│   │   ├── nextcloud_colors.dart
│   │   ├── self_signed_cert_handler.dart
│   │   ├── service_locator.dart
│   │   └── uri_utils.dart
│   └── views/
│       ├── screens/
│       │   ├── browse_view.dart
│       │   ├── category_view_screen.dart
│       │   ├── choice_selector_screen.dart
│       │   ├── directory_screen.dart
│       │   ├── directory_traversal_screen.dart
│       │   ├── favorites_view.dart
│       │   ├── focus_view.dart
│       │   ├── home_view.dart
│       │   ├── image_screen.dart
│       │   ├── nc_address_screen.dart
│       │   ├── nc_login_screen.dart
│       │   ├── path_selector_screen.dart
│       │   ├── settings_screen.dart
│       │   ├── splash_screen.dart
│       │   └── yaga_home_screen.dart
│       └── widgets/
│           ├── action_danger_dialog.dart
│           ├── address_form_advanced.dart
│           ├── address_form_simple.dart
│           ├── avatar_widget.dart
│           ├── circle_avatar_icon.dart
│           ├── favorite_icon.dart
│           ├── folder_icon.dart
│           ├── image_search.dart
│           ├── image_view_container.dart
│           ├── image_views/
│           │   ├── category_view.dart
│           │   ├── category_view_exp.dart
│           │   ├── nc_grid_view.dart
│           │   ├── nc_list_view.dart
│           │   └── utils/
│           │       ├── grid_delegate.dart
│           │       └── view_configuration.dart
│           ├── list_menu_entry.dart
│           ├── path_widget.dart
│           ├── preferences/
│           │   ├── action_preference_widget.dart
│           │   ├── bool_preference_widget.dart
│           │   ├── choice_preference_widget.dart
│           │   ├── int_preference_widget.dart
│           │   ├── mapping_preference_widget.dart
│           │   ├── preference_list_tile_widget.dart
│           │   ├── section_preference_widget.dart
│           │   ├── string_preference_widget.dart
│           │   └── uri_preference_widget.dart
│           ├── remote_folder_widget.dart
│           ├── remote_image_widget.dart
│           ├── search_icon_button.dart
│           ├── select_cancel_bottom_navigation.dart
│           ├── selection_action_cancel_dialog.dart
│           ├── selection_app_bar.dart
│           ├── selection_popup_menu_button.dart
│           ├── selection_select_all.dart
│           ├── selection_title.dart
│           ├── selection_will_pop_scope.dart
│           ├── yaga_about_dialog.dart
│           ├── yaga_bottom_nav_bar.dart
│           ├── yaga_drawer.dart
│           └── yaga_popup_menu_button.dart
├── linux/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── flutter/
│   │   ├── CMakeLists.txt
│   │   ├── generated_plugin_registrant.cc
│   │   ├── generated_plugin_registrant.h
│   │   └── generated_plugins.cmake
│   ├── main.cc
│   ├── my_application.cc
│   └── my_application.h
├── pubspec.yaml
└── test/
    ├── managers/
    │   └── isolateable/
    │       └── mapping_manager_test.dart
    ├── utils/
    │   └── uri_utils_test.dart
    └── widget_test.dart

================================================
FILE CONTENTS
================================================

================================================
FILE: .fvm/fvm_config.json
================================================
{
  "flutterSdkVersion": "3.16.3",
  "flavors": {}
}

================================================
FILE: .github/workflows/build-android.yml
================================================
name: Build Android

on:
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Create Android Keystore
        id: android_keystore
        uses: timheuer/base64-to-file@v1.2
        with:
          fileName: 'yaga.jks'
          encodedString: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
      - name: Create key.properties
        run: |
          echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties
          echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> android/key.properties
          echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
          echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
      - uses: actions/setup-java@v3
        with:
          distribution: 'temurin'
          java-version: '17'
          cache: 'gradle'
      - uses: subosito/flutter-action@v2
        with:
          flutter-version: '3.16.3'
          channel: 'stable'
          cache: false
      - run: flutter pub get
      - run: flutter pub run build_runner build --delete-conflicting-outputs
      - run: flutter build appbundle --flavor play
      - uses: actions/upload-artifact@v3
        with:
          name: app-play-release.aab
          path: ./build/app/outputs/bundle/playRelease/app-play-release.aab
      - name: Convert aab to apk
        id: convert_aab
        uses: mukeshsolanki/bundletool-action@v1.0.2
        with:
          aabFile: ./build/app/outputs/bundle/playRelease/app-play-release.aab
          base64Keystore: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
          keystorePassword: ${{ secrets.STORE_PASSWORD }}
          keystoreAlias: ${{ secrets.KEY_ALIAS }}
          keyPassword: ${{ secrets.KEY_PASSWORD }}
          bundletoolVersion: '1.15.6'
      - uses: actions/upload-artifact@v3
        with:
          name: app-play-release.apk
          path: ${{ steps.convert_aab.outputs.apkPath }}
  internal:
    needs: build
    uses: vauvenal5/yaga/.github/workflows/publish-play-store.yml@master
    with:
      stage: 'internal'
    secrets:
      googlePlayJsonBase64: ${{ secrets.GOOGLE_PLAY_JSON_BASE64 }}
  alpha:
    needs: internal
    uses: vauvenal5/yaga/.github/workflows/publish-play-store.yml@master
    with:
      stage: 'alpha'
    secrets:
      googlePlayJsonBase64: ${{ secrets.GOOGLE_PLAY_JSON_BASE64 }}
  github:
    needs: internal
    uses: vauvenal5/yaga/.github/workflows/publish-play-store.yml@master
    with:
      stage: 'github'
    secrets:
      googlePlayJsonBase64: ${{ secrets.GOOGLE_PLAY_JSON_BASE64 }}
  beta:
    needs: alpha
    uses: vauvenal5/yaga/.github/workflows/publish-play-store.yml@master
    with:
      stage: 'beta'
    secrets:
      googlePlayJsonBase64: ${{ secrets.GOOGLE_PLAY_JSON_BASE64 }}

================================================
FILE: .github/workflows/publish-play-store.yml
================================================
name: Publish to Play Store
on:
  workflow_call:
    inputs:
      stage:
        required: true
        type: string
    secrets:
      googlePlayJsonBase64:
        required: true
jobs:
  publish:
    environment: ${{ inputs.stage }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/download-artifact@v3
        if: ${{ inputs.stage == 'internal' || inputs.stage == 'github'}}
        with:
          name: app-play-release.aab
          path: ./build/app/outputs/bundle/playRelease
      - uses: actions/download-artifact@v3
        if: ${{ inputs.stage == 'github' }}
        with:
          name: app-play-release.apk
          path: ./build/app/outputs/flutter-apk
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.0' # Not needed with a .ruby-version file
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically
      - name: Create Android Keystore
        id: android_keystore
        uses: timheuer/base64-to-file@v1.2
        with:
          fileName: 'google-play.json'
          fileDir: './android/'
          encodedString: ${{ secrets.googlePlayJsonBase64 }}
      - run: cd fastlane
      - run: bundle exec fastlane ${{ inputs.stage }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


================================================
FILE: .gitignore
================================================
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
docker
docker/.dev

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Exceptions to above rules.
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
android/key.properties
fastlane/README.md
fastlane/report.xml
android/google-play.json
**/*.g.dart
.env

# Generated by flutter_launcher_icons package
android/app/src/main/res/mipmap-hdpi/ic_launcher.png
android/app/src/main/res/mipmap-mdpi/ic_launcher.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png

.fvm/flutter_sdk
/yaga.jks
/yaga.jks.base64


================================================
FILE: .metadata
================================================
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
  revision: "b0366e0a3f089e15fd89c97604ab402fe26b724c"
  channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
  platforms:
    - platform: root
      create_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c
      base_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c
    - platform: linux
      create_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c
      base_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c

  # User provided section

  # List of Local paths (relative to this file) that should be
  # ignored by the migrate tool.
  #
  # Files that are not part of the templates will be ignored by default.
  unmanaged_files:
    - 'lib/main.dart'
    - 'ios/Runner.xcodeproj/project.pbxproj'


================================================
FILE: .vscode/launch.json
================================================
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Flutter",
            "request": "launch",
            "args": [
                "--flavor",
                "play"
            ],
            "type": "dart"
        },
        {
            "name": "Flutter Profile",
            "request": "launch",
            "args": [
                "--flavor",
                "play"
            ],
            "type": "dart",
            "flutterMode": "profile"
        }
    ]
}

================================================
FILE: Gemfile
================================================
source "https://rubygems.org"

gem "fastlane"

================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: README.md
================================================
# Nextcloud Yaga - Yet Another Gallery App

## Table of Contents
* [State of Yaga](#state-of-yaga)
    * [Features](#features)
    * [Next Steps](#next-steps)
* [Getting Started](#getting-started)
* [Recomendations](#recomendations)
* [iOS Support](#ios-support)
    * [Necessary work](#necessary-work)

## State of Yaga

This app is in an open beta stage. It is tested and fairly stable on an Android One device with Android version 10. You can download it from Google Play. For more information on how to use the app [read the docs](https://vauvenal5.github.io/yaga-docs/).

[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"
    alt="Get it on Google Play"
    height="80">](https://play.google.com/store/apps/details?id=com.github.vauvenal5.yaga)
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
    alt="Get it on F-Droid"
    height="80">](https://f-droid.org/packages/com.github.vauvenal5.yaga)

### Features
- Nextcloud login flow is implemented
    - Flutter WebView is used and some strange behavior can come from bugs in there. Usually retrying fixes the issue.
    - Login token is being persisted with the `flutter_secure_storage` plugin.
- Category view
    - Displays images in groups sorted by date modified, as list, or as simple grid.
    - Path to display can be set in the view settings.
    - Path can be local or remote.
- Browse view
    - Allows for browsing local and remote directories.
    - Has a focus mode implemented which allows to view current folder like in Category view without changing settings.
- Image view
    - Opening an image from the category or browse view will result in a image view, displaying the image.
    - If opened from category view, displayed images are currently limited to the choosen date.
    - If opened from browser view, displayed images are limited to the current folder.
    - Images can be shared with other apps from this view.
- Root Mapping
    - Allows to set directory mappings between local and remote directories. Basically allowing you to chose where to store your downloaded images or a subset of them.
    - Default mapping points to app folder.
    - Currently limited to one mapping.
    - Previews are always mapped to cache.

### Next Steps

My current plan is to release a stable `v1.0.0` version around christmas this year. For this release I am aming to complete all features that are required for the app to feel like a complete gallery app with respect to the provided functionality.

You can track planned features, current issues as well as what is sceduled for `v1.0.0` in the [issues](https://github.com/vauvenal5/yaga/issues) section.

## Building from Sources

- Generate your own keystore as described in the flutter docs.
- The project uses generation for some classes so you have to first run `flutter pub run build_runner build --delete-conflicting-outputs`
- From the main directory then run: `flutter build apk --flavor play`
- Copy the app to your device and make a local installation.

## Recomendations

It is highly recommended to configure the image preview generator plugin on your Nextcloud server. This will significantly improve fetching times of previews.

## APK Signature

If you decide to download the APK file attached to a Github release, you can verify the APK signature in the following way:
```
apksigner verify --print-certs app-play-release.apk
```

The output should look like this:
```
Signer #1 certificate DN: CN=vauvenal5, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown
Signer #1 certificate SHA-256 digest: dd1652817e4ed5cbd341336add61a10851fd93b2b79c93124ec9d584fdc54b06
Signer #1 certificate SHA-1 digest: 1c54e02710c9ef669c0e75950e25825a5a11a349
Signer #1 certificate MD5 digest: 7f8367b3ebbc8618b1dc0dff81e225b9
```

## iOS Support

I am physically unable to support iOS. I simply do not own the hardware and I also do not intend buying it. If Apple changes its policies about development SDKs I will gladly add iOS support.

If somebody is willing to contribute the necessary steps for iOS support fell free to open a PR. 

### Necessary work
- It will be necessary to recheck the used libraries to see if they support iOS. (This I might do at some point in the future.)
- Some things rely on Android only implementations, for example the storage paths. They need to be changed to a OS independent implementation. (This I might do at some point in the future.)
- Necessary build configuration in the iOS project files. (Not going to happen for the time being.)
- Publishing in the app store. (Not going to happen for the time being.)


================================================
FILE: analysis_options.yaml
================================================
include: package:lint/analysis_options.yaml

linter:
  rules:
    sort_pub_dependencies: false


================================================
FILE: android/.gitignore
================================================
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
/google-play.json.base64


================================================
FILE: android/app/build.gradle
================================================
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
    compileSdkVersion 34

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        applicationId "com.github.vauvenal5.yaga"
        minSdkVersion 24
        targetSdkVersion 33
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    signingConfigs {
       release {
           keyAlias keystoreProperties['keyAlias']
           keyPassword keystoreProperties['keyPassword']
           storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
           storePassword keystoreProperties['storePassword']
       }
   }

    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }

    flavorDimensions "deploy"

    productFlavors {
        dev {
            dimension "deploy"
            applicationIdSuffix '.dev'
            versionNameSuffix "-dev"
            resValue "string", "app_name", "Yaga Dev"
        }

        play {
            dimension "deploy"
            resValue "string", "app_name", "Yaga"
        }

//        fdroid {
//            dimension "deploy"
//            resValue "string", "app_name", "Yaga"
//            signingConfig null
//        }
    }
}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}


================================================
FILE: android/app/src/debug/AndroidManifest.xml
================================================
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.github.vauvenal5.yaga">
    <!-- Flutter needs it to communicate with the running application
         to allow setting breakpoints, to provide hot reload, etc.
    -->
    <uses-permission android:name="android.permission.INTERNET"/>
</manifest>


================================================
FILE: android/app/src/dev/res/drawable/ic_launcher_background.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:aapt="http://schemas.android.com/aapt"
    android:width="108dp"
    android:height="108dp"
    android:autoMirrored="true"
    android:viewportWidth="1344"
    android:viewportHeight="1344">
    <path
        android:fillType="evenOdd"
        android:pathData="M0,0h1344v1344h-1344z"
        android:strokeLineJoin="round">
        <aapt:attr name="android:fillColor">
            <gradient
                android:endX="1344"
                android:endY="1.2959057E-4"
                android:startX="163.34073"
                android:startY="1344"
                android:type="linear">
                <item
                    android:color="#C98200"
                    android:offset="0" />
                <item
                    android:color="#FFAF1C"
                    android:offset="1" />
            </gradient>
        </aapt:attr>
    </path>
</vector>

================================================
FILE: android/app/src/main/AndroidManifest.xml
================================================
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.github.vauvenal5.yaga">

    <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
    <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
    <uses-permission android:name="android.permission.MANAGE_MEDIA"
        tools:ignore="ProtectedPermissions" />
    <uses-permission android:name="android.permission.INTERNET" />
    
    <!-- io.flutter.app.FlutterApplication is an android.app.Application that
         calls FlutterMain.startInitialization(this); in its onCreate method.
         In most cases you can leave this as-is, but you if you want to provide
         additional functionality it is fine to subclass or reimplement
         FlutterApplication and put your custom class here. -->
    <!-- todo: investigate requestLegacyExternalStorage some more -->
    <application
        android:name="${applicationName}"
        android:label="@string/app_name"
        android:icon="@mipmap/ic_launcher"
        android:allowBackup="false"
        android:fullBackupContent="false"
        android:requestLegacyExternalStorage="true"
        android:usesCleartextTraffic="false">

        <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.fileprovider"
            android:grantUriPermissions="true"
            android:exported="false">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths_yaga" />
        </provider>

        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize"
            android:exported="true">

            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.GET_CONTENT" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.OPENABLE" />
                <data android:mimeType="image/*" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.PICK" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.OPENABLE" />
                <data android:mimeType="image/*" />
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>

================================================
FILE: android/app/src/main/kotlin/com/github/vauvenal5/yaga/MainActivity.kt
================================================
package com.github.vauvenal5.yaga

import android.content.Intent
import android.net.Uri
import android.util.Log
import android.widget.Toast

import androidx.annotation.NonNull
import androidx.core.content.FileProvider
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugins.GeneratedPluginRegistrant
import java.io.File
import java.lang.IllegalArgumentException

class MainActivity: FlutterActivity() {
    private val INTENT_CHANNEL = "yaga.channel.intent";
    private val GET_INTENT_ACTION_METHOD = "getIntentAction";
    private val GET_INTENT_TYPE_METHOD = "getIntentType";
    private val GET_INTENT_SET_RESULT = "setSelectedFile";
    private val ATTACH_DATA = "attachData";

    override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
        GeneratedPluginRegistrant.registerWith(flutterEngine);
        val intent = getIntent();

        //todo: check if granted
        //todo: check if Android verison is high enough
//        Intent(Settings.ACTION_REQUEST_MANAGE_MEDIA).apply {
//            data = Uri.parse("package:$packageName")
//            try {
//                startActivityForResult(this, 303)
//            } catch (e: Exception) {
//            }
//        }

        MethodChannel(flutterEngine.dartExecutor.binaryMessenger, INTENT_CHANNEL).setMethodCallHandler {
                call, result ->
            if(call.method.contentEquals(GET_INTENT_ACTION_METHOD)) {
                result.success(intent.getAction());
            } else if (call.method.contentEquals(GET_INTENT_TYPE_METHOD)) {
                result.success(intent.getType());
            } else if (call.method.contentEquals(GET_INTENT_SET_RESULT)) {
                handleShareSelectedImageIntent(call, result)
            } else if (call.method.contentEquals(ATTACH_DATA)) {
                attachData(call, result)
            } else {
                result.notImplemented()
            }
        }
    }

    private fun attachData(call: MethodCall, resultChannel: MethodChannel.Result) {
        val resultIntent = prepIntent(call, resultChannel)
        resultIntent.setAction(Intent.ACTION_ATTACH_DATA)
        this.startActivity(Intent.createChooser(resultIntent, "Use picture as..."))
        resultChannel.success(null)
    }

    private fun handleShareSelectedImageIntent(call: MethodCall, resultChannel: MethodChannel.Result) {
        val resultIntent = prepIntent(call, resultChannel)
        setResult(RESULT_OK, resultIntent)
        resultChannel.success(true)
        finish()
    }

    private fun prepIntent(call: MethodCall, resultChannel: MethodChannel.Result): Intent {
        val resultIntent = Intent();
        val path = call.argument<String>("path");
        val mime = call.argument<String>("mime");

        if(path == null || mime == null) {
            shareSelectedImageFailed(resultIntent, resultChannel)
        }

        val fileUri: Uri? = try {
            FileProvider.getUriForFile(
                this,
                this.packageName + ".fileprovider",
                File(path!!)
            )
        } catch (e: IllegalArgumentException) {
            Log.e("File Provider", "Could not retrieve content url for file.", e)
            null
        }

        if(fileUri == null) {
            shareSelectedImageFailed(resultIntent, resultChannel)
        }

        resultIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
        resultIntent.setDataAndType(fileUri, mime)
        return resultIntent;
    }

    private fun shareSelectedImageFailed(resultIntent: Intent, resultChannel: MethodChannel.Result) {
        Toast.makeText(activity, "Failed to share image.", Toast.LENGTH_SHORT).show()
        resultIntent.setDataAndType(null, "")
        setResult(RESULT_CANCELED, resultIntent)
        resultChannel.success(false)
        finish()
    }

    //todo: this code might solve the copy issue
//    private fun addItem(name: String, filePath: String, mime: String): Uri {
//        val collection = if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
////            MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY)
//            MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_INTERNAL)
//        } else {
//            MediaStore.Images.Media.EXTERNAL_CONTENT_URI
//        }
//
//        var relativePath = filePath.split("/0/").last()
//        relativePath = relativePath.substring(0, relativePath.length - name.length - 1)
//        Log.i("MediaStore", relativePath);
//
//        val values = ContentValues().apply {
//            put(MediaStore.Images.Media.DISPLAY_NAME, name)
//            put(MediaStore.Images.Media.MIME_TYPE, mime)
//            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
////                put(MediaStore.MediaColumns.RELATIVE_PATH, Environment.DIRECTORY_PICTURES + File.separator + "Yaga")
//                put(MediaStore.MediaColumns.RELATIVE_PATH, relativePath)
//                put(MediaStore.Images.Media.IS_PENDING, 1)
//            }
//        }
//
//        val resolver = applicationContext.contentResolver
//        val uri = resolver.insert(collection, values)!!
//
//        try {
////            resolver.openOutputStream(uri).use { os ->
////                File(filePath).inputStream().use { it.copyTo(os!!) }
////            }
//
//            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
//                values.clear()
//                values.put(MediaStore.Images.Media.IS_PENDING, 0)
//                resolver.update(uri, values, null, null)
//            }
//        } catch (ex: IOException) {
//            Log.e("MediaStore", ex.message, ex)
//        }
//
//        return uri;
//    }
}


================================================
FILE: android/app/src/main/res/drawable/ic_launcher_background.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:aapt="http://schemas.android.com/aapt"
    android:width="108dp"
    android:height="108dp"
    android:autoMirrored="true"
    android:viewportWidth="1344"
    android:viewportHeight="1344">
    <path
        android:fillType="evenOdd"
        android:pathData="M0,0h1344v1344h-1344z"
        android:strokeLineJoin="round">
        <aapt:attr name="android:fillColor">
            <gradient
                android:endX="1344"
                android:endY="1.2959057E-4"
                android:startX="163.34073"
                android:startY="1344"
                android:type="linear">
                <item
                    android:color="#FF0082C9"
                    android:offset="0" />
                <item
                    android:color="#FF1CAFFF"
                    android:offset="1" />
            </gradient>
        </aapt:attr>
    </path>
</vector>

================================================
FILE: android/app/src/main/res/drawable/ic_launcher_foreground.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"
    android:viewportWidth="1344"
    android:viewportHeight="1344"
    android:width="108dp"
    android:height="108dp">
    <path
        android:pathData="m 432.37716,456 c -7.10997,1.37698 -12.50274,8.40235 -12.37494,15.74992 v 400.49834 c 0,8.28001 7.63196,15.76794 15.74993,15.76794 H 908.25009 C 916.3698,888.01605 923.9996,880.51164 924,872.26624 V 477.95989 C 923.982,465.84415 914.478,455.9478 905.44211,456.018 Z m 23.6231,35.99805 431.99811,1.8e-4 V 671.99746 L 851.9985,635.99763 743.99901,779.99697 635.99948,671.99746 492.00011,815.99685 h -35.99985 z m 90.00322,35.99983 c -29.82408,0 -53.99977,24.17571 -53.99977,53.99979 0,29.82407 24.17569,53.99976 53.99977,53.99976 29.82405,0 53.99978,-24.17569 53.99978,-53.99976 0,-29.82408 -24.17573,-53.99979 -53.99978,-53.99979 z"
        android:fillType="evenOdd"
        android:fillColor="#FFFFFF"
        android:strokeLineJoin="round"
        android:strokeMiterLimit="1.4142" />
</vector>

================================================
FILE: android/app/src/main/res/drawable/launch_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/ic_launcher_background" />

    <!-- You can insert your own image assets here -->
    <item android:gravity="center" android:drawable="@drawable/ic_launcher_foreground"/>
</layer-list>


================================================
FILE: android/app/src/main/res/drawable-anydpi-v24/ic_bg_service_small.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"
    android:viewportWidth="24"
    android:viewportHeight="24"
    android:width="108dp"
    android:height="108dp">
    <group android:scaleX=".0357"
        android:scaleY=".0357"
        android:translateX="-12"
        android:translateY="-12">
    <path
        android:pathData="m 432.37716,456 c -7.10997,1.37698 -12.50274,8.40235 -12.37494,15.74992 v 400.49834 c 0,8.28001 7.63196,15.76794 15.74993,15.76794 H 908.25009 C 916.3698,888.01605 923.9996,880.51164 924,872.26624 V 477.95989 C 923.982,465.84415 914.478,455.9478 905.44211,456.018 Z m 23.6231,35.99805 431.99811,1.8e-4 V 671.99746 L 851.9985,635.99763 743.99901,779.99697 635.99948,671.99746 492.00011,815.99685 h -35.99985 z m 90.00322,35.99983 c -29.82408,0 -53.99977,24.17571 -53.99977,53.99979 0,29.82407 24.17569,53.99976 53.99977,53.99976 29.82405,0 53.99978,-24.17569 53.99978,-53.99976 0,-29.82408 -24.17573,-53.99979 -53.99978,-53.99979 z"
        android:fillType="evenOdd"
        android:fillColor="#FFFFFF"
        android:strokeLineJoin="round"
        android:strokeMiterLimit="1.4142" />
    </group>
</vector>

================================================
FILE: android/app/src/main/res/drawable-v21/launch_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="?android:colorBackground" />

    <!-- You can insert your own image assets here -->
    <!-- <item>
        <bitmap
            android:gravity="center"
            android:src="@mipmap/launch_image" />
    </item> -->
</layer-list>


================================================
FILE: android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
  <background android:drawable="@drawable/ic_launcher_background"/>
  <foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>


================================================
FILE: android/app/src/main/res/values/colors.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
	<color name="ic_launcher_background">#0082c9</color>
</resources>

================================================
FILE: android/app/src/main/res/values/styles.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
        <!-- Show a splash screen on the activity. Automatically removed when
             Flutter draws its first frame -->
        <item name="android:windowBackground">@drawable/launch_background</item>
    </style>
</resources>


================================================
FILE: android/app/src/main/res/values-night/styles.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
    <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
        <!-- Show a splash screen on the activity. Automatically removed when
             the Flutter engine draws its first frame -->
        <item name="android:windowBackground">@drawable/launch_background</item>
    </style>
    <!-- Theme applied to the Android Window as soon as the process has started.
         This theme determines the color of the Android Window while your
         Flutter UI initializes, as well as behind your Flutter UI while its
         running.

         This Theme is only used starting with V2 of Flutter's Android embedding. -->
    <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
        <item name="android:windowBackground">?android:colorBackground</item>
    </style>
</resources>


================================================
FILE: android/app/src/main/res/xml/file_paths_yaga.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<paths>
    <cache-path name="cache" path="." />
    <external-path name="external" path="." />
</paths>

================================================
FILE: android/app/src/profile/AndroidManifest.xml
================================================
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.github.vauvenal5.yaga">
    <!-- Flutter needs it to communicate with the running application
         to allow setting breakpoints, to provide hot reload, etc.
    -->
    <uses-permission android:name="android.permission.INTERNET"/>
</manifest>


================================================
FILE: android/build.gradle
================================================
buildscript {
    ext.kotlin_version = '1.7.10'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.3.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}


================================================
FILE: android/gradle/wrapper/gradle-wrapper.properties
================================================
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists


================================================
FILE: android/gradle.properties
================================================
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true


================================================
FILE: android/settings.gradle
================================================
include ':app'

def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()

def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
    pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}

plugins.each { name, path ->
    def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
    include ":$name"
    project(":$name").projectDir = pluginDirectory
}


================================================
FILE: android/settings_aar.gradle
================================================
include ':app'


================================================
FILE: assets/icon/readme.md
================================================
# Android Icons

The SVG files found in this directory are the lead files for the app icons. 

For API 26+ changes to the SVGs have to be manually propagated to the respective VectorDrawables in `../android/app/src/main/resources/drawable`.

For APIs smaller then 26 a `icon.png` has to be created from `icon.svg`. Then run the following command to generate the required icons.

```sh
flutter pub run flutter_launcher_icons:main -f pubspec.yaml
```

================================================
FILE: assets/news.md
================================================
## What's New
**Breaking Changes:** Started with refactoring for Android 11+ support. 

This has major impact on the app, please consider raising any issues you discover on Github.

Refer to the docs for more information.

**FDroid release will not be updated for the time being if you need any of the removed features and are still on Android 10 (API Level 29) or lower consider installing from there.**

## Changelog
- targeting Android 12 (API Level 31)
- refactoring to MediaStore API for local file access
- root mapping deprecated: will be refactored in future when full MediaStore API support is implemented
- automatically resetting root mapping to revert back to default app directory
- local move/copy are currently not supported
- local delete is supported but requires user confirmation
- on Android 12 (API 31+) you can assign MANAGE_MEDIA rights to the app to avoid delete confirmation dialog
- SD card support is broken
- file provider for other apps is fixed
- about app dialog was updated to support news



================================================
FILE: build.yaml
================================================
targets:
  $default:
    auto_apply_builders: true
    builders:
      "built_value_generator:built_value":
        enabled: true
        generate_for:
          - lib/model/preferences/*.dart


================================================
FILE: fastlane/Appfile
================================================
json_key_file("./android/google-play.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("com.github.vauvenal5.yaga") # e.g. com.krausefx.app


================================================
FILE: fastlane/Fastfile
================================================
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:android)

platform :android do
  lane :internal do
#     Dir.chdir("..") do
#       sh("flutter build appbundle --flavor play")
#     end

    upload_to_play_store(
      track: 'internal',
      aab: './build/app/outputs/bundle/playRelease/app-play-release.aab',
      skip_upload_apk: 'true',
      skip_upload_metadata: 'true',
      skip_upload_images: 'true',
      skip_upload_screenshots: 'true',
    )
  end

  lane :alpha do
    upload_to_play_store(
      track: 'internal', 
      track_promote_to: 'alpha', 
      version_code: get_code(),
      skip_upload_aab: 'true', 
      skip_upload_apk: 'true',
      skip_upload_metadata: 'true',
      skip_upload_images: 'true',
      skip_upload_screenshots: 'true',
    )
  end

  lane :beta do
    upload_to_play_store(
      track: 'alpha', 
      track_promote_to: 'beta', 
      version_code: get_code(),
      skip_upload_aab: 'true', 
      skip_upload_apk: 'true',
      skip_upload_metadata: 'true',
      skip_upload_images: 'true',
      skip_upload_screenshots: 'true',
    )
  end

  lane :meta do
    upload_to_play_store(
      track: 'beta', 
      version_code: get_code(),
      skip_upload_aab: 'true', 
      skip_upload_apk: 'true',
    )
  end

  lane :github do 
#     Dir.chdir("..") do
#       sh("flutter build apk --flavor play")
#     end

    version = get_version()
    code = get_code()

    set_github_release(
      repository_name: "vauvenal5/yaga",
#       api_token: ENV["GITHUB_TOKEN"], # for local use
      api_bearer: ENV["GITHUB_TOKEN"], # for Github actions
      name: version,
      tag_name: version,
      description: (File.read("metadata/android/en-US/changelogs/"+code.to_s+".txt") rescue "No changelog provided."),
      commitish: "master",
      upload_assets: ["./build/app/outputs/flutter-apk/app-play-release.apk"]
    )
  end

  def get_version_or_code(capture)
    pubspec = File.read('../pubspec.yaml')
    regex = /version:\s(\d+\.\d+\.\d+)\+(\d+)/
    return pubspec[regex, capture]
  end

  def get_version()
    return "v"+get_version_or_code(1)
  end

  def get_code()
    return get_version_or_code(2).to_i
  end
end


================================================
FILE: fastlane/metadata/android/en-US/changelogs/134.txt
================================================
- fixed general settings login/logout bug
- added splashscreen

================================================
FILE: fastlane/metadata/android/en-US/changelogs/140.txt
================================================
- introduced focus mode to browse view

================================================
FILE: fastlane/metadata/android/en-US/changelogs/141.txt
================================================
- introduced focus mode to browse view
- fix title in focus mode

================================================
FILE: fastlane/metadata/android/en-US/changelogs/142.txt
================================================
- introduced focus mode to browse view
- fix title in focus mode
- minor improvement to drop down menus

================================================
FILE: fastlane/metadata/android/en-US/changelogs/143.txt
================================================
- introduced focus mode to browse view
- fix title in focus mode
- minor improvement to drop down menus
- fix isolates to properly shutdown/startup on app state change

================================================
FILE: fastlane/metadata/android/en-US/changelogs/144.txt
================================================
- introduced focus mode to browse view
- fix title in focus mode
- minor improvement to drop down menus
- fix isolates to properly shutdown/startup on app state change
- fix isolate startup

================================================
FILE: fastlane/metadata/android/en-US/changelogs/145.txt
================================================
- introduced focus mode to browse view
- fix title in focus mode
- minor improvement to drop down menus
- fix isolates to properly shutdown/startup on app state change
- fix isolate startup
- minor visual improvements
- code improvements

================================================
FILE: fastlane/metadata/android/en-US/changelogs/146.txt
================================================
- introduced focus mode to browse view
- fix title in focus mode
- minor improvement to drop down menus
- fix isolates to properly shutdown/startup on app state change
- fix isolate startup
- minor visual improvements
- code improvements
- fix to laoding mapper setting

================================================
FILE: fastlane/metadata/android/en-US/changelogs/147.txt
================================================
- fix recursive loading when offline
- fix recursive loading for local device

================================================
FILE: fastlane/metadata/android/en-US/changelogs/150.txt
================================================
- implement GET_CONTENT handler
- introduce navigator 2.0 to directory traversal

================================================
FILE: fastlane/metadata/android/en-US/changelogs/151.txt
================================================
- add ACTION_PICK filter

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1510.txt
================================================
- fix memory leak when downloading a lot of previews
- fix UI freeze when loading a lot of directories recursively

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1511.txt
================================================
- fix mapping manager when mapping non root folder
- fix url validation

================================================
FILE: fastlane/metadata/android/en-US/changelogs/152.txt
================================================
- implement GET_CONTENT handler
- introduce navigator 2.0 to directory traversal
- add ACTION_PICK filter
- open default screen for image select

================================================
FILE: fastlane/metadata/android/en-US/changelogs/153.txt
================================================
- implement GET_CONTENT handler
- introduce navigator 2.0 to directory traversal
- add ACTION_PICK filter
- open default screen for image select
- fix removal of upstream removed folders

================================================
FILE: fastlane/metadata/android/en-US/changelogs/154.txt
================================================
- implement GET_CONTENT handler
- introduce navigator 2.0 to directory traversal
- add ACTION_PICK filter
- open default screen for image select
- fix removal of upstream removed folders
- fix recursive update issue from browse to home view

================================================
FILE: fastlane/metadata/android/en-US/changelogs/155.txt
================================================
- implement GET_CONTENT handler
- introduce navigator 2.0 to directory traversal
- add ACTION_PICK filter
- open default screen for image select
- fix removal of upstream removed folders
- fix recursive update issue from browse to home view
- fix memory leak

================================================
FILE: fastlane/metadata/android/en-US/changelogs/156.txt
================================================
- implement GET_CONTENT handler
- introduce navigator 2.0 to directory traversal
- add ACTION_PICK filter
- open default screen for image select
- fix removal of upstream removed folders
- fix recursive update issue from browse to home view
- fix memory leak
- fix browse view recursive issue when entering focus view

================================================
FILE: fastlane/metadata/android/en-US/changelogs/157.txt
================================================
This release is identical to v0.15.6. There were build changes for FDroid support.
- implement GET_CONTENT handler
- introduce navigator 2.0 to directory traversal
- add ACTION_PICK filter
- open default screen for image select
- fix removal of upstream removed folders
- fix recursive update issue from browse to home view
- fix memory leak
- fix browse view recursive issue when entering focus view

================================================
FILE: fastlane/metadata/android/en-US/changelogs/158.txt
================================================
- fix memory leak when downloading a lot of previews
- fix UI freeze when loading a lot of directories recursively

================================================
FILE: fastlane/metadata/android/en-US/changelogs/159.txt
================================================
- fix memory leak when downloading a lot of previews
- fix UI freeze when loading a lot of directories recursively

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1600.txt
================================================
- add switch to disable URL validation in login mask

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1601.txt
================================================
- enable production logging for warn and err

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1602.txt
================================================
- enable production logging for warn and err
- correctly set log level

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1603.txt
================================================
- fix username handling with special characters

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1700.txt
================================================
- introducing multi-select

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1701.txt
================================================
- introducing multi-select
- allow sharing of multiple images

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1702.txt
================================================
- introducing multi-select
- allow sharing of multiple images
- fix ripple effect on image tiles

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1703.txt
================================================
- introducing multi-select
- allow sharing of multiple images
- fix ripple effect on image tiles
- fix NC behinde subpath issue
- fix fixedOrigin propagation for root mapping

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1704.txt
================================================
- introducing multi-select
- allow sharing of multiple images
- fix ripple effect on image tiles
- fix NC behinde subpath issue
- fix fixedOrigin propagation for root mapping
- replace button bar with bottom nav to align style and fix reder issue

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1705.txt
================================================
- introducing multi-select
- allow sharing of multiple images
- fix ripple effect on image tiles
- fix NC behinde subpath issue
- fix fixedOrigin propagation for root mapping
- replace button bar with bottom nav to align style and fix reder issue
- fix issue of app not being properly navigated to grant access site

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1800.txt
================================================
- delete file locally and remotely
- fix recursive remove on server detection

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1801.txt
================================================
- delete file locally and remotely
- fix recursive remove on server detection
- fix broken communication after background

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1802.txt
================================================
- fix bug when login name and user name are not the same

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1900.txt
================================================
- add browser based login flow as alternative to webview

================================================
FILE: fastlane/metadata/android/en-US/changelogs/1901.txt
================================================
- fix broken cancel button on login screen
- fix endless loading indicator when preview download fails
- fix show user agent in browser login flow
- fix persisting unchanged mapping issue

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2000.txt
================================================
- implement support for copying files
- implement support for moving files

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2001.txt
================================================
- implement support for copying files
- implement support for moving files
- !!! please note: if file exists in destination it will be overwritten !!!

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2002.txt
================================================
- implement support for copying files
- implement support for moving files
- ignore same destination actions
- !!! please note: if file exists in destination it will be overwritten !!!

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2003.txt
================================================
- implement support for copying files
- implement support for moving files
- ignore same destination actions
- ask for overwrite mode

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2100.txt
================================================
- implement avatar caching
- disable multi-select in path selector view

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2101.txt
================================================
- implement avatar caching
- disable multi-select in path selector view
- add warning dialog for root mapping

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2102.txt
================================================
- fix lost data issue by making delete syncs optional

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2103.txt
================================================
- move sorting to background

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2104.txt
================================================
- move sorting to background

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2105.txt
================================================
- move sorting to background

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2200.txt
================================================
- introducing simple support for self-signed certificates

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2201.txt
================================================
- fix local name handling if file/folder containes encoded chars (#86)

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2202.txt
================================================
- fix local name handling if file/folder containes encoded chars (#86)

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2203.txt
================================================
- improve logging

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2204.txt
================================================
- fix minor issue in special char handling
- improve logging

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2205.txt
================================================
- fix color gradient
- refactor icon
- fix jumping splash screen

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2206.txt
================================================
- fix color gradient
- refactor icon
- fix jumping splash screen

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2207.txt
================================================
- fix color gradient
- refactor icon
- fix jumping splash screen

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2208.txt
================================================
- remove host check from unsigned cert checks
- fix bug in auto-revoking on exception

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2300.txt
================================================
- add ability to send logs from within app
- improve logging
- improve self-signed cert usability

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2301.txt
================================================
- add ability to send logs from within app
- improve logging
- improve self-signed cert usability

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2302.txt
================================================
- add ability to send logs from within app
- improve logging
- improve self-signed cert usability
- fix for fdroid build

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2303.txt
================================================
- improve logging in list error cases
- replace loading indicator for previews with default image

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2304.txt
================================================
- improve performance when loading previews for many files

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2305.txt
================================================
- improve performance when loading previews for many files

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2306.txt
================================================
- improve performance when loading previews for many files

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2307.txt
================================================
- improve performance when loading previews for many files

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2308.txt
================================================
- improve performance when loading previews for many files

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2309.txt
================================================
- fix broken preview of local files

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2310.txt
================================================
- fix image scroll controler

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2311.txt
================================================
- move download to background

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2312.txt
================================================
- move download to background
- fix bug in category search

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2400.txt
================================================
- implement switch for auto persist on download

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2500.txt
================================================
- implement download files select action

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2501.txt
================================================
- fix url validation issue
- improve logging

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2502.txt
================================================
- major upgrade of dependencies
- fixes folder names that look like ports issue

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2503.txt
================================================
- add confirmation dialog for logout
- re-work preview fetching

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2600.txt
================================================
- experimental sd card support, pls read https://github.com/vauvenal5/yaga/issues/23

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2601.txt
================================================
- experimental sd card support, pls read https://github.com/vauvenal5/yaga/issues/23

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2700.txt
================================================
- targeting Android 12 (API Level 31)
- refactoring to MediaStore API for local file access
- root mapping deprecated
- automatically resetting root mapping
- local move/copy are currently not supported
- local delete is supported but requires user confirmation
- on Android 12 (API 31+) you can assign MANAGE_MEDIA rights to avoid delete confirmation dialog
- SD card support is broken
- file provider for other apps is fixed
- about app dialog was updated to support news

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2701.txt
================================================
- targeting Android 12 (API Level 31)
- refactoring to MediaStore API for local file access
- root mapping deprecated
- automatically resetting root mapping
- local move/copy are currently not supported
- local delete is supported but requires user confirmation
- on Android 12 (API 31+) you can assign MANAGE_MEDIA rights to avoid delete confirmation dialog
- SD card support is broken
- file provider for other apps fixed
- about app dialog was updated to support news
- privacy policy link added

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2800.txt
================================================
- moved file actions into background thread
- background feature can be switched on and off in general settings

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2801.txt
================================================
- moved file actions into background thread
- background feature can be switched on and off in general settings

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2802.txt
================================================
- add support for attach to functionality of Android (needed for wallpapers)

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2803.txt
================================================
- enable hidding of app bar in image view by tap

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2804.txt
================================================
- enable hidding of app bar in image view by tap
- enable hidding of android overlays

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2805.txt
================================================
- enable hidding of app bar in image view by tap
- enable hidding of android overlays

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2900.txt
================================================
- implement slideshow feature

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2901.txt
================================================
- implement slideshow feature
- add wakelock

================================================
FILE: fastlane/metadata/android/en-US/changelogs/2902.txt
================================================
- implement slideshow feature
- add wakelock
- add random mode
- add back to beginning
- add auto stop at end

================================================
FILE: fastlane/metadata/android/en-US/changelogs/3000.txt
================================================
- replace deprecated NC client with new one

================================================
FILE: fastlane/metadata/android/en-US/changelogs/3001.txt
================================================
- replace deprecated NC client with new one
- fix file action dialog in foreground worker mode

================================================
FILE: fastlane/metadata/android/en-US/changelogs/3002.txt
================================================
- replace deprecated NC client with new one
- fix file action dialog in foreground worker mode
- refactor background bridge

================================================
FILE: fastlane/metadata/android/en-US/changelogs/3003.txt
================================================
- minor fixes in file action handling
- new Nextcloud client version

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4000.txt
================================================
- implement favorites view

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4001.txt
================================================
- mark favorites in lists and grids

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4002.txt
================================================
- fix favorites icon color
- migrate to newest nextcloud client version

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4003.txt
================================================
- fix minor issue with special characters in folder names

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4004.txt
================================================
- fix minor issue with special characters in folder names
- internal testing of Github releases

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4005.txt
================================================
- fix minor issue with special characters in folder names
- internal testing of Github releases

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4100.txt
================================================
- add minimal linux support
- refactor views to support big screens
- fix missing permission bug

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4200.txt
================================================
- favorites can be set and removed from app
- reworked select all to smart select
- some code clean up

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4201.txt
================================================
- fix bug when persisting image is disabled

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4300.txt
================================================
- add download button to image view
- add favorite button to image view
- add keybindings for linux (left/right arrow --- navigate, page up/down --- navigate, f --- Favorite)

================================================
FILE: fastlane/metadata/android/en-US/changelogs/4301.txt
================================================
- fix offline support

================================================
FILE: fastlane/metadata/android/en-US/full_description.txt
================================================
Nextcloud Yaga is a Nextcloud first gallery app. It aimes to give you the full functionality of a modern gallery app while utilizing your private Nextcloud server as backend.

You can find the documentation here: https://vauvenal5.github.io/yaga-docs/

For details on the development state and currently implemented features, have a look on the Github page. https://github.com/vauvenal5/yaga

================================================
FILE: fastlane/metadata/android/en-US/short_description.txt
================================================
A Nextcloud first gallery app.

================================================
FILE: fastlane/metadata/android/en-US/title.txt
================================================
Nextcloud Yaga

================================================
FILE: ios/.gitignore
================================================
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3


================================================
FILE: ios/Flutter/AppFrameworkInfo.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>CFBundleDevelopmentRegion</key>
  <string>$(DEVELOPMENT_LANGUAGE)</string>
  <key>CFBundleExecutable</key>
  <string>App</string>
  <key>CFBundleIdentifier</key>
  <string>io.flutter.flutter.app</string>
  <key>CFBundleInfoDictionaryVersion</key>
  <string>6.0</string>
  <key>CFBundleName</key>
  <string>App</string>
  <key>CFBundlePackageType</key>
  <string>FMWK</string>
  <key>CFBundleShortVersionString</key>
  <string>1.0</string>
  <key>CFBundleSignature</key>
  <string>????</string>
  <key>CFBundleVersion</key>
  <string>1.0</string>
  <key>MinimumOSVersion</key>
  <string>8.0</string>
</dict>
</plist>


================================================
FILE: ios/Flutter/Debug.xcconfig
================================================
#include "Generated.xcconfig"


================================================
FILE: ios/Flutter/Release.xcconfig
================================================
#include "Generated.xcconfig"


================================================
FILE: ios/Runner/AppDelegate.swift
================================================
import UIKit
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}


================================================
FILE: ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
================================================
{
  "images" : [
    {
      "size" : "20x20",
      "idiom" : "iphone",
      "filename" : "Icon-App-20x20@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "20x20",
      "idiom" : "iphone",
      "filename" : "Icon-App-20x20@3x.png",
      "scale" : "3x"
    },
    {
      "size" : "29x29",
      "idiom" : "iphone",
      "filename" : "Icon-App-29x29@1x.png",
      "scale" : "1x"
    },
    {
      "size" : "29x29",
      "idiom" : "iphone",
      "filename" : "Icon-App-29x29@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "29x29",
      "idiom" : "iphone",
      "filename" : "Icon-App-29x29@3x.png",
      "scale" : "3x"
    },
    {
      "size" : "40x40",
      "idiom" : "iphone",
      "filename" : "Icon-App-40x40@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "40x40",
      "idiom" : "iphone",
      "filename" : "Icon-App-40x40@3x.png",
      "scale" : "3x"
    },
    {
      "size" : "60x60",
      "idiom" : "iphone",
      "filename" : "Icon-App-60x60@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "60x60",
      "idiom" : "iphone",
      "filename" : "Icon-App-60x60@3x.png",
      "scale" : "3x"
    },
    {
      "size" : "20x20",
      "idiom" : "ipad",
      "filename" : "Icon-App-20x20@1x.png",
      "scale" : "1x"
    },
    {
      "size" : "20x20",
      "idiom" : "ipad",
      "filename" : "Icon-App-20x20@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "29x29",
      "idiom" : "ipad",
      "filename" : "Icon-App-29x29@1x.png",
      "scale" : "1x"
    },
    {
      "size" : "29x29",
      "idiom" : "ipad",
      "filename" : "Icon-App-29x29@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "40x40",
      "idiom" : "ipad",
      "filename" : "Icon-App-40x40@1x.png",
      "scale" : "1x"
    },
    {
      "size" : "40x40",
      "idiom" : "ipad",
      "filename" : "Icon-App-40x40@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "76x76",
      "idiom" : "ipad",
      "filename" : "Icon-App-76x76@1x.png",
      "scale" : "1x"
    },
    {
      "size" : "76x76",
      "idiom" : "ipad",
      "filename" : "Icon-App-76x76@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "83.5x83.5",
      "idiom" : "ipad",
      "filename" : "Icon-App-83.5x83.5@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "1024x1024",
      "idiom" : "ios-marketing",
      "filename" : "Icon-App-1024x1024@1x.png",
      "scale" : "1x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}


================================================
FILE: ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "universal",
      "filename" : "LaunchImage.png",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "filename" : "LaunchImage@2x.png",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "filename" : "LaunchImage@3x.png",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}


================================================
FILE: ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
================================================
# Launch Screen Assets

You can customize the launch screen with your own desired assets by replacing the image files in this directory.

You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.

================================================
FILE: ios/Runner/Base.lproj/LaunchScreen.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
    <dependencies>
        <deployment identifier="iOS"/>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
    </dependencies>
    <scenes>
        <!--View Controller-->
        <scene sceneID="EHf-IW-A2E">
            <objects>
                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
                        <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <subviews>
                            <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
                            </imageView>
                        </subviews>
                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                        <constraints>
                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
                        </constraints>
                    </view>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="53" y="375"/>
        </scene>
    </scenes>
    <resources>
        <image name="LaunchImage" width="168" height="185"/>
    </resources>
</document>


================================================
FILE: ios/Runner/Base.lproj/Main.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
    <dependencies>
        <deployment identifier="iOS"/>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
    </dependencies>
    <scenes>
        <!--Flutter View Controller-->
        <scene sceneID="tne-QT-ifu">
            <objects>
                <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
                        <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
                    </view>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
            </objects>
        </scene>
    </scenes>
</document>


================================================
FILE: ios/Runner/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>$(DEVELOPMENT_LANGUAGE)</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>yaga</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>$(FLUTTER_BUILD_NAME)</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>$(FLUTTER_BUILD_NUMBER)</string>
	<key>LSRequiresIPhoneOS</key>
	<true/>
	<key>UILaunchStoryboardName</key>
	<string>LaunchScreen</string>
	<key>UIMainStoryboardFile</key>
	<string>Main</string>
	<key>UISupportedInterfaceOrientations</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UISupportedInterfaceOrientations~ipad</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationPortraitUpsideDown</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UIViewControllerBasedStatusBarAppearance</key>
	<false/>
</dict>
</plist>


================================================
FILE: ios/Runner/Runner-Bridging-Header.h
================================================
#import "GeneratedPluginRegistrant.h"

================================================
FILE: ios/Runner.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
	archiveVersion = 1;
	classes = {
	};
	objectVersion = 46;
	objects = {

/* Begin PBXBuildFile section */
		1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
		3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
		3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
		3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
		74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
		9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
		9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
		97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
		97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
		97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
		9705A1C41CF9048500538489 /* Embed Frameworks */ = {
			isa = PBXCopyFilesBuildPhase;
			buildActionMask = 2147483647;
			dstPath = "";
			dstSubfolderSpec = 10;
			files = (
				3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
				9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
			);
			name = "Embed Frameworks";
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
		1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
		3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
		74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
		74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
		9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
		9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
		9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
		97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
		97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
		97C146EB1CF9000F007C117D /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
				9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
				3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
		9740EEB11CF90186004384FC /* Flutter */ = {
			isa = PBXGroup;
			children = (
				3B80C3931E831B6300D905FE /* App.framework */,
				3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
				9740EEBA1CF902C7004384FC /* Flutter.framework */,
				9740EEB21CF90195004384FC /* Debug.xcconfig */,
				7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
				9740EEB31CF90195004384FC /* Generated.xcconfig */,
			);
			name = Flutter;
			sourceTree = "<group>";
		};
		97C146E51CF9000F007C117D = {
			isa = PBXGroup;
			children = (
				9740EEB11CF90186004384FC /* Flutter */,
				97C146F01CF9000F007C117D /* Runner */,
				97C146EF1CF9000F007C117D /* Products */,
			);
			sourceTree = "<group>";
		};
		97C146EF1CF9000F007C117D /* Products */ = {
			isa = PBXGroup;
			children = (
				97C146EE1CF9000F007C117D /* Runner.app */,
			);
			name = Products;
			sourceTree = "<group>";
		};
		97C146F01CF9000F007C117D /* Runner */ = {
			isa = PBXGroup;
			children = (
				97C146FA1CF9000F007C117D /* Main.storyboard */,
				97C146FD1CF9000F007C117D /* Assets.xcassets */,
				97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
				97C147021CF9000F007C117D /* Info.plist */,
				97C146F11CF9000F007C117D /* Supporting Files */,
				1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
				1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
				74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
				74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
			);
			path = Runner;
			sourceTree = "<group>";
		};
		97C146F11CF9000F007C117D /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
		97C146ED1CF9000F007C117D /* Runner */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
			buildPhases = (
				9740EEB61CF901F6004384FC /* Run Script */,
				97C146EA1CF9000F007C117D /* Sources */,
				97C146EB1CF9000F007C117D /* Frameworks */,
				97C146EC1CF9000F007C117D /* Resources */,
				9705A1C41CF9048500538489 /* Embed Frameworks */,
				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
			);
			buildRules = (
			);
			dependencies = (
			);
			name = Runner;
			productName = Runner;
			productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
			productType = "com.apple.product-type.application";
		};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
		97C146E61CF9000F007C117D /* Project object */ = {
			isa = PBXProject;
			attributes = {
				LastUpgradeCheck = 1020;
				ORGANIZATIONNAME = "The Chromium Authors";
				TargetAttributes = {
					97C146ED1CF9000F007C117D = {
						CreatedOnToolsVersion = 7.3.1;
						LastSwiftMigration = 1100;
					};
				};
			};
			buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
			compatibilityVersion = "Xcode 3.2";
			developmentRegion = en;
			hasScannedForEncodings = 0;
			knownRegions = (
				en,
				Base,
			);
			mainGroup = 97C146E51CF9000F007C117D;
			productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
			projectDirPath = "";
			projectRoot = "";
			targets = (
				97C146ED1CF9000F007C117D /* Runner */,
			);
		};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
		97C146EC1CF9000F007C117D /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
				3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
				97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
				97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
		3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
			isa = PBXShellScriptBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			inputPaths = (
			);
			name = "Thin Binary";
			outputPaths = (
			);
			runOnlyForDeploymentPostprocessing = 0;
			shellPath = /bin/sh;
			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
		};
		9740EEB61CF901F6004384FC /* Run Script */ = {
			isa = PBXShellScriptBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			inputPaths = (
			);
			name = "Run Script";
			outputPaths = (
			);
			runOnlyForDeploymentPostprocessing = 0;
			shellPath = /bin/sh;
			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
		};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
		97C146EA1CF9000F007C117D /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
				1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
		97C146FA1CF9000F007C117D /* Main.storyboard */ = {
			isa = PBXVariantGroup;
			children = (
				97C146FB1CF9000F007C117D /* Base */,
			);
			name = Main.storyboard;
			sourceTree = "<group>";
		};
		97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
			isa = PBXVariantGroup;
			children = (
				97C147001CF9000F007C117D /* Base */,
			);
			name = LaunchScreen.storyboard;
			sourceTree = "<group>";
		};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
		249021D3217E4FDB00AE95B9 /* Profile */ = {
			isa = XCBuildConfiguration;
			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_ANALYZER_NONNULL = YES;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_COMMA = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INFINITE_RECURSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
				CLANG_WARN_STRICT_PROTOTYPES = YES;
				CLANG_WARN_SUSPICIOUS_MOVE = YES;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = NO;
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
				ENABLE_NS_ASSERTIONS = NO;
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_NO_COMMON_BLOCKS = YES;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
				MTL_ENABLE_DEBUG_INFO = NO;
				SDKROOT = iphoneos;
				SUPPORTED_PLATFORMS = iphoneos;
				TARGETED_DEVICE_FAMILY = "1,2";
				VALIDATE_PRODUCT = YES;
			};
			name = Profile;
		};
		249021D4217E4FDB00AE95B9 /* Profile */ = {
			isa = XCBuildConfiguration;
			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				CLANG_ENABLE_MODULES = YES;
				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
				ENABLE_BITCODE = NO;
				FRAMEWORK_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/Flutter",
				);
				INFOPLIST_FILE = Runner/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
				LIBRARY_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/Flutter",
				);
				PRODUCT_BUNDLE_IDENTIFIER = com.github.vauvenal5.yaga;
				PRODUCT_NAME = "$(TARGET_NAME)";
				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
				SWIFT_VERSION = 5.0;
				VERSIONING_SYSTEM = "apple-generic";
			};
			name = Profile;
		};
		97C147031CF9000F007C117D /* Debug */ = {
			isa = XCBuildConfiguration;
			baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_ANALYZER_NONNULL = YES;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_COMMA = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INFINITE_RECURSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
				CLANG_WARN_STRICT_PROTOTYPES = YES;
				CLANG_WARN_SUSPICIOUS_MOVE = YES;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = NO;
				DEBUG_INFORMATION_FORMAT = dwarf;
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				ENABLE_TESTABILITY = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_DYNAMIC_NO_PIC = NO;
				GCC_NO_COMMON_BLOCKS = YES;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
				MTL_ENABLE_DEBUG_INFO = YES;
				ONLY_ACTIVE_ARCH = YES;
				SDKROOT = iphoneos;
				TARGETED_DEVICE_FAMILY = "1,2";
			};
			name = Debug;
		};
		97C147041CF9000F007C117D /* Release */ = {
			isa = XCBuildConfiguration;
			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_ANALYZER_NONNULL = YES;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_COMMA = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INFINITE_RECURSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
				CLANG_WARN_STRICT_PROTOTYPES = YES;
				CLANG_WARN_SUSPICIOUS_MOVE = YES;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = NO;
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
				ENABLE_NS_ASSERTIONS = NO;
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_NO_COMMON_BLOCKS = YES;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
				MTL_ENABLE_DEBUG_INFO = NO;
				SDKROOT = iphoneos;
				SUPPORTED_PLATFORMS = iphoneos;
				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
				TARGETED_DEVICE_FAMILY = "1,2";
				VALIDATE_PRODUCT = YES;
			};
			name = Release;
		};
		97C147061CF9000F007C117D /* Debug */ = {
			isa = XCBuildConfiguration;
			baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				CLANG_ENABLE_MODULES = YES;
				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
				ENABLE_BITCODE = NO;
				FRAMEWORK_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/Flutter",
				);
				INFOPLIST_FILE = Runner/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
				LIBRARY_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/Flutter",
				);
				PRODUCT_BUNDLE_IDENTIFIER = com.github.vauvenal5.yaga;
				PRODUCT_NAME = "$(TARGET_NAME)";
				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
				SWIFT_VERSION = 5.0;
				VERSIONING_SYSTEM = "apple-generic";
			};
			name = Debug;
		};
		97C147071CF9000F007C117D /* Release */ = {
			isa = XCBuildConfiguration;
			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				CLANG_ENABLE_MODULES = YES;
				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
				ENABLE_BITCODE = NO;
				FRAMEWORK_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/Flutter",
				);
				INFOPLIST_FILE = Runner/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
				LIBRARY_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/Flutter",
				);
				PRODUCT_BUNDLE_IDENTIFIER = com.github.vauvenal5.yaga;
				PRODUCT_NAME = "$(TARGET_NAME)";
				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
				SWIFT_VERSION = 5.0;
				VERSIONING_SYSTEM = "apple-generic";
			};
			name = Release;
		};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
		97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				97C147031CF9000F007C117D /* Debug */,
				97C147041CF9000F007C117D /* Release */,
				249021D3217E4FDB00AE95B9 /* Profile */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
		97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				97C147061CF9000F007C117D /* Debug */,
				97C147071CF9000F007C117D /* Release */,
				249021D4217E4FDB00AE95B9 /* Profile */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
/* End XCConfigurationList section */
	};
	rootObject = 97C146E61CF9000F007C117D /* Project object */;
}


================================================
FILE: ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
   version = "1.0">
   <FileRef
      location = "group:Runner.xcodeproj">
   </FileRef>
</Workspace>


================================================
FILE: ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
   LastUpgradeVersion = "1020"
   version = "1.3">
   <BuildAction
      parallelizeBuildables = "YES"
      buildImplicitDependencies = "YES">
      <BuildActionEntries>
         <BuildActionEntry
            buildForTesting = "YES"
            buildForRunning = "YES"
            buildForProfiling = "YES"
            buildForArchiving = "YES"
            buildForAnalyzing = "YES">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "97C146ED1CF9000F007C117D"
               BuildableName = "Runner.app"
               BlueprintName = "Runner"
               ReferencedContainer = "container:Runner.xcodeproj">
            </BuildableReference>
         </BuildActionEntry>
      </BuildActionEntries>
   </BuildAction>
   <TestAction
      buildConfiguration = "Debug"
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      shouldUseLaunchSchemeArgsEnv = "YES">
      <Testables>
      </Testables>
      <MacroExpansion>
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
            BuildableName = "Runner.app"
            BlueprintName = "Runner"
            ReferencedContainer = "container:Runner.xcodeproj">
         </BuildableReference>
      </MacroExpansion>
      <AdditionalOptions>
      </AdditionalOptions>
   </TestAction>
   <LaunchAction
      buildConfiguration = "Debug"
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      launchStyle = "0"
      useCustomWorkingDirectory = "NO"
      ignoresPersistentStateOnLaunch = "NO"
      debugDocumentVersioning = "YES"
      debugServiceExtension = "internal"
      allowLocationSimulation = "YES">
      <BuildableProductRunnable
         runnableDebuggingMode = "0">
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
            BuildableName = "Runner.app"
            BlueprintName = "Runner"
            ReferencedContainer = "container:Runner.xcodeproj">
         </BuildableReference>
      </BuildableProductRunnable>
      <AdditionalOptions>
      </AdditionalOptions>
   </LaunchAction>
   <ProfileAction
      buildConfiguration = "Profile"
      shouldUseLaunchSchemeArgsEnv = "YES"
      savedToolIdentifier = ""
      useCustomWorkingDirectory = "NO"
      debugDocumentVersioning = "YES">
      <BuildableProductRunnable
         runnableDebuggingMode = "0">
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
            BuildableName = "Runner.app"
            BlueprintName = "Runner"
            ReferencedContainer = "container:Runner.xcodeproj">
         </BuildableReference>
      </BuildableProductRunnable>
   </ProfileAction>
   <AnalyzeAction
      buildConfiguration = "Debug">
   </AnalyzeAction>
   <ArchiveAction
      buildConfiguration = "Release"
      revealArchiveInOrganizer = "YES">
   </ArchiveAction>
</Scheme>


================================================
FILE: ios/Runner.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
   version = "1.0">
   <FileRef
      location = "group:Runner.xcodeproj">
   </FileRef>
</Workspace>


================================================
FILE: lib/main.dart
================================================

import 'package:catcher_2/catcher_2.dart';
import 'package:flutter/material.dart';
import 'package:yaga/managers/global_settings_manager.dart';
import 'package:yaga/managers/settings_manager.dart';
import 'package:yaga/model/preferences/choice_preference.dart';
import 'package:yaga/services/shared_preferences_service.dart';
import 'package:yaga/utils/logger.dart';
import 'package:yaga/utils/navigation/yaga_router_delegate.dart';
import 'package:yaga/utils/nextcloud_colors.dart';
import 'package:yaga/utils/service_locator.dart';
import 'package:yaga/utils/navigation/yaga_route_information_parser.dart';
import 'package:yaga/views/screens/splash_screen.dart';

Future<void> main() async {
  await YagaLogger.init();

  setupServiceLocator();

  final Catcher2Options releaseOptions = Catcher2Options(SilentReportMode(), [
    YagaLogger.fileHandler,
  ]);

  Catcher2(
    rootWidget: MyApp(),
    debugConfig: releaseOptions,
    releaseConfig: releaseOptions,
    enableLogger: false,
  );
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final ThemeData dark = ThemeData(
      useMaterial3: false,
      brightness: Brightness.dark,
      colorScheme: ColorScheme.fromSwatch(
        accentColor: NextcloudColors.lightBlue,
        brightness: Brightness.dark,
      ),
    );

    final ThemeData light = ThemeData(
      useMaterial3: false,
      // brightness: Brightness.light,
      colorScheme: ColorScheme.fromSwatch(
        accentColor: NextcloudColors.lightBlue,
        brightness: Brightness.light,
      ),
    );

    const String title = "Nextcloud Yaga";

    return FutureBuilder(
      future: YagaLogger.printBaseLog().then(
        (_) => getIt.allReady(),
      ),
      builder: (context, snapshot) {
        if (!snapshot.hasData) {
          return MaterialApp(
            title: title,
            theme: light,
            darkTheme: dark,
            home: SplashScreen(),
          );
        }

        final settingsManager = getIt.get<SettingsManager>();

        return StreamBuilder<ChoicePreference>(
          initialData: getIt
              .get<SharedPreferencesService>()
              .loadPreferenceFromString(GlobalSettingsManager.theme),
          stream: settingsManager.updateSettingCommand
              .where((event) => event.key == GlobalSettingsManager.theme.key)
              .where((event) => event is ChoicePreference)
              .map((event) => event as ChoicePreference),
          builder: (context, snapshot) {
            if (snapshot.data!.value == "system") {
              return MaterialApp.router(
                title: title,
                theme: light,
                darkTheme: dark,
                routeInformationParser: YagaRouteInformationParser(),
                routerDelegate: YagaRouterDelegate(),
              );
            }

            return MaterialApp.router(
              title: title,
              theme: snapshot.data!.value == "light" ? light : dark,
              routeInformationParser: YagaRouteInformationParser(),
              routerDelegate: YagaRouterDelegate(),
            );
          },
        );
      },
    );
  }
}


================================================
FILE: lib/managers/file_manager/file_manager.dart
================================================
import 'dart:io';

import 'package:rx_command/rx_command.dart';
import 'package:rxdart/rxdart.dart';
import 'package:yaga/managers/file_manager/file_manager_base.dart';
import 'package:yaga/managers/file_service_manager/media_file_manager.dart';
import 'package:yaga/managers/global_settings_manager.dart';
import 'package:yaga/model/fetched_file.dart';
import 'package:yaga/model/nc_file.dart';
import 'package:yaga/services/shared_preferences_service.dart';
import 'package:yaga/utils/background_worker/background_worker.dart';
import 'package:yaga/utils/forground_worker/foreground_worker.dart';
import 'package:yaga/utils/forground_worker/messages/download_file_request.dart';
import 'package:yaga/utils/forground_worker/messages/file_list_request.dart';
import 'package:yaga/utils/forground_worker/messages/file_update_msg.dart';
import 'package:yaga/utils/forground_worker/messages/files_action/delete_files_request.dart';
import 'package:yaga/utils/forground_worker/messages/files_action/files_action_done.dart';
import 'package:yaga/utils/forground_worker/messages/files_action/files_action_request.dart';
import 'package:yaga/utils/forground_worker/messages/sort_request.dart';
import 'package:yaga/utils/ncfile_stream_extensions.dart';

class FileManager extends FileManagerBase {
  RxCommand<DownloadFileRequest, DownloadFileRequest> downloadImageCommand = RxCommand.createSync((param) => param);
  RxCommand<FileListRequest, FileListRequest> fetchFileListCommand = RxCommand.createSync((param) => param);
  RxCommand<SortRequest, SortRequest> sortFilesListCommand = RxCommand.createSync((param) => param);
  RxCommand<FilesActionRequest, FilesActionRequest> filesActionCommand = RxCommand.createSync((param) => param);

  final MediaFileManager _mediaFileManager;
  final SharedPreferencesService _sharedPreferencesService;
  final ForegroundWorker _foregroundWorker;
  final BackgroundWorker _backgroundWorker;

  FileManager(
    this._mediaFileManager,
    this._sharedPreferencesService,
    this._foregroundWorker,
    this._backgroundWorker,
  ) {
    registerFileManager(_mediaFileManager);

    fetchFileListCommand
        .where((event) => _mediaFileManager.isRelevant(event.uri.scheme))
        .flatMap(
          (value) => _mediaFileManager
              .listFiles(value.uri)
              .collectToList()
              .map((event) => SortRequest(value.key, event, value)),
        )
        .listen((event) {
      sortFilesListCommand(event);
    });

    filesActionCommand
        .where((event) => event is DeleteFilesRequest)
        .map((event) => event as DeleteFilesRequest)
        .where((event) => event.sourceDir.scheme == _mediaFileManager.scheme)
        .listen(_handleLocalDeleteRequest);

    filesActionCommand.where((event) => event.sourceDir.scheme != _mediaFileManager.scheme).listen(_handleFilesAction);

    //todo: re-enable when copy/move support is added
    // fileActionCommand
    //     .where((event) => event is DestinationActionFilesRequest)
    //     .map((event) => event as DestinationActionFilesRequest)
    //     .listen((event) {
    //       if(event.action == DestinationAction.copy) {
    //         _mediaFileManager.copyFile(event.files.first, event.destination);
    //       } else {
    //         _mediaFileManager.moveFile(event.files.first, event.destination);
    //       }
    // });

    downloadImageCommand.listen(_handleDownload);
  }

  @override
  Stream<NcFile> listFiles(Uri uri, {bool recursive = false}) {
    // not supported in UI branch because to computational intensive
    throw UnimplementedError();
  }

  void _handleLocalDeleteRequest(DeleteFilesRequest request) async {
    _mediaFileManager.deleteFiles(request.files).then((files) {
      for (var file in files) {
        fileUpdateMessage(FileUpdateMsg("", file));
      }
    }).whenComplete(
      () => filesActionDoneCommand(FilesActionDone(request.key, request.sourceDir)),
    );
  }

  void _handleFilesAction(FilesActionRequest request) async {
    final useBackground = _sharedPreferencesService
        .loadPreferenceFromBool(
          GlobalSettingsManager.useBackground,
        )
        .value;

    useBackground ? _backgroundWorker.sendRequest(request) : _foregroundWorker.sendRequest(request);
  }

  void _handleDownload(DownloadFileRequest request) async {
    final NcFile ncFile = request.file;

    // if file exists locally and download is not forced then load the local file
    if (!request.forceDownload && ncFile.localFile != null && await ncFile.localFile!.file.exists()) {
      ncFile.localFile!.exists = true;
      //todo: why are we directly reading the file in here and not in the service?
      fetchedFileCommand(
        FetchedFile(
          ncFile,
          await (ncFile.localFile!.file as File).readAsBytes(),
        ),
      );
      return;
    }

    final autoPersist = _sharedPreferencesService
        .loadPreferenceFromBool(
          GlobalSettingsManager.autoPersist,
        )
        .value;

    final useBackground = _sharedPreferencesService
        .loadPreferenceFromBool(
          GlobalSettingsManager.useBackground,
        )
        .value;

    request.persist = request.forceDownload || autoPersist;

    if (useBackground && request.persist) {
      // in case persistence is active download in true background
      _backgroundWorker.sendRequest(request);
    } else {
      // otherwise download in foreground worker
      _foregroundWorker.sendRequest(request);
    }
  }
}


================================================
FILE: lib/managers/file_manager/file_manager_base.dart
================================================
import 'package:flutter/foundation.dart';
import 'package:rx_command/rx_command.dart';
import 'package:yaga/managers/file_service_manager/file_service_manager.dart';
import 'package:yaga/model/fetched_file.dart';
import 'package:yaga/model/nc_file.dart';
import 'package:yaga/utils/forground_worker/messages/file_list_message.dart';
import 'package:yaga/utils/forground_worker/messages/file_update_msg.dart';
import 'package:yaga/utils/forground_worker/messages/files_action/files_action_done.dart';

/// File Managers provide files functions, i.e. copy/delete/move/download
/// with context of required actions over multiple services
abstract class FileManagerBase {
  RxCommand<NcFile, NcFile> updateImageCommand = RxCommand.createSync((param) => param);
  late RxCommand<FetchedFile, FetchedFile> fetchedFileCommand;

  //todo: Background: this should be moved out of here because it does not concern FileActionsManager
  RxCommand<FileListMessage, FileListMessage> updateFilesCommand = RxCommand.createSync((param) => param);

  // responses
  RxCommand<FilesActionDone, FilesActionDone> filesActionDoneCommand = RxCommand.createSync((param) => param);
  RxCommand<FileUpdateMsg, FileUpdateMsg> fileUpdateMessage = RxCommand.createSync((param) => param);

  @protected
  Map<String, FileServiceManager> fileServiceManagers = {};

  FileManagerBase() {
    fetchedFileCommand = RxCommand.createSync((param) {
      updateImageCommand(param.file);
      return param;
    });
  }

  void registerFileManager(FileServiceManager fileServiceManager) {
    fileServiceManagers.putIfAbsent(fileServiceManager.scheme, () => fileServiceManager);
  }

  //todo: fileManager refactoring: this method should not be callable from the UI
  Stream<NcFile> listFiles(Uri uri, {bool recursive = false});
}


================================================
FILE: lib/managers/file_manager/isolateable/file_action_manager.dart
================================================
import 'dart:io';

import 'package:flutter/foundation.dart';
import 'package:nextcloud/nextcloud.dart';
import 'package:rx_command/rx_command.dart';
import 'package:rxdart/rxdart.dart';
import 'package:yaga/managers/file_manager/file_manager_base.dart';
import 'package:yaga/model/nc_file.dart';
import 'package:yaga/services/isolateable/local_file_service.dart';
import 'package:yaga/services/isolateable/nextcloud_service.dart';
import 'package:yaga/utils/background_worker/background_channel.dart';
import 'package:yaga/utils/forground_worker/messages/file_update_msg.dart';
import 'package:yaga/utils/forground_worker/messages/files_action/delete_files_request.dart';
import 'package:yaga/utils/forground_worker/messages/files_action/destination_action_files_request.dart';
import 'package:yaga/utils/forground_worker/messages/files_action/favorite_files_request.dart';
import 'package:yaga/utils/forground_worker/messages/files_action/files_action_done.dart';
import 'package:yaga/utils/forground_worker/messages/files_action/files_action_request.dart';
import 'package:yaga/utils/forground_worker/messages/image_update_msg.dart';
import 'package:yaga/utils/logger.dart';
import 'package:yaga/utils/service_locator.dart';
import 'package:yaga/utils/uri_utils.dart';

class FileActionManager extends FileManagerBase {
  final _logger = YagaLogger.getLogger(FileActionManager);
  RxCommand<void, bool> cancelActionCommand = RxCommand.createSyncNoParam(() => true);

  Future<FileActionManager> initBackground(
    BackgroundChannel backgroundToMain,
  ) async {
    updateImageCommand.listen(
      (file) => backgroundToMain.send(ImageUpdateMsg("", file)),
    );

    return this;
  }

  Future<Uint8List> downloadFile(NcFile file, {bool persist = false}) async {
    return getIt.get<NextCloudService>().downloadImage(file.uri).then((value) async {
      if (persist) {
        await getIt.get<LocalFileService>().createFile(
              file: file.localFile!.file as File,
              bytes: value,
              lastModified: file.lastModified,
            );
        file.localFile!.exists = true;
      }
      return value;
    });
  }

  Future<void> deleteFiles(DeleteFilesRequest message) async => _cancelableAction(
        message,
        (file) async => fileServiceManagers[file.uri.scheme]?.deleteFile(file, local: message.local),
      );

  Future<void> copyMoveRequest(DestinationActionFilesRequest message) =>
      message.action == DestinationAction.copy ? _copyFiles(message) : _moveFiles(message);

  Future<void> _copyFiles(DestinationActionFilesRequest message) async => _cancelableAction(
        message,
        (file) async => fileServiceManagers[file.uri.scheme]?.copyFile(
          file,
          message.destination,
          overwrite: message.overwrite,
        ),
        filter: (file) => _destinationFilter(file, message.destination),
      );

  Future<void> _moveFiles(DestinationActionFilesRequest message) async => _cancelableAction(
        message,
        (file) async => fileServiceManagers[file.uri.scheme]
            ?.moveFile(
              file,
              message.destination,
              overwrite: message.overwrite,
            )
            .then(
              (value) => fileUpdateMessage(FileUpdateMsg("", file)),
            ),
        filter: (file) => _destinationFilter(file, message.destination),
      );

  Future<void> toggleFavorites(FavoriteFilesRequest message) => Stream.fromIterable(message.files)
      .asyncMap(
        (file) => fileServiceManagers[file.uri.scheme]?.toggleFavorite(file).then((file) => updateImageCommand(file)),
      )
      .toList();

  bool _destinationFilter(NcFile file, Uri destination) => !compareFilePathToTargetFilePath(file, destination);

  Future<void> _cancelableAction(
    FilesActionRequest request,
    Future<dynamic> Function(NcFile) action, {
    bool Function(NcFile file)? filter,
  }) =>
      Stream.fromIterable(request.files)
          .where((event) => filter == null || filter(event))
          .asyncMap(
            (file) => action(file).catchError(
              (err) => null,
              test: (err) => err is DynamiteApiException || err is FileSystemException,
            ),
          )
          .where((event) => event != null)
          .takeUntil(
            cancelActionCommand.doOnData((event) => _logger.finest("Canceling action!")),
          )
          .toList()
          .whenComplete(
            () => filesActionDoneCommand(FilesActionDone(request.key, request.sourceDir)),
          );

  @override
  Stream<NcFile> listFiles(Uri uri, {bool recursive = false}) {
    // not supported in true background because not needed when app not in foreground
    throw UnimplementedError();
  }
}


================================================
FILE: lib/managers/file_manager/isolateable/isolated_file_manager.dart
================================================
import 'dart:isolate';

import 'package:rx_command/rx_command.dart';
import 'package:yaga/managers/file_manager/isolateable/file_action_manager.dart';
import 'package:yaga/managers/isolateable/sort_manager.dart';
import 'package:yaga/model/nc_file.dart';
import 'package:yaga/model/sort_config.dart';
import 'package:yaga/model/sorted_file_list.dart';
import 'package:yaga/utils/forground_worker/isolateable.dart';
import 'package:yaga/utils/forground_worker/messages/file_list_message.dart';
import 'package:yaga/utils/forground_worker/messages/file_list_response.dart';
import 'package:yaga/utils/forground_worker/messages/file_update_msg.dart';
import 'package:yaga/utils/forground_worker/messages/image_update_msg.dart';
import 'package:yaga/utils/forground_worker/messages/init_msg.dart';
import 'package:yaga/utils/logger.dart';
import 'package:rxdart/rxdart.dart';

class IsolatedFileManager extends FileActionManager
    with Isolateable<IsolatedFileManager> {
  final _logger = YagaLogger.getLogger(IsolatedFileManager);

  final SortManager _sortManager;
  RxCommand<FileListMessage, FileListMessage> updateFilesCommand = RxCommand.createSync((param) => param);

  IsolatedFileManager(this._sortManager);

  @override
  Future<IsolatedFileManager> initIsolated(
    InitMsg init,
    SendPort isolateToMain,
  ) async {
    //todo: we probably can improve the capsuling of front end and foreground_worker communication further
    //--> check if it is possible to completely hide communications in bridges

    updateImageCommand.listen(
      (file) => isolateToMain.send(ImageUpdateMsg("", file)),
    );

    updateFilesCommand.listen((event) => isolateToMain.send(event));

    return this;
  }

  Future<void> listFileLists(
    String requestKey,
    Uri uri,
    SortConfig sortConfig, {
    bool recursive = false,
    bool favorites = false,
  }) async {
    return fileServiceManagers[uri.scheme]
        ?.listFileList(uri, recursive: recursive, favorites: favorites)
        .map((event) => _sortManager.sortList(event, sortConfig))
        .fold(
      null,
      (SortedFileList<SortedFileList<dynamic>>? previous, element) {
        if (previous == null) {
          updateFilesCommand(
            FileListResponse(requestKey, uri, element, recursive: recursive),
          );
          return element;
        }

        if (_sortManager.mergeSort(previous, element)) {
          updateFilesCommand(
            FileListResponse(requestKey, uri, previous, recursive: recursive),
          );
        }

        return previous;
      },
    ).then((value) => value);
  }

  @override
  Stream<NcFile> listFiles(Uri uri, {bool recursive = false}) {
    //todo: throw when scheme is not registered
    return fileServiceManagers[uri.scheme]?.listFiles(uri).flatMap((file) =>
      file.isDirectory && recursive
        ? listFiles(file.uri, recursive: recursive)
        : Stream.value(file)) ??
        const Stream.empty();
  }
}


================================================
FILE: lib/managers/file_service_manager/favorite_not_supported_mixin.dart
================================================
import 'package:yaga/model/nc_file.dart';

mixin FavoriteNotSupportedMixin {
  Future<NcFile> toggleFavorite(NcFile file,) => throw UnimplementedError();
}

================================================
FILE: lib/managers/file_service_manager/file_service_manager.dart
================================================
import 'package:yaga/model/nc_file.dart';

/// FileServiceManagers are providing basic file manager functions
/// encapsulating required actions for one specific source.
abstract class FileServiceManager {
  final String scheme = "";

  Stream<NcFile> listFiles(Uri uri, {bool recursive = false});
  Stream<List<NcFile>> listFileList(Uri uri, {bool recursive = false, bool favorites = false,});
  Future<NcFile> deleteFile(NcFile file, {required bool local});
  Future<NcFile> copyFile(NcFile file, Uri destination, {bool overwrite = false});
  Future<NcFile> moveFile(NcFile file, Uri destination, {bool overwrite = false});
  Future<NcFile> toggleFavorite(NcFile file,);
}


================================================
FILE: lib/managers/file_service_manager/isolateable/local_file_manager.dart
================================================
import 'dart:io';

import 'package:mime/mime.dart';
import 'package:yaga/managers/file_manager/file_manager_base.dart';
import 'package:yaga/managers/file_service_manager/favorite_not_supported_mixin.dart';
import 'package:yaga/managers/file_service_manager/file_service_manager.dart';
import 'package:yaga/model/local_file.dart';
import 'package:yaga/model/nc_file.dart';
import 'package:yaga/services/isolateable/local_file_service.dart';
import 'package:yaga/services/isolateable/system_location_service.dart';
import 'package:yaga/utils/forground_worker/isolateable.dart';
import 'package:yaga/utils/forground_worker/messages/file_update_msg.dart';
import 'package:yaga/utils/ncfile_stream_extensions.dart';
import 'package:yaga/utils/uri_utils.dart';
import 'package:rxdart/rxdart.dart';

// this class is still needed for offline support
class LocalFileManager
    with Isolateable<LocalFileManager>, FavoriteNotSupportedMixin
    implements FileServiceManager {
  final FileManagerBase _fileManager;
  final LocalFileService _localFileService;
  final SystemLocationService _systemPathService;

  @override
  String get scheme => _systemPathService.internalStorage.origin.scheme;

  LocalFileManager(
      this._fileManager, this._localFileService, this._systemPathService) {
    _fileManager.registerFileManager(this);
  }

  @override
  //todo: should add a wrapper around uri to distinguish between internal and absolute uri
  // --> for example this serivce requires a internal uri but the call from within the nextcloudFileManager passes an absolute uri!
  Stream<NcFile> listFiles(
    Uri uri, {
    bool recursive = false,
  }) {
    //todo: add uri check? or simply handle exception?
    return _listLocalFiles(uri)
        .recursively(_listLocalFiles, recursive: recursive);
  }

  @override
  Stream<List<NcFile>> listFileList(
    Uri uri, {
    bool recursive = false,
    bool favorites = false,
  }) {
    return listFiles(uri, recursive: recursive).collectToList();
  }

  Stream<NcFile> _listLocalFiles(Uri uri, {bool favorites = false}) {
    //todo: add uri check? or simply handle exception?
    return Stream.value(uri)
        .map(_systemPathService.absoluteUriFromInternal)
        .map((uri) => Directory.fromUri(uri))
        .flatMap((dir) => _localFileService.list(dir))
        .map((event) {
      final Uri uri = _systemPathService.internalUriFromAbsolute(event.uri);

      final NcFile file = _createFile(uri, event);
      file.localFile = LocalFile(event, event.existsSync());
      return file;
    });
  }

  NcFile _createFile(Uri uri, FileSystemEntity event) {
    if (event is Directory) {
      final NcFile file = NcFile.directory(
        uri,
        getNameFromUri(uri),
      );
      //todo: think about this!
      file.lastModified = DateTime.now();
      return file;
    }

    final NcFile file = NcFile.file(
      uri,
      getNameFromUri(uri),
      lookupMimeType(event.path),
    );
    //todo: this value is not necessarily correct(!)
    file.lastModified = (event as File).lastModifiedSync().toUtc();
    return file;
  }

  @override
  Future<NcFile> deleteFile(NcFile file, {required bool local}) async {
    _localFileService.deleteFile(file.localFile!.file);
    _fileManager.fileUpdateMessage(FileUpdateMsg("", file));
    return file;
  }

  @override
  Future<NcFile> copyFile(NcFile file, Uri destination,
      {bool overwrite = false}) async {
    _localFileService.copyFile(
      file,
      _systemPathService.absoluteUriFromInternal(destination),
      overwrite: overwrite,
    );
    return file;
  }

  @override
  Future<NcFile> moveFile(NcFile file, Uri destination,
      {bool overwrite = false}) async {
    _localFileService.moveFile(
      file,
      _systemPathService.absoluteUriFromInternal(destination),
      overwrite: overwrite,
    );
    return file;
  }
}


================================================
FILE: lib/managers/file_service_manager/isolateable/nextcloud_background_file_manager.dart
================================================
import 'package:flutter/foundation.dart';
import 'package:yaga/managers/file_manager/file_manager_base.dart';
import 'package:yaga/managers/file_service_manager/file_service_manager.dart';
import 'package:yaga/model/nc_file.dart';
import 'package:yaga/services/isolateable/local_file_service.dart';
import 'package:yaga/services/isolateable/nextcloud_service.dart';
import 'package:yaga/utils/forground_worker/messages/file_update_msg.dart';
import 'package:yaga/utils/logger.dart';

class NextcloudBackgroundFileManager implements FileServiceManager {
  final _logger = YagaLogger.getLogger(NextcloudBackgroundFileManager);
  @protected
  final NextCloudService nextCloudService;
  @protected
  final LocalFileService localFileService;
  @protected
  final FileManagerBase fileManager;

  NextcloudBackgroundFileManager(this.nextCloudService, this.localFileService, this.fileManager);

  Future<NextcloudBackgroundFileManager> initBackground() async {
    fileManager.registerFileManager(this);
    return this;
  }

  //todo: background: clean up file manager mess

  @override
  Future<NcFile> deleteFile(NcFile file, {required bool local}) async {
    if (local) {
      localFileService.deleteFile(file.localFile!.file);
      file.localFile!.exists = false;
      fileManager.updateImageCommand(file);
      return file;
    }

    return nextCloudService
        .deleteFile(file)
        .then((value) => deleteLocalFile(file))
        .then((file) {
      fileManager.fileUpdateMessage(FileUpdateMsg("", file));
      return file;
    });
  }

  @protected
  Future<NcFile> deleteLocalFile(NcFile file) async {
    _logger.warning("Removing local file! (${file.uri.path})");
    localFileService.deleteFile(file.localFile!.file);
    localFileService.deleteFile(file.previewFile!.file);
    return file;
  }

  @override
  Stream<List<NcFile>> listFileList(Uri uri, {bool recursive = false, bool favorites = false,}) {
    // not supported in true background since listing files makes only sense when app in foreground
    throw UnimplementedError();
  }

  @override
  Stream<NcFile> listFiles(Uri uri, {bool recursive = false}) {
    // not supported in true background since listing files makes only sense when app in foreground
    throw UnimplementedError();
  }

  @override
  Future<NcFile> copyFile(NcFile file, Uri destination,
          {bool overwrite = false}) =>
      nextCloudService.copyFile(file, destination, overwrite: overwrite);

  @override
  Future<NcFile> moveFile(NcFile file, Uri destination,
          {bool overwrite = false}) =>
      nextCloudService
          .moveFile(file, destination, overwrite: overwrite)
          // this is a very simplified fix for a complex problem:
          // if we want to move existing files locally we need to decide if it
          // is really necessary to do this in the background
          // if yes, we have also to consider the implications on the UI:
          // * dialog has to be removed
          // * this makes the action non cancelable
          // technical requirements:
          // * MappingManger has to be refactored to be usable in background
          .then((value) => deleteLocalFile(value));

  @override
  Future<NcFile> toggleFavorite(NcFile file) => nextCloudService.toggleFavorite(file);

  @override
  String get scheme => nextCloudService.scheme;
}


================================================
FILE: lib/managers/file_service_manager/isolateable/nextcloud_file_manger.dart
================================================
import 'dart:io';

import 'package:nextcloud/nextcloud.dart';
import 'package:rx_command/rx_command.dart';
import 'package:rxdart/rxdart.dart';
import 'package:yaga/managers/file_manager/file_manager_base.dart';
import 'package:yaga/managers/file_service_manager/isolateable/nextcloud_background_file_manager.dart';
import 'package:yaga/managers/isolateable/mapping_manager.dart';
import 'package:yaga/managers/isolateable/sync_manager.dart';
import 'package:yaga/model/local_file.dart';
import 'package:yaga/model/nc_file.dart';
import 'package:yaga/model/preview_fetch_meta.dart';
import 'package:yaga/services/isolateable/local_file_service.dart';
import 'package:yaga/services/isolateable/nextcloud_service.dart';
import 'package:yaga/utils/forground_worker/isolateable.dart';
import 'package:yaga/utils/forground_worker/messages/file_update_msg.dart';
import 'package:yaga/utils/logger.dart';
import 'package:yaga/utils/ncfile_stream_extensions.dart';

class NextcloudFileManager extends NextcloudBackgroundFileManager
    with Isolateable<NextcloudFileManager> {
  final _logger = YagaLogger.getLogger(NextcloudFileManager);

  final MappingManager _mappingManager;
  final SyncManager _syncManager;

  final RxCommand<NcFile, NcFile> _getPreviewCommand =
      RxCommand.createSync((param) => param);
  final RxCommand<int, int> _readyForNextPreviewRequest =
      RxCommand.createSync((param) => param);

  final RxCommand<NcFile, NcFile> downloadPreviewCommand =
      RxCommand.createSync((param) => param);
  final RxCommand<NcFile, NcFile> updatePreviewCommand =
      RxCommand.createSync((param) => param);
  final RxCommand<NcFile, NcFile> downloadPreviewFaildCommand =
      RxCommand.createSync((param) => param);

  NextcloudFileManager(
    FileManagerBase fileManager,
    NextCloudService nextCloudService,
    LocalFileService localFileService,
    this._mappingManager,
    this._syncManager,
  ) : super(nextCloudService, localFileService, fileManager){
    fileManager.registerFileManager(this);

    _getPreviewCommand
        .zipWith(
          // this stream is managing the amount of allowed parallel downloads of previews (currently 10)
          _readyForNextPreviewRequest.doOnData(
            (event) => _logger.info("Arming preview index: $event"),
          ),
          (ncFile, int number) => PreviewFetchMeta(ncFile, number),
        )
        .doOnData(
          (event) => _logger.info(
            "Fetching preview index: ${event.fetchIndex}",
          ),
        )
        // debounce requests which have been added multiple times due to scrolling
        .where((ncFileMeta) {
          if (ncFileMeta.file.previewFile!.file.existsSync()) {
            _logger.info("Preview exists index: ${ncFileMeta.fetchIndex}");
            _readyForNextPreviewRequest(ncFileMeta.fetchIndex);
            return false;
          }
          return true;
        })
        .flatMap(
          (ncFileMeta) => Stream.fromFuture(
            nextCloudService.getPreview(ncFileMeta.file.uri).then(
              (value) async {
                ncFileMeta.file.previewFile!.file =
                    await localFileService.createFile(
                        file: ncFileMeta.file.previewFile!.file as File,
                        bytes: value,
                        lastModified: ncFileMeta.file.lastModified);
                ncFileMeta.file.previewFile!.exists = true;
                _logger.info("Preview fetched index: ${ncFileMeta.fetchIndex}");
                _logger.fine("Preview fetched: (${ncFileMeta.file.uri})");
                return ncFileMeta;
              },
              //todo: do we really need both error handlers
              onError: (err, StackTrace stacktrace) {
                if(err is DynamiteApiException && err.statusCode == 404) {
                  _logger.warning(
                    "Preview not found for file: ${ncFileMeta.file.name}",
                  );
                } else {
                  _logger.warning(
                    "Preview fetching failed, index: ${ncFileMeta.fetchIndex}",
                  );
                  _logger.severe(
                    "Unexpected error while loading preview",
                    err,
                    stacktrace,
                  );
                }
                downloadPreviewFaildCommand(ncFileMeta.file);
                return PreviewFetchMeta(ncFileMeta.file, ncFileMeta.fetchIndex,
                    success: false);
              },
            ),
          ),
        )
        .doOnData((event) => _readyForNextPreviewRequest(event.fetchIndex))
        .where((event) => event.success)
        .listen(
          (ncFileMeta) => updatePreviewCommand(ncFileMeta.file),
          onError: (error, StackTrace stacktrace) {
            final int index = (_readyForNextPreviewRequest.lastResult! + 1) % 10;

            _logger.warning("Error on stream. Reintroducing index: $index");
            _readyForNextPreviewRequest(index);

            _logger.severe(
              "Unexpected error in preview stream",
              error,
              stacktrace,
            );
          },
        );

    //init preview stream for 10 simultanious requests
    RangeStream(1, 10).listen((event) => _readyForNextPreviewRequest(event));

    downloadPreviewCommand.listen((ncFile) {
      if (ncFile.previewFile != null && ncFile.previewFile!.file.existsSync()) {
        ncFile.previewFile!.exists = true;
        updatePreviewCommand(ncFile);
        return;
      }
      _getPreviewCommand(ncFile);
    });
  }

  @override
  String get scheme => nextCloudService.scheme;

  @override
  Stream<NcFile> listFiles(
    Uri uri, {
    bool recursive = false,
  }) {
    //todo: add uri check
    return _syncManager.addUri(uri).asStream().flatMap((value) => Rx.merge([
          _listLocalFileList(uri, recursive),
          _listNextcloudFiles(uri, recursive),
        ]).doOnDone(() => _finishSync(uri))) as Stream<NcFile>;
  }

  @override
  Stream<List<NcFile>> listFileList(
    Uri uri, {
    bool recursive = false,
    bool favorites = false,
  }) {
    //todo: add uri check
    _logger.finer("Listing... ($uri)");
    return _syncManager.addUri(uri).asStream().flatMap((_) => Rx.merge([
          _listLocalFileList(uri, recursive),
          _listNextcloudFiles(uri, recursive, favorites: favorites).collectToList(),
        ]).doOnData((event) {
          _logger.finer("Emiting list! ($uri)");
        }).doOnDone(() => _finishSync(uri)));
  }

  Stream<NcFile> _listNextcloudFiles(Uri uri, bool recursive, {bool favorites = false}) {
    return _listNextcloudFilesUpstream(uri, favorites: favorites)
        .recursively(_listNextcloudFilesUpstream, recursive: recursive, favorites: favorites)
        .doOnData((file) => _syncManager.addRemoteFile(uri, file))
        .doOnError((err, stack) => _syncManager.removeUri(uri));
  }

  Stream<NcFile> _listNextcloudFilesUpstream(Uri uri, {bool favorites = false}) {
    return nextCloudService.list(uri, favorites).asyncMap((file) async {
      if (!file.isDirectory) {
        file.localFile = await _createLocalFile(file.uri);
        file.previewFile = await _createTmpFile(file.uri);
      }
      return file;
    });
  }

  Stream<List<NcFile>> _listLocalFileList(Uri uri, bool recursive) {
    return Rx.merge([
      _listTmpFiles(uri, recursive),
      _listLocalFiles(uri, recursive),
    ])
        .doOnData((file) => _syncManager.addFile(uri, file))
        .distinctUnique()
        .toList()
        .asStream();
  }

  Stream<NcFile> _listLocalFiles(Uri uri, bool recursive) =>
      _listFromLocalFileManager(
        uri,
        recursive,
        _mappingManager.mapToLocalUri,
        (file) async {
          file.uri = await _mappingManager.mapToRemoteUri(file.uri, uri);
          //todo: should this be a FileSystemEntity?
          // file.localFile = await _mappingManager.mapToLocalFile(file.uri);
          if (!file.isDirectory) {
            file.previewFile = await _createTmpFile(file.uri);
          }
          return file;
        },
      );

  Stream<NcFile> _listTmpFiles(Uri uri, bool recursive) =>
      _listFromLocalFileManager(
        uri,
        recursive,
        _mappingManager.mapToTmpUri,
        (file) async {
          file.uri = await _mappingManager.mapTmpToRemoteUri(file.uri, uri);
          //todo: should this be a FileSystemEntity?
          if (!file.isDirectory) {
            file.previewFile = file.localFile;
            file.localFile = await _createLocalFile(file.uri);
          }
          // file.previewFile = _localFileService.getTmpFile(file.uri.path);
          return file;
        },
      );

  Stream<NcFile> _listFromLocalFileManager(
      Uri uri,
      bool recursive,
      Future<Uri> Function(Uri) mappingCall,
      Future<NcFile> Function(NcFile) resultMapping) {
    return mappingCall(uri)
        .asStream()
        .flatMap((value) => fileManager.listFiles(value, recursive: recursive))
        .asyncMap(resultMapping);
  }

  Future _finishSync(Uri uri) {
    return _syncManager.syncUri(uri).then((files) async {
      for (final NcFile file in files) {
        if (await _mappingManager.isSyncDelete(file.uri)) {
          deleteLocalFile(file);
        } else {
          fileManager.fileUpdateMessage(FileUpdateMsg("", file));
        }
      }
    });
  }

  Future<LocalFile> _createLocalFile(Uri uri) async {
    File file = File.fromUri(await _mappingManager.mapToLocalUri(uri));
    return LocalFile(file, file.existsSync());
  }

  Future<LocalFile> _createTmpFile(Uri uri) async {
    File file = File.fromUri(await _mappingManager.mapToTmpUri(uri));
    return LocalFile(file, file.existsSync());
  }
}


================================================
FILE: lib/managers/file_service_manager/media_file_manager.dart
================================================
import 'dart:io';

import 'package:yaga/managers/file_service_manager/favorite_not_supported_mixin.dart';
import 'package:yaga/managers/file_service_manager/file_service_manager.dart';
import 'package:yaga/model/nc_file.dart';

import 'package:yaga/services/media_file_service.dart';

class MediaFileManager with FavoriteNotSupportedMixin implements FileServiceManager {
  final MediaFileService _mediaFileService;

  MediaFileManager(this._mediaFileService);

  @override
  Future<NcFile> deleteFile(NcFile file, {required bool local}) {
    return deleteFiles(List.filled(1, file)).then((value) => value.first);
  }

  Future<List<NcFile>> deleteFiles(List<NcFile> files) {
    return _mediaFileService.deleteFile(files);
  }

  @override
  Stream<List<NcFile>> listFileList(Uri uri, {bool recursive = false, bool favorites = false}) {
    // TODO: implement listFileList
    throw UnimplementedError();
  }

  @override
  Stream<NcFile> listFiles(Uri uri, {bool recursive = false}) {
    return _mediaFileService.listFiles(uri);
  }

  @override
  // todo: currently this is reusing the file-scheme which is meant for local access probably should use a different one?
  String get scheme => _mediaFileService.scheme;

  @override
  Future<NcFile> copyFile(NcFile file, Uri destination,
      {bool overwrite = false}) {
    // TODO: implement copyFile
    throw UnimplementedError();
  }

  @override
  Future<NcFile> moveFile(NcFile file, Uri destination,
      {bool overwrite = false}) {
    // TODO: implement moveFile
    throw UnimplementedError();
  }

  bool isRelevant(String scheme) {
    return Platform.isAndroid && scheme == this.scheme;
  }
}


================================================
FILE: lib/managers/global_settings_manager.dart
================================================
import 'dart:io';

import 'package:rx_command/rx_command.dart';
import 'package:yaga/managers/nextcloud_manager.dart';
import 'package:yaga/managers/settings_manager.dart';
import 'package:yaga/model/nc_login_data.dart';
import 'package:yaga/model/preferences/action_preference.dart';
import 'package:yaga/model/preferences/bool_preference.dart';
import 'package:yaga/model/preferences/choice_preference.dart';
import 'package:yaga/model/preferences/int_preference.dart';
import 'package:yaga/model/preferences/mapping_preference.dart';
import 'package:yaga/model/preferences/preference.dart';
import 'package:yaga/model/preferences/section_preference.dart';
import 'package:yaga/model/preferences/string_preference.dart';
import 'package:yaga/services/isolateable/nextcloud_service.dart';
import 'package:yaga/services/isolateable/system_location_service.dart';
import 'package:yaga/utils/logger.dart';
import 'package:yaga/utils/uri_utils.dart';

class GlobalSettingsManager {
  final List<Preference> _globalSettingsCache = [];
  static const String _MAPPING_KEY = "mapping";
  static SectionPreference ncSection = SectionPreference((b) => b
    ..key = "nc"
    ..title = "Nextcloud");
  static BoolPreference autoPersist = BoolPreference((b) => b
    ..key = ncSection.prepareKey("autoPersist")
    ..title = "Persist on View Image"
    ..value = true);
  static SectionPreference appSection = SectionPreference((b) => b
    ..key = "app"
    ..title = "General");
  static ChoicePreference theme = ChoicePreference((b) => b
    ..key = appSection.prepareKey("theme")
    ..title = "Theme"
    ..value = "system"
    ..choices = {
      "system": "Follow System Theme",
      "light": "Light Theme",
      "dark": "Dark Theme"
    });
  static ActionPreference sendLogs = ActionPreference((b) => b
    ..key = appSection.prepareKey("logs")
    ..title = "Send Logs"
    ..action = YagaLogger.shareLogs
    ..enabled = Platform.isAndroid);
  static ActionPreference? reset;
  static StringPreference newsSeenVersion = StringPreference(
    (b) => b
      ..key = appSection.prepareKey("newsSeen")
      ..title = "News Seen Version"
      ..value = "",
  );
  static BoolPreference useBackground = BoolPreference(
    (b) => b
      ..key = ncSection.prepareKey("useBackground")
      ..title = "File actions in background"
      ..value = Platform.isAndroid
      ..enabled = Platform.isAndroid,
  );
  static SectionPreference slideshowSection = SectionPreference(
    (b) => b
      ..key = "show"
      ..title = "Slideshow",
  );
  static IntPreference slideShowInterval = IntPreference(
    (b) => b
      ..key = slideshowSection.prepareKey("interval")
      ..title = "Interval in seconds"
      ..value = 5,
  );
  static BoolPreference slideShowRandom = BoolPreference(
      (b) => b..key = slideshowSection.prepareKey("random")
        ..title = "Random order"
        ..value = false,
  );
  static BoolPreference slideShowAutoStop = BoolPreference(
        (b) => b..key = slideshowSection.prepareKey("autoStop")
      ..title = "Stop at end"
      ..value = false,
  );

  RxCommand<Preference, Preference> registerGlobalSettingCommand =
      RxCommand.createSync((param) => param);
  late RxCommand<Preference, void> removeGlobalSettingCommand;
  RxCommand<List<Preference>, List<Preference>> updateGlobalSettingsCommand =
      RxCommand.createSync((param) => param);

  RxCommand<MappingPreference, MappingPreference> updateRootMappingPreference =
      RxCommand.createSync((param) => param);

  final NextCloudManager _nextcloudManager;
  final SettingsManager _settingsManager;

  final NextCloudService _nextCloudService;
  final SystemLocationService _systemLocationService;

  GlobalSettingsManager(this._nextcloudManager, this._settingsManager,
      this._nextCloudService, this._systemLocationService) {
    registerGlobalSettingCommand.listen((pref) {
      if (_globalSettingsCache.contains(pref)) {
        return;
      }
      _globalSettingsCache.add(pref);
      updateGlobalSettingsCommand(_globalSettingsCache);
    });
    removeGlobalSettingCommand = RxCommand.createSync((param) =>
        _globalSettingsCache
            .removeWhere((element) => element.key == param.key));
    removeGlobalSettingCommand.listen((value) {
      updateGlobalSettingsCommand(_globalSettingsCache);
    });

    _nextcloudManager.updateLoginStateCommand
        .listen((value) => _handleLoginState(value));

    _nextcloudManager.logoutCommand.listen((value) {
      final MappingPreference mapping = getDefaultMappingPreference(
        local: _systemLocationService.internalStorage.uri,
        remote: Uri(),
      );

      _settingsManager.removeMappingPreferenceCommand(mapping);
      removeGlobalSettingCommand(mapping);
      removeGlobalSettingCommand(reset);
      removeGlobalSettingCommand(autoPersist);
      removeGlobalSettingCommand(ncSection);
    });

    _settingsManager.updateSettingCommand
        .where((event) => event.key == ncSection.prepareKey(_MAPPING_KEY))
        .listen(
            (event) => updateRootMappingPreference(event as MappingPreference));
  }

  Future<GlobalSettingsManager> init() async {
    registerGlobalSettingCommand(appSection);
    registerGlobalSettingCommand(useBackground);
    registerGlobalSettingCommand(theme);
    registerGlobalSettingCommand(sendLogs);
    
    registerGlobalSettingCommand(slideshowSection);
    registerGlobalSettingCommand(slideShowInterval);
    registerGlobalSettingCommand(slideShowRandom);
    registerGlobalSettingCommand(slideShowAutoStop);

    _handleLoginState(
      _nextcloudManager.updateLoginStateCommand.lastResult!,
    );

    return this;
  }

  MappingPreference getDefaultMappingPreference({
    required Uri local,
    required Uri remote,
  }) {
    return MappingPreference(
      (b) => b
        ..key = ncSection.prepareKey(_MAPPING_KEY)
        ..title = "Root Mapping"
        ..value = false
        ..local.value = local
        ..local.enabled = false
        ..remote.value = remote
        ..remote.enabled = false,
    );
  }

  void _handleLoginState(NextCloudLoginData loginData) {
    if (_nextCloudService.isLoggedIn()) {
      final MappingPreference mapping = getDefaultMappingPreference(
        local: fromUri(
          uri: _systemLocationService.internalStorage.uri,
          path:
              "${_systemLocationService.internalStorage.uri.path}/${_nextCloudService.origin!.userDomain}",
        ),
        remote: _nextCloudService.origin!.userEncodedDomainRoot,
      );

      reset = ActionPreference(
        (b) => b
          ..key = ncSection.prepareKey("reset")
          ..title = "Reset Root Mapping"
          ..action = () {
            _settingsManager.persistMappingPreferenceCommand(mapping);
            _settingsManager.loadMappingPreferenceCommand(mapping);
          },
      );

      registerGlobalSettingCommand(ncSection);
      registerGlobalSettingCommand(mapping);
      // registerGlobalSettingCommand(reset);
      registerGlobalSettingCommand(autoPersist);

      //instead of loading the root mapping we are resetting it here to default values
      //_settingsManager.loadMappingPreferenceCommand(mapping);
      reset!.action.call();
    }
  }
}


================================================
FILE: lib/managers/isolateable/isolated_global_settings_manager.dart
================================================
import 'dart:isolate';

import 'package:yaga/managers/global_settings_manager.dart';
import 'package:yaga/managers/isolateable/isolated_settings_manager.dart';
import 'package:yaga/model/preferences/bool_preference.dart';
import 'package:yaga/utils/forground_worker/isolateable.dart';
import 'package:yaga/utils/forground_worker/messages/init_msg.dart';

class IsolatedGlobalSettingsManager
    with Isolateable<IsolatedGlobalSettingsManager> {
  @override
  Future<IsolatedGlobalSettingsManager> initIsolated(
    InitMsg init,
    SendPort isolateToMain,
  ) async {
    _autoPersist = init.autoPersist;
    return this;
  }

  final IsolatedSettingsManager _settingsManager;

  late BoolPreference _autoPersist;
  BoolPreference get autoPersist => _autoPersist;

  IsolatedGlobalSettingsManager(this._settingsManager) {
    _settingsManager.updateSettingCommand
        .where((event) => event.key == GlobalSettingsManager.autoPersist.key)
        .map((event) => event as BoolPreference)
        .listen((value) => _autoPersist = value);
  }
}


================================================
FILE: lib/managers/isolateable/isolated_settings_manager.dart
================================================
import 'dart:isolate';

import 'package:yaga/managers/settings_manager_base.dart';
import 'package:yaga/utils/forground_worker/isolateable.dart';
import 'package:yaga/utils/forground_worker/messages/init_msg.dart';

class IsolatedSettingsManager extends SettingsManagerBase
    with Isolateable<IsolatedSettingsManager> {
  @override
  Future<IsolatedSettingsManager> initIsolated(
    InitMsg init,
    SendPort isolateToMain,
  ) async {
    if(init.mapping != null) {
      updateSettingCommand(init.mapping);
    }
    return this;
  }
}


================================================
FILE: lib/managers/isolateable/mapping_manager.dart
================================================
import 'dart:isolate';

import 'package:rx_command/rx_command.dart';
import 'package:yaga/managers/settings_manager_base.dart';
import 'package:yaga/model/mapping_node.dart';
import 'package:yaga/model/preferences/mapping_preference.dart';
import 'package:yaga/services/isolateable/nextcloud_service.dart';
import 'package:yaga/services/isolateable/system_location_service.dart';
import 'package:yaga/utils/forground_worker/isolateable.dart';
import 'package:yaga/utils/forground_worker/messages/init_msg.dart';
import 'package:yaga/utils/logger.dart';
import 'package:yaga/utils/uri_utils.dart';

class MappingManager with Isolateable<MappingManager> {
  final _logger = YagaLogger.getLogger(MappingManager);
  final NextCloudService _nextCloudService;
  final SystemLocationService _systemLocationService;
  final SettingsManagerBase _settingsManager;

  RxCommand<MappingPreference, MappingPreference> mappingUpdatedCommand =
      RxCommand.createSync((param) => param);

  MappingNode root = MappingNode();
  Map<String, MappingPreference> mappings = {};

  MappingManager(this._settingsManager, this._nextCloudService,
      this._systemLocationService) {
    _settingsManager.updateSettingCommand
        .where((event) => event is MappingPreference)
        .listen((event) => handleMappingUpdate(event as MappingPreference));
  }

  @override
  Future<MappingManager> initIsolated(
    InitMsg init,
    SendPort isolateToMain,
  ) async {
    handleMappingUpdate(init.mapping);
    return this;
  }

  //todo: use a bridge and commands to handle incoming msgs in forgraound worker
  // @visibleForTesting
  void handleMappingUpdate(MappingPreference? event) {
    if (event == null) {
      return;
    }
    if (mappings.containsKey(event.key)) {
      _removeFromTree(mappings[event.key]!.remote.value.pathSegments, 0, root);
    }
    //todo: somehow/somewhere the view needs to be refreshed when the mapping changes
    _addMappingPreferenceToTree(event, 0, root);
    mappings[event.key!] = event;

    mappingUpdatedCommand(event);
  }

  void _removeFromTree(List<String> path, int index, MappingNode current) {
    if (index == path.length) {
      current.mapping = null;
      return;
    }

    _removeFromTree(path, index + 1, current.nodes[path[index]]!);
  }

  void _addMappingPreferenceToTree(
      MappingPreference pref, int pathIndex, MappingNode currentNode) {
    if (pathIndex >= pref.remote.value.pathSegments.length - 1) {
      currentNode.mapping = pref;
      return;
    }

    final String pathSegment = pref.remote.value.pathSegments[pathIndex];
    currentNode.nodes.putIfAbsent(pathSegment, () => MappingNode());
    _addMappingPreferenceToTree(
        pref, pathIndex + 1, currentNode.nodes[pathSegment]!);
  }

  MappingPreference _getMappingPrefernce(Uri uri, MappingPreference selected,
      int pathIndex, MappingNode? currentNode) {
    if (currentNode == null) {
      return selected;
    }

    if (uri.pathSegments.length == pathIndex) {
      return currentNode.mapping ?? selected;
    }

    return _getMappingPrefernce(uri, currentNode.mapping ?? selected,
        pathIndex + 1, currentNode.nodes[uri.pathSegments[pathIndex]]);
  }

  MappingPreference _getRootMappingPreference(Uri remoteUri) =>
      _getMappingPrefernce(
          remoteUri,
          _getDefaultMapping(_systemLocationService.internalStorage.uri),
          0,
          root);

  String _appendLocalMappingFolder(String path) {
    return chainPathSegments(
      path,
      _nextCloudService.origin!.userDomain,
    );
  }

  Future<bool> isSyncDelete(Uri remoteUri) async => _getRootMappingPreference(
        remoteUri,
      ).syncDeletes.value;

  Future<Uri> mapToLocalUri(Uri remoteUri) async => _mapUri(
        remoteUri,
        _getRootMappingPreference(remoteUri),
      );

  Future<Uri> mapToTmpUri(Uri remoteUri) async {
    return _mapUri(remoteUri,
        _getDefaultMapping(_systemLocationService.internalCache.uri));
  }

  Uri _mapUri(Uri remoteUri, MappingPreference mapping) {
    _logger.fine("Mapping remoteUri: $remoteUri");
    _logger.fine("Mapping local: ${mapping.local.value}");
    _logger.fine("Mapping remote: ${mapping.remote.value}");
    final Uri mappedUri = fromPathList(uri: mapping.local.value, paths: [
      mapping.local.value.path,
      remoteUri.path.replaceFirst(mapping.remote.value.path, "")
    ]);
    _logger.fine("Mapped uri: $mappedUri");
    //todo: is returning an absolute uri from mapping manager the best option?
    return _systemLocationService.absoluteUriFromInternal(mappedUri);
  }

  //todo: check what we are doing with this
  MappingPreference _getDefaultMapping(Uri root) {
    return MappingPreference(
      (builder) => builder
        ..key = "default"
        ..title = "default"
        ..remote.value = _nextCloudService.origin!.userEncodedDomainRoot
        ..local.value = fromUri(
          uri: root,
          path: _appendLocalMappingFolder(root.path),
        ),
    );
  }

  Future<Uri> mapToRemoteUri(Uri local, Uri remote) async {
    final MappingPreference mapping = _getRootMappingPreference(remote);
    final String relativePath = local.path.replaceFirst(
      mapping == null
          ? _systemLocationService.internalStorage.uri.path
          : mapping.local.value.path,
      "",
    );
    return fromPathList(
        uri: remote, paths: [mapping.remote.value.path, relativePath]);
  }

  Future<Uri> mapTmpToRemoteUri(Uri local, Uri remote) async {
    final Uri defaultInternal = _systemLocationService.internalCache.uri;
    final String relativePath = local.path
        .replaceFirst(_appendLocalMappingFolder(defaultInternal.path), "");
    return fromUri(uri: remote, path: relativePath);
  }
}


================================================
FILE: lib/managers/isolateable/sort_manager.dart
================================================
import 'package:yaga/model/nc_file.dart';
import 'package:yaga/model/sort_config.dart';
import 'package:yaga/model/sorted_category_list.dart';
import 'package:yaga/model/sorted_file_folder_list.dart';
import 'package:yaga/model/sorted_file_list.dart';
import 'package:yaga/utils/forground_worker/isolateable.dart';

class SortManager with Isolateable<SortManager> {
  final Map<
      SortType,
      SortedFileList Function(
    List<NcFile> files,
    List<NcFile> folders,
    SortConfig config,
  )> _sortHandlers = {};
  final Map<SortProperty, void Function(List<NcFile>)> _sortListHandlers = {};
  final Map<SortType, bool Function(SortedFileList, SortedFileList)>
      _mergeSortHandlers = {};
  final Map<SortType, bool Function(SortedFileList, SortedFileList)>
      _mixedMergeHandlers = {};

  SortManager() {
    _sortHandlers[SortType.list] = _sortFileFolders;
    _sortHandlers[SortType.category] = _sortCategory;

    _sortListHandlers[SortProperty.name] = _sortListByName;
    _sortListHandlers[SortProperty.dateModified] = _sortListByDateModified;

    _mergeSortHandlers[SortType.list] =
        (SortedFileList main, SortedFileList addition) {
      if (main is SortedFileFolderList) {
        return _mergeFileFolders(main, addition);
      }
      return false;
    };
    _mergeSortHandlers[SortType.category] =
        (SortedFileList main, SortedFileList addition) {
      if (main is SortedCategoryList && addition is SortedCategoryList) {
        return _mergeCategories(main, addition);
      }
      return false;
    };

    _mixedMergeHandlers[SortType.list] = _mergeSortHandlers[SortType.list]!;
    _mixedMergeHandlers[SortType.category] =
        (SortedFileList main, SortedFileList addition) {
          if(main is SortedCategoryList && addition is SortedFileFolderList) {
            return _mixedMergeCategoryList(main, addition);
          }
          return false;
        };
  }

  bool mergeSort(SortedFileList main, SortedFileList addition) {
    if (main.config.sortType == addition.config.sortType) {
      return _mergeSortHandlers[main.config.sortType]!(main, addition);
    }

    return _mixedMergeHandlers[main.config.sortType]!(main, addition);
  }

  bool _mixedMergeCategoryList(
    SortedCategoryList main,
    SortedFileFolderList addition,
  ) {
    final bool changed = _mergeLists(main.folders, addition.folders, null);
    final SortedCategoryList convertedAddition = sortList(
      addition.files,
      main.config,
    ) as SortedCategoryList;
    return _mergeCategories(main, convertedAddition) || changed;
  }

  bool _mergeFileFolders(
    SortedFileFolderList main,
    SortedFile
Download .txt
gitextract_rmnzmdnm/

├── .fvm/
│   └── fvm_config.json
├── .github/
│   └── workflows/
│       ├── build-android.yml
│       └── publish-play-store.yml
├── .gitignore
├── .metadata
├── .vscode/
│   └── launch.json
├── Gemfile
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android/
│   ├── .gitignore
│   ├── app/
│   │   ├── build.gradle
│   │   └── src/
│   │       ├── debug/
│   │       │   └── AndroidManifest.xml
│   │       ├── dev/
│   │       │   └── res/
│   │       │       └── drawable/
│   │       │           └── ic_launcher_background.xml
│   │       ├── main/
│   │       │   ├── AndroidManifest.xml
│   │       │   ├── kotlin/
│   │       │   │   └── com/
│   │       │   │       └── github/
│   │       │   │           └── vauvenal5/
│   │       │   │               └── yaga/
│   │       │   │                   └── MainActivity.kt
│   │       │   └── res/
│   │       │       ├── drawable/
│   │       │       │   ├── ic_launcher_background.xml
│   │       │       │   ├── ic_launcher_foreground.xml
│   │       │       │   └── launch_background.xml
│   │       │       ├── drawable-anydpi-v24/
│   │       │       │   └── ic_bg_service_small.xml
│   │       │       ├── drawable-v21/
│   │       │       │   └── launch_background.xml
│   │       │       ├── mipmap-anydpi-v26/
│   │       │       │   └── ic_launcher.xml
│   │       │       ├── values/
│   │       │       │   ├── colors.xml
│   │       │       │   └── styles.xml
│   │       │       ├── values-night/
│   │       │       │   └── styles.xml
│   │       │       └── xml/
│   │       │           └── file_paths_yaga.xml
│   │       └── profile/
│   │           └── AndroidManifest.xml
│   ├── build.gradle
│   ├── gradle/
│   │   └── wrapper/
│   │       └── gradle-wrapper.properties
│   ├── gradle.properties
│   ├── settings.gradle
│   └── settings_aar.gradle
├── assets/
│   ├── icon/
│   │   └── readme.md
│   └── news.md
├── build.yaml
├── fastlane/
│   ├── Appfile
│   ├── Fastfile
│   └── metadata/
│       └── android/
│           └── en-US/
│               ├── changelogs/
│               │   ├── 134.txt
│               │   ├── 140.txt
│               │   ├── 141.txt
│               │   ├── 142.txt
│               │   ├── 143.txt
│               │   ├── 144.txt
│               │   ├── 145.txt
│               │   ├── 146.txt
│               │   ├── 147.txt
│               │   ├── 150.txt
│               │   ├── 151.txt
│               │   ├── 1510.txt
│               │   ├── 1511.txt
│               │   ├── 152.txt
│               │   ├── 153.txt
│               │   ├── 154.txt
│               │   ├── 155.txt
│               │   ├── 156.txt
│               │   ├── 157.txt
│               │   ├── 158.txt
│               │   ├── 159.txt
│               │   ├── 1600.txt
│               │   ├── 1601.txt
│               │   ├── 1602.txt
│               │   ├── 1603.txt
│               │   ├── 1700.txt
│               │   ├── 1701.txt
│               │   ├── 1702.txt
│               │   ├── 1703.txt
│               │   ├── 1704.txt
│               │   ├── 1705.txt
│               │   ├── 1800.txt
│               │   ├── 1801.txt
│               │   ├── 1802.txt
│               │   ├── 1900.txt
│               │   ├── 1901.txt
│               │   ├── 2000.txt
│               │   ├── 2001.txt
│               │   ├── 2002.txt
│               │   ├── 2003.txt
│               │   ├── 2100.txt
│               │   ├── 2101.txt
│               │   ├── 2102.txt
│               │   ├── 2103.txt
│               │   ├── 2104.txt
│               │   ├── 2105.txt
│               │   ├── 2200.txt
│               │   ├── 2201.txt
│               │   ├── 2202.txt
│               │   ├── 2203.txt
│               │   ├── 2204.txt
│               │   ├── 2205.txt
│               │   ├── 2206.txt
│               │   ├── 2207.txt
│               │   ├── 2208.txt
│               │   ├── 2300.txt
│               │   ├── 2301.txt
│               │   ├── 2302.txt
│               │   ├── 2303.txt
│               │   ├── 2304.txt
│               │   ├── 2305.txt
│               │   ├── 2306.txt
│               │   ├── 2307.txt
│               │   ├── 2308.txt
│               │   ├── 2309.txt
│               │   ├── 2310.txt
│               │   ├── 2311.txt
│               │   ├── 2312.txt
│               │   ├── 2400.txt
│               │   ├── 2500.txt
│               │   ├── 2501.txt
│               │   ├── 2502.txt
│               │   ├── 2503.txt
│               │   ├── 2600.txt
│               │   ├── 2601.txt
│               │   ├── 2700.txt
│               │   ├── 2701.txt
│               │   ├── 2800.txt
│               │   ├── 2801.txt
│               │   ├── 2802.txt
│               │   ├── 2803.txt
│               │   ├── 2804.txt
│               │   ├── 2805.txt
│               │   ├── 2900.txt
│               │   ├── 2901.txt
│               │   ├── 2902.txt
│               │   ├── 3000.txt
│               │   ├── 3001.txt
│               │   ├── 3002.txt
│               │   ├── 3003.txt
│               │   ├── 4000.txt
│               │   ├── 4001.txt
│               │   ├── 4002.txt
│               │   ├── 4003.txt
│               │   ├── 4004.txt
│               │   ├── 4005.txt
│               │   ├── 4100.txt
│               │   ├── 4200.txt
│               │   ├── 4201.txt
│               │   ├── 4300.txt
│               │   └── 4301.txt
│               ├── full_description.txt
│               ├── short_description.txt
│               └── title.txt
├── ios/
│   ├── .gitignore
│   ├── Flutter/
│   │   ├── AppFrameworkInfo.plist
│   │   ├── Debug.xcconfig
│   │   └── Release.xcconfig
│   ├── Runner/
│   │   ├── AppDelegate.swift
│   │   ├── Assets.xcassets/
│   │   │   ├── AppIcon.appiconset/
│   │   │   │   └── Contents.json
│   │   │   └── LaunchImage.imageset/
│   │   │       ├── Contents.json
│   │   │       └── README.md
│   │   ├── Base.lproj/
│   │   │   ├── LaunchScreen.storyboard
│   │   │   └── Main.storyboard
│   │   ├── Info.plist
│   │   └── Runner-Bridging-Header.h
│   ├── Runner.xcodeproj/
│   │   ├── project.pbxproj
│   │   ├── project.xcworkspace/
│   │   │   └── contents.xcworkspacedata
│   │   └── xcshareddata/
│   │       └── xcschemes/
│   │           └── Runner.xcscheme
│   └── Runner.xcworkspace/
│       └── contents.xcworkspacedata
├── lib/
│   ├── main.dart
│   ├── managers/
│   │   ├── file_manager/
│   │   │   ├── file_manager.dart
│   │   │   ├── file_manager_base.dart
│   │   │   └── isolateable/
│   │   │       ├── file_action_manager.dart
│   │   │       └── isolated_file_manager.dart
│   │   ├── file_service_manager/
│   │   │   ├── favorite_not_supported_mixin.dart
│   │   │   ├── file_service_manager.dart
│   │   │   ├── isolateable/
│   │   │   │   ├── local_file_manager.dart
│   │   │   │   ├── nextcloud_background_file_manager.dart
│   │   │   │   └── nextcloud_file_manger.dart
│   │   │   └── media_file_manager.dart
│   │   ├── global_settings_manager.dart
│   │   ├── isolateable/
│   │   │   ├── isolated_global_settings_manager.dart
│   │   │   ├── isolated_settings_manager.dart
│   │   │   ├── mapping_manager.dart
│   │   │   ├── sort_manager.dart
│   │   │   └── sync_manager.dart
│   │   ├── navigation_manager.dart
│   │   ├── nextcloud_manager.dart
│   │   ├── settings_manager.dart
│   │   ├── settings_manager_base.dart
│   │   ├── tab_manager.dart
│   │   └── widget_local/
│   │       └── file_list_local_manager.dart
│   ├── model/
│   │   ├── category_view_config.dart
│   │   ├── fetched_file.dart
│   │   ├── general_view_config.dart
│   │   ├── local_file.dart
│   │   ├── mapping_node.dart
│   │   ├── nc_file.dart
│   │   ├── nc_login_data.dart
│   │   ├── nc_origin.dart
│   │   ├── preferences/
│   │   │   ├── action_preference.dart
│   │   │   ├── bool_preference.dart
│   │   │   ├── choice_preference.dart
│   │   │   ├── complex_preference.dart
│   │   │   ├── int_preference.dart
│   │   │   ├── mapping_preference.dart
│   │   │   ├── preference.dart
│   │   │   ├── section_preference.dart
│   │   │   ├── serializable_preference.dart
│   │   │   ├── serializers/
│   │   │   │   ├── base_type_serializer.dart
│   │   │   │   ├── int_serializer.dart
│   │   │   │   └── uri_serializer.dart
│   │   │   ├── string_list_preference.dart
│   │   │   ├── string_preference.dart
│   │   │   ├── uri_preference.dart
│   │   │   └── value_preference.dart
│   │   ├── preview_fetch_meta.dart
│   │   ├── route_args/
│   │   │   ├── choice_selector_screen_arguments.dart
│   │   │   ├── directory_navigation_screen_arguments.dart
│   │   │   ├── focus_view_arguments.dart
│   │   │   ├── image_screen_arguments.dart
│   │   │   ├── navigatable_screen_arguments.dart
│   │   │   ├── path_selector_screen_arguments.dart
│   │   │   └── settings_screen_arguments.dart
│   │   ├── sort_config.dart
│   │   ├── sorted_category_list.dart
│   │   ├── sorted_file_folder_list.dart
│   │   ├── sorted_file_list.dart
│   │   ├── sync_file.dart
│   │   └── system_location.dart
│   ├── services/
│   │   ├── file_provider_service.dart
│   │   ├── intent_service.dart
│   │   ├── isolateable/
│   │   │   ├── local_file_service.dart
│   │   │   ├── nextcloud_service.dart
│   │   │   └── system_location_service.dart
│   │   ├── media_file_service.dart
│   │   ├── name_exchange_service.dart
│   │   ├── secure_storage_service.dart
│   │   ├── service.dart
│   │   ├── shared_preferences_service.dart
│   │   └── uri_name_resolver.dart
│   ├── utils/
│   │   ├── background_worker/
│   │   │   ├── background_channel.dart
│   │   │   ├── background_commands.dart
│   │   │   ├── background_worker.dart
│   │   │   ├── json_convertable.dart
│   │   │   ├── messages/
│   │   │   │   ├── background_downloaded_request.dart
│   │   │   │   └── background_init_msg.dart
│   │   │   └── work_tracker.dart
│   │   ├── download_file_image.dart
│   │   ├── forground_worker/
│   │   │   ├── bridges/
│   │   │   │   ├── file_manager_bridge.dart
│   │   │   │   ├── nextcloud_manager_bridge.dart
│   │   │   │   └── settings_manager_bridge.dart
│   │   │   ├── foreground_worker.dart
│   │   │   ├── handlers/
│   │   │   │   ├── file_list_request_handler.dart
│   │   │   │   ├── nextcloud_file_manager_handler.dart
│   │   │   │   └── user_handler.dart
│   │   │   ├── isolate_handler_regestry.dart
│   │   │   ├── isolate_msg_handler.dart
│   │   │   ├── isolateable.dart
│   │   │   └── messages/
│   │   │       ├── download_file_request.dart
│   │   │       ├── download_preview_complete.dart
│   │   │       ├── download_preview_request.dart
│   │   │       ├── file_list_done.dart
│   │   │       ├── file_list_message.dart
│   │   │       ├── file_list_request.dart
│   │   │       ├── file_list_response.dart
│   │   │       ├── file_update_msg.dart
│   │   │       ├── files_action/
│   │   │       │   ├── delete_files_request.dart
│   │   │       │   ├── destination_action_files_request.dart
│   │   │       │   ├── favorite_files_request.dart
│   │   │       │   ├── files_action_done.dart
│   │   │       │   └── files_action_request.dart
│   │   │       ├── flush_logs_message.dart
│   │   │       ├── image_update_msg.dart
│   │   │       ├── init_msg.dart
│   │   │       ├── login_state_msg.dart
│   │   │       ├── merge_sort_done.dart
│   │   │       ├── merge_sort_request.dart
│   │   │       ├── message.dart
│   │   │       ├── preference_msg.dart
│   │   │       ├── single_file_message.dart
│   │   │       └── sort_request.dart
│   │   ├── log_error_file_handler.dart
│   │   ├── logger.dart
│   │   ├── navigation/
│   │   │   ├── yaga_route_information_parser.dart
│   │   │   ├── yaga_router.dart
│   │   │   └── yaga_router_delegate.dart
│   │   ├── ncfile_stream_extensions.dart
│   │   ├── nextcloud_client_factory.dart
│   │   ├── nextcloud_colors.dart
│   │   ├── self_signed_cert_handler.dart
│   │   ├── service_locator.dart
│   │   └── uri_utils.dart
│   └── views/
│       ├── screens/
│       │   ├── browse_view.dart
│       │   ├── category_view_screen.dart
│       │   ├── choice_selector_screen.dart
│       │   ├── directory_screen.dart
│       │   ├── directory_traversal_screen.dart
│       │   ├── favorites_view.dart
│       │   ├── focus_view.dart
│       │   ├── home_view.dart
│       │   ├── image_screen.dart
│       │   ├── nc_address_screen.dart
│       │   ├── nc_login_screen.dart
│       │   ├── path_selector_screen.dart
│       │   ├── settings_screen.dart
│       │   ├── splash_screen.dart
│       │   └── yaga_home_screen.dart
│       └── widgets/
│           ├── action_danger_dialog.dart
│           ├── address_form_advanced.dart
│           ├── address_form_simple.dart
│           ├── avatar_widget.dart
│           ├── circle_avatar_icon.dart
│           ├── favorite_icon.dart
│           ├── folder_icon.dart
│           ├── image_search.dart
│           ├── image_view_container.dart
│           ├── image_views/
│           │   ├── category_view.dart
│           │   ├── category_view_exp.dart
│           │   ├── nc_grid_view.dart
│           │   ├── nc_list_view.dart
│           │   └── utils/
│           │       ├── grid_delegate.dart
│           │       └── view_configuration.dart
│           ├── list_menu_entry.dart
│           ├── path_widget.dart
│           ├── preferences/
│           │   ├── action_preference_widget.dart
│           │   ├── bool_preference_widget.dart
│           │   ├── choice_preference_widget.dart
│           │   ├── int_preference_widget.dart
│           │   ├── mapping_preference_widget.dart
│           │   ├── preference_list_tile_widget.dart
│           │   ├── section_preference_widget.dart
│           │   ├── string_preference_widget.dart
│           │   └── uri_preference_widget.dart
│           ├── remote_folder_widget.dart
│           ├── remote_image_widget.dart
│           ├── search_icon_button.dart
│           ├── select_cancel_bottom_navigation.dart
│           ├── selection_action_cancel_dialog.dart
│           ├── selection_app_bar.dart
│           ├── selection_popup_menu_button.dart
│           ├── selection_select_all.dart
│           ├── selection_title.dart
│           ├── selection_will_pop_scope.dart
│           ├── yaga_about_dialog.dart
│           ├── yaga_bottom_nav_bar.dart
│           ├── yaga_drawer.dart
│           └── yaga_popup_menu_button.dart
├── linux/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── flutter/
│   │   ├── CMakeLists.txt
│   │   ├── generated_plugin_registrant.cc
│   │   ├── generated_plugin_registrant.h
│   │   └── generated_plugins.cmake
│   ├── main.cc
│   ├── my_application.cc
│   └── my_application.h
├── pubspec.yaml
└── test/
    ├── managers/
    │   └── isolateable/
    │       └── mapping_manager_test.dart
    ├── utils/
    │   └── uri_utils_test.dart
    └── widget_test.dart
Download .txt
SYMBOL INDEX (687 symbols across 185 files)

FILE: lib/main.dart
  function main (line 15) | Future<void> main()
  class MyApp (line 32) | class MyApp extends StatelessWidget {
    method build (line 34) | Widget build(BuildContext context)

FILE: lib/managers/file_manager/file_manager.dart
  class FileManager (line 22) | class FileManager extends FileManagerBase {
    method listFiles (line 77) | Stream<NcFile> listFiles(Uri uri, {bool recursive = false})
    method _handleLocalDeleteRequest (line 82) | void _handleLocalDeleteRequest(DeleteFilesRequest request)
    method _handleFilesAction (line 92) | void _handleFilesAction(FilesActionRequest request)
    method _handleDownload (line 102) | void _handleDownload(DownloadFileRequest request)

FILE: lib/managers/file_manager/file_manager_base.dart
  class FileManagerBase (line 12) | abstract class FileManagerBase {
    method registerFileManager (line 33) | void registerFileManager(FileServiceManager fileServiceManager)
    method listFiles (line 38) | Stream<NcFile> listFiles(Uri uri, {bool recursive = false})

FILE: lib/managers/file_manager/isolateable/file_action_manager.dart
  class FileActionManager (line 23) | class FileActionManager extends FileManagerBase {
    method initBackground (line 27) | Future<FileActionManager> initBackground(
    method downloadFile (line 37) | Future<Uint8List> downloadFile(NcFile file, {bool persist = false})
    method deleteFiles (line 51) | Future<void> deleteFiles(DeleteFilesRequest message)
    method copyMoveRequest (line 56) | Future<void> copyMoveRequest(DestinationActionFilesRequest message)
    method _copyFiles (line 59) | Future<void> _copyFiles(DestinationActionFilesRequest message)
    method _moveFiles (line 69) | Future<void> _moveFiles(DestinationActionFilesRequest message)
    method toggleFavorites (line 83) | Future<void> toggleFavorites(FavoriteFilesRequest message)
    method _destinationFilter (line 89) | bool _destinationFilter(NcFile file, Uri destination)
    method _cancelableAction (line 91) | Future<void> _cancelableAction(
    method listFiles (line 114) | Stream<NcFile> listFiles(Uri uri, {bool recursive = false})

FILE: lib/managers/file_manager/isolateable/isolated_file_manager.dart
  class IsolatedFileManager (line 18) | class IsolatedFileManager extends FileActionManager
    method initIsolated (line 28) | Future<IsolatedFileManager> initIsolated(
    method listFileLists (line 44) | Future<void> listFileLists(
    method listFiles (line 76) | Stream<NcFile> listFiles(Uri uri, {bool recursive = false})

FILE: lib/managers/file_service_manager/favorite_not_supported_mixin.dart
  function toggleFavorite (line 4) | Future<NcFile> toggleFavorite(NcFile file,)

FILE: lib/managers/file_service_manager/file_service_manager.dart
  class FileServiceManager (line 5) | abstract class FileServiceManager {
    method listFiles (line 8) | Stream<NcFile> listFiles(Uri uri, {bool recursive = false})
    method listFileList (line 9) | Stream<List<NcFile>> listFileList(Uri uri, {bool recursive = false, bo...
    method deleteFile (line 10) | Future<NcFile> deleteFile(NcFile file, {required bool local})
    method copyFile (line 11) | Future<NcFile> copyFile(NcFile file, Uri destination, {bool overwrite ...
    method moveFile (line 12) | Future<NcFile> moveFile(NcFile file, Uri destination, {bool overwrite ...
    method toggleFavorite (line 13) | Future<NcFile> toggleFavorite(NcFile file,)

FILE: lib/managers/file_service_manager/isolateable/local_file_manager.dart
  class LocalFileManager (line 18) | class LocalFileManager
    method listFiles (line 36) | Stream<NcFile> listFiles(
    method listFileList (line 46) | Stream<List<NcFile>> listFileList(
    method _listLocalFiles (line 54) | Stream<NcFile> _listLocalFiles(Uri uri, {bool favorites = false})
    method _createFile (line 69) | NcFile _createFile(Uri uri, FileSystemEntity event)
    method deleteFile (line 91) | Future<NcFile> deleteFile(NcFile file, {required bool local})
    method copyFile (line 98) | Future<NcFile> copyFile(NcFile file, Uri destination,
    method moveFile (line 109) | Future<NcFile> moveFile(NcFile file, Uri destination,

FILE: lib/managers/file_service_manager/isolateable/nextcloud_background_file_manager.dart
  class NextcloudBackgroundFileManager (line 10) | class NextcloudBackgroundFileManager implements FileServiceManager {
    method initBackground (line 21) | Future<NextcloudBackgroundFileManager> initBackground()
    method deleteFile (line 29) | Future<NcFile> deleteFile(NcFile file, {required bool local})
    method deleteLocalFile (line 47) | Future<NcFile> deleteLocalFile(NcFile file)
    method listFileList (line 55) | Stream<List<NcFile>> listFileList(Uri uri, {bool recursive = false, bo...
    method listFiles (line 61) | Stream<NcFile> listFiles(Uri uri, {bool recursive = false})
    method copyFile (line 67) | Future<NcFile> copyFile(NcFile file, Uri destination,
    method moveFile (line 72) | Future<NcFile> moveFile(NcFile file, Uri destination,
    method toggleFavorite (line 87) | Future<NcFile> toggleFavorite(NcFile file)

FILE: lib/managers/file_service_manager/isolateable/nextcloud_file_manger.dart
  class NextcloudFileManager (line 20) | class NextcloudFileManager extends NextcloudBackgroundFileManager
    method listFiles (line 142) | Stream<NcFile> listFiles(
    method listFileList (line 154) | Stream<List<NcFile>> listFileList(
    method _listNextcloudFiles (line 169) | Stream<NcFile> _listNextcloudFiles(Uri uri, bool recursive, {bool favo...
    method _listNextcloudFilesUpstream (line 176) | Stream<NcFile> _listNextcloudFilesUpstream(Uri uri, {bool favorites = ...
    method _listLocalFileList (line 186) | Stream<List<NcFile>> _listLocalFileList(Uri uri, bool recursive)
    method _listLocalFiles (line 197) | Stream<NcFile> _listLocalFiles(Uri uri, bool recursive)
    method _listTmpFiles (line 213) | Stream<NcFile> _listTmpFiles(Uri uri, bool recursive)
    method _listFromLocalFileManager (line 230) | Stream<NcFile> _listFromLocalFileManager(
    method _finishSync (line 241) | Future _finishSync(Uri uri)
    method _createLocalFile (line 253) | Future<LocalFile> _createLocalFile(Uri uri)
    method _createTmpFile (line 258) | Future<LocalFile> _createTmpFile(Uri uri)

FILE: lib/managers/file_service_manager/media_file_manager.dart
  class MediaFileManager (line 9) | class MediaFileManager with FavoriteNotSupportedMixin implements FileSer...
    method deleteFile (line 15) | Future<NcFile> deleteFile(NcFile file, {required bool local})
    method deleteFiles (line 19) | Future<List<NcFile>> deleteFiles(List<NcFile> files)
    method listFileList (line 24) | Stream<List<NcFile>> listFileList(Uri uri, {bool recursive = false, bo...
    method listFiles (line 30) | Stream<NcFile> listFiles(Uri uri, {bool recursive = false})
    method copyFile (line 39) | Future<NcFile> copyFile(NcFile file, Uri destination,
    method moveFile (line 46) | Future<NcFile> moveFile(NcFile file, Uri destination,
    method isRelevant (line 52) | bool isRelevant(String scheme)

FILE: lib/managers/global_settings_manager.dart
  class GlobalSettingsManager (line 20) | class GlobalSettingsManager {
    method init (line 136) | Future<GlobalSettingsManager> init()
    method getDefaultMappingPreference (line 154) | MappingPreference getDefaultMappingPreference({
    method _handleLoginState (line 170) | void _handleLoginState(NextCloudLoginData loginData)

FILE: lib/managers/isolateable/isolated_global_settings_manager.dart
  class IsolatedGlobalSettingsManager (line 9) | class IsolatedGlobalSettingsManager
    method initIsolated (line 12) | Future<IsolatedGlobalSettingsManager> initIsolated(

FILE: lib/managers/isolateable/isolated_settings_manager.dart
  class IsolatedSettingsManager (line 7) | class IsolatedSettingsManager extends SettingsManagerBase
    method initIsolated (line 10) | Future<IsolatedSettingsManager> initIsolated(

FILE: lib/managers/isolateable/mapping_manager.dart
  class MappingManager (line 14) | class MappingManager with Isolateable<MappingManager> {
    method initIsolated (line 34) | Future<MappingManager> initIsolated(
    method handleMappingUpdate (line 44) | void handleMappingUpdate(MappingPreference? event)
    method _removeFromTree (line 58) | void _removeFromTree(List<String> path, int index, MappingNode current)
    method _addMappingPreferenceToTree (line 67) | void _addMappingPreferenceToTree(
    method _getMappingPrefernce (line 80) | MappingPreference _getMappingPrefernce(Uri uri, MappingPreference sele...
    method _getRootMappingPreference (line 94) | MappingPreference _getRootMappingPreference(Uri remoteUri)
    method _appendLocalMappingFolder (line 101) | String _appendLocalMappingFolder(String path)
    method isSyncDelete (line 108) | Future<bool> isSyncDelete(Uri remoteUri)
    method mapToLocalUri (line 112) | Future<Uri> mapToLocalUri(Uri remoteUri)
    method mapToTmpUri (line 117) | Future<Uri> mapToTmpUri(Uri remoteUri)
    method _mapUri (line 122) | Uri _mapUri(Uri remoteUri, MappingPreference mapping)
    method _getDefaultMapping (line 136) | MappingPreference _getDefaultMapping(Uri root)
    method mapToRemoteUri (line 149) | Future<Uri> mapToRemoteUri(Uri local, Uri remote)
    method mapTmpToRemoteUri (line 161) | Future<Uri> mapTmpToRemoteUri(Uri local, Uri remote)

FILE: lib/managers/isolateable/sort_manager.dart
  class SortManager (line 8) | class SortManager with Isolateable<SortManager> {
    method mergeSort (line 54) | bool mergeSort(SortedFileList main, SortedFileList addition)
    method _mixedMergeCategoryList (line 62) | bool _mixedMergeCategoryList(
    method _mergeFileFolders (line 74) | bool _mergeFileFolders(
    method _mergeCategories (line 92) | bool _mergeCategories(SortedCategoryList main, SortedCategoryList addi...
    method _mergeLists (line 119) | bool _mergeLists(
    method sortList (line 136) | SortedFileList sortList(List<NcFile> files, SortConfig config)
    method _sortFileFolders (line 151) | SortedFileFolderList _sortFileFolders(
    method _sortCategory (line 162) | SortedCategoryList _sortCategory(
    method _sortListByDateModified (line 190) | void _sortListByDateModified(List<NcFile> list)
    method _sortListByName (line 194) | void _sortListByName(List<NcFile> list)
    method _sortCategories (line 198) | void _sortCategories(List<String> categories)

FILE: lib/managers/isolateable/sync_manager.dart
  class SyncManager (line 6) | class SyncManager with Isolateable<SyncManager> {
    method addUri (line 10) | Future<void> addUri(Uri key)
    method _addFile (line 14) | SyncFile? _addFile(Uri key, NcFile file)
    method addFile (line 18) | Future<void> addFile(Uri key, NcFile file)
    method addRemoteFile (line 23) | Future<void> addRemoteFile(Uri key, NcFile file)
    method syncUri (line 28) | Future<List<NcFile>> syncUri(Uri key)
    method removeUri (line 38) | Future<void> removeUri(Uri key)

FILE: lib/managers/navigation_manager.dart
  class NavigationManager (line 4) | class NavigationManager {

FILE: lib/managers/nextcloud_manager.dart
  class NextCloudManager (line 14) | class NextCloudManager {
    method _handleAvatarUpdate (line 78) | Future<File> _handleAvatarUpdate()
    method init (line 104) | Future<NextCloudManager> init()
    method _createLoginDataPersisStream (line 134) | Stream<NextCloudLoginData> _createLoginDataPersisStream(

FILE: lib/managers/settings_manager.dart
  type PrefFunction (line 12) | typedef PrefFunction = T Function<T extends ValuePreference>(T);
  class SettingsManager (line 14) | class SettingsManager extends SettingsManagerBase {
    method _checkPersistResult (line 91) | void _checkPersistResult<T extends Preference>(

FILE: lib/managers/settings_manager_base.dart
  class SettingsManagerBase (line 4) | abstract class SettingsManagerBase {

FILE: lib/managers/tab_manager.dart
  class TabManager (line 4) | class TabManager {

FILE: lib/managers/widget_local/file_list_local_manager.dart
  class FileListLocalManager (line 35) | class FileListLocalManager {
    method dispose (line 95) | void dispose()
    method updateFilesAndFolders (line 103) | void updateFilesAndFolders()
    method _showNewFiles (line 161) | void _showNewFiles(SortedFileList files)
    method _sendMergeSortRequest (line 175) | void _sendMergeSortRequest(MergeSortRequest request)
    method setSortConfig (line 178) | bool setSortConfig(SortConfig sortConfig)
    method _removeFileFromList (line 202) | void _removeFileFromList(NcFile file)
    method refetch (line 216) | void refetch({Uri? uri})
    method initState (line 221) | void initState()
    method removeAll (line 276) | Future<void> removeAll()
    method isAllSelected (line 281) | bool isAllSelected()
    method toggleSelect (line 296) | Future<void> toggleSelect()
    method deselectAll (line 298) | Future<void> deselectAll()
    method selectAll (line 308) | Future<void> selectAll()
    method deleteSelected (line 330) | Future<bool> deleteSelected({required bool local})
    method favoriteSelected (line 340) | Future<bool> favoriteSelected()
    method copySelected (line 349) | Future<bool> copySelected(Uri destination, {bool overwrite = false})
    method moveSelected (line 360) | Future<bool> moveSelected(Uri destination, {bool overwrite = false})
    method _executeActionForSelection (line 372) | Future<bool> _executeActionForSelection(FilesActionRequest action)
    method cancelSelectionAction (line 391) | void cancelSelectionAction()

FILE: lib/model/category_view_config.dart
  class CategoryViewConfig (line 4) | class CategoryViewConfig {

FILE: lib/model/fetched_file.dart
  class FetchedFile (line 6) | class FetchedFile extends Message {

FILE: lib/model/general_view_config.dart
  class GeneralViewConfig (line 6) | class GeneralViewConfig {

FILE: lib/model/local_file.dart
  class LocalFile (line 3) | class LocalFile {
    method toJson (line 18) | Map<String, dynamic> toJson()

FILE: lib/model/mapping_node.dart
  class MappingNode (line 3) | class MappingNode {

FILE: lib/model/nc_file.dart
  class NcFile (line 5) | class NcFile {
    method toJson (line 85) | Map<String, dynamic> toJson()

FILE: lib/model/nc_login_data.dart
  class NextCloudLoginDataKeys (line 1) | class NextCloudLoginDataKeys {
  class NextCloudLoginData (line 9) | class NextCloudLoginData {
    method toJson (line 34) | Map<String, dynamic> toJson()

FILE: lib/model/nc_origin.dart
  class NcOrigin (line 1) | class NcOrigin {

FILE: lib/model/preferences/action_preference.dart
  class ActionPreference (line 8) | abstract class ActionPreference
    method _initializeBuilder (line 12) | void _initializeBuilder(ActionPreferenceBuilder b)

FILE: lib/model/preferences/bool_preference.dart
  class BoolPreference (line 10) | abstract class BoolPreference
    method _initializeBuilder (line 15) | void _initializeBuilder(BoolPreferenceBuilder b)

FILE: lib/model/preferences/choice_preference.dart
  class ChoicePreference (line 10) | abstract class ChoicePreference
    method _initializeBuilder (line 17) | void _initializeBuilder(ChoicePreferenceBuilder b)

FILE: lib/model/preferences/complex_preference.dart
  class ComplexPreference (line 11) | @BuiltValue(instantiable: false)
    method initBuilder (line 15) | T initBuilder<T extends ComplexPreferenceBuilder>(T b)
    method rebuild (line 19) | ComplexPreference rebuild(void Function(ComplexPreferenceBuilder) upda...
    method toBuilder (line 21) | ComplexPreferenceBuilder toBuilder()

FILE: lib/model/preferences/int_preference.dart
  class IntPreference (line 11) | abstract class IntPreference
    method _initializeBuilder (line 16) | void _initializeBuilder(IntPreferenceBuilder b)

FILE: lib/model/preferences/mapping_preference.dart
  class MappingPreference (line 13) | abstract class MappingPreference
    method _initializeBuilder (line 23) | void _initializeBuilder(MappingPreferenceBuilder b)
    method _finalizeBuilder (line 37) | void _finalizeBuilder(MappingPreferenceBuilder b)

FILE: lib/model/preferences/preference.dart
  class Preference (line 8) | @BuiltValue(instantiable: false)
    method prefixKey (line 14) | String prefixKey(String prefix, String key)
    method initBuilder (line 18) | PreferenceBuilder initBuilder<T extends PreferenceBuilder>(
    method rebuild (line 22) | Preference rebuild(void Function(PreferenceBuilder) updates)
    method toBuilder (line 23) | PreferenceBuilder toBuilder()

FILE: lib/model/preferences/section_preference.dart
  class SectionPreference (line 9) | abstract class SectionPreference
    method prepareKey (line 11) | String prepareKey(String keyPart)
    method _initializeBuilder (line 13) | void _initializeBuilder(SectionPreferenceBuilder b)

FILE: lib/model/preferences/serializable_preference.dart
  class SerializablePreference (line 9) | @BuiltValue(instantiable: false)
    method initBuilder (line 14) | T initBuilder<T extends ValuePreferenceBuilder>(
    method serialize (line 18) | SerializableType serialize()
    method deserialize (line 19) | PreferenceType deserialize(SerializableType? value)
    method rebuild (line 22) | PreferenceType rebuild(
    method toBuilder (line 28) | SerializablePreferenceBuilder<SerializableType, ValueType, PreferenceT...

FILE: lib/model/preferences/serializers/base_type_serializer.dart
  function serialize (line 7) | T serialize()
  function deserialize (line 12) | P deserialize(T? value)

FILE: lib/model/preferences/serializers/int_serializer.dart
  function serialize (line 7) | String serialize()
  function deserialize (line 12) | IntPreference deserialize(String? value)

FILE: lib/model/preferences/serializers/uri_serializer.dart
  function serialize (line 7) | String serialize()
  function deserialize (line 12) | UriPreference deserialize(String? value)

FILE: lib/model/preferences/string_list_preference.dart
  class StringListPreference (line 10) | abstract class StringListPreference
    method _initializeBuilder (line 17) | void _initializeBuilder(StringListPreferenceBuilder b)

FILE: lib/model/preferences/string_preference.dart
  class StringPreference (line 10) | abstract class StringPreference
    method _initializeBuilder (line 15) | void _initializeBuilder(StringPreferenceBuilder b)

FILE: lib/model/preferences/uri_preference.dart
  class UriPreference (line 10) | abstract class UriPreference
    method _initializeBuilder (line 18) | void _initializeBuilder(UriPreferenceBuilder b)

FILE: lib/model/preferences/value_preference.dart
  class ValuePreference (line 9) | @BuiltValue(instantiable: false)
    method initBuilder (line 14) | T initBuilder<T extends ValuePreferenceBuilder>(
    method rebuild (line 19) | ValuePreference<T> rebuild(void Function(ValuePreferenceBuilder<T>) up...
    method toBuilder (line 21) | ValuePreferenceBuilder<T> toBuilder()

FILE: lib/model/preview_fetch_meta.dart
  class PreviewFetchMeta (line 3) | class PreviewFetchMeta {

FILE: lib/model/route_args/choice_selector_screen_arguments.dart
  class ChoiceSelectorScreenArguments (line 3) | class ChoiceSelectorScreenArguments {

FILE: lib/model/route_args/directory_navigation_screen_arguments.dart
  class DirectoryNavigationScreenArguments (line 5) | class DirectoryNavigationScreenArguments extends NavigatableScreenArgume...

FILE: lib/model/route_args/focus_view_arguments.dart
  class FocusViewArguments (line 3) | class FocusViewArguments {

FILE: lib/model/route_args/image_screen_arguments.dart
  class ImageScreenArguments (line 4) | class ImageScreenArguments {

FILE: lib/model/route_args/navigatable_screen_arguments.dart
  class NavigatableScreenArguments (line 1) | class NavigatableScreenArguments {

FILE: lib/model/route_args/path_selector_screen_arguments.dart
  class PathSelectorScreenArguments (line 4) | class PathSelectorScreenArguments extends NavigatableScreenArguments {

FILE: lib/model/route_args/settings_screen_arguments.dart
  class SettingsScreenArguments (line 4) | class SettingsScreenArguments {

FILE: lib/model/sort_config.dart
  type SortProperty (line 3) | enum SortProperty {
  type SortType (line 8) | enum SortType {
  class SortConfig (line 13) | class SortConfig extends Equatable {

FILE: lib/model/sorted_category_list.dart
  class SortedCategoryList (line 5) | class SortedCategoryList extends SortedFileList<SortedCategoryList> {
    method createKey (line 18) | String createKey(NcFile file)
    method remove (line 28) | bool remove(NcFile file)
    method removeAll (line 61) | void removeAll()
    method applyFilter (line 68) | SortedFileList<SortedCategoryList> applyFilter(

FILE: lib/model/sorted_file_folder_list.dart
  class SortedFileFolderList (line 5) | class SortedFileFolderList extends SortedFileList<SortedFileFolderList> {
    method remove (line 23) | bool remove(NcFile file)
    method removeAll (line 40) | void removeAll()
    method applyFilter (line 46) | SortedFileList<SortedFileFolderList> applyFilter(

FILE: lib/model/sorted_file_list.dart
  class SortedFileList (line 4) | abstract class SortedFileList<T extends SortedFileList<T>> {
    method remove (line 14) | bool remove(NcFile file)
    method removeAll (line 16) | void removeAll()
    method applyFilter (line 18) | SortedFileList<T> applyFilter(bool Function(NcFile) filter)

FILE: lib/model/sync_file.dart
  class SyncFile (line 3) | class SyncFile {

FILE: lib/model/system_location.dart
  class SystemLocation (line 5) | class SystemLocation {

FILE: lib/services/file_provider_service.dart
  class FileProviderService (line 4) | abstract class FileProviderService<T extends FileProviderService<T>>
    method list (line 6) | Stream<NcFile> list(Uri dir, bool favorites)

FILE: lib/services/intent_service.dart
  class IntentService (line 8) | class IntentService extends Service<IntentService> {
    method init (line 13) | Future<IntentService> init()
    method getCachedIntentAction (line 18) | String getCachedIntentAction()
    method getIntentAction (line 20) | Future<String> getIntentAction()
    method setSelectedFile (line 26) | Future<bool> setSelectedFile(NcFile file)
    method attachData (line 35) | Future attachData(NcFile file)

FILE: lib/services/isolateable/local_file_service.dart
  class LocalFileService (line 13) | class LocalFileService extends Service<LocalFileService>
    method init (line 18) | Future<LocalFileService> init()
    method initIsolated (line 29) | Future<LocalFileService> initIsolated(
    method initBackgroundable (line 37) | Future<LocalFileService> initBackgroundable()
    method createFile (line 42) | Future<File> createFile({
    method deleteFile (line 57) | void deleteFile(FileSystemEntity file)
    method list (line 66) | Stream<FileSystemEntity> list(Directory directory)
    method _checkMimeType (line 76) | bool _checkMimeType(String path)
    method copyFile (line 81) | void copyFile(NcFile file, Uri destination, {bool overwrite = false})
    method moveFile (line 87) | void moveFile(NcFile file, Uri destination, {bool overwrite = false})
    method _checkExists (line 93) | String _checkExists(Uri destination, String name, bool overwrite)

FILE: lib/services/isolateable/nextcloud_service.dart
  class NextCloudService (line 19) | class NextCloudService
    method initIsolated (line 32) | Future<NextCloudService> initIsolated(
    method initBackgroundable (line 42) | Future<NextCloudService> initBackgroundable(
    method login (line 51) | Future<NcOrigin> login(NextCloudLoginData loginData)
    method logout (line 83) | void logout()
    method isLoggedIn (line 88) | bool isLoggedIn()
    method _prepUriForLib (line 90) | PathUri _prepUriForLib(Uri path)
    method _listOrReport (line 92) | Stream<WebDavFile>? _listOrReport(Uri dir, bool favorite)
    method list (line 126) | Stream<NcFile> list(Uri dir, bool favorite)
    method getAvatar (line 176) | Future<Uint8List> getAvatar()
    method getPreview (line 183) | Future<Uint8List> getPreview(Uri file)
    method downloadImage (line 204) | Future<Uint8List> downloadImage(Uri file)
    method isUriOfService (line 211) | bool isUriOfService(Uri uri)
    method deleteFile (line 213) | Future<NcFile> deleteFile(NcFile file)
    method copyFile (line 220) | Future<NcFile> copyFile(NcFile file, Uri destination,
    method moveFile (line 232) | Future<NcFile> moveFile(NcFile file, Uri destination,
    method _logAndRethrow (line 244) | void _logAndRethrow(Object err)
    method toggleFavorite (line 249) | Future<NcFile> toggleFavorite(NcFile file)
    method _logError (line 259) | void _logError(dynamic err, {StackTrace? stacktrace})

FILE: lib/services/isolateable/system_location_service.dart
  class SystemLocationService (line 11) | class SystemLocationService extends Service<SystemLocationService>
    method init (line 26) | Future<SystemLocationService> init()
    method getCacheDir (line 35) | Future<Directory> getCacheDir()
    method getExternal (line 36) | Future<Directory?> getExternal()
    method getExternals (line 37) | Future<List<Directory>?> getExternals()
    method initIsolated (line 45) | Future<SystemLocationService> initIsolated(
    method _init (line 53) | void _init(
    method internalUriFromAbsolute (line 81) | Uri internalUriFromAbsolute(Uri absolute)
    method _internalUriNormalizePath (line 100) | String _internalUriNormalizePath(Uri absolute, SystemLocation location)
    method absoluteUriFromInternal (line 104) | Uri absoluteUriFromInternal(Uri internal)

FILE: lib/services/media_file_service.dart
  class MediaFileService (line 13) | class MediaFileService extends Service<MediaFileService>
    method listFiles (line 21) | Stream<NcFile> listFiles(Uri uri)
    method _fetchAlbums (line 36) | Stream<NcFile> _fetchAlbums(Uri uri)
    method _fetchAlbum (line 51) | Stream<NcFile> _fetchAlbum(Uri uri)
    method _createLocalFile (line 81) | Future<LocalFile> _createLocalFile(Uri uri)
    method getHumanReadableForm (line 88) | Uri getHumanReadableForm(Uri uri)
    method deleteFile (line 101) | Future<List<NcFile>> deleteFile(List<NcFile> files)

FILE: lib/services/name_exchange_service.dart
  class NameExchangeService (line 5) | class NameExchangeService extends Service<NameExchangeService> {
    method convertUriToHumanReadableUri (line 13) | Uri convertUriToHumanReadableUri(Uri uri)

FILE: lib/services/secure_storage_service.dart
  class SecureStorageService (line 5) | class SecureStorageService extends Service<SecureStorageService> {
    method savePreference (line 8) | Future<void> savePreference(String key, String value)
    method loadPreference (line 12) | Future<String> loadPreference(String key)
    method deletePreference (line 19) | Future<void> deletePreference(String key)
    method _logAndRethrow (line 23) | void _logAndRethrow(Object err)

FILE: lib/services/service.dart
  class Service (line 4) | mixin class Service<T extends Service<T>> {
    method init (line 8) | Future<T> init()

FILE: lib/services/shared_preferences_service.dart
  class SharedPreferencesService (line 6) | class SharedPreferencesService extends Service<SharedPreferencesService> {
    method init (line 10) | Future<SharedPreferencesService> init()
    method removePreference (line 15) | Future<bool> removePreference(Preference pref)
    method savePreferenceToString (line 17) | Future<bool> savePreferenceToString(
    method loadPreferenceFromString (line 21) | P loadPreferenceFromString<
    method savePreferenceToBool (line 25) | Future<bool> savePreferenceToBool(
    method loadPreferenceFromBool (line 29) | P loadPreferenceFromBool<
    method savePreferenceToInt (line 33) | Future<bool> savePreferenceToInt(
    method loadPreferenceFromInt (line 37) | P loadPreferenceFromInt<
    method savePreferenceToStringList (line 41) | Future<bool> savePreferenceToStringList(
    method loadPreferenceFromStringList (line 45) | P loadPreferenceFromStringList<

FILE: lib/services/uri_name_resolver.dart
  class UriNameResolver (line 1) | abstract class UriNameResolver {
    method getHumanReadableForm (line 3) | Uri getHumanReadableForm(Uri uri)

FILE: lib/utils/background_worker/background_channel.dart
  class BackgroundChannel (line 5) | class BackgroundChannel{
    method send (line 10) | void send(JsonConvertable msg)

FILE: lib/utils/background_worker/background_commands.dart
  class BackgroundCommands (line 1) | class BackgroundCommands {

FILE: lib/utils/background_worker/background_worker.dart
  class BackgroundWorker (line 31) | class BackgroundWorker {
    method init (line 43) | Future<BackgroundWorker> init()
    method sendRequest (line 114) | Future<void> sendRequest(JsonConvertable message)
    method _fileFetchedHandler (line 135) | Future<void> _fileFetchedHandler(Map<String, dynamic> json)
    method _onIosBackground (line 155) | bool _onIosBackground(ServiceInstance service)
    method _workerMain (line 160) | Future<void> _workerMain(ServiceInstance service)
    method _handleFileAction (line 228) | Future<void> _handleFileAction<T extends FilesActionRequest>(
    method _checkAndStopService (line 243) | Future<void> _checkAndStopService(
    method _handleDownload (line 255) | Future<void> _handleDownload(
    method _handleResult (line 274) | Future<void> _handleResult({
    method _updateNotification (line 290) | Future<void> _updateNotification(

FILE: lib/utils/background_worker/json_convertable.dart
  class JsonConvertable (line 3) | abstract class JsonConvertable extends Message {
    method toJson (line 15) | Map<String, dynamic> toJson()

FILE: lib/utils/background_worker/messages/background_downloaded_request.dart
  class BackgroundDownloadedRequest (line 4) | class BackgroundDownloadedRequest extends SingleFileMessage {
    method toJson (line 18) | Map<String, dynamic> toJson()

FILE: lib/utils/background_worker/messages/background_init_msg.dart
  class BackgroundInitMsg (line 3) | class BackgroundInitMsg {
    method toJson (line 18) | Map<String, dynamic> toJson()

FILE: lib/utils/background_worker/work_tracker.dart
  class WorkTracker (line 3) | class WorkTracker {

FILE: lib/utils/download_file_image.dart
  type _SimpleDecoderCallback (line 8) | typedef _SimpleDecoderCallback = Future<ui.Codec> Function(ui.ImmutableB...
  class DownloadFileImage (line 13) | class DownloadFileImage extends FileImage {
    method loadBuffer (line 20) | ImageStreamCompleter loadBuffer(FileImage key, DecoderBufferCallback d...
    method loadImage (line 33) | ImageStreamCompleter loadImage(FileImage key, ImageDecoderCallback dec...
    method _loadAsync (line 46) | Future<ui.Codec> _loadAsync(

FILE: lib/utils/forground_worker/bridges/file_manager_bridge.dart
  class FileManagerBridge (line 12) | class FileManagerBridge {
    method _registerWorkerMessageWithTransformation (line 41) | _registerWorkerMessageWithTransformation<T extends Message, P>(
    method _registerWorkerMessage (line 51) | _registerWorkerMessage<T extends Message>(RxCommand<T, T> command)

FILE: lib/utils/forground_worker/bridges/nextcloud_manager_bridge.dart
  class NextcloudManagerBridge (line 10) | class NextcloudManagerBridge {

FILE: lib/utils/forground_worker/bridges/settings_manager_bridge.dart
  class SettingsManagerBridge (line 7) | class SettingsManagerBridge {
    method init (line 14) | Future<SettingsManagerBridge> init()

FILE: lib/utils/forground_worker/foreground_worker.dart
  class ForegroundWorker (line 17) | class ForegroundWorker {
    method init (line 43) | Future<ForegroundWorker> init()
    method dispose (line 85) | void dispose()
    method sendRequest (line 90) | void sendRequest(Message request)
    method _workerMain (line 98) | Future<void> _workerMain(dynamic message)

FILE: lib/utils/forground_worker/handlers/file_list_request_handler.dart
  class FileListRequestHandler (line 19) | class FileListRequestHandler
    method initIsolated (line 22) | Future<FileListRequestHandler> initIsolated(
    method handle (line 37) | void handle(FileListRequest message, SendPort isolateToMain)
    method handleMergeSort (line 58) | void handleMergeSort(
    method handleSort (line 79) | void handleSort(SortRequest message, SendPort isolateToMain,)

FILE: lib/utils/forground_worker/handlers/nextcloud_file_manager_handler.dart
  class NextcloudFileManagerHandler (line 18) | class NextcloudFileManagerHandler implements IsolateMsgHandler<Nextcloud...
    method initIsolated (line 20) | Future<NextcloudFileManagerHandler> initIsolated(
    method handleDownload (line 64) | Future<void> handleDownload(

FILE: lib/utils/forground_worker/handlers/user_handler.dart
  class UserHandler (line 14) | class UserHandler implements IsolateMsgHandler<UserHandler> {
    method initIsolated (line 16) | Future<UserHandler> initIsolated(InitMsg init, SendPort isolateToMain,
    method handleLoginStateChanged (line 28) | void handleLoginStateChanged(LoginStateMsg message)

FILE: lib/utils/forground_worker/isolate_handler_regestry.dart
  class IsolateHandlerRegistry (line 4) | class IsolateHandlerRegistry {
    method registerHandler (line 8) | void registerHandler<M extends Message>(Function(M) handler)
    method handleMessage (line 13) | void handleMessage(Message msg)

FILE: lib/utils/forground_worker/isolate_msg_handler.dart
  class IsolateMsgHandler (line 6) | abstract class IsolateMsgHandler<T extends IsolateMsgHandler<T>> {
    method initIsolated (line 7) | Future<T> initIsolated(

FILE: lib/utils/forground_worker/isolateable.dart
  function initIsolated (line 6) | Future<T> initIsolated(InitMsg init, SendPort isolateToMain)

FILE: lib/utils/forground_worker/messages/download_file_request.dart
  class DownloadFileRequest (line 4) | class DownloadFileRequest extends SingleFileMessage {
    method toJson (line 24) | Map<String, dynamic> toJson()

FILE: lib/utils/forground_worker/messages/download_preview_complete.dart
  class DownloadPreviewComplete (line 4) | class DownloadPreviewComplete extends Message {

FILE: lib/utils/forground_worker/messages/download_preview_request.dart
  class DownloadPreviewRequest (line 4) | class DownloadPreviewRequest extends Message {

FILE: lib/utils/forground_worker/messages/file_list_done.dart
  class FileListDone (line 3) | class FileListDone extends FileListMessage {

FILE: lib/utils/forground_worker/messages/file_list_message.dart
  class FileListMessage (line 3) | abstract class FileListMessage extends Message {

FILE: lib/utils/forground_worker/messages/file_list_request.dart
  class FileListRequest (line 4) | class FileListRequest extends Message {

FILE: lib/utils/forground_worker/messages/file_list_response.dart
  class FileListResponse (line 4) | class FileListResponse extends FileListMessage {

FILE: lib/utils/forground_worker/messages/file_update_msg.dart
  class FileUpdateMsg (line 4) | class FileUpdateMsg extends SingleFileMessage {

FILE: lib/utils/forground_worker/messages/files_action/delete_files_request.dart
  class DeleteFilesRequest (line 4) | class DeleteFilesRequest extends FilesActionRequest {
    method toJson (line 17) | Map<String, dynamic> toJson()

FILE: lib/utils/forground_worker/messages/files_action/destination_action_files_request.dart
  type DestinationAction (line 4) | enum DestinationAction { copy, move }
  class DestinationActionFilesRequest (line 6) | class DestinationActionFilesRequest extends FilesActionRequest {
    method toJson (line 32) | Map<String, dynamic> toJson()

FILE: lib/utils/forground_worker/messages/files_action/favorite_files_request.dart
  class FavoriteFilesRequest (line 4) | class FavoriteFilesRequest extends FilesActionRequest {

FILE: lib/utils/forground_worker/messages/files_action/files_action_done.dart
  class FilesActionDone (line 3) | class FilesActionDone extends JsonConvertable {
    method toJson (line 16) | Map<String, dynamic> toJson()

FILE: lib/utils/forground_worker/messages/files_action/files_action_request.dart
  class FilesActionRequest (line 4) | abstract class FilesActionRequest extends JsonConvertable {
    method toJson (line 23) | Map<String, dynamic> toJson()

FILE: lib/utils/forground_worker/messages/flush_logs_message.dart
  class FlushLogsMessage (line 3) | class FlushLogsMessage extends Message {

FILE: lib/utils/forground_worker/messages/image_update_msg.dart
  class ImageUpdateMsg (line 4) | class ImageUpdateMsg extends SingleFileMessage {

FILE: lib/utils/forground_worker/messages/init_msg.dart
  class InitMsg (line 9) | class InitMsg extends BackgroundInitMsg {

FILE: lib/utils/forground_worker/messages/login_state_msg.dart
  class LoginStateMsg (line 4) | class LoginStateMsg extends Message {

FILE: lib/utils/forground_worker/messages/merge_sort_done.dart
  class MergeSortDone (line 4) | class MergeSortDone extends Message {

FILE: lib/utils/forground_worker/messages/merge_sort_request.dart
  class MergeSortRequest (line 4) | class MergeSortRequest extends Message {

FILE: lib/utils/forground_worker/messages/message.dart
  class Message (line 1) | abstract class Message {

FILE: lib/utils/forground_worker/messages/preference_msg.dart
  class PreferenceMsg (line 4) | class PreferenceMsg extends Message {

FILE: lib/utils/forground_worker/messages/single_file_message.dart
  class SingleFileMessage (line 4) | abstract class SingleFileMessage extends JsonConvertable {
    method toJson (line 16) | Map<String, dynamic> toJson()

FILE: lib/utils/forground_worker/messages/sort_request.dart
  class SortRequest (line 5) | class SortRequest extends Message {

FILE: lib/utils/log_error_file_handler.dart
  class LogErrorFileHandler (line 14) | class LogErrorFileHandler extends ReportHandler {
    method handle (line 45) | Future<bool> handle(Report report, BuildContext? context)
    method _processReport (line 57) | Future<bool> _processReport(Report report)
    method _checkFile (line 66) | Future<bool> _checkFile()
    method _openFile (line 83) | void _openFile()
    method _writeLineToFile (line 90) | void _writeLineToFile(String text)
    method writeLineToFile (line 94) | void writeLineToFile(String text)
    method flushFile (line 98) | Future flushFile()
    method _closeFile (line 100) | Future _closeFile()
    method _writeReportToFile (line 107) | Future<void> _writeReportToFile(Report report)
    method _logDeviceParametersFormatted (line 135) | void _logDeviceParametersFormatted(Map<String, dynamic> deviceParameters)
    method _logApplicationParametersFormatted (line 143) | void _logApplicationParametersFormatted(
    method _logCustomParametersFormatted (line 152) | void _logCustomParametersFormatted(Map<String, dynamic> customParameters)
    method printDeviceInfo (line 159) | Future printDeviceInfo()
    method printApplicationInfo (line 168) | Future printApplicationInfo()
    method _loadAndroidParameters (line 186) | Map<String, dynamic> _loadAndroidParameters(
    method _printLog (line 217) | void _printLog(String log)
    method getSupportedPlatforms (line 224) | List<PlatformType> getSupportedPlatforms()
    method destroy (line 227) | Future<void> destroy()
    method init (line 231) | Future<void> init()

FILE: lib/utils/logger.dart
  class YagaLogger (line 12) | class YagaLogger {
    method getLogger (line 28) | Logger getLogger(Type className)
    method getEmergencyLogger (line 34) | Logger getEmergencyLogger(Type className)
    method _getLogger (line 38) | Logger _getLogger(Type className)
    method init (line 52) | Future<void> init({bool isolate = false})
    method printBaseLog (line 80) | Future<void> printBaseLog()
    method shareLogs (line 85) | Future<void> shareLogs()

FILE: lib/utils/navigation/yaga_route_information_parser.dart
  class YagaRouteInformationParser (line 3) | class YagaRouteInformationParser extends RouteInformationParser<Uri> {
    method parseRouteInformation (line 5) | Future<Uri> parseRouteInformation(RouteInformation routeInformation)

FILE: lib/utils/navigation/yaga_router.dart
  function generateRoute (line 16) | Route<dynamic> generateRoute(RouteSettings settings)

FILE: lib/utils/navigation/yaga_router_delegate.dart
  class YagaRouterDelegate (line 11) | class YagaRouterDelegate extends RouterDelegate<Uri>
    method build (line 30) | Widget build(BuildContext context)
    method setNewRoutePath (line 48) | Future<void> setNewRoutePath(Uri configuration)
    method _buildDirectoryNavigationPage (line 52) | List<Page> _buildDirectoryNavigationPage()
    method getInitialPage (line 68) | Page getInitialPage()

FILE: lib/utils/ncfile_stream_extensions.dart
  function collectToList (line 5) | Stream<List<NcFile>> collectToList()
  function recursively (line 9) | Stream<NcFile> recursively(Stream<NcFile> Function(Uri, {bool favorites}...

FILE: lib/utils/nextcloud_client_factory.dart
  class NextCloudClientFactory (line 4) | class NextCloudClientFactory {
    method createNextCloudClient (line 14) | NextcloudClient createNextCloudClient(
    method createUnauthenticatedClient (line 27) | NextcloudClient createUnauthenticatedClient(Uri host)

FILE: lib/utils/nextcloud_colors.dart
  class NextcloudColors (line 3) | class NextcloudColors {

FILE: lib/utils/self_signed_cert_handler.dart
  class SelfSignedCertHandler (line 9) | class SelfSignedCertHandler extends HttpOverrides
    method init (line 23) | Future<SelfSignedCertHandler> init(SecureStorageService secStorage)
    method initIsolated (line 33) | Future<SelfSignedCertHandler> initIsolated(
    method initBackgroundable (line 42) | Future<SelfSignedCertHandler> initBackgroundable(String fingerprint)
    method createHttpClient (line 51) | HttpClient createHttpClient(SecurityContext? context)
    method persistCert (line 83) | Future<void> persistCert()
    method revokeCert (line 89) | void revokeCert()

FILE: lib/utils/service_locator.dart
  function setupServiceLocator (line 48) | void setupServiceLocator()
  function setupBackgroundServiceLocator (line 174) | void setupBackgroundServiceLocator(
  function setupIsolatedServiceLocator (line 217) | void setupIsolatedServiceLocator(

FILE: lib/utils/uri_utils.dart
  function fromUri (line 6) | Uri fromUri({
  function fromPathList (line 22) | Uri fromPathList({required Uri uri, required List<String> paths})
  function compareFilePathToTargetFilePath (line 31) | bool compareFilePathToTargetFilePath(NcFile file, Uri destination)
  function chainPathSegments (line 39) | String chainPathSegments(String first, String second)
  function getRootFromUri (line 53) | Uri getRootFromUri(Uri uri)
  function fromUriPathSegments (line 55) | Uri fromUriPathSegments(Uri uri, int index)
  function getNameFromUri (line 67) | String getNameFromUri(Uri uri)

FILE: lib/views/screens/browse_view.dart
  class BrowseView (line 23) | class BrowseView extends StatelessWidget {
    method build (line 31) | Widget build(BuildContext context)
    method buildBottomNavBar (line 65) | YagaBottomNavBar buildBottomNavBar()
    method _buildLocalStorageTile (line 71) | ListTile _buildLocalStorageTile(BuildContext context)
    method _buildSDCardTile (line 84) | ListTile _buildSDCardTile(BuildContext context, SystemLocation element)
    method _buildNextcloudTile (line 98) | ListTile _buildNextcloudTile(BuildContext context, NcOrigin origin)
    method _getTitle (line 113) | String? _getTitle()
    method _getArgs (line 121) | DirectoryNavigationScreenArguments _getArgs(BuildContext context, Uri ...

FILE: lib/views/screens/category_view_screen.dart
  type CategoryViewMenu (line 30) | enum CategoryViewMenu { settings }
  class CategoryViewScreen (line 32) | abstract class CategoryViewScreen extends StatefulWidget {
    method createState (line 38) | _CategoryViewScreenState createState()
  class _CategoryViewScreenState (line 41) | class _CategoryViewScreenState extends State<CategoryViewScreen>
    method initState (line 52) | void initState()
    method onFileTap (line 53) | void onFileTap(List<NcFile> files, int index)
    method dispose (line 127) | void dispose()
    method build (line 134) | Widget build(BuildContext context)
    method _buildAppBar (line 155) | AppBar _buildAppBar(BuildContext context, List<Widget> actions)
    method _popupMenuHandler (line 181) | void _popupMenuHandler(BuildContext context, CategoryViewMenu result)
    method _buildPopupMenu (line 193) | List<PopupMenuEntry<CategoryViewMenu>> _buildPopupMenu(BuildContext co...

FILE: lib/views/screens/choice_selector_screen.dart
  class ChoiceSelectorScreen (line 5) | class ChoiceSelectorScreen extends StatefulWidget {
    method createState (line 16) | _ChoiceSelectorScreenState createState()
  class _ChoiceSelectorScreenState (line 19) | class _ChoiceSelectorScreenState extends State<ChoiceSelectorScreen> {
    method initState (line 23) | void initState()
    method build (line 29) | Widget build(BuildContext context)

FILE: lib/views/screens/directory_screen.dart
  type BrowseViewMenu (line 24) | enum BrowseViewMenu { settings, focus }
  class DirectoryScreen (line 27) | class DirectoryScreen extends StatefulWidget {
    method createState (line 60) | _DirectoryScreenState createState()
  class _DirectoryScreenState (line 63) | class _DirectoryScreenState extends State<DirectoryScreen> {
    method onFileTap (line 81) | dynamic onFileTap(List<NcFile> files, int index)
    method onFolderTap (line 91) | dynamic onFolderTap(NcFile folder)
    method initState (line 118) | void initState()
    method dispose (line 127) | void dispose()
    method build (line 133) | Widget build(BuildContext context)
    method _buildAppBar (line 163) | AppBar _buildAppBar(BuildContext context, List<Widget> actions)
    method _handleMenuSelection (line 204) | void _handleMenuSelection(BuildContext context, BrowseViewMenu result)
    method _buildPopupMenu (line 228) | List<PopupMenuEntry<BrowseViewMenu>> _buildPopupMenu(BuildContext cont...

FILE: lib/views/screens/directory_traversal_screen.dart
  type DirectoryTraversalScreenNavActions (line 10) | enum DirectoryTraversalScreenNavActions { cancel }
  class DirectoryTraversalScreen (line 12) | class DirectoryTraversalScreen extends StatefulWidget {
    method createState (line 18) | _DirectoryTraversalScreenState createState()
  class _DirectoryTraversalScreenState (line 22) | class _DirectoryTraversalScreenState extends State<DirectoryTraversalScr...
    method initState (line 28) | void initState()
    method _navigate (line 37) | void _navigate(Uri? target)
    method build (line 46) | Widget build(BuildContext context)
    method _handlePagePop (line 66) | bool _handlePagePop(BuildContext context, dynamic result)
    method _buildPages (line 92) | List<Page> _buildPages(
    method _buildPage (line 117) | Page _buildPage(Uri uri, ViewConfiguration viewConfig)

FILE: lib/views/screens/favorites_view.dart
  class FavoritesView (line 3) | class FavoritesView extends BrowseView {

FILE: lib/views/screens/focus_view.dart
  class FocusView (line 6) | class FocusView extends CategoryViewScreen {

FILE: lib/views/screens/home_view.dart
  class HomeView (line 8) | class HomeView extends CategoryViewScreen {
    method _getTitle (line 24) | String _getTitle()

FILE: lib/views/screens/image_screen.dart
  class ImageScreen (line 25) | class ImageScreen extends StatefulWidget {
    method createState (line 38) | State<StatefulWidget> createState()
  type ImageViewMenu (line 41) | enum ImageViewMenu { share, fav, wallpaper, download, slideshow_start, s...
  class ImageScreenState (line 43) | class ImageScreenState extends State<ImageScreen> {
    method initState (line 53) | void initState()
    method _onPageChanged (line 60) | void _onPageChanged(int index)
    method dispose (line 68) | void dispose()
    method _stopSlideShow (line 74) | void _stopSlideShow()
    method build (line 80) | Widget build(BuildContext context)
    method _buildDesktopButtons (line 163) | List<Widget> _buildDesktopButtons(BuildContext context)
    method navigateLeft (line 186) | void navigateLeft()
    method navigateRight (line 191) | void navigateRight()
    method _buildDesktopNavButton (line 196) | Widget _buildDesktopNavButton({
    method _calculatePage (line 218) | int _calculatePage(BuildContext context)
    method _buildMainAction (line 234) | List<Widget> _buildMainAction(BuildContext context)
    method _buildPopupMenu (line 258) | List<PopupMenuEntry<ImageViewMenu>> _buildPopupMenu(BuildContext context)
    method _handlePopupMenu (line 278) | void _handlePopupMenu(BuildContext context, ImageViewMenu item)
    method _addFavButton (line 311) | Widget _addFavButton(BuildContext context)

FILE: lib/views/screens/nc_address_screen.dart
  class NextCloudAddressScreen (line 21) | class NextCloudAddressScreen extends StatefulWidget {
    method createState (line 27) | State<StatefulWidget> createState()
  class _NextCloudAddressScreenState (line 30) | class _NextCloudAddressScreenState extends State<NextCloudAddressScreen> {
    method dispose (line 39) | void dispose()
    method build (line 46) | Widget build(BuildContext context)
    method _validateAndSaveForm (line 99) | void _validateAndSaveForm()
    method _onSave (line 106) | Future<void> _onSave(Uri uri)
    method _askForCertApprovalBuilder (line 196) | Future<Function> Function(

FILE: lib/views/screens/nc_login_screen.dart
  class NextCloudLoginScreen (line 9) | class NextCloudLoginScreen extends StatelessWidget {
    method build (line 16) | Widget build(BuildContext context)

FILE: lib/views/screens/path_selector_screen.dart
  class PathSelectorScreen (line 10) | class PathSelectorScreen extends StatelessWidget {
    method build (line 30) | Widget build(BuildContext context)
    method _getArgs (line 34) | DirectoryNavigationScreenArguments _getArgs(BuildContext context)

FILE: lib/views/screens/settings_screen.dart
  class SettingsScreen (line 19) | class SettingsScreen extends StatelessWidget {
    method build (line 35) | Widget build(BuildContext context)

FILE: lib/views/screens/splash_screen.dart
  class SplashScreen (line 5) | class SplashScreen extends StatelessWidget {
    method build (line 7) | Widget build(BuildContext context)

FILE: lib/views/screens/yaga_home_screen.dart
  type YagaHomeTab (line 14) | enum YagaHomeTab { grid, folder, favorites }
  class YagaHomeScreen (line 16) | class YagaHomeScreen extends StatefulWidget {
    method createState (line 20) | _YagaHomeScreenState createState()
  class _YagaHomeScreenState (line 23) | class _YagaHomeScreenState extends State<YagaHomeScreen>
    method initState (line 26) | void initState()
    method dispose (line 32) | void dispose()
    method didChangeAppLifecycleState (line 38) | void didChangeAppLifecycleState(AppLifecycleState state)
    method build (line 49) | Widget build(BuildContext context)
    method _getCurrentIndex (line 64) | int _getCurrentIndex(YagaHomeTab? tab)
    method _showNewsDialog (line 75) | void _showNewsDialog(BuildContext context)

FILE: lib/views/widgets/action_danger_dialog.dart
  class ActionDangerDialog (line 3) | class ActionDangerDialog extends StatelessWidget {
    method build (line 21) | Widget build(BuildContext context)

FILE: lib/views/widgets/address_form_advanced.dart
  class AddressFormAdvanced (line 4) | class AddressFormAdvanced extends StatelessWidget {
    method build (line 11) | Widget build(BuildContext context)

FILE: lib/views/widgets/address_form_simple.dart
  class AddressFormSimple (line 5) | class AddressFormSimple extends StatelessWidget {
    method build (line 12) | Widget build(BuildContext context)

FILE: lib/views/widgets/avatar_widget.dart
  class AvatarWidget (line 6) | class AvatarWidget extends StatelessWidget {
    method _buildAvatar (line 38) | Widget _buildAvatar(BuildContext context, File? data)
    method _getInnerAvatar (line 50) | Widget _getInnerAvatar(BuildContext context, File? data)
    method _getIconAvatar (line 65) | Widget _getIconAvatar(BuildContext context, IconData iconData)
    method _buildAvatarFromStream (line 77) | Widget _buildAvatarFromStream(BuildContext context)
    method build (line 86) | Widget build(BuildContext context)

FILE: lib/views/widgets/circle_avatar_icon.dart
  class CircleAvatarIcon (line 3) | class CircleAvatarIcon extends StatelessWidget {
    method build (line 13) | Widget build(BuildContext context)

FILE: lib/views/widgets/favorite_icon.dart
  class FavoriteIcon (line 4) | class FavoriteIcon extends StatelessWidget {
    method build (line 6) | Widget build(BuildContext context)

FILE: lib/views/widgets/folder_icon.dart
  class FolderIcon (line 5) | class FolderIcon extends StatelessWidget {
    method build (line 12) | Widget build(BuildContext context)

FILE: lib/views/widgets/image_search.dart
  class ImageSearch (line 7) | class ImageSearch extends SearchDelegate<NcFile> {
    method appBarTheme (line 14) | ThemeData appBarTheme(BuildContext context)
    method buildActions (line 35) | List<Widget> buildActions(BuildContext context)
    method buildLeading (line 42) | Widget buildLeading(BuildContext context)
    method buildResults (line 49) | Widget buildResults(BuildContext context)
    method buildSuggestions (line 63) | Widget buildSuggestions(BuildContext context)

FILE: lib/views/widgets/image_view_container.dart
  class ImageViewContainer (line 18) | class ImageViewContainer extends StatelessWidget {
    method _buildImageView (line 29) | Widget _buildImageView(ChoicePreference choice, SortedFileList files)
    method build (line 54) | Widget build(BuildContext context)
    method _buildImageContainterStreamBuilder (line 86) | Widget _buildImageContainterStreamBuilder(

FILE: lib/views/widgets/image_views/category_view.dart
  class CategoryView (line 9) | class CategoryView extends StatelessWidget with GridDelegate {
    method _buildHeader (line 17) | Widget _buildHeader(String key, BuildContext context)
    method _buildCategory (line 30) | SliverStickyHeader _buildCategory(String key, BuildContext context)
    method _buildImage (line 44) | Widget _buildImage(String key, int itemIndex, BuildContext context)
    method _buildStickyList (line 58) | Widget _buildStickyList(BuildContext context)
    method build (line 81) | Widget build(BuildContext context)

FILE: lib/views/widgets/image_views/category_view_exp.dart
  class CategoryViewExp (line 10) | class CategoryViewExp extends StatelessWidget with GridDelegate {
    method _buildHeader (line 18) | Widget _buildHeader(String key, BuildContext context)
    method _buildImage (line 31) | Widget _buildImage(String key, int itemIndex, BuildContext context)
    method _buildExperimental (line 45) | Widget _buildExperimental()
    method build (line 83) | Widget build(BuildContext context)

FILE: lib/views/widgets/image_views/nc_grid_view.dart
  class NcGridView (line 8) | class NcGridView extends StatelessWidget with GridDelegate {
    method _buildImage (line 15) | Widget _buildImage(int key, BuildContext context)
    method _buildFolder (line 28) | Widget _buildFolder(int key, BuildContext context)
    method build (line 39) | Widget build(BuildContext context)

FILE: lib/views/widgets/image_views/nc_list_view.dart
  class NcListView (line 7) | class NcListView extends StatelessWidget {
    method build (line 18) | Widget build(BuildContext context)

FILE: lib/views/widgets/image_views/utils/grid_delegate.dart
  class GridDelegate (line 3) | mixin class GridDelegate {
    method buildImageGridDelegate (line 4) | SliverGridDelegate buildImageGridDelegate(BuildContext context)

FILE: lib/views/widgets/image_views/utils/view_configuration.dart
  class ViewConfiguration (line 12) | class ViewConfiguration {
    method getSortConfigFromViewChoice (line 129) | SortConfig getSortConfigFromViewChoice(ChoicePreference pref)
    method clone (line 157) | ViewConfiguration clone()

FILE: lib/views/widgets/list_menu_entry.dart
  class ListMenuEntry (line 3) | class ListMenuEntry extends StatelessWidget {
    method build (line 10) | Widget build(BuildContext context)

FILE: lib/views/widgets/path_widget.dart
  class PathWidget (line 10) | class PathWidget extends StatelessWidget {
    method build (line 24) | Widget build(BuildContext context)
    method _getMenuItem (line 93) | DropdownMenuItem<Uri> _getMenuItem(Uri origin)
    method _getDisabledAvatar (line 100) | Widget _getDisabledAvatar(Uri origin)
    method _getAvatarForOrigin (line 107) | Widget _getAvatarForOrigin(Uri origin)

FILE: lib/views/widgets/preferences/action_preference_widget.dart
  class ActionPreferenceWidget (line 4) | class ActionPreferenceWidget extends StatelessWidget {
    method build (line 10) | Widget build(BuildContext context)

FILE: lib/views/widgets/preferences/bool_preference_widget.dart
  class BoolPreferenceWidget (line 10) | class BoolPreferenceWidget extends StatelessWidget {
    method _notifyChange (line 17) | void _notifyChange(BoolPreference pref)
    method build (line 26) | Widget build(BuildContext context)

FILE: lib/views/widgets/preferences/choice_preference_widget.dart
  class ChoicePreferenceWidget (line 12) | class ChoicePreferenceWidget extends StatelessWidget {
    method _notifyChange (line 19) | void _notifyChange(ChoicePreference pref)
    method build (line 28) | Widget build(BuildContext context)

FILE: lib/views/widgets/preferences/int_preference_widget.dart
  class IntPreferenceWidget (line 11) | class IntPreferenceWidget extends StatefulWidget {
    method createState (line 18) | State<IntPreferenceWidget> createState()
  class _IntPreferenceWidgetState (line 21) | class _IntPreferenceWidgetState extends State<IntPreferenceWidget> {
    method _notifyChange (line 25) | void _notifyChange(IntPreference pref)
    method _validate (line 33) | bool _validate(String interval)
    method build (line 38) | Widget build(BuildContext context)

FILE: lib/views/widgets/preferences/mapping_preference_widget.dart
  class MappingPreferenceWidget (line 16) | class MappingPreferenceWidget extends StatefulWidget {
    method createState (line 23) | State<StatefulWidget> createState()
  class _MappingPreferenceState (line 26) | class _MappingPreferenceState extends State<MappingPreferenceWidget> {
    method initState (line 33) | void initState()
    method build (line 72) | Widget build(BuildContext context)
    method _checkDirectory (line 94) | void _checkDirectory(BuildContext context, MappingPreference pref)
    method _persist (line 125) | void _persist(BuildContext context, MappingPreference pref)

FILE: lib/views/widgets/preferences/preference_list_tile_widget.dart
  class PreferenceListTileWidget (line 7) | class PreferenceListTileWidget<T extends Preference> extends StatelessWi...
    method build (line 17) | Widget build(BuildContext context)

FILE: lib/views/widgets/preferences/section_preference_widget.dart
  class SectionPreferenceWidget (line 4) | class SectionPreferenceWidget extends StatelessWidget {
    method build (line 10) | Widget build(BuildContext context)

FILE: lib/views/widgets/preferences/string_preference_widget.dart
  class StringPreferenceWidget (line 7) | class StringPreferenceWidget extends StatelessWidget {
    method build (line 14) | Widget build(BuildContext context)

FILE: lib/views/widgets/preferences/uri_preference_widget.dart
  class UriPreferenceWidget (line 13) | class UriPreferenceWidget extends StatelessWidget {
    method _notifyChange (line 19) | void _notifyChange(UriPreference pref)
    method _pushToNavigation (line 27) | void _pushToNavigation(BuildContext context, UriPreference pref, Uri uri)
    method build (line 43) | Widget build(BuildContext context)

FILE: lib/views/widgets/remote_folder_widget.dart
  class RemoteFolderWidget (line 9) | class RemoteFolderWidget extends StatelessWidget {
    method build (line 18) | Widget build(BuildContext context)

FILE: lib/views/widgets/remote_image_widget.dart
  class RemoteImageWidget (line 16) | class RemoteImageWidget extends StatelessWidget {
    method _createIconOverlay (line 30) | Widget _createIconOverlay(BuildContext context, Ink mainWidget)
    method _inkFromImage (line 62) | Ink _inkFromImage(FileSystemEntity file)
    method _getLocalIcon (line 71) | Icon _getLocalIcon(BuildContext context)
    method build (line 91) | Widget build(BuildContext context)
    method _createDefaultIconPreview (line 140) | Widget _createDefaultIconPreview(BuildContext context)
    method _requestPreviewDownload (line 165) | void _requestPreviewDownload()

FILE: lib/views/widgets/search_icon_button.dart
  class SearchIconButton (line 7) | class SearchIconButton extends StatelessWidget {
    method build (line 19) | Widget build(BuildContext context)

FILE: lib/views/widgets/select_cancel_bottom_navigation.dart
  class SelectCancelBottomNavigation (line 3) | class SelectCancelBottomNavigation extends StatelessWidget {
    method build (line 23) | Widget build(BuildContext context)

FILE: lib/views/widgets/selection_action_cancel_dialog.dart
  class SelectionActionCancelDialog (line 3) | class SelectionActionCancelDialog extends StatelessWidget {
    method build (line 10) | Widget build(BuildContext context)

FILE: lib/views/widgets/selection_app_bar.dart
  class SelectionAppBar (line 9) | class SelectionAppBar extends PreferredSize {

FILE: lib/views/widgets/selection_popup_menu_button.dart
  type SelectionViewMenu (line 16) | enum SelectionViewMenu { share, delete, copy, move, download, favorite }
  class SelectionPopupMenuButton (line 18) | class SelectionPopupMenuButton extends StatelessWidget {
    method build (line 24) | Widget build(BuildContext context)
    method _buildSelectionPopupMenu (line 31) | List<PopupMenuEntry<SelectionViewMenu>> _buildSelectionPopupMenu(Build...
    method _buildAndroidSpecificItems (line 70) | List<PopupMenuEntry<SelectionViewMenu>> _buildAndroidSpecificItems(boo...
    method _popupMenuHandler (line 83) | void _popupMenuHandler(BuildContext context, SelectionViewMenu result)
    method _openDeletingDialog (line 185) | void _openDeletingDialog(BuildContext context, bool aggressive)
    method _openCancelableDialog (line 191) | void _openCancelableDialog(

FILE: lib/views/widgets/selection_select_all.dart
  class SelectionSelectAll (line 4) | class SelectionSelectAll extends StatelessWidget {
    method build (line 10) | Widget build(BuildContext context)

FILE: lib/views/widgets/selection_title.dart
  class SelectionTitle (line 4) | class SelectionTitle extends StatelessWidget {
    method build (line 11) | Widget build(BuildContext context)

FILE: lib/views/widgets/selection_will_pop_scope.dart
  class SelectionWillPopScope (line 4) | class SelectionWillPopScope extends StatelessWidget {
    method build (line 14) | Widget build(BuildContext context)

FILE: lib/views/widgets/yaga_about_dialog.dart
  class YagaAboutDialog (line 9) | class YagaAboutDialog extends StatelessWidget {
    method build (line 11) | Widget build(BuildContext context)

FILE: lib/views/widgets/yaga_bottom_nav_bar.dart
  class YagaBottomNavBar (line 6) | class YagaBottomNavBar extends StatelessWidget {
    method build (line 12) | Widget build(BuildContext context)
    method _getCurrentIndex (line 44) | int _getCurrentIndex()

FILE: lib/views/widgets/yaga_drawer.dart
  class YagaDrawer (line 16) | class YagaDrawer extends StatelessWidget {
    method build (line 18) | Widget build(BuildContext context)
    method _logout (line 123) | void _logout(BuildContext context)

FILE: lib/views/widgets/yaga_popup_menu_button.dart
  class YagaPopupMenuButton (line 3) | class YagaPopupMenuButton<T> extends StatelessWidget {
    method build (line 10) | Widget build(BuildContext context)

FILE: linux/flutter/generated_plugin_registrant.cc
  function fl_register_plugins (line 12) | void fl_register_plugins(FlPluginRegistry* registry) {

FILE: linux/main.cc
  function main (line 3) | int main(int argc, char** argv) {

FILE: linux/my_application.cc
  type _MyApplication (line 10) | struct _MyApplication {
  function my_application_activate (line 18) | static void my_application_activate(GApplication* application) {
  function gboolean (line 73) | static gboolean my_application_local_command_line(GApplication* applicat...
  function my_application_dispose (line 92) | static void my_application_dispose(GObject* object) {
  function my_application_class_init (line 98) | static void my_application_class_init(MyApplicationClass* klass) {
  function my_application_init (line 104) | static void my_application_init(MyApplication* self) {}
  function MyApplication (line 106) | MyApplication* my_application_new() {

FILE: test/managers/isolateable/mapping_manager_test.dart
  function main (line 18) | void main()
  function setUpMapping (line 60) | void setUpMapping(String localPath, String remotePath)
  function mapToTmpPathTest (line 72) | Future<void> mapToTmpPathTest(String remotePath)
  function mapToLocalPathTest (line 95) | Future<void> mapToLocalPathTest({
  function mapRootToLocalPathTest (line 113) | Future<void> mapRootToLocalPathTest(String remotePath)
  function mapPicturesToLocalPathTest (line 121) | Future<void> mapPicturesToLocalPathTest(String remotePath,
  function mapTmpToRemoteUriTest (line 167) | Future<void> mapTmpToRemoteUriTest(String relativePath)
  function mapToRemoteUriTest (line 197) | Future<void> mapToRemoteUriTest({

FILE: test/utils/uri_utils_test.dart
  function main (line 4) | void main()

FILE: test/widget_test.dart
  function main (line 13) | void main()
Condensed preview — 349 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (554K chars).
[
  {
    "path": ".fvm/fvm_config.json",
    "chars": 52,
    "preview": "{\n  \"flutterSdkVersion\": \"3.16.3\",\n  \"flavors\": {}\n}"
  },
  {
    "path": ".github/workflows/build-android.yml",
    "chars": 2821,
    "preview": "name: Build Android\n\non:\n  workflow_dispatch:\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: action"
  },
  {
    "path": ".github/workflows/publish-play-store.yml",
    "chars": 1326,
    "preview": "name: Publish to Play Store\non:\n  workflow_call:\n    inputs:\n      stage:\n        required: true\n        type: string\n  "
  },
  {
    "path": ".gitignore",
    "chars": 1101,
    "preview": "# Miscellaneous\n*.class\n*.log\n*.pyc\n*.swp\n.DS_Store\n.atom/\n.buildlog/\n.history\n.svn/\ndocker\ndocker/.dev\n\n# IntelliJ rela"
  },
  {
    "path": ".metadata",
    "chars": 966,
    "preview": "# This file tracks properties of this Flutter project.\n# Used by Flutter tool to assess capabilities and perform upgrade"
  },
  {
    "path": ".vscode/launch.json",
    "chars": 703,
    "preview": "{\n    // Use IntelliSense to learn about possible attributes.\n    // Hover to view descriptions of existing attributes.\n"
  },
  {
    "path": "Gemfile",
    "chars": 45,
    "preview": "source \"https://rubygems.org\"\n\ngem \"fastlane\""
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 4630,
    "preview": "# Nextcloud Yaga - Yet Another Gallery App\n\n## Table of Contents\n* [State of Yaga](#state-of-yaga)\n    * [Features](#fea"
  },
  {
    "path": "analysis_options.yaml",
    "chars": 95,
    "preview": "include: package:lint/analysis_options.yaml\n\nlinter:\n  rules:\n    sort_pub_dependencies: false\n"
  },
  {
    "path": "android/.gitignore",
    "chars": 135,
    "preview": "gradle-wrapper.jar\n/.gradle\n/captures/\n/gradlew\n/gradlew.bat\n/local.properties\nGeneratedPluginRegistrant.java\n/google-pl"
  },
  {
    "path": "android/app/build.gradle",
    "chars": 2790,
    "preview": "def localProperties = new Properties()\ndef localPropertiesFile = rootProject.file('local.properties')\nif (localPropertie"
  },
  {
    "path": "android/app/src/debug/AndroidManifest.xml",
    "chars": 333,
    "preview": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.github.vauvenal5.yaga\">\n    <!-- F"
  },
  {
    "path": "android/app/src/dev/res/drawable/ic_launcher_background.xml",
    "chars": 952,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    "
  },
  {
    "path": "android/app/src/main/AndroidManifest.xml",
    "chars": 3541,
    "preview": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n"
  },
  {
    "path": "android/app/src/main/kotlin/com/github/vauvenal5/yaga/MainActivity.kt",
    "chars": 5848,
    "preview": "package com.github.vauvenal5.yaga\n\nimport android.content.Intent\nimport android.net.Uri\nimport android.util.Log\nimport a"
  },
  {
    "path": "android/app/src/main/res/drawable/ic_launcher_background.xml",
    "chars": 956,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    "
  },
  {
    "path": "android/app/src/main/res/drawable/ic_launcher_foreground.xml",
    "chars": 1065,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" xmlns:aapt=\"http://schemas.android.com/aapt\"\n    andr"
  },
  {
    "path": "android/app/src/main/res/drawable/launch_background.xml",
    "chars": 400,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Modify this file to customize your launch splash screen -->\n<layer-list xmln"
  },
  {
    "path": "android/app/src/main/res/drawable-anydpi-v24/ic_bg_service_small.xml",
    "chars": 1206,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" xmlns:aapt=\"http://schemas.android.com/aapt\"\n    andr"
  },
  {
    "path": "android/app/src/main/res/drawable-v21/launch_background.xml",
    "chars": 438,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Modify this file to customize your launch splash screen -->\n<layer-list xmln"
  },
  {
    "path": "android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "chars": 267,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n  <bac"
  },
  {
    "path": "android/app/src/main/res/values/colors.xml",
    "chars": 117,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\t<color name=\"ic_launcher_background\">#0082c9</color>\n</resources>"
  },
  {
    "path": "android/app/src/main/res/values/styles.xml",
    "chars": 361,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <style name=\"LaunchTheme\" parent=\"@android:style/Theme.Black.NoTi"
  },
  {
    "path": "android/app/src/main/res/values-night/styles.xml",
    "chars": 995,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <!-- Theme applied to the Android Window while the process is sta"
  },
  {
    "path": "android/app/src/main/res/xml/file_paths_yaga.xml",
    "chars": 143,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<paths>\n    <cache-path name=\"cache\" path=\".\" />\n    <external-path name=\"externa"
  },
  {
    "path": "android/app/src/profile/AndroidManifest.xml",
    "chars": 333,
    "preview": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.github.vauvenal5.yaga\">\n    <!-- F"
  },
  {
    "path": "android/build.gradle",
    "chars": 599,
    "preview": "buildscript {\n    ext.kotlin_version = '1.7.10'\n    repositories {\n        google()\n        mavenCentral()\n    }\n\n    de"
  },
  {
    "path": "android/gradle/wrapper/gradle-wrapper.properties",
    "chars": 200,
    "preview": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributi"
  },
  {
    "path": "android/gradle.properties",
    "chars": 104,
    "preview": "org.gradle.jvmargs=-Xmx1536M\nandroid.enableR8=true\nandroid.useAndroidX=true\nandroid.enableJetifier=true\n"
  },
  {
    "path": "android/settings.gradle",
    "chars": 484,
    "preview": "include ':app'\n\ndef flutterProjectRoot = rootProject.projectDir.parentFile.toPath()\n\ndef plugins = new Properties()\ndef "
  },
  {
    "path": "android/settings_aar.gradle",
    "chars": 15,
    "preview": "include ':app'\n"
  },
  {
    "path": "assets/icon/readme.md",
    "chars": 448,
    "preview": "# Android Icons\n\nThe SVG files found in this directory are the lead files for the app icons. \n\nFor API 26+ changes to th"
  },
  {
    "path": "assets/news.md",
    "chars": 1023,
    "preview": "## What's New\n**Breaking Changes:** Started with refactoring for Android 11+ support. \n\nThis has major impact on the app"
  },
  {
    "path": "build.yaml",
    "chars": 193,
    "preview": "targets:\n  $default:\n    auto_apply_builders: true\n    builders:\n      \"built_value_generator:built_value\":\n        enab"
  },
  {
    "path": "fastlane/Appfile",
    "chars": 211,
    "preview": "json_key_file(\"./android/google-play.json\") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/"
  },
  {
    "path": "fastlane/Fastfile",
    "chars": 2577,
    "preview": "# This file contains the fastlane.tools configuration\n# You can find the documentation at https://docs.fastlane.tools\n#\n"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/134.txt",
    "chars": 62,
    "preview": "- fixed general settings login/logout bug\n- added splashscreen"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/140.txt",
    "chars": 38,
    "preview": "- introduced focus mode to browse view"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/141.txt",
    "chars": 64,
    "preview": "- introduced focus mode to browse view\n- fix title in focus mode"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/142.txt",
    "chars": 103,
    "preview": "- introduced focus mode to browse view\n- fix title in focus mode\n- minor improvement to drop down menus"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/143.txt",
    "chars": 167,
    "preview": "- introduced focus mode to browse view\n- fix title in focus mode\n- minor improvement to drop down menus\n- fix isolates t"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/144.txt",
    "chars": 189,
    "preview": "- introduced focus mode to browse view\n- fix title in focus mode\n- minor improvement to drop down menus\n- fix isolates t"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/145.txt",
    "chars": 237,
    "preview": "- introduced focus mode to browse view\n- fix title in focus mode\n- minor improvement to drop down menus\n- fix isolates t"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/146.txt",
    "chars": 269,
    "preview": "- introduced focus mode to browse view\n- fix title in focus mode\n- minor improvement to drop down menus\n- fix isolates t"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/147.txt",
    "chars": 77,
    "preview": "- fix recursive loading when offline\n- fix recursive loading for local device"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/150.txt",
    "chars": 80,
    "preview": "- implement GET_CONTENT handler\n- introduce navigator 2.0 to directory traversal"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/151.txt",
    "chars": 24,
    "preview": "- add ACTION_PICK filter"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1510.txt",
    "chars": 114,
    "preview": "- fix memory leak when downloading a lot of previews\n- fix UI freeze when loading a lot of directories recursively"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1511.txt",
    "chars": 71,
    "preview": "- fix mapping manager when mapping non root folder\n- fix url validation"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/152.txt",
    "chars": 144,
    "preview": "- implement GET_CONTENT handler\n- introduce navigator 2.0 to directory traversal\n- add ACTION_PICK filter\n- open default"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/153.txt",
    "chars": 186,
    "preview": "- implement GET_CONTENT handler\n- introduce navigator 2.0 to directory traversal\n- add ACTION_PICK filter\n- open default"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/154.txt",
    "chars": 240,
    "preview": "- implement GET_CONTENT handler\n- introduce navigator 2.0 to directory traversal\n- add ACTION_PICK filter\n- open default"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/155.txt",
    "chars": 258,
    "preview": "- implement GET_CONTENT handler\n- introduce navigator 2.0 to directory traversal\n- add ACTION_PICK filter\n- open default"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/156.txt",
    "chars": 317,
    "preview": "- implement GET_CONTENT handler\n- introduce navigator 2.0 to directory traversal\n- add ACTION_PICK filter\n- open default"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/157.txt",
    "chars": 400,
    "preview": "This release is identical to v0.15.6. There were build changes for FDroid support.\n- implement GET_CONTENT handler\n- int"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/158.txt",
    "chars": 114,
    "preview": "- fix memory leak when downloading a lot of previews\n- fix UI freeze when loading a lot of directories recursively"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/159.txt",
    "chars": 114,
    "preview": "- fix memory leak when downloading a lot of previews\n- fix UI freeze when loading a lot of directories recursively"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1600.txt",
    "chars": 52,
    "preview": "- add switch to disable URL validation in login mask"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1601.txt",
    "chars": 44,
    "preview": "- enable production logging for warn and err"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1602.txt",
    "chars": 70,
    "preview": "- enable production logging for warn and err\n- correctly set log level"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1603.txt",
    "chars": 47,
    "preview": "- fix username handling with special characters"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1700.txt",
    "chars": 26,
    "preview": "- introducing multi-select"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1701.txt",
    "chars": 61,
    "preview": "- introducing multi-select\n- allow sharing of multiple images"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1702.txt",
    "chars": 96,
    "preview": "- introducing multi-select\n- allow sharing of multiple images\n- fix ripple effect on image tiles"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1703.txt",
    "chars": 174,
    "preview": "- introducing multi-select\n- allow sharing of multiple images\n- fix ripple effect on image tiles\n- fix NC behinde subpat"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1704.txt",
    "chars": 246,
    "preview": "- introducing multi-select\n- allow sharing of multiple images\n- fix ripple effect on image tiles\n- fix NC behinde subpat"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1705.txt",
    "chars": 315,
    "preview": "- introducing multi-select\n- allow sharing of multiple images\n- fix ripple effect on image tiles\n- fix NC behinde subpat"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1800.txt",
    "chars": 77,
    "preview": "- delete file locally and remotely\n- fix recursive remove on server detection"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1801.txt",
    "chars": 121,
    "preview": "- delete file locally and remotely\n- fix recursive remove on server detection\n- fix broken communication after backgroun"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1802.txt",
    "chars": 56,
    "preview": "- fix bug when login name and user name are not the same"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1900.txt",
    "chars": 56,
    "preview": "- add browser based login flow as alternative to webview"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/1901.txt",
    "chars": 187,
    "preview": "- fix broken cancel button on login screen\n- fix endless loading indicator when preview download fails\n- fix show user a"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2000.txt",
    "chars": 74,
    "preview": "- implement support for copying files\n- implement support for moving files"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2001.txt",
    "chars": 150,
    "preview": "- implement support for copying files\n- implement support for moving files\n- !!! please note: if file exists in destinat"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2002.txt",
    "chars": 184,
    "preview": "- implement support for copying files\n- implement support for moving files\n- ignore same destination actions\n- !!! pleas"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2003.txt",
    "chars": 133,
    "preview": "- implement support for copying files\n- implement support for moving files\n- ignore same destination actions\n- ask for o"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2100.txt",
    "chars": 71,
    "preview": "- implement avatar caching\n- disable multi-select in path selector view"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2101.txt",
    "chars": 109,
    "preview": "- implement avatar caching\n- disable multi-select in path selector view\n- add warning dialog for root mapping"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2102.txt",
    "chars": 53,
    "preview": "- fix lost data issue by making delete syncs optional"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2103.txt",
    "chars": 28,
    "preview": "- move sorting to background"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2104.txt",
    "chars": 28,
    "preview": "- move sorting to background"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2105.txt",
    "chars": 28,
    "preview": "- move sorting to background"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2200.txt",
    "chars": 57,
    "preview": "- introducing simple support for self-signed certificates"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2201.txt",
    "chars": 70,
    "preview": "- fix local name handling if file/folder containes encoded chars (#86)"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2202.txt",
    "chars": 70,
    "preview": "- fix local name handling if file/folder containes encoded chars (#86)"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2203.txt",
    "chars": 17,
    "preview": "- improve logging"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2204.txt",
    "chars": 60,
    "preview": "- fix minor issue in special char handling\n- improve logging"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2205.txt",
    "chars": 64,
    "preview": "- fix color gradient\n- refactor icon\n- fix jumping splash screen"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2206.txt",
    "chars": 64,
    "preview": "- fix color gradient\n- refactor icon\n- fix jumping splash screen"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2207.txt",
    "chars": 64,
    "preview": "- fix color gradient\n- refactor icon\n- fix jumping splash screen"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2208.txt",
    "chars": 85,
    "preview": "- remove host check from unsigned cert checks\n- fix bug in auto-revoking on exception"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2300.txt",
    "chars": 97,
    "preview": "- add ability to send logs from within app\n- improve logging\n- improve self-signed cert usability"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2301.txt",
    "chars": 97,
    "preview": "- add ability to send logs from within app\n- improve logging\n- improve self-signed cert usability"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2302.txt",
    "chars": 120,
    "preview": "- add ability to send logs from within app\n- improve logging\n- improve self-signed cert usability\n- fix for fdroid build"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2303.txt",
    "chars": 97,
    "preview": "- improve logging in list error cases\n- replace loading indicator for previews with default image"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2304.txt",
    "chars": 58,
    "preview": "- improve performance when loading previews for many files"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2305.txt",
    "chars": 58,
    "preview": "- improve performance when loading previews for many files"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2306.txt",
    "chars": 58,
    "preview": "- improve performance when loading previews for many files"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2307.txt",
    "chars": 58,
    "preview": "- improve performance when loading previews for many files"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2308.txt",
    "chars": 58,
    "preview": "- improve performance when loading previews for many files"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2309.txt",
    "chars": 35,
    "preview": "- fix broken preview of local files"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2310.txt",
    "chars": 28,
    "preview": "- fix image scroll controler"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2311.txt",
    "chars": 29,
    "preview": "- move download to background"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2312.txt",
    "chars": 58,
    "preview": "- move download to background\n- fix bug in category search"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2400.txt",
    "chars": 47,
    "preview": "- implement switch for auto persist on download"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2500.txt",
    "chars": 40,
    "preview": "- implement download files select action"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2501.txt",
    "chars": 44,
    "preview": "- fix url validation issue\n- improve logging"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2502.txt",
    "chars": 79,
    "preview": "- major upgrade of dependencies\n- fixes folder names that look like ports issue"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2503.txt",
    "chars": 63,
    "preview": "- add confirmation dialog for logout\n- re-work preview fetching"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2600.txt",
    "chars": 84,
    "preview": "- experimental sd card support, pls read https://github.com/vauvenal5/yaga/issues/23"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2601.txt",
    "chars": 84,
    "preview": "- experimental sd card support, pls read https://github.com/vauvenal5/yaga/issues/23"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2700.txt",
    "chars": 473,
    "preview": "- targeting Android 12 (API Level 31)\n- refactoring to MediaStore API for local file access\n- root mapping deprecated\n- "
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2701.txt",
    "chars": 498,
    "preview": "- targeting Android 12 (API Level 31)\n- refactoring to MediaStore API for local file access\n- root mapping deprecated\n- "
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2800.txt",
    "chars": 111,
    "preview": "- moved file actions into background thread\n- background feature can be switched on and off in general settings"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2801.txt",
    "chars": 111,
    "preview": "- moved file actions into background thread\n- background feature can be switched on and off in general settings"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2802.txt",
    "chars": 76,
    "preview": "- add support for attach to functionality of Android (needed for wallpapers)"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2803.txt",
    "chars": 48,
    "preview": "- enable hidding of app bar in image view by tap"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2804.txt",
    "chars": 85,
    "preview": "- enable hidding of app bar in image view by tap\n- enable hidding of android overlays"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2805.txt",
    "chars": 85,
    "preview": "- enable hidding of app bar in image view by tap\n- enable hidding of android overlays"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2900.txt",
    "chars": 29,
    "preview": "- implement slideshow feature"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2901.txt",
    "chars": 44,
    "preview": "- implement slideshow feature\n- add wakelock"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/2902.txt",
    "chars": 109,
    "preview": "- implement slideshow feature\n- add wakelock\n- add random mode\n- add back to beginning\n- add auto stop at end"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/3000.txt",
    "chars": 43,
    "preview": "- replace deprecated NC client with new one"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/3001.txt",
    "chars": 94,
    "preview": "- replace deprecated NC client with new one\n- fix file action dialog in foreground worker mode"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/3002.txt",
    "chars": 123,
    "preview": "- replace deprecated NC client with new one\n- fix file action dialog in foreground worker mode\n- refactor background bri"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/3003.txt",
    "chars": 68,
    "preview": "- minor fixes in file action handling\n- new Nextcloud client version"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4000.txt",
    "chars": 26,
    "preview": "- implement favorites view"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4001.txt",
    "chars": 35,
    "preview": "- mark favorites in lists and grids"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4002.txt",
    "chars": 71,
    "preview": "- fix favorites icon color\n- migrate to newest nextcloud client version"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4003.txt",
    "chars": 57,
    "preview": "- fix minor issue with special characters in folder names"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4004.txt",
    "chars": 95,
    "preview": "- fix minor issue with special characters in folder names\n- internal testing of Github releases"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4005.txt",
    "chars": 95,
    "preview": "- fix minor issue with special characters in folder names\n- internal testing of Github releases"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4100.txt",
    "chars": 96,
    "preview": "- add minimal linux support\n- refactor views to support big screens\n- fix missing permission bug"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4200.txt",
    "chars": 102,
    "preview": "- favorites can be set and removed from app\n- reworked select all to smart select\n- some code clean up"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4201.txt",
    "chars": 43,
    "preview": "- fix bug when persisting image is disabled"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4300.txt",
    "chars": 174,
    "preview": "- add download button to image view\n- add favorite button to image view\n- add keybindings for linux (left/right arrow --"
  },
  {
    "path": "fastlane/metadata/android/en-US/changelogs/4301.txt",
    "chars": 21,
    "preview": "- fix offline support"
  },
  {
    "path": "fastlane/metadata/android/en-US/full_description.txt",
    "chars": 391,
    "preview": "Nextcloud Yaga is a Nextcloud first gallery app. It aimes to give you the full functionality of a modern gallery app whi"
  },
  {
    "path": "fastlane/metadata/android/en-US/short_description.txt",
    "chars": 30,
    "preview": "A Nextcloud first gallery app."
  },
  {
    "path": "fastlane/metadata/android/en-US/title.txt",
    "chars": 14,
    "preview": "Nextcloud Yaga"
  },
  {
    "path": "ios/.gitignore",
    "chars": 542,
    "preview": "*.mode1v3\n*.mode2v3\n*.moved-aside\n*.pbxuser\n*.perspectivev3\n**/*sync/\n.sconsign.dblite\n.tags*\n**/.vagrant/\n**/DerivedDat"
  },
  {
    "path": "ios/Flutter/AppFrameworkInfo.plist",
    "chars": 794,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "ios/Flutter/Debug.xcconfig",
    "chars": 30,
    "preview": "#include \"Generated.xcconfig\"\n"
  },
  {
    "path": "ios/Flutter/Release.xcconfig",
    "chars": 30,
    "preview": "#include \"Generated.xcconfig\"\n"
  },
  {
    "path": "ios/Runner/AppDelegate.swift",
    "chars": 404,
    "preview": "import UIKit\nimport Flutter\n\n@UIApplicationMain\n@objc class AppDelegate: FlutterAppDelegate {\n  override func applicatio"
  },
  {
    "path": "ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "chars": 2519,
    "preview": "{\n  \"images\" : [\n    {\n      \"size\" : \"20x20\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-20x20@2x.png\",\n   "
  },
  {
    "path": "ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json",
    "chars": 391,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"LaunchImage.png\",\n      \"scale\" : \"1x\"\n    },\n  "
  },
  {
    "path": "ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md",
    "chars": 336,
    "preview": "# Launch Screen Assets\n\nYou can customize the launch screen with your own desired assets by replacing the image files in"
  },
  {
    "path": "ios/Runner/Base.lproj/LaunchScreen.storyboard",
    "chars": 2377,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
  },
  {
    "path": "ios/Runner/Base.lproj/Main.storyboard",
    "chars": 1605,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
  },
  {
    "path": "ios/Runner/Info.plist",
    "chars": 1523,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "ios/Runner/Runner-Bridging-Header.h",
    "chars": 37,
    "preview": "#import \"GeneratedPluginRegistrant.h\""
  },
  {
    "path": "ios/Runner.xcodeproj/project.pbxproj",
    "chars": 20956,
    "preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
  },
  {
    "path": "ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "chars": 152,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:Runner.xcodepr"
  },
  {
    "path": "ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme",
    "chars": 3291,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1020\"\n   version = \"1.3\">\n   <BuildAction\n      "
  },
  {
    "path": "ios/Runner.xcworkspace/contents.xcworkspacedata",
    "chars": 152,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:Runner.xcodepr"
  },
  {
    "path": "lib/main.dart",
    "chars": 3190,
    "preview": "\nimport 'package:catcher_2/catcher_2.dart';\nimport 'package:flutter/material.dart';\nimport 'package:yaga/managers/global"
  },
  {
    "path": "lib/managers/file_manager/file_manager.dart",
    "chars": 5508,
    "preview": "import 'dart:io';\n\nimport 'package:rx_command/rx_command.dart';\nimport 'package:rxdart/rxdart.dart';\nimport 'package:yag"
  },
  {
    "path": "lib/managers/file_manager/file_manager_base.dart",
    "chars": 1793,
    "preview": "import 'package:flutter/foundation.dart';\nimport 'package:rx_command/rx_command.dart';\nimport 'package:yaga/managers/fil"
  },
  {
    "path": "lib/managers/file_manager/isolateable/file_action_manager.dart",
    "chars": 4753,
    "preview": "import 'dart:io';\n\nimport 'package:flutter/foundation.dart';\nimport 'package:nextcloud/nextcloud.dart';\nimport 'package:"
  },
  {
    "path": "lib/managers/file_manager/isolateable/isolated_file_manager.dart",
    "chars": 2958,
    "preview": "import 'dart:isolate';\n\nimport 'package:rx_command/rx_command.dart';\nimport 'package:yaga/managers/file_manager/isolatea"
  },
  {
    "path": "lib/managers/file_service_manager/favorite_not_supported_mixin.dart",
    "chars": 155,
    "preview": "import 'package:yaga/model/nc_file.dart';\n\nmixin FavoriteNotSupportedMixin {\n  Future<NcFile> toggleFavorite(NcFile file"
  },
  {
    "path": "lib/managers/file_service_manager/file_service_manager.dart",
    "chars": 675,
    "preview": "import 'package:yaga/model/nc_file.dart';\n\n/// FileServiceManagers are providing basic file manager functions\n/// encaps"
  },
  {
    "path": "lib/managers/file_service_manager/isolateable/local_file_manager.dart",
    "chars": 3861,
    "preview": "import 'dart:io';\n\nimport 'package:mime/mime.dart';\nimport 'package:yaga/managers/file_manager/file_manager_base.dart';\n"
  },
  {
    "path": "lib/managers/file_service_manager/isolateable/nextcloud_background_file_manager.dart",
    "chars": 3353,
    "preview": "import 'package:flutter/foundation.dart';\nimport 'package:yaga/managers/file_manager/file_manager_base.dart';\nimport 'pa"
  },
  {
    "path": "lib/managers/file_service_manager/isolateable/nextcloud_file_manger.dart",
    "chars": 9719,
    "preview": "import 'dart:io';\n\nimport 'package:nextcloud/nextcloud.dart';\nimport 'package:rx_command/rx_command.dart';\nimport 'packa"
  },
  {
    "path": "lib/managers/file_service_manager/media_file_manager.dart",
    "chars": 1660,
    "preview": "import 'dart:io';\n\nimport 'package:yaga/managers/file_service_manager/favorite_not_supported_mixin.dart';\nimport 'packag"
  },
  {
    "path": "lib/managers/global_settings_manager.dart",
    "chars": 7240,
    "preview": "import 'dart:io';\n\nimport 'package:rx_command/rx_command.dart';\nimport 'package:yaga/managers/nextcloud_manager.dart';\ni"
  },
  {
    "path": "lib/managers/isolateable/isolated_global_settings_manager.dart",
    "chars": 1048,
    "preview": "import 'dart:isolate';\n\nimport 'package:yaga/managers/global_settings_manager.dart';\nimport 'package:yaga/managers/isola"
  },
  {
    "path": "lib/managers/isolateable/isolated_settings_manager.dart",
    "chars": 542,
    "preview": "import 'dart:isolate';\n\nimport 'package:yaga/managers/settings_manager_base.dart';\nimport 'package:yaga/utils/forground_"
  },
  {
    "path": "lib/managers/isolateable/mapping_manager.dart",
    "chars": 5736,
    "preview": "import 'dart:isolate';\n\nimport 'package:rx_command/rx_command.dart';\nimport 'package:yaga/managers/settings_manager_base"
  },
  {
    "path": "lib/managers/isolateable/sort_manager.dart",
    "chars": 5896,
    "preview": "import 'package:yaga/model/nc_file.dart';\nimport 'package:yaga/model/sort_config.dart';\nimport 'package:yaga/model/sorte"
  },
  {
    "path": "lib/managers/isolateable/sync_manager.dart",
    "chars": 1173,
    "preview": "import 'package:yaga/model/nc_file.dart';\nimport 'package:yaga/model/sync_file.dart';\nimport 'package:yaga/utils/forgrou"
  },
  {
    "path": "lib/managers/navigation_manager.dart",
    "chars": 350,
    "preview": "import 'package:rx_command/rx_command.dart';\nimport 'package:yaga/model/route_args/directory_navigation_screen_arguments"
  },
  {
    "path": "lib/managers/nextcloud_manager.dart",
    "chars": 5485,
    "preview": "import 'dart:async';\nimport 'dart:io';\n\nimport 'package:rx_command/rx_command.dart';\nimport 'package:yaga/model/nc_login"
  },
  {
    "path": "lib/managers/settings_manager.dart",
    "chars": 4493,
    "preview": "import 'package:rx_command/rx_command.dart';\nimport 'package:yaga/managers/settings_manager_base.dart';\nimport 'package:"
  },
  {
    "path": "lib/managers/settings_manager_base.dart",
    "chars": 303,
    "preview": "import 'package:rx_command/rx_command.dart';\nimport 'package:yaga/model/preferences/preference.dart';\n\nabstract class Se"
  },
  {
    "path": "lib/managers/tab_manager.dart",
    "chars": 230,
    "preview": "import 'package:rx_command/rx_command.dart';\nimport 'package:yaga/views/screens/yaga_home_screen.dart';\n\nclass TabManage"
  },
  {
    "path": "lib/managers/widget_local/file_list_local_manager.dart",
    "chars": 14143,
    "preview": "import 'dart:async';\n\nimport 'package:rx_command/rx_command.dart';\nimport 'package:uuid/uuid.dart';\nimport 'package:yaga"
  },
  {
    "path": "lib/model/category_view_config.dart",
    "chars": 670,
    "preview": "import 'package:yaga/model/general_view_config.dart';\nimport 'package:yaga/views/screens/yaga_home_screen.dart';\n\nclass "
  },
  {
    "path": "lib/model/fetched_file.dart",
    "chars": 282,
    "preview": "import 'dart:typed_data';\n\nimport 'package:yaga/model/nc_file.dart';\nimport 'package:yaga/utils/forground_worker/message"
  },
  {
    "path": "lib/model/general_view_config.dart",
    "chars": 874,
    "preview": "import 'package:flutter/material.dart';\nimport 'package:yaga/model/preferences/preference.dart';\nimport 'package:yaga/mo"
  },
  {
    "path": "lib/model/local_file.dart",
    "chars": 616,
    "preview": "import 'dart:io';\n\nclass LocalFile {\n  static const _jsonFileUrl = \"fileUrl\";\n  static const _jsonExists = \"exists\";\n\n  "
  },
  {
    "path": "lib/model/mapping_node.dart",
    "chars": 157,
    "preview": "import 'package:yaga/model/preferences/mapping_preference.dart';\n\nclass MappingNode {\n  Map<String, MappingNode> nodes ="
  },
  {
    "path": "lib/model/nc_file.dart",
    "chars": 3254,
    "preview": "import 'package:mime/mime.dart';\nimport 'package:path/path.dart' as p;\nimport 'package:yaga/model/local_file.dart';\n\ncla"
  },
  {
    "path": "lib/model/nc_login_data.dart",
    "chars": 1338,
    "preview": "class NextCloudLoginDataKeys {\n  static const String server = \"server\";\n  static const String user = \"user\";\n  static co"
  },
  {
    "path": "lib/model/nc_origin.dart",
    "chars": 1977,
    "preview": "class NcOrigin {\n  /// This uri represents the original server uri with port and path if specified.\n  /// Only the schem"
  },
  {
    "path": "lib/model/preferences/action_preference.dart",
    "chars": 524,
    "preview": "library preference;\n\nimport 'package:built_value/built_value.dart';\nimport 'package:yaga/model/preferences/preference.da"
  },
  {
    "path": "lib/model/preferences/bool_preference.dart",
    "chars": 746,
    "preview": "library preference;\n\nimport 'package:built_value/built_value.dart';\nimport 'package:yaga/model/preferences/serializable_"
  },
  {
    "path": "lib/model/preferences/choice_preference.dart",
    "chars": 810,
    "preview": "library preference;\n\nimport 'package:built_value/built_value.dart';\nimport 'package:yaga/model/preferences/serializable_"
  },
  {
    "path": "lib/model/preferences/complex_preference.dart",
    "chars": 716,
    "preview": "library preference;\n\nimport 'package:built_value/built_value.dart';\nimport 'package:flutter/foundation.dart';\nimport 'pa"
  },
  {
    "path": "lib/model/preferences/int_preference.dart",
    "chars": 805,
    "preview": "library preference;\n\nimport 'package:built_value/built_value.dart';\nimport 'package:yaga/model/preferences/serializable_"
  },
  {
    "path": "lib/model/preferences/mapping_preference.dart",
    "chars": 1766,
    "preview": "//todo: Preference clone functions should be unified\nlibrary preference;\n\nimport 'package:built_value/built_value.dart';"
  },
  {
    "path": "lib/model/preferences/preference.dart",
    "chars": 612,
    "preview": "library preference;\n\nimport 'package:built_value/built_value.dart';\nimport 'package:flutter/foundation.dart';\n\npart 'pre"
  },
  {
    "path": "lib/model/preferences/section_preference.dart",
    "chars": 636,
    "preview": "//todo: refactor all preferences to respect enabled\nlibrary preference;\n\nimport 'package:built_value/built_value.dart';\n"
  },
  {
    "path": "lib/model/preferences/serializable_preference.dart",
    "chars": 951,
    "preview": "library preference;\n\nimport 'package:built_value/built_value.dart';\nimport 'package:flutter/foundation.dart';\nimport 'pa"
  },
  {
    "path": "lib/model/preferences/serializers/base_type_serializer.dart",
    "chars": 415,
    "preview": "import 'package:yaga/model/preferences/serializable_preference.dart';\nimport 'package:yaga/model/preferences/value_prefe"
  },
  {
    "path": "lib/model/preferences/serializers/int_serializer.dart",
    "chars": 460,
    "preview": "import 'package:yaga/model/preferences/int_preference.dart';\nimport 'package:yaga/model/preferences/serializable_prefere"
  },
  {
    "path": "lib/model/preferences/serializers/uri_serializer.dart",
    "chars": 464,
    "preview": "import 'package:yaga/model/preferences/serializable_preference.dart';\nimport 'package:yaga/model/preferences/uri_prefere"
  }
]

// ... and 149 more files (download for full content)

About this extraction

This page contains the full source code of the vauvenal5/yaga GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 349 files (496.8 KB), approximately 126.8k tokens, and a symbol index with 687 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!