Skip to content

Commit ea1f855

Browse files
committed
add README.md
1 parent be5fd95 commit ea1f855

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SpannableStringDslExtension
2+
3+
思路见文章[在 Kotlin 中巧妙的使用 DSL 封装 SpannableStringBuilder](https://juejin.cn/post/7067325056124190734)
4+
5+
相比文章做了更多的扩展,利用 kotlin 语法糖做了一些有趣的事情,欢迎star & PR。
6+
7+
使用:
8+
` implementation 'xyz.junerver.ssktx:ss-ktx:1.1.1'`

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import com.vanniktech.maven.publish.SonatypeHost
2+
13
// Top-level build file where you can add configuration options common to all sub-projects/modules.
24
plugins {
35
id 'com.android.application' version '7.1.2' apply false
@@ -6,6 +8,14 @@ plugins {
68
id 'com.vanniktech.maven.publish' version '0.18.0' apply false
79
}
810

11+
allprojects {
12+
plugins.withId("com.vanniktech.maven.publish") {
13+
mavenPublish {
14+
sonatypeHost = "S01"
15+
}
16+
}
17+
}
18+
919
task clean(type: Delete) {
1020
delete rootProject.buildDir
1121
}

settings.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ dependencyResolutionManagement {
1111
google()
1212
mavenCentral()
1313
}
14-
plugins.withId("com.vanniktech.maven.publish") {
15-
mavenPublish {
16-
sonatypeHost = "S01"
17-
}
18-
}
1914
}
2015
rootProject.name = "SpannableStringDslExtension"
2116
include ':app'

0 commit comments

Comments
 (0)