Add lint module

This commit is contained in:
LoveSy 2023-07-25 01:24:45 +08:00
parent 8842af1b79
commit f9236fb1c1
5 changed files with 36 additions and 7 deletions

View File

@ -1,7 +1,7 @@
plugins { plugins {
id("com.android.library") alias(libs.plugins.agp.lib)
id("maven-publish") `maven-publish`
id("signing") signing
} }
android { android {
@ -93,4 +93,5 @@ signing {
dependencies { dependencies {
compileOnly("androidx.annotation:annotation:1.6.0") compileOnly("androidx.annotation:annotation:1.6.0")
lintPublish(project(":checks"))
} }

1
checks/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/build

16
checks/build.gradle.kts Normal file
View File

@ -0,0 +1,16 @@
plugins {
java
alias(libs.plugins.kotlin)
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
dependencies {
compileOnly(libs.lint.api)
compileOnly(libs.lint.checks)
compileOnly(libs.kotlin.stdlib)
}

14
gradle/libs.versions.toml Normal file
View File

@ -0,0 +1,14 @@
[versions]
kotlin = "1.8.20"
lint = "31.0.2"
agp = "8.0.2"
[plugins]
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
agp-lib = { id = "com.android.library", version.ref = "agp" }
[libraries]
lint-api = { module = "com.android.tools.lint:lint-api", version.ref = "lint" }
lint-checks = { module = "com.android.tools.lint:lint-checks", version.ref = "lint" }
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }

View File

@ -4,9 +4,6 @@ pluginManagement {
google() google()
mavenCentral() mavenCentral()
} }
plugins {
id("com.android.library") version "8.0.2"
}
} }
dependencyResolutionManagement { dependencyResolutionManagement {
@ -19,4 +16,4 @@ dependencyResolutionManagement {
rootProject.name = "libxposed-api" rootProject.name = "libxposed-api"
include(":api") include(":api", ":checks")