From 010b5409fd32f6c5fa75aa85d635bb24ba06629a Mon Sep 17 00:00:00 2001 From: oxy-macmini Date: Thu, 1 May 2025 16:26:20 +0800 Subject: [PATCH] fix: update workflow. --- .github/workflows/android.yml | 4 ++-- .../src/main/java/com/m3u/smartphone/AppPublisher.kt | 4 ++-- core/extension/consumer-rules.pro | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 52524fb4..a8505132 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -43,7 +43,7 @@ jobs: run: ./gradlew cleanManagedDevices --unused-only - name: Build production app - run: ./gradlew :app:smartphone:assembleSnapshotChannelRichCodecRelease + run: ./gradlew :app:smartphone:assembleRelease -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true @@ -57,7 +57,7 @@ jobs: uses: actions/upload-artifact@v4 with: path: | - app/smartphone/build/outputs/apk/snapshotChannelRichCodec/release/*.apk + app/smartphone/build/outputs/apk/release/*.apk app/tv/build/outputs/apk/release/*.apk - name: Upload To Telegram diff --git a/app/smartphone/src/main/java/com/m3u/smartphone/AppPublisher.kt b/app/smartphone/src/main/java/com/m3u/smartphone/AppPublisher.kt index 30a6fae8..10b29942 100644 --- a/app/smartphone/src/main/java/com/m3u/smartphone/AppPublisher.kt +++ b/app/smartphone/src/main/java/com/m3u/smartphone/AppPublisher.kt @@ -12,8 +12,8 @@ class AppPublisher @Inject constructor(private val application: Application) : P override val versionName: String = BuildConfig.VERSION_NAME override val versionCode: Int = BuildConfig.VERSION_CODE override val debug: Boolean = BuildConfig.DEBUG - override val snapshot: Boolean = BuildConfig.FLAVOR.contains("snapshotChannel", true) - override val lite: Boolean = BuildConfig.FLAVOR.contains("liteCodec", true) + override val snapshot: Boolean = false + override val lite: Boolean = false override val model: String = Build.MODEL override val abi: Abi = Abi.of(Build.SUPPORTED_ABIS[0]) override val tv: Boolean diff --git a/core/extension/consumer-rules.pro b/core/extension/consumer-rules.pro index 6f900466..22a92695 100644 --- a/core/extension/consumer-rules.pro +++ b/core/extension/consumer-rules.pro @@ -1 +1,4 @@ --keep class com.m3u.core.extension.** { *; } \ No newline at end of file +-keep class com.m3u.core.extension.** { *; } +-keep class com.squareup.wire.** { *; } +-keep class com.m3u.extension.api.model.** { *; } +-keep class * extends com.squareup.wire.ProtoAdapter \ No newline at end of file