Skip to content

Commit e442281

Browse files
see 01/06 log
1 parent af90f7a commit e442281

File tree

19 files changed

+115
-725
lines changed

19 files changed

+115
-725
lines changed

buildSrc/src/main/groovy/Config.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Config {
1515
static minSdkVersion = 14
1616
static targetSdkVersion = 28
1717
static versionCode = 1_026_001
18-
static versionName = '1.26.1-alpha1'// E.g. 1.9.72 => 1,009,072
18+
static versionName = '1.26.1-alpha0'// E.g. 1.9.72 => 1,009,072
1919

2020
// lib version
2121
static gradlePluginVersion = '3.5.2'
@@ -27,7 +27,7 @@ class Config {
2727
/*Never delete this line*/
2828
/*Generated by "config.json"*/
2929
plugin_api_gradle_plugin : new DepConfig(true, true, ":plugin:api-gradle-plugin"),
30-
plugin_bus_gradle_plugin : new DepConfig(true, true, ":plugin:bus-gradle-plugin"),
30+
plugin_bus_gradle_plugin : new DepConfig(false, true, ":plugin:bus-gradle-plugin"),
3131
feature_mock : new DepConfig(false, true, ":feature:mock"),
3232
feature_launcher_app : new DepConfig(true, true, ":feature:launcher:app"),
3333
feature_main_app : new DepConfig(false, true, ":feature:main:app"),
@@ -54,7 +54,7 @@ class Config {
5454
// 本地第一次上传插件新的版本需设置 isApply = false, useLocal = true
5555
// 本地上传成功之后 isApply = true 即可应用插件来调试,后续版本更新无需设置 isApply = false
5656
// 发布版本的话把 isApply = false, useLocal = false,更新版本号,发布成功后 isApply = true 即可使用远程库版本
57-
plugin_api : new DepConfig(isApply: true, useLocal: false, pluginPath: "com.blankj:api-gradle-plugin:1.3", pluginId: "com.blankj.api"),
57+
plugin_api : new DepConfig(isApply: true, useLocal: false, pluginPath: "com.blankj:api-gradle-plugin:1.3-release", pluginId: "com.blankj.api"),
5858
plugin_bus : new DepConfig(isApply: true, useLocal: false, pluginPath: "com.blankj:bus-gradle-plugin:2.5", pluginId: "com.blankj.bus"),
5959

6060
support_appcompat_v7 : new DepConfig("com.android.support:appcompat-v7:$supportVersion"),

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"proConfigDesc": "proConfig 配置的是使用本地还是仓库,优先级低于 appConfig 和 pkgConfig",
77
"proConfig": [
88
{"isApply": true, "useLocal": true, "localPath": ":plugin:api-gradle-plugin"},
9-
{"isApply": true, "useLocal": true, "localPath": ":plugin:bus-gradle-plugin"},
9+
{"isApply": false, "useLocal": true, "localPath": ":plugin:bus-gradle-plugin"},
1010
{"isApply": true, "useLocal": true, "localPath": ":feature:mock"},
1111
{"isApply": true, "useLocal": true, "localPath": ":feature:launcher:app"},
1212
{"isApply": true, "useLocal": true, "localPath": ":feature:main:app"},

feature/main/pkg/src/main/java/com/blankj/main/pkg/MainActivity.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import com.blankj.common.item.CommonItem
99
import com.blankj.common.item.CommonItemClick
1010
import com.blankj.subutil.export.api.SubUtilApi
1111
import com.blankj.utilcode.export.api.UtilCodeApi
12-
import com.blankj.utilcode.util.*
12+
import com.blankj.utilcode.util.ApiUtils
13+
import com.blankj.utilcode.util.BarUtils
14+
import com.blankj.utilcode.util.ClickUtils
15+
import com.blankj.utilcode.util.CollectionUtils
1316
import kotlinx.android.synthetic.main.activity_main.*
1417

1518

@@ -66,6 +69,6 @@ class MainActivity : CommonActivity() {
6669
}
6770

6871
override fun onBackPressed() {
69-
ActivityUtils.startHomeActivity()
72+
ClickUtils.back2HomeFriendly("Press again to exit.")
7073
}
7174
}

feature/utilcode/pkg/src/main/java/com/blankj/utilcode/pkg/feature/adaptScreen/AdaptScreenActivity.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ package com.blankj.utilcode.pkg.feature.adaptScreen
33
import android.content.Context
44
import android.content.Intent
55
import com.blankj.common.activity.CommonActivity
6-
import com.blankj.common.activity.CommonActivityItemsView
7-
import com.blankj.common.activity.CommonActivityTitleView
86
import com.blankj.common.item.CommonItem
97
import com.blankj.common.item.CommonItemClick
108
import com.blankj.utilcode.pkg.R

lib/base/src/main/java/com/blankj/base/rv/BaseItem.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import android.view.View;
1010
import android.view.ViewGroup;
1111

12+
import java.util.List;
13+
1214
/**
1315
* <pre>
1416
* author: Blankj
@@ -117,6 +119,14 @@ public void update() {
117119
getAdapter().updateItem((T) this);
118120
}
119121

122+
public List<T> getItems() {
123+
return getAdapter().getItems();
124+
}
125+
126+
public int getCount() {
127+
return getAdapter().getItemCount();
128+
}
129+
120130
public int getIndex() {
121131
//noinspection SuspiciousMethodCalls
122132
return getAdapter().getItems().indexOf(this);
-1.72 MB
Binary file not shown.

lib/utilcode/README-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ applyPressedBgAlpha : 应用点击后对背景改变透明度
272272
applyPressedBgDark : 应用点击后对背景加深
273273
applySingleDebouncing : 对单视图应用防抖点击
274274
applyGlobalDebouncing : 对所有设置 GlobalDebouncing 的视图应用防抖点击
275+
back2HomeFriendly : 友好地返回桌面
275276
ClickUtils#OnDebouncingClickListener: 防抖点击监听器
276277
ClickUtils#OnMultiClickListener : 连续点击监听器
277278
```

lib/utilcode/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
android:resource="@xml/util_code_provider_paths" />
2222
</provider>
2323

24-
<service android:name="com.blankj.utilcode.util.MessengerUtils$ServerService">
24+
<service
25+
android:name="com.blankj.utilcode.util.MessengerUtils$ServerService"
26+
android:exported="false">
2527
<intent-filter>
2628
<action android:name="${applicationId}.messenger" />
2729
</intent-filter>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ public static void startActivities(@NonNull final Activity activity,
13521352
/**
13531353
* Start home activity.
13541354
*/
1355-
public static void startHomeActivity() throws SecurityException {
1355+
public static void startHomeActivity() {
13561356
Intent homeIntent = new Intent(Intent.ACTION_MAIN);
13571357
homeIntent.addCategory(Intent.CATEGORY_HOME);
13581358
homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ public static boolean isSupportNavBar() {
651651
*/
652652
public static void setNavBarLightMode(@NonNull final Activity activity,
653653
final boolean isLightMode) {
654-
setStatusBarLightMode(activity.getWindow(), isLightMode);
654+
setNavBarLightMode(activity.getWindow(), isLightMode);
655655
}
656656

657657
/**

0 commit comments

Comments
 (0)