mirror of
https://github.com/BetterAndroid/PanguText.git
synced 2025-10-18 01:39:24 +08:00
style: optimizing code style
This commit is contained in:
@@ -19,6 +19,7 @@ libraryProjects {
|
||||
val repositoryDir = gradle.gradleUserHomeDir
|
||||
.resolve("highcapable-maven-repository")
|
||||
.resolve("repository")
|
||||
|
||||
maven {
|
||||
name = "HighCapableMavenReleases"
|
||||
url = repositoryDir.resolve("releases").toURI()
|
||||
@@ -29,23 +30,28 @@ libraryProjects {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configure<MavenPublishBaseExtension> {
|
||||
configure(AndroidSingleVariantLibrary(publishJavadocJar = false))
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<DokkaTask>().configureEach {
|
||||
val configuration = """{ "footerMessage": "PanguText | Apache-2.0 License | Copyright (C) 2019 HighCapable" }"""
|
||||
pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.base.DokkaBase" to configuration))
|
||||
}
|
||||
|
||||
tasks.register("publishKDoc") {
|
||||
group = "documentation"
|
||||
dependsOn("dokkaHtml")
|
||||
|
||||
doLast {
|
||||
val docsDir = rootProject.projectDir
|
||||
.resolve("docs-source")
|
||||
.resolve("dist")
|
||||
.resolve("KDoc")
|
||||
.resolve(project.name)
|
||||
|
||||
if (docsDir.exists()) docsDir.deleteRecursively() else docsDir.mkdirs()
|
||||
layout.buildDirectory.dir("dokka/html").get().asFile.copyRecursively(docsDir)
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@ android {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
viewBinding = true
|
||||
@@ -33,6 +34,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation(projects.pangutextAndroid)
|
||||
|
||||
implementation(com.highcapable.betterandroid.ui.component)
|
||||
implementation(com.highcapable.betterandroid.ui.component.adapter)
|
||||
implementation(com.highcapable.betterandroid.ui.extension)
|
||||
@@ -41,6 +43,7 @@ dependencies {
|
||||
implementation(androidx.appcompat.appcompat)
|
||||
implementation(com.google.android.material.material)
|
||||
implementation(androidx.constraintlayout.constraintlayout)
|
||||
|
||||
testImplementation(junit.junit)
|
||||
androidTestImplementation(androidx.test.ext.junit)
|
||||
androidTestImplementation(androidx.test.espresso.espresso.core)
|
||||
|
@@ -36,6 +36,7 @@ dependencies {
|
||||
implementation(com.highcapable.betterandroid.system.extension)
|
||||
implementation(androidx.core.core.ktx)
|
||||
implementation(androidx.appcompat.appcompat)
|
||||
|
||||
testImplementation(junit.junit)
|
||||
androidTestImplementation(androidx.test.ext.junit)
|
||||
androidTestImplementation(androidx.test.espresso.espresso.core)
|
||||
|
@@ -1,4 +1,5 @@
|
||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||
|
||||
pluginManagement {
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
@@ -6,18 +7,27 @@ pluginManagement {
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("com.highcapable.sweetdependency") version "1.0.4"
|
||||
id("com.highcapable.sweetproperty") version "1.0.8"
|
||||
}
|
||||
|
||||
sweetProperty {
|
||||
rootProject { all { isEnable = false } }
|
||||
rootProject {
|
||||
all {
|
||||
isEnable = false
|
||||
}
|
||||
}
|
||||
|
||||
project(":pangutext-android") {
|
||||
sourcesCode {
|
||||
isEnableRestrictedAccess = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "PanguText"
|
||||
|
||||
include(":demo-android")
|
||||
include(":pangutext-android")
|
Reference in New Issue
Block a user