Skip to content

Commit e4d2cc6

Browse files
authored
Update README.md
1 parent 5797638 commit e4d2cc6

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@
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:1.0.0")
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

@@ -20,17 +33,18 @@ dependencies {
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)