Skip to content

Commit

Permalink
Merge release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahlam-m committed Jun 28, 2021
2 parents e641f77 + cca7fc6 commit a62913c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 28 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ build/

# Local configuration file (sdk path, etc)
local.properties
bintray.gradle
install.gradle

gradlew
gradlew.bat
gradle.properties
settings.gradle


# Proguard folder generated by Eclipse
proguard/
Expand Down
40 changes: 17 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,35 @@ ToastJam lets you to simply customize messages showing in your app and make them
## How to integrate ToastJam into your project?

##### 1) Add the JitPack repository to the bottom of root build.gradle:
> For gradle:
**For gradle:**
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

> For maven:
**For maven:**
```
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```

##### 2) Add the following dependency to the project level build.gradle:
> For gradle:
**For gradle:**
```
dependencies {
implementation 'com.github.Ahlam-M:ToastJam:v2.0.0'
implementation 'com.github.Ahlam-M:ToastJam:v2.0.0'
}
```

> For maven:
**For maven:**
```
<dependency>
<groupId>com.github.Ahlam-M</groupId>
Expand All @@ -50,14 +46,12 @@ dependencies {
```

## Usage
> Basic example:
**Basic example:**
```
ToastJam.setup(this, "Hi there !").start();
```

> Full example with all available features:
**Full example with all available features:**
```
ToastJam.setup(this, "Hi there !")
.setGravity(TGravity.BOTTOM)
Expand All @@ -75,7 +69,7 @@ Submit any issues here: [ToastJam Issues](https://github.com/Ahlam-M/ToastJam/is

## Feedback
If you have an experience using ToastJam, please feel free to share it with us through this form: [ToastJam Feedback Form](https://docs.google.com/forms/d/e/1FAIpQLSe-7PS6md5rEibiWRekf4BFCVmLrR2-67oBvNavRmUnvic1Qg/viewform)
Any suggestions will be welcome ^_^
Any suggestions are welcome.


## License
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
buildscript {

repositories {
mavenCentral()
maven{url 'https://jitpack.io'}
maven {
url 'https://maven.google.com'
}
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}

Expand Down
2 changes: 2 additions & 0 deletions toastjam/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.Ahlam-M'

android {
compileSdkVersion 30
Expand Down

0 comments on commit a62913c

Please sign in to comment.