mirror of
https://github.com/gkd-kit/gkd.git
synced 2026-03-13 08:31:55 +08:00
perf: gradle config
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
1
wasm_matches/.gitignore
vendored
1
wasm_matches/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
/build
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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) }
|
||||
}
|
||||
Reference in New Issue
Block a user