File tree Expand file tree Collapse file tree 4 files changed +21
-1
lines changed
Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ libraryProjects {
1919 val repositoryDir = gradle.gradleUserHomeDir
2020 .resolve(" highcapable-maven-repository" )
2121 .resolve(" repository" )
22+
2223 maven {
2324 name = " HighCapableMavenReleases"
2425 url = repositoryDir.resolve(" releases" ).toURI()
@@ -29,23 +30,28 @@ libraryProjects {
2930 }
3031 }
3132 }
33+
3234 configure<MavenPublishBaseExtension > {
3335 configure(AndroidSingleVariantLibrary (publishJavadocJar = false ))
3436 }
3537 }
38+
3639 tasks.withType<DokkaTask >().configureEach {
3740 val configuration = """ { "footerMessage": "PanguText | Apache-2.0 License | Copyright (C) 2019 HighCapable" }"""
3841 pluginsMapConfiguration.set(mapOf (" org.jetbrains.dokka.base.DokkaBase" to configuration))
3942 }
43+
4044 tasks.register(" publishKDoc" ) {
4145 group = " documentation"
4246 dependsOn(" dokkaHtml" )
47+
4348 doLast {
4449 val docsDir = rootProject.projectDir
4550 .resolve(" docs-source" )
4651 .resolve(" dist" )
4752 .resolve(" KDoc" )
4853 .resolve(project.name)
54+
4955 if (docsDir.exists()) docsDir.deleteRecursively() else docsDir.mkdirs()
5056 layout.buildDirectory.dir(" dokka/html" ).get().asFile.copyRecursively(docsDir)
5157 }
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ android {
2525 sourceCompatibility = JavaVersion .VERSION_17
2626 targetCompatibility = JavaVersion .VERSION_17
2727 }
28+
2829 buildFeatures {
2930 buildConfig = true
3031 viewBinding = true
@@ -33,6 +34,7 @@ android {
3334
3435dependencies {
3536 implementation(projects.pangutextAndroid)
37+
3638 implementation(com.highcapable.betterandroid.ui.component)
3739 implementation(com.highcapable.betterandroid.ui.component.adapter)
3840 implementation(com.highcapable.betterandroid.ui.extension)
@@ -41,6 +43,7 @@ dependencies {
4143 implementation(androidx.appcompat.appcompat)
4244 implementation(com.google.android.material.material)
4345 implementation(androidx.constraintlayout.constraintlayout)
46+
4447 testImplementation(junit.junit)
4548 androidTestImplementation(androidx.test.ext.junit)
4649 androidTestImplementation(androidx.test.espresso.espresso.core)
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ dependencies {
3636 implementation(com.highcapable.betterandroid.system.extension)
3737 implementation(androidx.core.core.ktx)
3838 implementation(androidx.appcompat.appcompat)
39+
3940 testImplementation(junit.junit)
4041 androidTestImplementation(androidx.test.ext.junit)
4142 androidTestImplementation(androidx.test.espresso.espresso.core)
Original file line number Diff line number Diff line change 11enableFeaturePreview(" TYPESAFE_PROJECT_ACCESSORS" )
2+
23pluginManagement {
34 repositories {
45 gradlePluginPortal()
56 google()
67 mavenCentral()
78 }
89}
10+
911plugins {
1012 id(" com.highcapable.sweetdependency" ) version " 1.0.4"
1113 id(" com.highcapable.sweetproperty" ) version " 1.0.8"
1214}
15+
1316sweetProperty {
14- rootProject { all { isEnable = false } }
17+ rootProject {
18+ all {
19+ isEnable = false
20+ }
21+ }
22+
1523 project(" :pangutext-android" ) {
1624 sourcesCode {
1725 isEnableRestrictedAccess = true
1826 }
1927 }
2028}
29+
2130rootProject.name = " PanguText"
31+
2232include(" :demo-android" )
2333include(" :pangutext-android" )
You can’t perform that action at this time.
0 commit comments