Skip to content

Commit 208aee9

Browse files
committed
see 06/05 log
1 parent 0d3390c commit 208aee9

File tree

85 files changed

+166
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+166
-325
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
.externalNativeBuild
1010
/apk
1111
*.phrof
12+
/busMaven

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ android:
1818
email: false
1919

2020
before_install:
21-
- yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;26.0.2"
21+
- yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;26.0.2"
2222

2323
script:
2424
- ./gradlew build connectedCheck

bus-gradle-plugin/src/main/java/com/blankj/bus/BusPlugin.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.blankj.bus
33
import com.android.build.gradle.AppExtension
44
import com.android.build.gradle.AppPlugin
55
import com.blankj.util.LogUtils
6-
76
import org.gradle.api.Plugin
87
import org.gradle.api.Project
98

bus-gradle-plugin/src/main/java/com/blankj/bus/BusScan.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ class BusScan {
9090
String temp = longMethodName.substring(0, i);
9191
int j = temp.lastIndexOf('.');
9292
String sign = method.getReturnType().getName() + ' ' +
93-
longMethodName.substring(0, j) +
94-
".INSTANCE" +
95-
longMethodName.substring(j);
93+
longMethodName.substring(0, j) +
94+
".INSTANCE" +
95+
longMethodName.substring(j);
9696
busStaticMap.put(name, sign);
9797
return true
9898
} catch (NotFoundException ignore) {

bus-gradle-plugin/src/main/java/com/blankj/bus/BusTransformAsm.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class BusTransformAsm extends Transform {
5252
def referencedInputs = transformInvocation.getReferencedInputs()
5353
def isIncremental = transformInvocation.isIncremental()
5454

55-
if(!isIncremental) {
55+
if (!isIncremental) {
5656
outputProvider.deleteAll();
5757
}
5858

@@ -74,8 +74,8 @@ class BusTransformAsm extends Transform {
7474

7575
LogUtils.l("scan dir: $dir [$dest]")
7676

77-
if(isIncremental) {
78-
switch(status) {
77+
if (isIncremental) {
78+
switch (status) {
7979
case Status.NOTCHANGED:
8080
break;
8181
case Status.ADDED:
@@ -90,7 +90,7 @@ class BusTransformAsm extends Transform {
9090
}
9191
} else {
9292
//Forgive me!, Some project will store 3rd-party aar for serveral copies in dexbuilder folder,,unknown issue.
93-
if(inDuplcatedClassSafeMode() & !isIncremental && !flagForCleanDexBuilderFolder) {
93+
if (inDuplcatedClassSafeMode() & !isIncremental && !flagForCleanDexBuilderFolder) {
9494
cleanDexBuilderFolder(dest);
9595
flagForCleanDexBuilderFolder = true;
9696
}

gradle.properties

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
# Project-wide Gradle settings.
2-
32
# IDE (e.g. Android Studio) users:
43
# Gradle settings configured through the IDE *will override*
54
# any settings specified in this file.
6-
75
# For more details on how to configure your build environment visit
86
# http://www.gradle.org/docs/current/userguide/build_environment.html
9-
107
# Specifies the JVM arguments used for the daemon process.
118
# The setting is particularly useful for tweaking memory settings.
129
# Default value: -Xmx10248m -XX:MaxPermSize=256m
1310
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14-
1511
# When configured, Gradle will run in incubating parallel mode.
1612
# This option should only be used with decoupled projects. More details, visit
1713
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1814
# org.gradle.parallel=true
19-
2015
#org.gradle.jvmargs=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
21-
2216
org.gradle.jvmargs=-Xmx8192m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8
2317
org.gradle.daemon=true
2418
org.gradle.configureondemand=true

gradle/config/config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ gradle.ext {
2525
plugin_bintray : new DepConfig("com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4"),// 上传到 bintray
2626
plugin_traute : new DepConfig("tech.harmonysoft:traute-gradle:1.1.10"),// 注解转非空判断
2727

28-
plugin_bus : new DepConfig(true/*是否本地调试*/, "", "com.blankj:bus-gradle-plugin:1.8", true),
28+
plugin_bus : new DepConfig(false/*是否本地调试*/, "", "com.blankj:bus-gradle-plugin:1.8", true),
2929

3030
buildSrc : new DepConfig(":buildSrc"),
3131
bus_gradle_plugin : new DepConfig(":bus-gradle-plugin", true),

gradle/config/configApp.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ dependencies {
5959

6060
private String getSuffix() {
6161
if (project.path == ":launcher:app") return ""
62-
return project.path.replace(":" , "_").substring(0, project.path.length() - 4)
62+
return project.path.replace(":", "_").substring(0, project.path.length() - 4)
6363
}
6464

6565
def configSigning(Project pro) {

gradle/util/utils.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def log(Object content) {
99
}
1010

1111
gradle.ext.Utils = [
12-
log : this.&log,
12+
log : this.&log,
1313
object2String: LogFormatter.&object2String,
1414
]
1515

launcher/pkg/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.design.widget.CoordinatorLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:app="http://schemas.android.com/apk/res-auto"
54
android:layout_width="match_parent"
65
android:layout_height="match_parent">
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<resources>
2-
</resources>
1+
<resources></resources>

lib/base/src/main/java/com/blankj/lib/base/BaseApplication.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import android.app.Application;
44
import android.content.Context;
55
import android.support.multidex.MultiDex;
6-
import com.blankj.utilcode.util.*;
6+
7+
import com.blankj.utilcode.util.AppUtils;
8+
import com.blankj.utilcode.util.CrashUtils;
9+
import com.blankj.utilcode.util.LogUtils;
10+
import com.blankj.utilcode.util.ProcessUtils;
711
import com.squareup.leakcanary.LeakCanary;
812

913
import java.util.ArrayList;

lib/base/src/main/java/com/blankj/lib/base/BaseFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public abstract class BaseFragment extends Fragment
3131
private static final String TAG = "BaseFragment";
3232
private static final String STATE_SAVE_IS_HIDDEN = "STATE_SAVE_IS_HIDDEN";
3333

34-
protected Activity mActivity;
34+
protected Activity mActivity;
3535
protected LayoutInflater mInflater;
36-
protected View mContentView;
36+
protected View mContentView;
3737

3838
private long lastClick = 0;
3939

lib/common/src/main/res/drawable/base_sel_button_bg.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@
33
<item android:state_enabled="true" android:state_pressed="true">
44
<shape xmlns:android="http://schemas.android.com/apk/res/android">
55
<solid android:color="@color/lightGray" />
6-
<stroke
7-
android:width="@dimen/size_1"
8-
android:color="@color/lightGrayDark" />
6+
<stroke android:width="@dimen/size_1" android:color="@color/lightGrayDark" />
97
<corners android:radius="@dimen/radius_4" />
108
</shape>
119
</item>
1210

1311
<item>
1412
<shape xmlns:android="http://schemas.android.com/apk/res/android">
1513
<solid android:color="@color/white" />
16-
<stroke
17-
android:width="@dimen/size_1"
18-
android:color="@color/lightGrayDark" />
14+
<stroke android:width="@dimen/size_1" android:color="@color/lightGrayDark" />
1915
<corners android:radius="@dimen/radius_4" />
2016
</shape>
2117
</item>

lib/common/src/main/res/layout/common_activity_drawer.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.v4.widget.DrawerLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:app="http://schemas.android.com/apk/res-auto"
54
xmlns:tools="http://schemas.android.com/tools"
65
android:id="@+id/baseDrawerRootLayout"

lib/common/src/main/res/layout/common_activity_drawer_nav_header.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<RelativeLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="match_parent"
54
android:layout_height="192dp">
65

lib/common/src/main/res/layout/common_activity_title.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.design.widget.CoordinatorLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:app="http://schemas.android.com/apk/res-auto"
54
android:id="@+id/baseTitleRootLayout"
65
android:layout_width="match_parent"
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<FrameLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:id="@+id/baseTitleContentView"
54
android:layout_width="match_parent"
65
android:layout_height="match_parent" />

lib/common/src/main/res/layout/common_activity_title_stub_scroll.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.v4.widget.NestedScrollView
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
43
android:id="@+id/baseTitleNsv"
54
android:layout_width="match_parent"
65
android:layout_height="match_parent"

subutil/lib/src/main/java/com/blankj/subutil/util/http/Headers.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ public class Headers {
99
private Map<String, List<String>> header = new HashMap<>();
1010

1111

12-
1312
}

subutil/pkg/src/main/res/layout/activity_location.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="match_parent"
54
android:layout_height="wrap_content"
65
android:gravity="center_horizontal"

subutil/pkg/src/main/res/layout/activity_pinyin.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="match_parent"
54
android:layout_height="wrap_content"
65
android:gravity="center_horizontal"

utilcode/lib/src/main/java/com/blankj/utilcode/util/AppUtils.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -880,13 +880,13 @@ private static AppInfo getBean(final PackageManager pm, final PackageInfo pi) {
880880
*/
881881
public static class AppInfo {
882882

883-
private String packageName;
884-
private String name;
883+
private String packageName;
884+
private String name;
885885
private Drawable icon;
886-
private String packagePath;
887-
private String versionName;
888-
private int versionCode;
889-
private boolean isSystem;
886+
private String packagePath;
887+
private String versionName;
888+
private int versionCode;
889+
private boolean isSystem;
890890

891891
public Drawable getIcon() {
892892
return icon;

utilcode/lib/src/test/java/com/blankj/utilcode/util/BaseTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ public void onFail(Throwable t) {
201201
static class Person implements Comparable<Person> {
202202

203203
String name;
204-
int age;
205-
int time;
204+
int age;
205+
int time;
206206

207207
public Person(String name) {
208208
this.name = name;

0 commit comments

Comments
 (0)