File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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' `
Original file line number Diff line number Diff line change 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.
24plugins {
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+
919task clean (type : Delete ) {
1020 delete rootProject. buildDir
1121}
Original file line number Diff line number Diff 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}
2015rootProject. name = " SpannableStringDslExtension"
2116include ' :app'
You can’t perform that action at this time.
0 commit comments