refactor: use magic to hide lint on non-public, inline api

- remove all YukiGenerateApi, YukiPrivateApi and @PublishedApi
This commit is contained in:
2023-09-27 18:01:35 +08:00
parent 24290a7ee2
commit 418fd9de00
63 changed files with 142 additions and 415 deletions

View File

@@ -25,8 +25,6 @@ android {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = listOf(
"-opt-in=${property.project.yukihookapi.core.kotlin.optIn.yukiPrivateApi}",
"-opt-in=${property.project.yukihookapi.core.kotlin.optIn.yukiGenerateApi}",
"-Xno-param-assertions",
"-Xno-call-assertions",
"-Xno-receiver-assertions"
@@ -35,17 +33,6 @@ android {
lint { checkReleaseBuilds = false }
}
kotlin {
sourceSets {
all {
languageSettings {
optIn(property.project.yukihookapi.core.kotlin.optIn.yukiPrivateApi)
optIn(property.project.yukihookapi.core.kotlin.optIn.yukiGenerateApi)
}
}
}
}
dependencies {
compileOnly(de.robv.android.xposed.api)
compileOnly(projects.yukihookapiStub)