sdk/src/main/java/com/bugsnag/android/Client.java
@NonNull
    static Configuration populateConfigFromManifest(@NonNull Configuration config,
                                                    @NonNull Bundle data) {
        config.setBuildUUID(data.getString(MF_BUILD_UUID));
        config.setAppVersion(data.getString(MF_APP_VERSION));
        config.setReleaseStage(data.getString(MF_RELEASE_STAGE));

        if (data.containsKey(MF_ENDPOINT)) {
            String endpoint = data.getString(MF_ENDPOINT);
            String sessionEndpoint = data.getString(MF_SESSIONS_ENDPOINT);
            //noinspection ConstantConditions (pass in null/empty as this function will warn)
            config.setEndpoints(endpoint, sessionEndpoint);
        }

        config.setSendThreads(data.getBoolean(MF_SEND_THREADS, true));
        config.setPersistUserBetweenSessions(
            data.getBoolean(MF_PERSIST_USER_BETWEEN_SESSIONS, false));

        if (data.containsKey(MF_AUTO_CAPTURE_SESSIONS)) {
            config.setAutoCaptureSessions(data.getBoolean(MF_AUTO_CAPTURE_SESSIONS));
        }

        config.setEnableExceptionHandler(
            data.getBoolean(MF_ENABLE_EXCEPTION_HANDLER, true));
        return config;
    }
/**
     * Populates the config with meta-data values supplied from the manifest as a Bundle.
     *
     * @param config the config to mutate
     * @param data   the manifest bundle
     * @return the updated config
     */
Populates the config with meta-data values supplied from the manifest as a Bundle.
@param config the config to mutate
@param data   the manifest bundle
@return the updated config
Populates the config with meta - data values supplied from the manifest as a Bundle . @param config the config to mutate @param data the manifest bundle @return the updated config
@NonNull
    static Configuration populateConfigFromManifest(@NonNull Configuration config,
                                                    @NonNull Bundle data) {
        config.setBuildUUID(data.getString(MF_BUILD_UUID));
        config.setAppVersion(data.getString(MF_APP_VERSION));
        config.setReleaseStage(data.getString(MF_RELEASE_STAGE));
        if (data.containsKey(MF_ENDPOINT)) {
            String endpoint = data.getString(MF_ENDPOINT);
            String sessionEndpoint = data.getString(MF_SESSIONS_ENDPOINT);
            config.setEndpoints(endpoint, sessionEndpoint);
        }
        config.setSendThreads(data.getBoolean(MF_SEND_THREADS, true));
        config.setPersistUserBetweenSessions(
            data.getBoolean(MF_PERSIST_USER_BETWEEN_SESSIONS, false));
        if (data.containsKey(MF_AUTO_CAPTURE_SESSIONS)) {
            config.setAutoCaptureSessions(data.getBoolean(MF_AUTO_CAPTURE_SESSIONS));
        }
        config.setEnableExceptionHandler(
            data.getBoolean(MF_ENABLE_EXCEPTION_HANDLER, true));
        return config;
    }
@ NonNull static Configuration populateConfigFromManifest ( @ NonNull Configuration config , @ NonNull Bundle data ) { config . setBuildUUID ( data . getString ( MF_BUILD_UUID ) ) ; config . setAppVersion ( data . getString ( MF_APP_VERSION ) ) ; config . setReleaseStage ( data . getString ( MF_RELEASE_STAGE ) ) ; if ( data . containsKey ( MF_ENDPOINT ) ) { String endpoint = data . getString ( MF_ENDPOINT ) ; String sessionEndpoint = data . getString ( MF_SESSIONS_ENDPOINT ) ; config . setEndpoints ( endpoint , sessionEndpoint ) ; } config . setSendThreads ( data . getBoolean ( MF_SEND_THREADS , true ) ) ; config . setPersistUserBetweenSessions ( data . getBoolean ( MF_PERSIST_USER_BETWEEN_SESSIONS , false ) ) ; if ( data . containsKey ( MF_AUTO_CAPTURE_SESSIONS ) ) { config . setAutoCaptureSessions ( data . getBoolean ( MF_AUTO_CAPTURE_SESSIONS ) ) ; } config . setEnableExceptionHandler ( data . getBoolean ( MF_ENABLE_EXCEPTION_HANDLER , true ) ) ; return config ; }
Populates the config with meta-data values supplied from the manifest as a Bundle.
Populates the config with meta - data values supplied from the manifest as a Bundle .
//noinspection ConstantConditions (pass in null/empty as this function will warn)