Skip to content

Commit

Permalink
update Android version to 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard-Cao committed Feb 14, 2019
1 parent b4d1646 commit 3131ba1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Example/Logan-Android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ org.gradle.jvmargs=-Xmx1536m
# org.gradle.parallel=true
groupId=com.dianping.android.sdk
artifactId=logan
versionCode=1.1.0
versionCode=1.2.1
9 changes: 8 additions & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Logan是美团点评集团移动端基础日志组件。名称是Log和An的组
在项目的`build.gradle`文件中添加:

```groovy
compile 'com.dianping.android.sdk:logan:1.1.0'
compile 'com.dianping.android.sdk:logan:1.2.1'
```

### Usage
Expand Down Expand Up @@ -77,10 +77,17 @@ public class RealSendLogRunnable extends SendLogRunnable {
@Override
public void sendLog(File logFile) {
// logFile为预处理过后即将要上传的日志文件
// 在此方法最后必须调用finish方法
finish();
if (logFile.getName().contains(".copy")) {
logFile.delete();
}
}
}
```

**注意:在sendLog方法的最后必须调用finish方法**。如上面代码所示。

最后需要调用Logan的send方法:

```java
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ If you want to build the source, make sure your NDK version is not higher than *
Add the following content in the project `build.gradle` file:

```groovy
compile 'com.dianping.android.sdk:logan:1.1.0'
compile 'com.dianping.android.sdk:logan:1.2.1'
```

### Usage

You must init Logan before you use it. For example:
**You must init Logan before you use it**. For example:

```java
LoganConfig config = new LoganConfig.Builder()
Expand Down Expand Up @@ -78,10 +78,17 @@ public class RealSendLogRunnable extends SendLogRunnable {
@Override
public void sendLog(File logFile) {
// logFile: After the pretreatment is going to upload the log file
// Must Call finish after send log
finish();
if (logFile.getName().contains(".copy")) {
logFile.delete();
}
}
}
```

**NOTE: You must call finish method after send log**. As written in the code above

Finally you need to call Logan.s method:

```java
Expand Down

0 comments on commit 3131ba1

Please sign in to comment.