Skip to content

Commit

Permalink
UPDATE: README && test-module
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyAndroid committed Jan 29, 2019
1 parent 0221931 commit 0d7bcd1
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 7 deletions.
24 changes: 23 additions & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@

![image-20190129101936404](pic/image-20190129101936404.png)

绿豆荚依赖管理器可以一键把线上的aar依赖切换为本地依赖,实现类似iOS cocoapods依赖管理器直接依赖仓库源码
绿豆荚依赖管理器也是实现类似的功能,一键把线上maven仓库切换为本地依赖,方便maven仓库新需求开发、问题修复。甚至之后可以实现类似iOS cocoapods依赖管理器功能,对全网的maven仓库实现一键切换源码

#### 用法

**配置**

在setting.gradle中添加:

```groovy
Expand Down Expand Up @@ -87,6 +89,26 @@ pod {

配置完成,sync整个工程,线上模块将会以源码的方式包含进工程,实现源码调试模块的能力。

##### 前后图文对比如下:

**配置前(线上依赖)**

配置文件:

![image-20190129105234167](pic/image-20190129105234167.png)

依赖的maven仓库:

![image-20190129105400191](pic/image-20190129105400191.png)

**配置后(本地依赖)**

配置文件:

![image-20190129105604524](pic/image-20190129105604524.png)

依赖的maven仓库:

![image-20190129105815769](pic/image-20190129105815769.png)

通过配置文件的开关即可以一键切换maven仓库为源码依赖,实现源码调试。
2 changes: 1 addition & 1 deletion demo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ dependencies {
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

implementation 'tech.jackywang:greenbean-pods-plugin-test-module:0.0.1'
implementation 'tech.jackywang:greenbean-pods-plugin-test-module:0.0.2'
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ package tech.jackywang.greenbean.pods.demo

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import tech.jackywang.greenbean.pods.demo.library.DepClass1

class MainActivity : AppCompatActivity() {

lateinit var ddep: DepClass1

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
Expand Down
4 changes: 2 additions & 2 deletions demo/greenbean.pods/PodsSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import greenbean.pods.GreenBean
*/

pod {
on_off true
on_off false
name 'greenbean-pods-plugin-test-module'
group 'tech.jackywang'
path 'test-module/library'
}

pod {
on_off true
on_off false
name 'app'
seeds 'greenbean-pods-plugin-test-module'
}
Expand Down
Binary file added pic/image-20190129105234167.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20190129105400191.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20190129105604524.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20190129105815769.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test-module/library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ publish {
groupId = 'tech.jackywang'
artifactId = 'greenbean-pods-plugin-test-module'
uploadName = 'greenbean-pods-plugin-test-module'
publishVersion = '0.0.1'
publishVersion = '0.0.2'
licences = ["GPL-3.0"]
desc = 'https://github.com/JackyAndroid/GreenBeanPods'
website = 'https://github.com/JackyAndroid/GreenBeanPods'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package tech.jackywang.greenbean.pods.demo.library

/**
*
* @author wangshichang
* @author jacky
* @version v1.0
* @description
* @since 2019/1/28
*/
class DepClass1 {

}

0 comments on commit 0d7bcd1

Please sign in to comment.