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

套件詳情v0.13.0

flutter_vpn

用於開發者在其 Flutter 應用中存取 VPN 服務的外掛程式。

AndroidiOS
近 30 天下載
106
喜歡數
112
Pub 分數
140

安裝套件

flutter pub add flutter_vpn

套件介紹

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

一個 Flutter 插件,讓開發者能夠將 VPN 服務整合到他們的行動應用程式中,適用於 Android 與 iOS。它提供了一個簡單的介面來管理 VPN 連線,讓應用程式能以程式化的方式建立安全的網路隧道。專為尋求在其應用程式中實作自訂網路功能或注重隱私功能的開發者設計,此插件抽象了平台特定的複雜性。支援 Android 與 iOS 平台,適合跨平台開發。該套件為開源並託管於 GitHub,鼓勵社群貢獻與透明度。

適用情境

  • 在應用程式中整合安全網路隧道
  • 啟用使用者控制的VPN存取
  • 建構注重隱私的應用程式
  • 支援企業網路連接
  • 建立網路監控工具

主要特色

  • 跨平台支援(Android 與 iOS)
  • 用於管理VPN連接的簡單API
  • 開源且公開倉儲
  • 原生VPN API的平台抽象
  • 安全連接處理

適合對象

  • 開發安全通訊應用的開發者
  • 需要私有網絡訪問權限的應用
  • 企業移動解決方案
  • 網路安全部工具
  • 隱私增強應用

使用建議

  • 需要平台特定權限
  • 企業使用可能需要額外設定
  • 除了基本用法外,文件有限
  • 依賴於底層操作系統的VPN功能
  • 與某些設備可能存在的相容性問題

原始 README

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

Flutter VPN plugin

Pub Package Awesome Flutter

This plugin help developers to access VPN service in their flutter app.
本插件帮助开发者在自己的应用内调用 VPN 服务。

The Android part was implemented by strongswan which support ikev2 protocol.
The iOS part was implemented by NEVPNManager.

Issues and PRs are welcome!

Installation

For Android

Modify your app/build.gradle to use abiFilter since flutter doesn't apply abiFilter for target platform yet.

android {
    ...
    buildTypes {
        ...
        release {
            ...
            ndk {
                if (!project.hasProperty('target-platform')) {
                    abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
                } else {
                    def platforms = project.property('target-platform').split(',')
                    def platformMap = [
                            'android-arm'  : 'armeabi-v7a',
                            'android-arm64': 'arm64-v8a',
                            'android-x86'  : 'x86',
                            'android-x64'  : 'x86_64',
                    ]
                    abiFilters = platforms.stream().map({ e ->
                        platformMap.containsKey(e) ? platformMap[e] : e
                    }).toArray()
                }
            }
    }
}

The plugin will automatically download pre-build native libraries from here if they haven't been downloaded.

For iOS

You need to open Personal VPN and Network Extensions capabilities in Xcode: see Project->Capabilities.

VPN connection errors are handled in swift code, you need to use Xcode to see connection errors if there is any.

所屬分類

依賴

依賴清單 1 項

  • plugin_platform_interface^2.0.2

原始碼儲存庫

使用此套件的專案

暫無相關資料。