This commit is contained in:
2026-01-14 11:46:52 +08:00
parent dca2a0b1e8
commit 2c01b1da9d
12 changed files with 796 additions and 49 deletions

View File

@@ -6,9 +6,6 @@ pluginManagement {
}
}
def sdkDir = file('SellyCloudSDK')
def hasLocalSdk = sdkDir.exists()
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
@@ -16,11 +13,8 @@ dependencyResolutionManagement {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
// Local AARs for the demo or the SDK when present
// Local AARs for the demo
flatDir {
if (hasLocalSdk) {
dirs sdkDir.toPath().resolve('libs').toFile()
}
dirs file('example/libs')
}
}
@@ -28,7 +22,3 @@ dependencyResolutionManagement {
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'
}