You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-36Lines changed: 36 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,26 @@
1
1
# WGAndroidLib - Simple Android Wireguard Library
2
2
3
-
## This library is a wrapper around the main wireguard android project intended to simplify the implementation of wireguard in android apps without handling complex functions.
3
+
####This library is a wrapper around the main wireguard android project intended to simplify the implementation of wireguard in android apps without handling complex functions.
4
4
5
-
## It's production ready and provides simple and easy abstraction layer and functions to work with wireguard.
5
+
####It's production ready and provides simple and easy abstraction layer and functions to work with wireguard.
6
6
7
-
## Features :
7
+
####Features :
8
8
9
9
* Provides Dev Friendly Apis to start/stop/monitor connection.
10
10
* State management through broadcast receiver.
11
11
* Built in notification system.
12
12
* Validation logic for wireguard configurations.
13
13
* Easy permission handling for VPNService and Notification.
14
14
15
-
## Installation and Api Documentation
15
+
####Installation and Api Documentation
16
16
17
-
### Installation Documentation
17
+
####Installation Documentation
18
18
19
-
### Option 1 : Using jitpack builds
19
+
####Option 1 : Using jitpack builds
20
20
21
-
### Add the jitpack repository and dependency to your app settings.gradle
21
+
####Add the jitpack repository and dependency to your app settings.gradle
22
22
23
-
### Groovy
23
+
####Groovy
24
24
25
25
```groovy
26
26
allprojects {
@@ -35,7 +35,7 @@ dependencies {
35
35
}
36
36
```
37
37
38
-
### Kotlin DSL
38
+
####Kotlin DSL
39
39
40
40
```kotlin
41
41
repositories {
@@ -48,51 +48,51 @@ dependencies {
48
48
}
49
49
```
50
50
51
-
### And then sync the project and follow the api usage guide.
51
+
####And then sync the project and follow the api usage guide.
52
52
53
-
### Option 2 : Importing and using as a sub-module
53
+
####Option 2 : Importing and using as a sub-module
54
54
55
-
### This step is for advanced devs who want to use the library as sub module and later maybe want to do some changes to tailor to their needs .
55
+
####This step is for advanced devs who want to use the library as sub module and later maybe want to do some changes to tailor to their needs .
@@ -165,8 +165,8 @@ public class TunnelApplication extends Application {
165
165
</service>
166
166
```
167
167
168
-
### 3.Configure and initialize the library
169
-
### Kotlin
168
+
####3.Configure and initialize the library
169
+
####Kotlin
170
170
```kotlin
171
171
classMainActivity : AppCompatActivity() {
172
172
overridefunonCreate(savedInstanceState:Bundle?) {
@@ -214,7 +214,7 @@ class MainActivity : AppCompatActivity() {
214
214
}
215
215
```
216
216
217
-
### Java
217
+
####Java
218
218
```java
219
219
publicclassMainActivityextendsAppCompatActivity {
220
220
@Override
@@ -262,12 +262,12 @@ public class MainActivity extends AppCompatActivity {
262
262
}
263
263
}
264
264
```
265
-
### Error handling
266
-
### The library itself handles some of the most common errors, specifically related to configuration validation. If you want to handle some yourself if you have then it's recommended to follow the option 2 and import the library as a module and use it.
267
-
268
-
### License
269
-
### This Project is licensed under the Apache 2.0 - See LICENSE for more details.
### WireGuard® is a registered trademark of Jason A. Donenfeld
265
+
####Error handling
266
+
####The library itself handles some of the most common errors, specifically related to configuration validation. If you want to handle some yourself if you have then it's recommended to follow the option 2 and import the library as a module and use it.
267
+
268
+
####License
269
+
####This Project is licensed under the Apache 2.0 - See LICENSE for more details.
0 commit comments