core: rename mbgl namespace to mln (#4487)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2026-08-14 23:25:20 +02:00
committed by GitHub
parent 836b862984
commit 550f64be22
1970 changed files with 8931 additions and 8967 deletions

View File

@@ -1,7 +1,7 @@
#include "collection.hpp"
#include "constant.hpp"
namespace mbgl {
namespace mln {
namespace android {
namespace conversion {
@@ -29,4 +29,4 @@ jni::Local<jni::Array<jni::String>> toArray(JNIEnv& env, const std::vector<std::
} // namespace conversion
} // namespace android
} // namespace mbgl
} // namespace mln

View File

@@ -6,7 +6,7 @@
#include <vector>
namespace mbgl {
namespace mln {
namespace android {
namespace conversion {
@@ -15,4 +15,4 @@ jni::Local<jni::Array<jni::String>> toArray(JNIEnv& env, const std::vector<std::
} // namespace conversion
} // namespace android
} // namespace mbgl
} // namespace mln

View File

@@ -1,17 +1,17 @@
#include "color.hpp"
namespace mbgl {
namespace mln {
namespace android {
namespace conversion {
Result<mbgl::Color> Converter<mbgl::Color, int>::operator()(jni::JNIEnv&, const int& color) const {
Result<mln::Color> Converter<mln::Color, int>::operator()(jni::JNIEnv&, const int& color) const {
float r = (color >> 16) & 0xFF;
float g = (color >> 8) & 0xFF;
float b = (color) & 0xFF;
float a = (color >> 24) & 0xFF;
return {mbgl::Color(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f)};
return {mln::Color(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f)};
}
} // namespace conversion
} // namespace android
} // namespace mbgl
} // namespace mln

View File

@@ -4,15 +4,15 @@
#include <mbgl/util/color.hpp>
namespace mbgl {
namespace mln {
namespace android {
namespace conversion {
template <>
struct Converter<mbgl::Color, int> {
Result<mbgl::Color> operator()(jni::JNIEnv&, const int& color) const;
struct Converter<mln::Color, int> {
Result<mln::Color> operator()(jni::JNIEnv&, const int& color) const;
};
} // namespace conversion
} // namespace android
} // namespace mbgl
} // namespace mln

View File

@@ -5,7 +5,7 @@
#include <mbgl/style/conversion/stringify.hpp>
#include <mbgl/util/string.hpp>
namespace mbgl {
namespace mln {
namespace android {
namespace conversion {
@@ -117,11 +117,11 @@ Result<jni::Local<jni::Object<>>> Converter<jni::Local<jni::Object<>>, style::ex
return jni::Make<jni::String>(env, value.id());
}
Result<jni::Local<jni::Object<>>> Converter<jni::Local<jni::Object<>>, mbgl::style::Rotation>::operator()(
jni::JNIEnv& env, const mbgl::style::Rotation& value) const {
Result<jni::Local<jni::Object<>>> Converter<jni::Local<jni::Object<>>, mln::style::Rotation>::operator()(
jni::JNIEnv& env, const mln::style::Rotation& value) const {
return jni::Box(env, value.getAngle());
}
} // namespace conversion
} // namespace android
} // namespace mbgl
} // namespace mln

View File

@@ -17,7 +17,7 @@
#include <vector>
#include <mbgl/style/rotation.hpp>
namespace mbgl {
namespace mln {
namespace android {
namespace conversion {
@@ -140,10 +140,10 @@ struct Converter<jni::Local<jni::Object<>>, style::expression::Image> {
};
template <>
struct Converter<jni::Local<jni::Object<>>, mbgl::style::Rotation> {
Result<jni::Local<jni::Object<>>> operator()(jni::JNIEnv& env, const mbgl::style::Rotation& value) const;
struct Converter<jni::Local<jni::Object<>>, mln::style::Rotation> {
Result<jni::Local<jni::Object<>>> operator()(jni::JNIEnv& env, const mln::style::Rotation& value) const;
};
} // namespace conversion
} // namespace android
} // namespace mbgl
} // namespace mln

View File

@@ -6,7 +6,7 @@
#include <string>
namespace mbgl {
namespace mln {
namespace android {
namespace conversion {
@@ -47,4 +47,4 @@ Result<T> convert(jni::JNIEnv& env, const V& value, Args&&... args) {
} // namespace conversion
} // namespace android
} // namespace mbgl
} // namespace mln