{
 "app_id": "com.cloudchewie.cloudotp",
 "source_url": "https://raw.githubusercontent.com/flathub/com.cloudchewie.cloudotp/master/com.cloudchewie.cloudotp.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:07:07.898803+00:00",
 "manifest": {
  "app-id": "com.cloudchewie.cloudotp",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "command": "CloudOTP",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=network",
   "--device=dri",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/man",
   "/share/man",
   "/share/doc",
   "/share/gtk-doc",
   "/var/lib"
  ],
  "modules": [
   "shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json",
   {
    "name": "keybinder3",
    "buildsystem": "autotools",
    "post-install": [
     "install -Dm644 COPYING /app/share/licenses/keybinder-3/COPYING"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/kupferlauncher/keybinder/releases/download/keybinder-3.0-v0.3.2/keybinder-3.0-0.3.2.tar.gz",
      "sha256": "e6e3de4e1f3b201814a956ab8f16dfc8a262db1937ff1eee4d855365398c6020",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/kupferlauncher/keybinder/releases/latest",
       "version-query": ".tag_name | sub(\"^keybinder-3.0-v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"keybinder-3.0-\" + $version + \".tar.gz\") | .browser_download_url"
      }
     }
    ]
   },
   {
    "name": "sqlcipher",
    "buildsystem": "autotools",
    "build-options": {
     "cflags": "-DSQLITE_HAS_CODEC -DSQLITE_EXTRA_INIT=sqlcipher_extra_init -DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown",
     "ldflags": "-lcrypto"
    },
    "config-opts": [
     "--with-tempstore=yes",
     "--disable-tcl"
    ],
    "post-install": [
     "ln -sv libsqlite3.so ${FLATPAK_DEST}/lib/libsqlcipher.so"
    ],
    "cleanup": [
     "/bin/sqlite3"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sqlcipher/sqlcipher.git",
      "tag": "v4.16.0",
      "commit": "e2a6040f2ae5cfff2b3e08eb3320007d93cdf3fc",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "cloudotp",
    "buildsystem": "simple",
    "build-options": {
     "cxxflags": "-Wno-error=deprecated-literal-operator",
     "arch": {
      "x86_64": {
       "env": {
        "BUNDLE_PATH": "build/linux/x64/release/bundle"
       }
      },
      "aarch64": {
       "env": {
        "BUNDLE_PATH": "build/linux/arm64/release/bundle"
       }
      }
     },
     "append-path": "/usr/lib/sdk/llvm20/bin:/var/lib/flutter/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib",
     "env": {
      "PUB_CACHE": "/run/build/cloudotp/.pub-cache"
     }
    },
    "build-commands": [
     "setup-flutter.sh",
     "flutter gen-l10n",
     "cd third-party/chewie && flutter gen-l10n",
     "flutter build linux --release",
     "cp -r ${BUNDLE_PATH}/* ${FLATPAK_DEST}/bin",
     "install -Dm644 com.cloudchewie.cloudotp.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo",
     "install -Dm644 tools/linux_tools/com.cloudchewie.cloudotp.desktop -t ${FLATPAK_DEST}/share/applications",
     "install -Dm644 assets/logo-transparent.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Robert-Stackflow/CloudOTP.git",
      "tag": "V4.0.0",
      "commit": "fa963c16f826a4c80fd098c55f58fc13fa36d0ee",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^V([\\d.]+)$",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "com.cloudchewie.cloudotp.metainfo.xml"
     },
     "generated/sources/pubspec.json"
    ],
    "modules": [
     "generated/modules/flutter-sdk-3.41.9.json"
    ]
   }
  ]
 }
}