2015-09-24 22:52:02 +02:00
|
|
|
#include <jni.h>
|
|
|
|
|
2016-01-11 18:19:48 +01:00
|
|
|
/*static google_breakpad::ExceptionHandler *exceptionHandler;
|
2015-09-24 22:52:02 +02:00
|
|
|
|
|
|
|
bool callback(const google_breakpad::MinidumpDescriptor &descriptor, void *context, bool succeeded) {
|
|
|
|
printf("dump path: %s\n", descriptor.path());
|
|
|
|
return succeeded;
|
2016-01-11 18:19:48 +01:00
|
|
|
}*/
|
2015-09-24 22:52:02 +02:00
|
|
|
|
|
|
|
extern "C" {
|
2020-09-30 15:48:47 +02:00
|
|
|
JNIEXPORT void Java_org_telegram_messenger_NativeLoader_init(JNIEnv* env, jobject obj, jstring filepath, jboolean enable) {
|
|
|
|
return;
|
|
|
|
/*if (enable) {
|
|
|
|
const char *path = env->GetStringUTFChars(filepath, 0);
|
|
|
|
google_breakpad::MinidumpDescriptor descriptor(path);
|
|
|
|
exceptionHandler = new google_breakpad::ExceptionHandler(descriptor, NULL, callback, NULL, true, -1);
|
|
|
|
}*/
|
|
|
|
}
|
2017-12-08 18:35:59 +01:00
|
|
|
}
|