SellyCloudSDK_Android_demo/settings.gradle

35 lines
850 B
Groovy

pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
def sdkDir = file('SellyCloudSDK')
def hasLocalSdk = sdkDir.exists()
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
mavenLocal()
google()
mavenCentral()
maven { url 'https://jitpack.io' }
// Local AARs for the demo or the SDK when present
flatDir {
dirs file('example/libs')
if (hasLocalSdk) {
dirs sdkDir.toPath().resolve('libs').toFile()
}
}
}
}
rootProject.name = "SellyCLoudSDKExample"
include ':example'
// Use the SDK module only when it exists locally; otherwise rely on the published/prebuilt AAR.
if (hasLocalSdk) {
include ':SellyCloudSDK'
}