- Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency
dependencies {
implementation 'com.github.together-project:together-button-android:v0.1.3'
}
It's pretty easy ;)
You just need to pass an activity context to TogetherButton class and call show function.
-
Kotlin
// Assuming you're inside an activity lifecycle. val togetherButton = TogetherButton(this) togetherButton.show()
-
Java
// Assuming you're inside an activity lifecycle. TogetherButton togetherButton = new TogetherButton(this) togetherButton.show()