Skip to content

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

License

Notifications You must be signed in to change notification settings

alexelisenko/Flutter_VPN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 not implemented yet.

Warning

This plugin is still under initial development.
Issues and PRs are welcome!

Installation

For Android

Add the service in the application part your AndroidManifest.xml.

<application
        ...
    <activity
        ...
    </activity>
    <service android:name="org.strongswan.android.logic.CharonVpnService"
        android:permission="android.permission.BIND_VPN_SERVICE"/>
</application>

Modify your app/build.gradle to use Java 8 and avoid #22397.

android {
    ...
    lintOptions {
        ...
        // To avoid error.
        checkReleaseBuilds false
    }

    // Plugin requires Java 8.
    compileOptions {
        targetCompatibility 1.8
        sourceCompatibility 1.8
    }
}

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 84.7%
  • Dart 6.7%
  • Kotlin 6.4%
  • Other 2.2%