perf: gradle config

This commit is contained in:
二刺螈
2025-07-07 12:58:18 +08:00
parent 43fbe005a9
commit 2d15c6e4ec
5 changed files with 14 additions and 52 deletions

View File

@@ -215,7 +215,7 @@ composeCompiler {
dependencies {
implementation(libs.kotlin.stdlib)
implementation(project(mapOf("path" to ":selector")))
implementation(project(":selector"))
implementation(libs.androidx.appcompat)
implementation(libs.androidx.core.ktx)
@@ -238,7 +238,7 @@ dependencies {
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso)
compileOnly(project(mapOf("path" to ":hidden_api")))
compileOnly(project(":hidden_api"))
implementation(libs.rikka.shizuku.api)
implementation(libs.rikka.shizuku.provider)
implementation(libs.lsposed.hiddenapibypass)

View File

@@ -1,12 +1,12 @@
rootProject.name = "gkd"
include(":app")
include(":selector")
include(":hidden_api")
include(":wasm_matches")
include(
":app",
":hidden_api",
":selector",
)
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
google {
content {
@@ -22,9 +22,14 @@ pluginManagement {
dependencyResolutionManagement {
repositories {
mavenLocal()
mavenCentral()
google()
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
maven("https://jitpack.io")
}
}

View File

@@ -1 +0,0 @@
/build

View File

@@ -1,32 +0,0 @@
@file:OptIn(ExperimentalWasmDsl::class)
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.kotlin.multiplatform)
}
kotlin {
jvm {
compilerOptions {
jvmTarget.set(rootProject.ext["kotlin.jvmTarget"] as JvmTarget)
}
}
wasmJs {
binaries.executable()
useEsModules()
generateTypeScriptDefinitions()
browser {}
}
sourceSets {
all {
languageSettings.optIn("kotlin.js.ExperimentalJsExport")
}
commonMain {
dependencies {
implementation(libs.kotlin.stdlib)
}
}
}
}

View File

@@ -1,10 +0,0 @@
package li.songe.matches
import kotlin.js.JsExport
// wasm gc
@JsExport
fun toMatches(source: String): (input: String) -> Boolean {
val regex = Regex(source)
return { input -> regex.matches(input) }
}