Skip to content

Commit 7341440

Browse files
Merge pull request #31 from codewithtamim/fix/doc-update
Update README.md
2 parents e198fb1 + fe4c54f commit 7341440

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

README.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# WGAndroidLib - Simple Android Wireguard Library
22

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.
44

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.
66

7-
## Features :
7+
#### Features :
88

99
* Provides Dev Friendly Apis to start/stop/monitor connection.
1010
* State management through broadcast receiver.
1111
* Built in notification system.
1212
* Validation logic for wireguard configurations.
1313
* Easy permission handling for VPNService and Notification.
1414

15-
## Installation and Api Documentation
15+
#### Installation and Api Documentation
1616

17-
### Installation Documentation
17+
#### Installation Documentation
1818

19-
### Option 1 : Using jitpack builds
19+
#### Option 1 : Using jitpack builds
2020

21-
### Add the jitpack repository and dependency to your app settings.gradle
21+
#### Add the jitpack repository and dependency to your app settings.gradle
2222

23-
### Groovy
23+
#### Groovy
2424

2525
```groovy
2626
allprojects {
@@ -35,7 +35,7 @@ dependencies {
3535
}
3636
```
3737

38-
### Kotlin DSL
38+
#### Kotlin DSL
3939

4040
```kotlin
4141
repositories {
@@ -48,51 +48,51 @@ dependencies {
4848
}
4949
```
5050

51-
### And then sync the project and follow the api usage guide.
51+
#### And then sync the project and follow the api usage guide.
5252

53-
### Option 2 : Importing and using as a sub-module
53+
#### Option 2 : Importing and using as a sub-module
5454

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 .
5656

57-
### 1.Clone the repository.
57+
#### 1.Clone the repository.
5858

5959
```
6060
git clone https://github.com/thebytearray/WGAndroidLib.git
6161
```
6262

63-
### 2.In Android Studio :
63+
#### 2.In Android Studio :
6464

65-
### Go to File > New > Import Module , and then select the
65+
#### Go to File > New > Import Module , and then select the
6666

6767
`wireguard` module from the cloned project and then add it to your project.
6868

69-
### 3.Add the module dependency.
69+
#### 3.Add the module dependency.
7070

71-
### Groovy (App Level)
71+
#### Groovy (App Level)
7272

7373
```groovy
7474
dependencies {
7575
implementation project(':wireguard')
7676
}
7777
```
7878

79-
### Kotlin DSL (App Level)
79+
#### Kotlin DSL (App Level)
8080

8181
```kotlin
8282
dependencies {
8383
implementation(project(":wireguard"))
8484
}
8585
```
8686

87-
### Api Documentation
87+
#### Api Documentation
8888

89-
### Setup
89+
#### Setup
9090

91-
### 1.Configure your Application class (host app) to create a notification channel that will be used for the service of wireguard.
91+
#### 1.Configure your Application class (host app) to create a notification channel that will be used for the service of wireguard.
9292

93-
### Examples
93+
#### Examples
9494

95-
### Kotlin
95+
#### Kotlin
9696

9797
```kotlin
9898
class TunnelApplication : Application() {
@@ -116,7 +116,7 @@ class TunnelApplication : Application() {
116116
}
117117
```
118118

119-
### Java
119+
#### Java
120120
```java
121121
public class TunnelApplication extends Application {
122122
@Override
@@ -139,7 +139,7 @@ public class TunnelApplication extends Application {
139139
}
140140
}
141141
```
142-
### 2.Configure permissions and service declaration in AndroidManifest.xml
142+
#### 2.Configure permissions and service declaration in AndroidManifest.xml
143143
```xml
144144
<!-- Permissions -->
145145
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
@@ -165,8 +165,8 @@ public class TunnelApplication extends Application {
165165
</service>
166166
```
167167

168-
### 3.Configure and initialize the library
169-
### Kotlin
168+
#### 3.Configure and initialize the library
169+
#### Kotlin
170170
```kotlin
171171
class MainActivity : AppCompatActivity() {
172172
override fun onCreate(savedInstanceState: Bundle?) {
@@ -214,7 +214,7 @@ class MainActivity : AppCompatActivity() {
214214
}
215215
```
216216

217-
### Java
217+
#### Java
218218
```java
219219
public class MainActivity extends AppCompatActivity {
220220
@Override
@@ -262,12 +262,12 @@ public class MainActivity extends AppCompatActivity {
262262
}
263263
}
264264
```
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.
270-
### Acknowledgement
271-
### [wireguard-android](https://github.com/WireGuard/wireguard-android)
272-
### 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.
270+
#### Acknowledgement
271+
#### [wireguard-android](https://github.com/WireGuard/wireguard-android)
272+
#### WireGuard® is a registered trademark of Jason A. Donenfeld
273273

0 commit comments

Comments
 (0)