-
Notifications
You must be signed in to change notification settings - Fork 347
0x03d Crash_en
AndroidGodEye's crash collection module depends on the open source project xCrash, so you need to add the dependency in your project, otherwise the crash module will fail to install (if you don't need the crash collection function, you can ignore this failure information and remove this dependency)
implementation project(':android-godeye-toolboxes:android-godeye-xcrash')
Support Java and native crash
Use the following configuration to install
GodEye.instance().install(GodEyeConfig.defaultConfigBuilder().withCrashConfig(new GodEyeConfig.CrashConfig(false)).build());
or
<crash immediate="false"/>
immediate
indicates whether to output crash immediately. If it is true, the crash will be output immediately in case of crash. If it is false, the crash will be output when crash module be installed next time. However, if the crash file is saved failed, it will be output immediately after crash regardless of 'immediate' configuration.
Use the following methods to observe the output:
try {
GodEye.instance().observeModule(GodEye.ModuleName.CRASH, (List<CrashInfo> crashInfos) -> {
});
} catch (UninstallException e) {
e.printStackTrace();
}