How to download the SDK¶
Download from Repository¶
The SportsTalk SDK is published on Maven Central. In order to use it in your application, just do the following:
// 1. Add the following in root **build.gradle** file, repositories section
allprojects {
repositories {
// ...
mavenCentral()
maven {
url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
// ...
}
}
// 2. Add the following lines in your module **build.gradle** file, under dependencies section
implementation 'io.github.sportstalk247.sdk-multiplatform:core:X.Y.Z'
// 1. Add the following in root **build.gradle.kts** file, repositories section
dependencyResolutionManagement {
repositories {
// ...
google()
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
// ...
}
}
// 2. Add the following lines in your module **build.gradle** file, under dependencies section
implementation("io.github.sportstalk247.sdk-multiplatform:core:X.Y.Z")
# Under Podfile, Specify Cocoapods version
pod 'Sportstalk247Kit', '~> X.Y.Z'
# A library to use Kotlin Coroutines and Flow on Swift code in KMP apps.
# - https://github.com/rickclephas/KMP-NativeCoroutines
pod 'KMPNativeCoroutinesAsync', '<version>' # Swift 5.5 Async/Await implementation
pod 'KMPNativeCoroutinesCore', '<version>' # Swift 5.5 Async/Await implementation
// Under package.swift
dependencies: [
.package(url: "https://github.com/sportstalk247/sdk-multiplatform.git", from: "<version>")
]
// A library to use Kotlin Coroutines and Flow on Swift code in KMP apps.
// - https://github.com/rickclephas/KMP-NativeCoroutines
dependencies: [
.package(url: "https://github.com/rickclephas/KMP-NativeCoroutines.git", from: "<version>")
]
Then sync again. The gradle build should now be successful.