Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
R
RatelApi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ratel
RatelApi
Commits
ee916484
Commit
ee916484
authored
Feb 08, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加使用方法
parent
95c20178
Pipeline
#1338
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
README.md
README.md
+38
-1
No files found.
README.md
View file @
ee916484
# RatelApi
这是Ratel(平头哥)的api代码模块,剥离自Ratel整体工程,以git父子module进行关联。
剥离RatelApi工程的目的是使得用户可以通过代码使用RatelEngine已经支持,但是RatelApi还没有发布到jar包的功能。另一方面方便RatelEngine调试
\ No newline at end of file
剥离RatelApi工程的目的是使得用户可以通过代码使用RatelEngine已经支持,但是RatelApi还没有发布到jar包的功能。另一方面方便RatelEngine调试
# 外部工程通过git submodule依赖本项目的方法
1.
创建子module,注意path需要提供
``二级``
目录
```
git submodule add git@git.virjar.com:ratel/ratelapi.git base-lib-ratel-api/ratel-api
```
此时工程将会初始化到
``base-lib-ratel-api/ratel-api``
下面
2.
在settings.gradle里面配置该子项目
``':base-lib-ratel-api'``
,请注意不要带上
``/ratel-api``
,否则将会使用ratel-api下面的build.gradle文件。
这是由于ratel-api自带的编译规则可能有他的独立性。
3.
在
``base-lib-ratel-api``
目录下创建
``build.gradle``
并写入如下内容
```
apply plugin: 'java-library'
sourceSets {
main {
resources {
srcDir 'ratel-api/src/main/resources'
}
java {
srcDir 'ratel-api/src/main/java'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compileOnly 'com.google.android:android:4.1.1.4'
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
compileOnly 'com.android.support:support-annotations:28.0.0'
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment