Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
db26f5f
Update Renovate configuration to include labels
Goooler Feb 20, 2026
5c0e54e
Bump compileSdk to 36
Goooler Feb 20, 2026
54ec591
Update peter-evans/create-pull-request action to v8
renovate[bot] Feb 20, 2026
d20a644
Update dependency androidx.appcompat:appcompat to v1.7.1
renovate[bot] Feb 20, 2026
f360bbb
Update dependency androidx.recyclerview:recyclerview to v1.4.0
renovate[bot] Feb 20, 2026
4e83c98
Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-android to…
renovate[bot] Feb 20, 2026
b26bee7
Enable auto-merge
Goooler Feb 20, 2026
d11bb4d
Update Gradle to v8.14.4
renovate[bot] Feb 20, 2026
58e8167
Remove wrapper config
Goooler Feb 20, 2026
30ed5d1
Update dependency com.android.tools.build:gradle to v8.13.2
renovate[bot] Feb 20, 2026
160116e
Remove redundant proguard rules
Goooler Feb 20, 2026
4ecace3
Bump minSdk to 23
Goooler Feb 20, 2026
99c9ca3
Update dependency androidx.coordinatorlayout:coordinatorlayout to v1.3.0
renovate[bot] Feb 20, 2026
96526b5
Update dependency androidx.core:core-ktx to v1.17.0
renovate[bot] Feb 20, 2026
20683fb
Update dependency androidx.viewpager2:viewpager2 to v1.1.0
renovate[bot] Feb 20, 2026
e856c16
Update dependency androidx.fragment:fragment to v1.8.9
renovate[bot] Feb 20, 2026
c9750bf
Update dependency androidx.activity:activity-ktx to v1.12.4
renovate[bot] Feb 20, 2026
58090dc
Update dependency androidx.activity:activity to v1.12.4
renovate[bot] Feb 20, 2026
510a496
Update room to v2.8.4
renovate[bot] Feb 20, 2026
324fbaf
Update dependency com.squareup.okhttp3:okhttp-bom to v5
renovate[bot] Feb 20, 2026
8f534be
Update kotlin monorepo to v2.3.10
renovate[bot] Feb 20, 2026
8636e3e
Update dependency com.google.devtools.ksp:symbol-processing-gradle-pl…
renovate[bot] Feb 20, 2026
bbf7e76
Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to…
renovate[bot] Feb 20, 2026
b6a227e
Update dependency com.google.android.material:material to v1.13.0
renovate[bot] Feb 20, 2026
bb81290
Fix unresolved colorPrimary and colorControlNormal for Material 1.13.0
Copilot Feb 20, 2026
f2f3cc1
Update Gradle to v9
renovate[bot] Feb 20, 2026
f9d7c24
Migrate usage of archivesBaseName
Goooler Feb 21, 2026
d4af3c9
Revert "Enable auto-merge"
Goooler Feb 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
],
labels: [
'Update',
],
}
2 changes: 1 addition & 1 deletion .github/workflows/update-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v8
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Update Dependencies
Expand Down
17 changes: 17 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.android.build.api.variant.FilterConfiguration
import org.gradle.kotlin.dsl.androidComponents
import java.net.URL
import java.nio.file.Files
import java.nio.file.StandardCopyOption
Expand All @@ -8,6 +10,21 @@ plugins {
id("com.android.application")
}

androidComponents {
onVariants(selector().withBuildType("release")) { variant ->
variant.outputs.forEach { output ->
// TODO: https://github.com/android/gradle-recipes/blob/cbe7c7dea2a3f5b1764756f24bf453d1235c80e2/listenToArtifacts/README.md
with(output as com.android.build.api.variant.impl.VariantOutputImpl) {
val abiName = output.filters
.find { it.filterType == FilterConfiguration.FilterType.ABI }
?.identifier ?: "universal"
val newApkName = "cmfa-${versionName.get()}-meta-${abiName}-${variant.buildType}.apk"
outputFileName = newApkName
}
}
}
}

dependencies {
compileOnly(project(":hideapi"))

Expand Down
26 changes: 0 additions & 26 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,3 @@
public static void checkParameterIsNotNull(...);
public static void checkNotNullParameter(...);
}

# Kotlin Coroutine
# Allow R8 to optimize away the FastServiceLoader.
# Together with ServiceLoader optimization in R8
# this results in direct instantiation when loading Dispatchers.Main
-assumenosideeffects class kotlinx.coroutines.internal.MainDispatcherLoader {
boolean FAST_SERVICE_LOADER_ENABLED return false;
}

-assumenosideeffects class kotlinx.coroutines.internal.FastServiceLoaderKt {
boolean ANDROID_DETECTED return true;
}

-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}

# Disable support for "Missing Main Dispatcher", since we always have Android main dispatcher
-assumenosideeffects class kotlinx.coroutines.internal.MainDispatchersKt {
boolean SUPPORT_MISSING return false;
}

# Statically turn off all debugging facilities and assertions
-assumenosideeffects class kotlinx.coroutines.DebugKt {
boolean getASSERTIONS_ENABLED() return false;
boolean getDEBUG() return false;
boolean getRECOVER_STACK_TRACES() return false;
}
19 changes: 2 additions & 17 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ subprojects {
else "com.github.kr328.clash.$name"
}

minSdk = 21
minSdk = 23
compileSdkVersion(36)
targetSdk = 35

versionName = "2.11.23"
Expand All @@ -76,15 +77,11 @@ subprojects {

if (!isApp) {
consumerProguardFiles("consumer-rules.pro")
} else {
setProperty("archivesBaseName", "cmfa-$versionName")
}
}

ndkVersion = "29.0.14206865"

compileSdkVersion(defaultConfig.targetSdk!!)

if (isApp) {
packagingOptions {
resources {
Expand Down Expand Up @@ -203,15 +200,3 @@ subprojects {
task("clean", type = Delete::class) {
delete(rootProject.buildDir)
}

tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL

doLast {
val sha256 = URL("$distributionUrl.sha256").openStream()
.use { it.reader().readText().trim() }

file("gradle/wrapper/gradle-wrapper.properties")
.appendText("distributionSha256Sum=$sha256")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class MainDesign(context: Context) : Design<MainDesign.Request>(context) {
init {
binding.self = this

binding.colorClashStarted = context.resolveThemedColor(com.google.android.material.R.attr.colorPrimary)
binding.colorClashStarted = context.resolveThemedColor(android.R.attr.colorPrimary)
binding.colorClashStopped = context.resolveThemedColor(R.attr.colorClashStopped)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class PopupListAdapter(
private val texts: List<CharSequence>,
private val selected: Int,
) : BaseAdapter() {
private val colorPrimary = context.resolveThemedColor(com.google.android.material.R.attr.colorPrimary)
private val colorPrimary = context.resolveThemedColor(android.R.attr.colorPrimary)
private val colorOnPrimary = context.resolveThemedColor(com.google.android.material.R.attr.colorOnPrimary)
private val colorControlNormal = context.resolveThemedColor(com.google.android.material.R.attr.colorControlNormal)
private val colorControlNormal = context.resolveThemedColor(android.R.attr.colorControlNormal)

override fun getCount(): Int {
return texts.size
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ProxyViewConfig(val context: Context, var proxyLine: Int) {
context.resolveThemedResourceId(android.R.attr.selectableItemBackground)

val selectedControl = context.resolveThemedColor(com.google.android.material.R.attr.colorOnPrimary)
val selectedBackground = context.resolveThemedColor(com.google.android.material.R.attr.colorPrimary)
val selectedBackground = context.resolveThemedColor(android.R.attr.colorPrimary)

val unselectedControl = context.resolveThemedColor(com.google.android.material.R.attr.colorOnSurface)
val unselectedBackground: Int
Expand Down
30 changes: 15 additions & 15 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[versions]
agp = "8.8.0"
kotlin = "2.1.0"
ksp = "2.1.0-1.0.29"
agp = "8.13.2"
kotlin = "2.3.10"
ksp = "2.3.6"
golang = "1.0.4"
coroutine = "1.10.1"
coreKtx = "1.8.0"
activity = "1.5.0"
fragment = "1.5.0"
appcompat = "1.4.2"
coordinator = "1.2.0"
recyclerview = "1.2.1"
viewpager = "1.0.0"
material = "1.6.1"
serialization = "1.3.3"
coroutine = "1.10.2"
coreKtx = "1.17.0"
activity = "1.12.4"
fragment = "1.8.9"
appcompat = "1.7.1"
coordinator = "1.3.0"
recyclerview = "1.4.0"
viewpager = "1.1.0"
material = "1.13.0"
serialization = "1.10.0"
kaidl = "1.15"
room = "2.4.2"
room = "2.8.4"
multiprocess = "1.0.0"
quickie = "1.11.0"
androidx-activity-ktx = "1.9.0"
androidx-activity-ktx = "1.12.4"

[libraries]
build-android = { module = "com.android.tools.build:gradle", version.ref = "agp" }
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 4 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#Tue Jan 14 14:06:42 CST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
37 changes: 22 additions & 15 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 14 additions & 12 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions renovate.json

This file was deleted.

2 changes: 1 addition & 1 deletion service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies {
implementation(libs.androidx.room.ktx)
implementation(libs.kaidl.runtime)
implementation(libs.rikkax.multiprocess)
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
implementation(platform("com.squareup.okhttp3:okhttp-bom:5.3.2"))

// define any required OkHttp artifacts without version
implementation("com.squareup.okhttp3:okhttp")
Expand Down
Loading