Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrysbita committed Dec 28, 2018
1 parent 0d4a21c commit 354a938
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
29 changes: 28 additions & 1 deletion README.md
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).

5 changes: 2 additions & 3 deletions example/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:flutter_vpn_example/main.dart';

void main() {
Expand All @@ -18,8 +17,8 @@ void main() {
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
(Widget widget) => widget is Text &&
widget.data.startsWith('Running on:'),
(Widget widget) =>
widget is Text && widget.data.startsWith('Running on:'),
),
findsOneWidget,
);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
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"
Expand Down

0 comments on commit 354a938

Please sign in to comment.