Skip to content

Commit

Permalink
Merge pull request Meituan-Dianping#112 from Meituan-Dianping/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
hedex authored May 5, 2017
2 parents 37816d0 + a9c7e6d commit 3c00835
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

手机系统版本:如:Android 5.0 (如是编译异常,则可以不填)

Robust版本:如:0.3.7
Robust版本:如:0.3.8

Gradle版本:如:2.10

Expand Down
6 changes: 3 additions & 3 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
apply plugin: 'robust'
compile 'com.meituan.robust:robust:0.3.7'
compile 'com.meituan.robust:robust:0.3.8'
```
2. 在整个项目的build.gradle加入classpath
Expand All @@ -37,8 +37,8 @@
jcenter()
}
dependencies {
classpath 'com.meituan.robust:gradle-plugin:0.3.7'
classpath 'com.meituan.robust:auto-patch-plugin:0.3.7'
classpath 'com.meituan.robust:gradle-plugin:0.3.8'
classpath 'com.meituan.robust:auto-patch-plugin:0.3.8'
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Robust is an Android HotFix solution with high compatibility and high stability.
//please uncomment fellow line before you build a patch
//apply plugin: 'auto-patch-plugin'
apply plugin: 'robust'
compile 'com.meituan.robust:robust:0.3.7'
compile 'com.meituan.robust:robust:0.3.8'
```
2. Add below codes in the outest project's build.gradle file.

Expand All @@ -34,8 +34,8 @@ Robust is an Android HotFix solution with high compatibility and high stability.
jcenter()
}
dependencies {
classpath 'com.meituan.robust:gradle-plugin:0.3.7'
classpath 'com.meituan.robust:auto-patch-plugin:0.3.7'
classpath 'com.meituan.robust:gradle-plugin:0.3.8'
classpath 'com.meituan.robust:auto-patch-plugin:0.3.8'
}
}
```
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/java/com/meituan/sample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import android.widget.TextView;
import android.widget.Toast;

import com.meituan.sample.robusttest.other.Hll;
import com.meituan.robust.Patch;
import com.meituan.robust.PatchExecutor;
import com.meituan.robust.RobustCallBack;
Expand All @@ -18,6 +17,9 @@
import com.meituan.sample.robusttest.SampleClass;
import com.meituan.sample.robusttest.State;
import com.meituan.sample.robusttest.Super;
import com.meituan.sample.robusttest.other.Hll;

import java.util.List;

/**
*
Expand Down Expand Up @@ -98,7 +100,7 @@ public void onClick(View v) {
class Callback implements RobustCallBack {

@Override
public void onPatchListFetched(boolean result, boolean isNet) {
public void onPatchListFetched(boolean result, boolean isNet, List<Patch> patches) {
System.out.println(" robust arrived in onPatchListFetched");
}

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ buildscript {
classpath 'com.android.tools.build:gradle:2.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.meituan.robust:gradle-plugin:0.3.4'
classpath 'com.meituan.robust:auto-patch-plugin:0.3.4'
classpath 'com.meituan.robust:gradle-plugin:0.3.8'
classpath 'com.meituan.robust:auto-patch-plugin:0.3.8'
classpath 'me.tatarka:gradle-retrolambda:3.2.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
VERSION_NAME=0.3.7
VERSION_NAME=0.3.8
GROUP=com.meituan.robust

4 changes: 3 additions & 1 deletion patch/src/main/java/com/meituan/robust/RobustCallBack.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.meituan.robust;

import java.util.List;

/**
* Created by hedex on 17/1/22.
*/
Expand All @@ -11,7 +13,7 @@ public interface RobustCallBack {
* @param result 补丁
* @param isNet 补丁
*/
void onPatchListFetched(boolean result, boolean isNet);
void onPatchListFetched(boolean result, boolean isNet, List<Patch> patches);


/**
Expand Down

0 comments on commit 3c00835

Please sign in to comment.