File tree Expand file tree Collapse file tree
src/main/java/com/king/compose/codetextfield/app
src/main/java/com/king/compose/codetextfield Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66jobs :
77 build :
8- executor : android/android
9-
8+ docker :
9+ - image : cimg/android:2023.02
1010 steps :
1111 - checkout
1212 - run :
13- command : ./gradlew build
13+ command : ./gradlew build
14+
Original file line number Diff line number Diff line change 1+ root = true
2+
3+ [* ]
4+ indent_style = space
5+ indent_size = 4
6+ charset = utf-8
7+ trim_trailing_whitespace = true
8+ insert_final_newline = true
9+
10+ [* .{kt, kts} ]
11+ ij_kotlin_imports_layout = *
Original file line number Diff line number Diff line change 1- name : Android CI
1+ name : build
22
33on :
44 push :
1717 with :
1818 java-version : 11
1919 - name : Build with Gradle
20- run : ./gradlew build
20+ run : ./gradlew build
Original file line number Diff line number Diff line change 1+ name : docs
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ env :
9+ JAVA_VERSION : 11
10+ PYTHON_VERSION : 3.x
11+ GRADLE_OPTS : " -Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
12+
13+ permissions :
14+ contents : write
15+ id-token : write
16+ pages : write
17+
18+ jobs :
19+ docs :
20+ environment :
21+ name : github-pages
22+ url : ${{ steps.deployment.outputs.page_url }}
23+ runs-on : ubuntu-latest
24+ if : github.ref == 'refs/heads/master'
25+
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v4
29+ with :
30+ fetch-depth : 0
31+
32+ - name : Configure JDK
33+ uses : actions/setup-java@v4
34+ with :
35+ distribution : ' zulu'
36+ java-version : ${{ env.JAVA_VERSION }}
37+
38+ - name : Install Python
39+ uses : actions/setup-python@v5
40+ with :
41+ python-version : ${{ env.PYTHON_VERSION }}
42+
43+ - name : Install MkDocs Material
44+ run : pip install mkdocs-material
45+
46+ - name : Generate Docs
47+ run : ./build_docs.sh
48+
49+ - name : Upload to GitHub Pages
50+ uses : actions/upload-pages-artifact@v3
51+ with :
52+ path : site
53+
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ ## 版本日志
2+
3+ #### v1.0.0:2022-11-20
4+ * CodeTextField初始版本
Original file line number Diff line number Diff line change @@ -50,15 +50,17 @@ CodeTextField for Jetpack Compose;一个使用 Compose 实现的验证码输
5050
5151```
5252
53- 更多使用详情,请查看[ app] ( app ) 中的源码使用示例或直接查看 [ API帮助文档] ( https://jitpack. io/com/github/jenly1314/ CodeTextField/latest/javadoc / )
53+ 更多使用详情,请查看[ app] ( app ) 中的源码使用示例或直接查看 [ API帮助文档] ( https://jenly1314.github. io/CodeTextField/api / )
5454
5555## 相关推荐
5656
5757#### [ SplitEditText] ( https://github.com/jenly1314/SplitEditText ) 一个灵活的分割可编辑框;常常应用于 ** 验证码输入** 、** 密码输入** 等场景。
5858#### [ KingKeyboard] ( https://github.com/jenly1314/KingKeyboard ) 一个自定义键盘,满足各种不同场景的键盘输入需求。
5959#### [ compose-component] ( https://github.com/jenly1314/compose-component ) 一个Jetpack Compose的组件库;主要提供了一些小组件,便于快速使用。
6060
61- ## 版本记录
61+ <!-- end -->
62+
63+ ## 版本日志
6264
6365#### v1.0.0:2022-11-20
6466* CodeTextField初始版本
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ android {
2626 }
2727 }
2828 compileOptions {
29- sourceCompatibility JavaVersion . VERSION_11
30- targetCompatibility JavaVersion . VERSION_11
29+ sourceCompatibility JavaVersion . VERSION_1_8
30+ targetCompatibility JavaVersion . VERSION_1_8
3131 }
3232 kotlinOptions {
33- jvmTarget = JavaVersion . VERSION_11
33+ jvmTarget = JavaVersion . VERSION_1_8
3434 }
3535 buildFeatures {
3636 compose true
@@ -63,4 +63,4 @@ dependencies {
6363 androidTestImplementation " androidx.test.espresso:espresso-core:$versions . espressoCore "
6464
6565 implementation project(" :codetextfield" )
66- }
66+ }
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import androidx.compose.runtime.mutableStateOf
1313import androidx.compose.runtime.remember
1414import androidx.compose.ui.Modifier
1515import androidx.compose.ui.graphics.Color
16- import androidx.compose.ui.graphics.RectangleShape
1716import androidx.compose.ui.graphics.SolidColor
1817import androidx.compose.ui.res.stringResource
1918import androidx.compose.ui.text.TextStyle
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ plugins {
55 id ' com.android.application' version ' 7.2.1' apply false
66 id ' com.android.library' version ' 7.2.1' apply false
77 id ' org.jetbrains.kotlin.android' version ' 1.7.0' apply false
8- // id 'org.jetbrains.dokka' version '1.7.0 ' apply false
8+ id ' org.jetbrains.dokka' version ' 1.8.20 ' apply false
99 id ' com.vanniktech.maven.publish' version ' 0.22.0' apply false
1010}
1111
1212// task clean(type: Delete) {
1313// delete rootProject.buildDir
14- // }
14+ // }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -ex
4+
5+ # Generate the API docs
6+ ./gradlew dokkaHtml
7+
8+ mkdir -p docs/api
9+ mv codetextfield/build/dokka/html/* docs/api
10+
11+ # Copy in special files that GitHub wants in the project root.
12+ GITHUB_URL=https://github.com/jenly1314/CodeTextField/
13+ echo $GITHUB_URL
14+ sed " /<!-- end -->/q" README.md > docs/index.md
15+ # sed -i "s|app/src/main/ic_launcher-web.png|ic_logo.png|g" docs/index.md
16+ sed -i " s|](app|](${GITHUB_URL} blob/master/app|g" docs/index.md
17+ cat CHANGELOG.md | grep -v ' ## 版本日志' > docs/changelog.md
18+
19+ cp GIF.gif docs/GIF.gif
20+ # cp app/src/main/ic_launcher-web.png docs/ic_logo.png
21+
22+ # Build the site locally
23+ mkdocs build
You can’t perform that action at this time.
0 commit comments