直播模块重构及demo更新

This commit is contained in:
2026-01-07 11:06:35 +08:00
parent aca9365c5b
commit 5640d2446d
117 changed files with 3810 additions and 2050 deletions

View File

@@ -7,6 +7,8 @@ def sdkGroupId = rootProject.findProperty("sellySdkGroupId") ?: "com.sellycloud"
def sdkArtifactId = rootProject.findProperty("sellySdkArtifactId") ?: "sellycloudsdk"
def sdkVersion = rootProject.findProperty("sellySdkVersion") ?: "1.0.0"
def hasLocalSdk = rootProject.file("SellyCloudSDK").exists()
def releaseStorePath = project.rootProject.file(findProperty("MY_STORE_FILE") ?: "release.keystore")
def hasReleaseKeystore = releaseStorePath != null && releaseStorePath.exists()
android {
namespace 'com.demo.SellyCloudSDK'
@@ -28,17 +30,14 @@ android {
signingConfigs {
release {
def storePath = project.rootProject.file(findProperty("MY_STORE_FILE") ?: "")
if (storePath != null && storePath.exists()) {
storeFile storePath
} else {
storeFile project.rootProject.file(findProperty("MY_STORE_FILE") ?: "release.keystore")
if (hasReleaseKeystore) {
storeFile releaseStorePath
storePassword findProperty("MY_STORE_PASSWORD") ?: ""
keyAlias findProperty("MY_KEY_ALIAS") ?: ""
keyPassword findProperty("MY_KEY_PASSWORD") ?: ""
v1SigningEnabled true
v2SigningEnabled true
}
storePassword findProperty("MY_STORE_PASSWORD") ?: ""
keyAlias findProperty("MY_KEY_ALIAS") ?: ""
keyPassword findProperty("MY_KEY_PASSWORD") ?: ""
v1SigningEnabled true
v2SigningEnabled true
}
}
@@ -47,7 +46,12 @@ android {
shrinkResources false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
if (hasReleaseKeystore) {
signingConfig signingConfigs.release
} else {
// Allow local CI/dev builds without a private keystore.
signingConfig signingConfigs.debug
}
}
}
compileOptions {
@@ -74,7 +78,6 @@ dependencies {
)
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.github.pedroSG94.RootEncoder:library:2.6.6'
implementation "com.squareup.okhttp3:okhttp:4.12.0"
}
implementation fileTree(
@@ -92,10 +95,18 @@ dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.activity:activity-ktx:1.9.2'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.4'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.4'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation "com.squareup.okhttp3:okhttp:4.12.0"
implementation "io.coil-kt:coil:2.6.0"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:core:1.5.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test:runner:1.5.2'
}