feat:删除无用代码
This commit is contained in:
@@ -1,24 +0,0 @@
|
|||||||
package com.nnbc123.app.application
|
|
||||||
|
|
||||||
import android.content.Context
|
|
||||||
import android.os.Build
|
|
||||||
import android.util.Log
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Max on 2023/12/22 14:49
|
|
||||||
* Desc:
|
|
||||||
**/
|
|
||||||
object ExceptionHandler {
|
|
||||||
fun init(context: Context) {
|
|
||||||
Log.d("ExceptionHandler", "CPU_ABI:${Build.CPU_ABI}")
|
|
||||||
Log.d("ExceptionHandler", "CPU_ABI2:${Build.CPU_ABI2}")
|
|
||||||
Log.d("ExceptionHandler", "SUPPORTED_ABIS:${Build.SUPPORTED_ABIS.joinToString()}")
|
|
||||||
Log.d("ExceptionHandler", "os.arch:${System.getProperty("os.arch")}")
|
|
||||||
val defaultHandler = Thread.getDefaultUncaughtExceptionHandler()
|
|
||||||
Thread.setDefaultUncaughtExceptionHandler { t, e ->
|
|
||||||
e.printStackTrace()
|
|
||||||
Log.d("ExceptionHandler", "异常捕获:${e}")
|
|
||||||
defaultHandler?.uncaughtException(t, e)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -626,7 +626,6 @@ public class XChatApplication extends BaseApp {
|
|||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
instance = this;
|
instance = this;
|
||||||
ExceptionHandler.INSTANCE.init(instance);
|
|
||||||
BaseApp.init(this);
|
BaseApp.init(this);
|
||||||
BasicConfig.INSTANCE.setAppContext(this.getApplicationContext());
|
BasicConfig.INSTANCE.setAppContext(this.getApplicationContext());
|
||||||
SharedPreferenceUtils.init(this);
|
SharedPreferenceUtils.init(this);
|
||||||
|
Reference in New Issue
Block a user