From 26fcd9b584801da2f35da906780f72366ceb1d59 Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Fri, 7 Feb 2025 19:39:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=A8=A1=E5=9D=97=E5=88=9D?= =?UTF-8?q?=E6=AD=A5=E8=B0=83=E8=AF=95=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appbase/build.properties | 4 ++-- libappbase/build.properties | 4 ++-- .../studio/libappbase/GlobalApplication.java | 22 ++++++++++++------- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/appbase/build.properties b/appbase/build.properties index 93f41e8..1f5f3fb 100644 --- a/appbase/build.properties +++ b/appbase/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Fri Feb 07 09:04:42 GMT 2025 +#Fri Feb 07 11:37:57 GMT 2025 stageCount=1 libraryProject=libappbase baseVersion=1.2 publishVersion=1.2.0 -buildCount=172 +buildCount=180 baseBetaVersion=1.2.1 diff --git a/libappbase/build.properties b/libappbase/build.properties index 93f41e8..1f5f3fb 100644 --- a/libappbase/build.properties +++ b/libappbase/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Fri Feb 07 09:04:42 GMT 2025 +#Fri Feb 07 11:37:57 GMT 2025 stageCount=1 libraryProject=libappbase baseVersion=1.2 publishVersion=1.2.0 -buildCount=172 +buildCount=180 baseBetaVersion=1.2.1 diff --git a/libappbase/src/main/java/cc/winboll/studio/libappbase/GlobalApplication.java b/libappbase/src/main/java/cc/winboll/studio/libappbase/GlobalApplication.java index d48a3f7..7663feb 100644 --- a/libappbase/src/main/java/cc/winboll/studio/libappbase/GlobalApplication.java +++ b/libappbase/src/main/java/cc/winboll/studio/libappbase/GlobalApplication.java @@ -20,9 +20,9 @@ import java.io.InputStream; import java.io.OutputStream; public class GlobalApplication extends Application { - + public static final String TAG = "GlobalApplication"; - + final static String PREFS = GlobalApplication.class.getName() + "PREFS"; final static String PREFS_ISDEBUGING = "PREFS_ISDEBUGING"; @@ -60,15 +60,21 @@ public class GlobalApplication extends Application { @Override public void onCreate() { super.onCreate(); + GlobalApplication.isDebuging = true; + GlobalApplication.setIsDebuging(this, true); + LogUtils.init(this); + LogUtils.setLogLevel(LogUtils.LOG_LEVEL.Debug); + //LogUtils.setTAGListEnable(GlobalApplication.TAG, true); + LogUtils.setALlTAGListEnable(true); + LogUtils.d(TAG, "LogUtils init"); + // 设置应用异常处理窗口 CrashHandler.init(this); - - // 设置应用调试状态 - SharedPreferences sharedPreferences = getSharedPreferences(PREFS, Context.MODE_PRIVATE); - GlobalApplication.isDebuging = sharedPreferences.getBoolean(PREFS_ISDEBUGING, GlobalApplication.isDebuging); - LogUtils.init(this); - LogUtils.d(TAG, "onCreate"); + // 设置应用调试状态 + //SharedPreferences sharedPreferences = getSharedPreferences(PREFS, Context.MODE_PRIVATE); + //GlobalApplication.isDebuging = sharedPreferences.getBoolean(PREFS_ISDEBUGING, GlobalApplication.isDebuging); + } public static void write(InputStream input, OutputStream output) throws IOException {