Skip to content

Plugin to access VPN service for Flutter | Flutter 的 VPN 插件

License

LGPL-3.0, LGPL-2.1 licenses found

Licenses found

LGPL-3.0
LICENSE
LGPL-2.1
LICENSE.md
Notifications You must be signed in to change notification settings

X-dea/flutter_vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2cbe5ad · Apr 27, 2019

History

28 Commits
Mar 31, 2019
Apr 9, 2019
Apr 9, 2019
Mar 18, 2019
Mar 7, 2019
Mar 7, 2019
Mar 7, 2019
Apr 27, 2019
Dec 28, 2018
Apr 27, 2019
Mar 7, 2019
Apr 27, 2019

Repository files navigation

Flutter VPN plugin

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 because flutter doesn't support multi-architecture in single apk #18494.

android {
    ...
    buildTypes {
        ...
        release {
            ...
            ndk {
                    if (project.hasProperty('target-platform') &&
                            project.property('target-platform') == 'android-arm64') {
                        abiFilters 'arm64-v8a'
                    } else {
                        abiFilters 'armeabi-v7a'
                    }
                }
            }
    }
}

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.