urbanairship-core/src/main/java/com/urbanairship/remoteconfig/RemoteConfigManager.java
private void processRemoteData(Collection<RemoteDataPayload> remoteDataPayloads) {

        List<DisableInfo> disableInfos = new ArrayList<>();

        Map<String, List<JsonValue>> config = new HashMap<>();

        for (RemoteDataPayload payload : remoteDataPayloads) {
            for (String key : payload.getData().keySet()) {

                JsonValue value = payload.getData().get(key);

                if (DISABLE_INFO_KEY.equals(key)) {
                    for (JsonValue disableInfoJson : value.optList()) {
                        try {
                            disableInfos.add(DisableInfo.parseJson(disableInfoJson));
                        } catch (JsonException e) {
                            Logger.error("Failed to parse remote config: " + payload, e);
                        }
                    }
                    continue;
                }


                // Treat it like its config
                if (!config.containsKey(key)) {
                    config.put(key, new ArrayList<JsonValue>());
                }
                config.get(key).add(value);
            }
        }

        apply(DisableInfo.filter(disableInfos, UAirship.getVersion(), UAirship.getAppVersion()));

        // Notify new config
        for (Map.Entry<String, List<JsonValue>> entry : config.entrySet()) {
            String module = entry.getKey();
            moduleAdapter.onNewConfig(module, new JsonList(entry.getValue()));
        }
    }
/**
     * Processes the remote data payloads.
     *
     * @param remoteDataPayloads The remote data payloads.
     */
Processes the remote data payloads.
@param remoteDataPayloads The remote data payloads.
Processes the remote data payloads . @param remoteDataPayloads The remote data payloads .
private void processRemoteData(Collection<RemoteDataPayload> remoteDataPayloads) {
        List<DisableInfo> disableInfos = new ArrayList<>();
        Map<String, List<JsonValue>> config = new HashMap<>();
        for (RemoteDataPayload payload : remoteDataPayloads) {
            for (String key : payload.getData().keySet()) {
                JsonValue value = payload.getData().get(key);
                if (DISABLE_INFO_KEY.equals(key)) {
                    for (JsonValue disableInfoJson : value.optList()) {
                        try {
                            disableInfos.add(DisableInfo.parseJson(disableInfoJson));
                        } catch (JsonException e) {
                            Logger.error("Failed to parse remote config: " + payload, e);
                        }
                    }
                    continue;
                }
                if (!config.containsKey(key)) {
                    config.put(key, new ArrayList<JsonValue>());
                }
                config.get(key).add(value);
            }
        }
        apply(DisableInfo.filter(disableInfos, UAirship.getVersion(), UAirship.getAppVersion()));
        for (Map.Entry<String, List<JsonValue>> entry : config.entrySet()) {
            String module = entry.getKey();
            moduleAdapter.onNewConfig(module, new JsonList(entry.getValue()));
        }
    }
private void processRemoteData ( Collection < RemoteDataPayload > remoteDataPayloads ) { List < DisableInfo > disableInfos = new ArrayList < > ( ) ; Map < String , List < JsonValue > > config = new HashMap < > ( ) ; for ( RemoteDataPayload payload : remoteDataPayloads ) { for ( String key : payload . getData ( ) . keySet ( ) ) { JsonValue value = payload . getData ( ) . get ( key ) ; if ( DISABLE_INFO_KEY . equals ( key ) ) { for ( JsonValue disableInfoJson : value . optList ( ) ) { try { disableInfos . add ( DisableInfo . parseJson ( disableInfoJson ) ) ; } catch ( JsonException e ) { Logger . error ( "Failed to parse remote config: " + payload , e ) ; } } continue ; } if ( ! config . containsKey ( key ) ) { config . put ( key , new ArrayList < JsonValue > ( ) ) ; } config . get ( key ) . add ( value ) ; } } apply ( DisableInfo . filter ( disableInfos , UAirship . getVersion ( ) , UAirship . getAppVersion ( ) ) ) ; for ( Map . Entry < String , List < JsonValue > > entry : config . entrySet ( ) ) { String module = entry . getKey ( ) ; moduleAdapter . onNewConfig ( module , new JsonList ( entry . getValue ( ) ) ) ; } }
Processes the remote data payloads.
Processes the remote data payloads .
// Treat it like its config // Notify new config