Compare commits
11 Commits
apputils-v
...
appbase-v1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b882d14ab | ||
|
|
1074a47ae7 | ||
|
|
721a4034dd | ||
|
|
07959be091 | ||
|
|
3e1531d356 | ||
|
|
4a0b58feda | ||
|
|
28ae2631a6 | ||
|
|
87d23829ae | ||
|
|
07bfd44c65 | ||
|
|
32a8c0dfa1 | ||
|
|
0a8707b02b |
@@ -30,7 +30,7 @@ android {
|
|||||||
// versionName 更新后需要手动设置
|
// versionName 更新后需要手动设置
|
||||||
// .winboll/winbollBuildProps.properties 文件的 stageCount=0
|
// .winboll/winbollBuildProps.properties 文件的 stageCount=0
|
||||||
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
|
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
|
||||||
versionName "15.1"
|
versionName "15.2"
|
||||||
if(true) {
|
if(true) {
|
||||||
versionName = genVersionName("${versionName}")
|
versionName = genVersionName("${versionName}")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Fri Mar 28 18:20:32 HKT 2025
|
#Sat Mar 29 11:27:54 HKT 2025
|
||||||
stageCount=4
|
stageCount=3
|
||||||
libraryProject=libappbase
|
libraryProject=libappbase
|
||||||
baseVersion=15.1
|
baseVersion=15.2
|
||||||
publishVersion=15.1.3
|
publishVersion=15.2.2
|
||||||
buildCount=0
|
buildCount=0
|
||||||
baseBetaVersion=15.1.4
|
baseBetaVersion=15.2.3
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ public class MainActivity extends WinBollActivityBase implements IWinBollActivit
|
|||||||
public void onSwitchDebugMode(View view) {
|
public void onSwitchDebugMode(View view) {
|
||||||
boolean isDebuging = ((CheckBox)view).isChecked();
|
boolean isDebuging = ((CheckBox)view).isChecked();
|
||||||
GlobalApplication.setIsDebuging(isDebuging);
|
GlobalApplication.setIsDebuging(isDebuging);
|
||||||
|
GlobalApplication.saveDebugStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPreviewGlobalCrashActivity(View view) {
|
public void onPreviewGlobalCrashActivity(View view) {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Fri Mar 28 18:20:22 HKT 2025
|
#Sat Mar 29 11:27:54 HKT 2025
|
||||||
stageCount=4
|
stageCount=3
|
||||||
libraryProject=libappbase
|
libraryProject=libappbase
|
||||||
baseVersion=15.1
|
baseVersion=15.2
|
||||||
publishVersion=15.1.3
|
publishVersion=15.2.2
|
||||||
buildCount=0
|
buildCount=0
|
||||||
baseBetaVersion=15.1.4
|
baseBetaVersion=15.2.3
|
||||||
|
|||||||
@@ -25,9 +25,12 @@ public class GlobalApplication extends Application {
|
|||||||
MyActivityLifecycleCallbacks mMyActivityLifecycleCallbacks;
|
MyActivityLifecycleCallbacks mMyActivityLifecycleCallbacks;
|
||||||
|
|
||||||
public static void setIsDebuging(boolean isDebuging) {
|
public static void setIsDebuging(boolean isDebuging) {
|
||||||
|
GlobalApplication.isDebuging = isDebuging;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void saveDebugStatus() {
|
||||||
if (_GlobalApplication != null) {
|
if (_GlobalApplication != null) {
|
||||||
GlobalApplication.isDebuging = isDebuging;
|
APPBaseModel.saveBeanToFile(getAPPBaseModelFilePath(), new APPBaseModel(GlobalApplication.isDebuging));
|
||||||
APPBaseModel.saveBeanToFile(getAPPBaseModelFilePath(), new APPBaseModel(isDebuging));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,6 +72,7 @@ public class GlobalApplication extends Application {
|
|||||||
APPBaseModel appBaseModel = APPBaseModel.loadBeanFromFile(getAPPBaseModelFilePath(), APPBaseModel.class);
|
APPBaseModel appBaseModel = APPBaseModel.loadBeanFromFile(getAPPBaseModelFilePath(), APPBaseModel.class);
|
||||||
if (appBaseModel == null) {
|
if (appBaseModel == null) {
|
||||||
setIsDebuging(false);
|
setIsDebuging(false);
|
||||||
|
saveDebugStatus();
|
||||||
} else {
|
} else {
|
||||||
setIsDebuging(appBaseModel.isDebuging());
|
setIsDebuging(appBaseModel.isDebuging());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,7 +220,17 @@ public class LogUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static boolean isLoggable(String tag, LOG_LEVEL logLevel) {
|
static boolean isLoggable(String tag, LOG_LEVEL logLevel) {
|
||||||
return _IsInited && mapTAGList.get(tag) && isInTheLevel(logLevel);
|
if (!_IsInited) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (mapTAGList.get(tag) == null
|
||||||
|
|| !mapTAGList.get(tag)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!isInTheLevel(logLevel)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean isInTheLevel(LOG_LEVEL logLevel) {
|
static boolean isInTheLevel(LOG_LEVEL logLevel) {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class MyActivityLifecycleCallbacks implements Application.ActivityLifecyc
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void showActivityeInfo() {
|
public void showActivityeInfo() {
|
||||||
ToastUtils.show("ActivityeInfo : " + mInfo);
|
//ToastUtils.show("ActivityeInfo : " + mInfo);
|
||||||
LogUtils.d(TAG, "ActivityeInfo : " + mInfo);
|
LogUtils.d(TAG, "ActivityeInfo : " + mInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ public class WinBollActivityManager {
|
|||||||
resumeActivity(context, tag);
|
resumeActivity(context, tag);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ToastUtils.show("startWinBollActivity(Context context, Class<T> clazz)");
|
//ToastUtils.show("startWinBollActivity(Context context, Class<T> clazz)");
|
||||||
|
|
||||||
// 新建一个任务窗口
|
// 新建一个任务窗口
|
||||||
Intent intent = new Intent(context, clazz);
|
Intent intent = new Intent(context, clazz);
|
||||||
|
|||||||
Reference in New Issue
Block a user