搜尋套件、儲存庫與 APP 分類

套件詳情v1.8.0

store_checker

此 Flutter 外掛程式可用於尋找目前安裝的 APK/IPA 的來源。

AndroidiOSmacOS
近 30 天下載
2.4萬
喜歡數
96
Pub 分數
140

安裝套件

flutter pub add store_checker

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

store_checker 套件是一個 Flutter 工具,可幫助判斷在 Android、iOS 和 macOS 上目前安裝應用程式的來源。它透過檢查元資料和系統層級資訊來分析應用程式的安裝來源,讓開發者能夠識別應用程式是來自官方商店(如 Google Play 或 Apple App Store)還是透過側載等其他方式安裝。這對於安全性檢查、授權驗證或分析非常有用。此外,該套件可透過 pub.dev 順暢整合至 Flutter 專案中。

適用情境

  • 應用安裝來源驗證
  • 安全和反盜版檢查
  • 許可驗證
  • 分發管道分析
  • 除錯側載應用

主要特色

  • 跨平台檢測應用來源
  • 支援 Android、iOS 與 macOS
  • 與 Flutter 的簡單整合
  • 提供可靠的來源識別
  • 開源且持續維護

適合對象

  • 開發安全應用的開發者
  • 需要許可證驗證的應用程式
  • 需要分發洞察的專案
  • 管理應用部署的團隊
  • 用於除錯安裝來源的工具

使用建議

  • 僅限偵測安裝來源,不包含完整應用完整性
  • 可能無法在所有沙盒環境中運作
  • 依賴於平台特定的系統存取
  • 無即時監控
  • 目標平台需要適當的權限

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

StoreChecker

This Flutter plugin is useful to find the origin of currently installed apk/ipa.

Android: It's very common to have Android applications republished on alternate markets or their APKs made available for download. The plugin detects whether app is installed from local source or Play Store or other stores

iOS: Detects whether app is installed from TestFlight Beta or App Store build

Usage

You can use the StoreChecker to find the origin of apk/ipa. This works both on iOS and Android. Add this to your package's pubspec.yaml file: dependencies: store_checker: ^1.8.0

import 'package:store_checker/store_checker.dart';

Source installationSource = await StoreChecker.getSource;

String source = "";
switch (installationSource) {
        case Source.IS_INSTALLED_FROM_PLAY_STORE:
          // Installed from Play Store
          source = "Play Store";
          break;
        case Source.IS_INSTALLED_FROM_PLAY_PACKAGE_INSTALLER:
          // Installed from Google Package installer
          source = "Google Package installer";
          break;
        case Source.IS_INSTALLED_FROM_LOCAL_SOURCE:
          // Installed using adb commands or side loading or any cloud service
          source = "Local Source";
          break;
        case Source.IS_INSTALLED_FROM_AMAZON_APP_STORE:
          // Installed from Amazon app store
          source = "Amazon Store";
          break;
        case Source.IS_INSTALLED_FROM_HUAWEI_APP_GALLERY:
          // Installed from Huawei app store
          source = "Huawei App Gallery";
          break;
        case Source.IS_INSTALLED_FROM_SAMSUNG_GALAXY_STORE:
          // Installed from Samsung app store
          source = "Samsung Galaxy Store";
          break;
        case Source.IS_INSTALLED_FROM_SAMSUNG_SMART_SWITCH_MOBILE:
          // Installed from Samsung Smart Switch Mobile
          source = "Samsung Smart Switch Mobile";
          break;  
        case Source.IS_INSTALLED_FROM_XIAOMI_GET_APPS:
          // Installed from Xiaomi app store
          source = "Xiaomi Get Apps";
          break;
        case Source.IS_INSTALLED_FROM_OPPO_APP_MARKET:
          // Installed from Oppo app store
          source = "Oppo App Market";
          break;
        case Source.IS_INSTALLED_FROM_VIVO_APP_STORE:
          // Installed from Vivo app store
          source = "Vivo App Store";
          break;
        case Source.IS_INSTALLED_FROM_RU_STORE:
          // Installed apk from RuStore
          source = "RuStore";
          break;
        case Source.IS_INSTALLED_FROM_OTHER_SOURCE:
          // Installed from other market store
          source = "Other Source";
          break;
        case Source.IS_INSTALLED_FROM_APP_STORE:
          // Installed from app store
          source = "App Store";
          break;
        case Source.IS_INSTALLED_FROM_TEST_FLIGHT:
          // Installed from Test Flight
          source = "Test Flight";
          break;
        case Source.UNKNOWN:
          // Installed from Unknown source
          source = "Unknown Source";
          break;
      }

Issues and feedback

Please file issues to send feedback or report a bug. Thank you!

所屬分類

原始碼儲存庫

使用此套件的專案