diff options
author | Igor Tarasov <igor.tarasov@mapbox.com> | 2020-04-02 18:36:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 18:36:55 +0300 |
commit | 338cfd1b33dfe26b9402d79cc64609b944a9f1d1 (patch) | |
tree | 2db5f73682b226ad64489742596acee9337c0538 /platform/android/src/style/layers/custom_layer.hpp | |
parent | b7728d222cbcdb3e522fc3e482e69101b0b95481 (diff) | |
download | qtlocation-mapboxgl-338cfd1b33dfe26b9402d79cc64609b944a9f1d1.tar.gz |
[android] [build] [ci] Move Android JNI bindings code to mapbox-gl-native-android repo. (#16356)
Diffstat (limited to 'platform/android/src/style/layers/custom_layer.hpp')
-rw-r--r-- | platform/android/src/style/layers/custom_layer.hpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/platform/android/src/style/layers/custom_layer.hpp b/platform/android/src/style/layers/custom_layer.hpp deleted file mode 100644 index 3856ea73ae..0000000000 --- a/platform/android/src/style/layers/custom_layer.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#pragma once - -#include <jni/jni.hpp> -#include <mbgl/gl/custom_layer.hpp> -#include <mbgl/gl/custom_layer_factory.hpp> -#include "layer.hpp" - -namespace mbgl { -namespace android { - -class CustomLayer : public Layer { -public: - using SuperTag = Layer; - static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/CustomLayer"; }; - - static void registerNative(jni::JNIEnv&); - - CustomLayer(jni::JNIEnv&, const jni::String&, jni::jlong); - CustomLayer(mbgl::style::CustomLayer&); - CustomLayer(std::unique_ptr<mbgl::style::CustomLayer>); - ~CustomLayer(); - - jni::Local<jni::Object<Layer>> createJavaPeer(jni::JNIEnv&); -}; // class CustomLayer - -class CustomJavaLayerPeerFactory final : public JavaLayerPeerFactory, public mbgl::CustomLayerFactory { -public: - ~CustomJavaLayerPeerFactory() override; - - // JavaLayerPeerFactory overrides. - jni::Local<jni::Object<Layer>> createJavaLayerPeer(jni::JNIEnv&, mbgl::style::Layer&) final; - jni::Local<jni::Object<Layer>> createJavaLayerPeer(jni::JNIEnv& env, std::unique_ptr<mbgl::style::Layer>) final; - - void registerNative(jni::JNIEnv&) final; - - LayerFactory* getLayerFactory() final { return this; } - -}; // class CustomJavaLayerPeerFactory - -} // namespace android -} // namespace mbgl |