应用调试功能切换Logo准备完成。

This commit is contained in:
2026-04-06 20:23:37 +08:00
parent 7e3a3d1446
commit e9a1dca8ca
7 changed files with 67 additions and 25 deletions

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Mon Apr 06 11:39:20 GMT 2026
#Mon Apr 06 12:21:56 GMT 2026
stageCount=16
libraryProject=libappbase
baseVersion=15.15
publishVersion=15.15.15
buildCount=3
buildCount=16
baseBetaVersion=15.15.16

View File

@@ -21,9 +21,12 @@ public class App extends GlobalApplication {
*/
@Override
public void onCreate() {
super.onCreate(); // 调用父类初始化逻辑(如基础库配置、全局上下文设置)
//setIsDebugging(false);
setIsDebugging(BuildConfig.DEBUG);
super.onCreate();
// 如果应用不在调试状态,就根据编译类型设置调试状态
if (isDebugging() != true) {
setIsDebugging(BuildConfig.DEBUG);
}
// 初始化 Toast 工具类(传入应用全局上下文,确保 Toast 可在任意地方调用)
ToastUtils.init(getApplicationContext());
}