Skip to content

Commit 02df0a0

Browse files
author
Md Didarul Islam
committed
added licence and readme
1 parent 8bad7f5 commit 02df0a0

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

LICENCE.MD

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Md Didarul Islam
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.MD

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# AdBlockerWebview
2+
An ordinary webview that can block basic ads.
3+
4+
[![](https://jitpack.io/v/islamdidarmd/AdBlockerWebview.svg)](https://jitpack.io/#islamdidarmd/AdBlockerWebview)
5+
6+
## Installation (with Gradle)
7+
Step 1. Add the JitPack repository to your build file
8+
9+
Add it in your root build.gradle at the end of repositories:
10+
```groovy
11+
allprojects {
12+
repositories {
13+
...
14+
maven { url 'https://jitpack.io' }
15+
}
16+
}
17+
```
18+
Step 2. Add the dependency
19+
20+
```groovy
21+
dependencies {
22+
implementation 'com.github.islamdidarmd:AdBlockerWebview:0.1.0'
23+
}
24+
```
25+
26+
### How to use
27+
Add AdBlockerWebview In your layout
28+
29+
```xml
30+
<com.islamdidarmd.adblockerwebview.AdBlockerWebView
31+
android:id="@+id/webview"
32+
android:layout_width="match_parent"
33+
android:layout_height="match_parent"/>
34+
```
35+
In your Activity or Fragment
36+
37+
```Kotlin
38+
webview.setAdBlockEnabled(true)
39+
webview.loadUrl("https://google.com")
40+
```
41+
42+
You can also extend `AdBlockerWebView` to add additional functionality
43+
44+
For a complete example, see the sample app

0 commit comments

Comments
 (0)