-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,31 @@ | ||
# Flutter VPN plugin | ||
|
||
This plugin help user to create VPN service in their app. | ||
This plugin help developers to provide VPN service in their flutter app. | ||
本插件帮助开发者在自己的应用内提供 VPN 服务。 | ||
|
||
The Android part was implemented by [strongswan](https://www.strongswan.org/) which support ikev2 protocol. | ||
The iOS part not implemented yet. | ||
|
||
### Warning | ||
This plugin is still under initial development. DO NOT use in production. | ||
|
||
## Installation | ||
|
||
### For Android | ||
|
||
Add the service in the `application` part your `AndroidManifest.xml`. | ||
```xml | ||
<application | ||
... | ||
<activity | ||
... | ||
</activity> | ||
<service android:name="org.strongswan.android.logic.CharonVpnService" | ||
android:permission="android.permission.BIND_VPN_SERVICE"/> | ||
</application> | ||
``` | ||
|
||
Add native libs inside your `android/app/src/main/libs` . | ||
The native libs can be build from strongswan. | ||
You can also download the prebuild native libs [here](https://github.com/X-dea/Flutter_VPN/releases). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: flutter_vpn | ||
description: Flutter plugin for VPN service | ||
version: 0.0.1 | ||
author: Jason C.H | ||
homepage: | ||
author: Jason C.H <[email protected]> | ||
homepage: https://github.com/X-dea/Flutter_VPN | ||
|
||
environment: | ||
sdk: ">=2.0.0-dev.68.0 <3.0.0" | ||
|