Skip to content

Commit 973e788

Browse files
committed
feat:更新readme
1 parent 2642541 commit 973e788

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

readme.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,26 @@ class LocalApp : Application() {
3434
}
3535
```
3636

37-
# ToDo
37+
# 依赖
3838

39-
发布至 **mavenCentral** 以供项目 gradle 依赖
39+
项目的根目录下的 **build.gradle** 中添加 maven仓库(由于Jcenter已废,基本都有maven的默认仓库)
40+
41+
```groovy
42+
buildscript {
43+
44+
repositories {
45+
google()
46+
mavenCentral() //增加 maven仓库
47+
}
48+
}
49+
```
50+
51+
再在 **app** 模块目录下的 **build.gradle** 文件中增加对本组件库的依赖
52+
53+
```groovy
54+
dependencies {
55+
implementation 'io.github.feer921:AndroidStartup:1.0'
56+
}
57+
```
58+
59+
AS提示需要 同步工程,同步成功后,即依赖成功

0 commit comments

Comments
 (0)