sdk/src/main/java/com/bugsnag/android/NativeInterface.java
public static void configureClientObservers(@NonNull Client client) {

        // Ensure that the bugsnag observer is registered
        // Should only happen if the NDK library is present
        try {
            String className = "com.bugsnag.android.ndk.BugsnagObserver";
            Class<?> clz = Class.forName(className);
            Observer observer = (Observer) clz.newInstance();
            client.addObserver(observer);
        } catch (ClassNotFoundException exception) {
            // ignore this one, will happen if the NDK plugin is not present
            Logger.info("Bugsnag NDK integration not available");
        } catch (InstantiationException exception) {
            Logger.warn("Failed to instantiate NDK observer", exception);
        } catch (IllegalAccessException exception) {
            Logger.warn("Could not access NDK observer", exception);
        }

        // Should make NDK components configure
        client.notifyBugsnagObservers(NotifyType.ALL);
    }
/**
     * Sets up observers for the NDK client
     * @param client the client
     */
Sets up observers for the NDK client
@param client the client
Sets up observers for the NDK client @param client the client
public static void configureClientObservers(@NonNull Client client) {
        try {
            String className = "com.bugsnag.android.ndk.BugsnagObserver";
            Class<?> clz = Class.forName(className);
            Observer observer = (Observer) clz.newInstance();
            client.addObserver(observer);
        } catch (ClassNotFoundException exception) {
            Logger.info("Bugsnag NDK integration not available");
        } catch (InstantiationException exception) {
            Logger.warn("Failed to instantiate NDK observer", exception);
        } catch (IllegalAccessException exception) {
            Logger.warn("Could not access NDK observer", exception);
        }
        client.notifyBugsnagObservers(NotifyType.ALL);
    }
public static void configureClientObservers ( @ NonNull Client client ) { try { String className = "com.bugsnag.android.ndk.BugsnagObserver" ; Class < ? > clz = Class . forName ( className ) ; Observer observer = ( Observer ) clz . newInstance ( ) ; client . addObserver ( observer ) ; } catch ( ClassNotFoundException exception ) { Logger . info ( "Bugsnag NDK integration not available" ) ; } catch ( InstantiationException exception ) { Logger . warn ( "Failed to instantiate NDK observer" , exception ) ; } catch ( IllegalAccessException exception ) { Logger . warn ( "Could not access NDK observer" , exception ) ; } client . notifyBugsnagObservers ( NotifyType . ALL ) ; }
Sets up observers for the NDK client
 @param client the client
Sets up observers for the NDK client @param client the client
// Ensure that the bugsnag observer is registered // Should only happen if the NDK library is present // ignore this one, will happen if the NDK plugin is not present // Should make NDK components configure