Skip to content

Commit 9d012e1

Browse files
committed
Update README.md
1 parent 008a7fd commit 9d012e1

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,25 @@
88

99
## 快速接入
1010

11-
```
12-
# 1 set project directory as your work directory, and then create gradle/expose directory
13-
cd gradle && mkdir expose && cd ..
14-
# 2 download expose.gradle.kts and place it to gradle/expose
15-
cd gradle/expose && curl -O https://raw.githubusercontent.com/JailedBird/ModuleExpose/main/gradle/expose/expose.gradle.kts
16-
# 3 download android and java(optional) template file
17-
curl -O https://raw.githubusercontent.com/JailedBird/ModuleExpose/main/gradle/expose/build_gradle_template_android
18-
curl -O https://raw.githubusercontent.com/JailedBird/ModuleExpose/main/gradle/expose/build_gradle_template_java
19-
# 4 then modify the template file to meet the compilation configuration requirements of your project
20-
# 5 Integration is complete; for detailed information, please refer to document https://github.com/JailedBird/ModuleExpose
21-
```
11+
以kts版本为例展示,gradle版本、详细用法请参考对应维基文档;
2212

13+
方式1:克隆本项目,将本项目 gradle/expose目录文件拷贝到工程的gradle/expose即可;
2314

15+
方式2:考虑到克隆项目比较麻烦,提供命令行操作方式如下:
16+
17+
- 在项目gradle目录下创建expose目录,将命令行工作目录切换到gradle/expose
18+
19+
- 在gradle/expose下执行curl命令,分别下载 核心脚本expose.gradle.kts、Android Library配置模板、Java Library配置模板
20+
21+
```
22+
curl -O https://raw.githubusercontent.com/JailedBird/ModuleExpose/main/gradle/expose/expose.gradle.kts
23+
curl -O https://raw.githubusercontent.com/JailedBird/ModuleExpose/main/gradle/expose/build_gradle_template_android
24+
curl -O https://raw.githubusercontent.com/JailedBird/ModuleExpose/main/gradle/expose/build_gradle_template_java
25+
```
26+
27+
PS:两个模板文件需要根据项目实际情况进行定制;
28+
29+
2430

2531
## 简单介绍
2632

0 commit comments

Comments
 (0)