How to download the SDK
Download from Repository
The SportsTalk SDK has been published into jitpack.io. In order to use it in your application, just do the following:
Add the following in root build.gradle file
// ...
allprojects {
repositories {
// ...
mavenCentral()
// ...
}
}
// ...
// ...
dependencyResolutionManagement {
repositories {
// ...
mavenCentral()
// ...
}
}
// ...
Add the following lines in your module build.gradle file, depending on the chosen SDK implementation(Coroutine or Rx2Java), under dependencies section:
// ...
dependencies {
// For SDK coroutine implementation
implementation 'com.github.sportstalk247.sdk-android-kotlin:sdk-coroutine:X.Y.Z'
// OR
// For SDK Rx2Java implementation
implementation 'com.github.sportstalk247.sdk-android-kotlin:sdk-reactive-rx2:X.Y.Z'
}
// ...
// ...
dependencies {
// For SDK coroutine implementation
implementation("com.github.sportstalk247.sdk-android-kotlin:sdk-coroutine:X.Y.Z")
// OR
// For SDK Rx2Java implementation
implementation("com.github.sportstalk247.sdk-android-kotlin:sdk-reactive-rx2:X.Y.Z")
}
// ...
Then sync again. The gradle build should now be successful.