Skip to content

Commit 37f48d4

Browse files
author
pisalcoding
committed
2 parents 35277b7 + 4834f36 commit 37f48d4

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,48 @@
33
<img src="demo.gif" width="300" height="auto" align="center">
44
</div>
55

6-
## Usage
6+
## Get Started with Gradle’s Kotlin DSL
7+
> Step 1: Add this your root settings.gradle.kts
8+
```java
9+
dependencyResolutionManagement {
10+
maven("https://jitpack.io")
11+
}
12+
13+
```
14+
> Step 2: Add this your app build.gradle.kts
15+
```java
16+
dependencies {
17+
implementation("com.github.pisalcoding:alerter:v1.0.0-alpha")
18+
}
19+
```
720

21+
## OR Get Started with Legacy Gradle
822
> Step 1: Add this your root build.gradle
923
```java
1024
repositories {
11-
...
1225
maven { url "https://jitpack.io" }
1326
}
1427

1528
```
1629
> Step 2: Add this your app build.gradle
1730
```java
1831
dependencies {
19-
implementation 'com.github.pisalcoding:alerter:Tag'
32+
implementation 'com.github.pisalcoding:alerter:v1.0.0-alpha'
2033
}
2134
```
2235

23-
> Step 3: Show an alert dialog from your activity or fragment
36+
## Usage
2437

25-
### Simple
38+
### Simple
39+
Call the library from your activity or fragment
2640
```kotlin
2741
Alerter.success()
2842
.withTitle("Success")
2943
.withMessage("Congratulations!")
3044
.show(supportFragmentManager, "Tag")
3145
```
3246

33-
### More customization
47+
### With some customization
3448
```kotlin
3549
Alerter.info()
3650
.withTitle("Tips")

0 commit comments

Comments
 (0)