File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 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
1024repositories {
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
2741Alerter .success()
2842 .withTitle(" Success" )
2943 .withMessage(" Congratulations!" )
3044 .show(supportFragmentManager, " Tag" )
3145```
3246
33- ### More customization
47+ ### With some customization
3448``` kotlin
3549Alerter .info()
3650 .withTitle(" Tips" )
You can’t perform that action at this time.
0 commit comments