flutter_vpn
개발자가 플러터 앱에서 VPN 서비스에 접근할 수 있도록 해주는 플러그인입니다.
Flutter용 VPN 서비스에 액세스하는 플러그인 | Flutter의 VPN 플러그인
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}^2.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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!
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.
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.