Skip to content

Commit

Permalink
feat: set binary arch before notifying for handled exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Dec 4, 2018
1 parent 5d3be64 commit 582263c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ndk/src/main/jni/bugsnag.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ static JNIEnv *bsg_global_jni_env = NULL;

void bugsnag_set_binary_arch(JNIEnv *env);

void bugsnag_init(JNIEnv *env) {
bsg_global_jni_env = env;
bugsnag_set_binary_arch(env);
}
void bugsnag_init(JNIEnv *env) { bsg_global_jni_env = env; }

void bugsnag_notify_env(JNIEnv *env, char *name, char *message,
bsg_severity_t severity);
Expand Down Expand Up @@ -115,6 +112,9 @@ void bugsnag_notify_env(JNIEnv *env, char *name, char *message,
jstring jname = (*env)->NewStringUTF(env, name);
jstring jmessage = (*env)->NewStringUTF(env, message);

// set application's binary arch
bugsnag_set_binary_arch(env);

(*env)->CallStaticVoidMethod(env, interface_class, notify_method, jname,
jmessage, jseverity, trace);

Expand Down

0 comments on commit 582263c

Please sign in to comment.