[Android] Allow offline and snapshotter to be disabled.

This commit is contained in:
Michael Muesch
2019-01-14 11:58:07 -05:00
committed by Mikhail Pozdnyakov
parent 6e856ebb67
commit 2a17d368ff

View File

@@ -35,19 +35,23 @@
#include "map_renderer.hpp"
#include "map_renderer_runnable.hpp"
#include "native_map_view.hpp"
#ifndef MODULE_OFFLINE_DISABLE
#include "offline/offline_manager.hpp"
#include "offline/offline_region.hpp"
#include "offline/offline_region_definition.hpp"
#include "offline/offline_region_error.hpp"
#include "offline/offline_region_status.hpp"
#endif
#include "style/transition_options.hpp"
#include "style/layers/layer_manager.hpp"
#include "style/sources/source.hpp"
#include "style/light.hpp"
#include "style/formatted.hpp"
#include "style/formatted_section.hpp"
#ifndef MODULE_SNAPSHOT_DISABLE
#include "snapshotter/map_snapshotter.hpp"
#include "snapshotter/map_snapshot.hpp"
#endif
#include "text/collator_jni.hpp"
#include "text/local_glyph_rasterizer_jni.hpp"
#include "logger.hpp"
@@ -177,6 +181,7 @@ void registerNatives(JavaVM *vm) {
ConnectivityListener::registerNative(env);
// Offline
#ifndef MODULE_OFFLINE_DISABLE
OfflineManager::registerNative(env);
OfflineRegion::registerNative(env);
OfflineRegionDefinition::registerNative(env);
@@ -184,10 +189,13 @@ void registerNatives(JavaVM *vm) {
OfflineGeometryRegionDefinition::registerNative(env);
OfflineRegionError::registerNative(env);
OfflineRegionStatus::registerNative(env);
#endif
// Snapshotter
#ifndef MODULE_SNAPSHOT_DISABLE
MapSnapshotter::registerNative(env);
MapSnapshot::registerNative(env);
#endif
// text
LocalGlyphRasterizer::registerNative(env);