Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
docs(更新): README;
Browse files Browse the repository at this point in the history
  • Loading branch information
D10NGYANG committed Mar 16, 2023
1 parent dd67b64 commit 23a2e26
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,25 @@
allprojects {
repositories {
maven { url 'https://jitpack.io' }
// 我的github镜像仓库
maven { url 'https://raw.githubusercontent.com/D10NGYANG/maven-repo/main/repository'}
}
}
```
2. Add the dependency
```groovy
dependencies {
implementation 'com.github.D10NGYANG:DLSideBar_Compose:1.0.3'
implementation 'com.github.D10NGYANG:DLSideBar_Compose:1.1.0'
// Compose
def composeBom = platform('androidx.compose:compose-bom:2023.01.00')
implementation composeBom
androidTestImplementation composeBom
// Material Design 2
implementation 'androidx.compose.material:material'
// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
}
```
3. 在你的UI页面中使用
Expand Down
6 changes: 6 additions & 0 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,14 @@ afterEvaluate {
publishing {
publications {
create("release", MavenPublication::class) {
artifactId = "DLSideBar_Compose"
from(components.getByName("release"))
}
}
repositories {
maven {
url = uri("/Users/d10ng/project/kotlin/maven-repo/repository")
}
}
}
}

0 comments on commit 23a2e26

Please sign in to comment.