Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cpdroid committed Jul 31, 2019
1 parent dfa3baa commit 8c9230f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ can be referenced directly, no need to import once again.
**This plugin has been tested on android gradle plugin 3.0.0-3.4.2 and gradle 4.6-5.1.1.**

## Usage
Add snippet below to your root project's *build.gradle* file:
Add snippet below to your **root project's *build.gradle*** file:
```gradle
buildscript {
repositories {
Expand All @@ -26,7 +26,7 @@ buildscript {
}
```

Add snippet below to you library project's *build.gradle* file:
Add snippet below to you **library module's *build.gradle*** file:
```gradle
apply plugin: 'com.android.library'
apply plugin: "com.cpdroid.fat_aar"
Expand All @@ -43,6 +43,11 @@ embedded 'com.gongwen:marqueelibrary:1.1.3'

Run gradle assemble task, normally *"assembleRelease"*, copy the generated aar file to your app module's libs directory

Include the generated aar file in **app module's *build.gradle*** file:
```gradle
implementation fileTree(dir: 'libs', include: ['*.aar'])
```

[An example can be found here](https://github.com/cpdroid/fat-aar-sample)

## Features or Issues
Expand Down
9 changes: 7 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Fat-aar是一个将依赖库 *(aar/jar)* 打包进 *aar* 文件的插件.
本插件已经在 *Android gradle plugin* 3.0.0-3.4.2 及 *Gradle* 4.6-5.1.1 版本上测试通过

## 用法
在根目录的 *build.gradle* 文件里面添加如下语句:
**根目录的 *build.gradle*** 里面添加如下语句:
```gradle
buildscript {
repositories {
Expand All @@ -23,7 +23,7 @@ buildscript {
}
```

*library* 工程的 *build.gradle* 里面添加如下语句:
***library* 模块的 *build.gradle*** 里面添加如下语句:
```gradle
apply plugin: 'com.android.library'
apply plugin: "com.cpdroid.fat_aar"
Expand All @@ -40,6 +40,11 @@ embedded 'com.gongwen:marqueelibrary:1.1.3'

运行 *gradle* 任务, 一般来说是 *"assembleRelease"*, 把生成的 *aar* 文件复制进 *app* 模块的 *libs* 目录

***app* 模块的 *build.gradle*** 里面引入生成的 *aar* 文件:
```gradle
implementation fileTree(dir: 'libs', include: ['*.aar'])
```

[这有个例子](https://github.com/cpdroid/fat-aar-sample)

## 特性或问题
Expand Down

0 comments on commit 8c9230f

Please sign in to comment.