Skip to content

Commit 057a95b

Browse files
author
cmj
committed
see 12/22 log
1 parent a042045 commit 057a95b

3 files changed

Lines changed: 31 additions & 12 deletions

File tree

README-CN.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
## Android开发人员不得不收集的代码([持续更新中][update_log.md])
2+
***
3+
24
**[README of English][readme.md]**
5+
36
***
7+
48
为方便查找,已进行大致归类,其目录如下所示:
9+
510
> - **Activity相关→[ActivityUtils.java][activity.java][Demo][activity.demo]**
611
```
712
isActivityExists : 判断是否存在Activity
@@ -556,27 +561,31 @@ getEntries : 获取压缩文件中的文件对象
556561
557562
***
558563

559-
### 关于
564+
### About
560565
***
566+
561567
* 做这份整理是想把它作为Android开发的小字典,当遇到一些琐碎问题时,不用再面向百度或者谷歌查询API的使用,费时费力,这里有的话,大家尽管撸走;同时也希望它能逐日壮大起来,期待大家的Star和完善,当然我也会一直更新发布版本和日志,为了方便大家导入,现已上传jcenter;其中很多代码也是汇四方之精华,谢谢前辈们的提供,当然最终还是要通过单元测试的,如有错误,请及时告之。
562568
* QQ群提供讨论,1群:74721490(已满)2群:25206533,至于验证问题对大家来说肯定都是小case。关于群:[在别人生活里低调地做配角(我和466个程序员的故事)][group]
563569
* 我的[微博][weibo],求个关注哈。
564570

565571
### Download
566572
***
573+
567574
Gradle:
568575
``` groovy
569576
compile 'com.blankj:utilcode:1.3.5'
570577
```
571578

572579
### How to use
573580
***
581+
574582
```
575583
Utils.init(context);
576584
```
577585

578586
### Proguard
579587
***
588+
580589
```
581590
-keep class com.blankj.utilcode.** { *; }
582591
-keepclassmembers class com.blankj.utilcode.** { *; }
@@ -585,6 +594,7 @@ Utils.init(context);
585594

586595
### License
587596
***
597+
588598
```
589599
Copyright 2016 Blankj
590600

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
## Android developers should collect the following utils
2+
***
3+
24
**[README of Chinese][readme-cn.md]**
5+
36
***
4-
Directory is shown below:
7+
Directory is shown below:
8+
59
> - **About Activity→[ActivityUtils.java][activity.java][Demo][activity.demo]**
610
```
711
isActivityExists
@@ -556,25 +560,29 @@ getEntries
556560
557561
***
558562

559-
### About
560-
**I'm so sorry for that the code is annotated with Chinese.**
563+
### About
561564
***
562565

566+
**I'm so sorry for that the code is annotated with Chinese.**
567+
563568
### Download
564569
***
570+
565571
Gradle:
566572
``` groovy
567573
compile 'com.blankj:utilcode:1.3.5'
568574
```
569575

570576
### How to use
571577
***
578+
572579
```
573580
Utils.init(context);
574581
```
575582

576583
### Proguard
577584
***
585+
578586
```
579587
-keep class com.blankj.utilcode.** { *; }
580588
-keepclassmembers class com.blankj.utilcode.** { *; }
@@ -583,6 +591,7 @@ Utils.init(context);
583591

584592
### License
585593
***
594+
586595
```
587596
Copyright 2016 Blankj
588597

utilcode/src/test/java/com/blankj/utilcode/utils/TestUtils.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ public void readme2Eng() throws Exception {
3636
File readmeCN = new File(new File(System.getProperty("user.dir")).getParent() + SEP + "README-CN.md");
3737
File readmeEng = new File(new File(System.getProperty("user.dir")).getParent() + SEP + "README.md");
3838
List<String> list = FileUtils.readFile2List(readmeCN, "UTF-8");
39-
StringBuilder sb = new StringBuilder("## Android developers should collect the following utils\r\n" +
40-
"**[README of Chinese][readme-cn.md]**\r\n" +
39+
StringBuilder sb = new StringBuilder("## Android developers should collect the following utils\r\n***\r\n\r\n" +
40+
"**[README of Chinese][readme-cn.md]**\r\n\r\n" +
4141
"***\r\n" +
42-
"Directory is shown below\r\n");
43-
List<String> lines = list.subList(4, list.size());
42+
"Directory is shown below:\r\n\r\n");
43+
List<String> lines = list.subList(9, list.size());
4444
for (String line : lines) {
4545
if (line.contains("> -") && line.contains("Utils")) {
4646
String utilsName = line.substring(line.indexOf("[") + 1, line.indexOf("Utils"));
4747
sb.append("> - **About ").append(utilsName).append(line.substring(line.indexOf("→")));
4848
} else if (line.contains(" : ")) {
4949
sb.append(line.substring(0, line.indexOf(
5050
':')).trim());
51-
} else if (line.contains("### 关于")) {
52-
sb.append("### About\n**I'm so sorry for that the code is annotated with Chinese.**");
53-
} else if (line.contains("* 做") || line.contains("* QQ") || line.contains("* 我的")) {
51+
} else if (line.contains("* 做")) {
52+
sb.append("**I'm so sorry for that the code is annotated with Chinese.**");
53+
} else if(line.contains("* QQ") || line.contains("* 我的")){
5454
continue;
55-
} else {
55+
} else{
5656
sb.append(line);
5757
}
5858
sb.append("\r\n");

0 commit comments

Comments
 (0)