mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
android: third_party/jni_zero: Remove JNI functions
This commit is contained in:
parent
dc7304ccfe
commit
044731a72c
24
src/third_party/jni_zero/BUILD.gn
vendored
24
src/third_party/jni_zero/BUILD.gn
vendored
@ -18,27 +18,6 @@ config("jni_zero_defines") {
|
||||
}
|
||||
}
|
||||
|
||||
generate_jni("generate_jni") {
|
||||
sources = [
|
||||
"java/src/org/jni_zero/JniInit.java",
|
||||
"java/src/org/jni_zero/JniUtil.java",
|
||||
]
|
||||
visibility = [
|
||||
":*",
|
||||
"//components/cronet/android/*",
|
||||
]
|
||||
}
|
||||
|
||||
generate_jar_jni("system_jni") {
|
||||
classes = [
|
||||
"java/util/Arrays.class",
|
||||
"java/util/Collection.class",
|
||||
"java/util/List.class",
|
||||
"java/util/Map.class",
|
||||
]
|
||||
visibility = [ ":*" ]
|
||||
}
|
||||
|
||||
# This is the public target that we intend others to use.
|
||||
component("jni_zero") {
|
||||
public = [
|
||||
@ -52,7 +31,6 @@ component("jni_zero") {
|
||||
]
|
||||
|
||||
sources = [
|
||||
"common_apis.cc",
|
||||
"common_apis.h",
|
||||
"default_conversions.cc",
|
||||
"java_refs.cc",
|
||||
@ -75,8 +53,6 @@ component("jni_zero") {
|
||||
}
|
||||
|
||||
deps = [
|
||||
":generate_jni($default_toolchain)",
|
||||
":system_jni($default_toolchain)",
|
||||
]
|
||||
}
|
||||
|
||||
|
8
src/third_party/jni_zero/jni_zero.cc
vendored
8
src/third_party/jni_zero/jni_zero.cc
vendored
@ -6,7 +6,6 @@
|
||||
|
||||
#include <sys/prctl.h>
|
||||
|
||||
#include "third_party/jni_zero/generate_jni/JniInit_jni.h"
|
||||
#include "third_party/jni_zero/jni_methods.h"
|
||||
#include "third_party/jni_zero/jni_zero_internal.h"
|
||||
#include "third_party/jni_zero/logging.h"
|
||||
@ -123,13 +122,6 @@ void InitVM(JavaVM* vm) {
|
||||
JNIEnv* env = AttachCurrentThread();
|
||||
g_object_class = GetSystemClassGlobalRef(env, "java/lang/Object");
|
||||
g_string_class = GetSystemClassGlobalRef(env, "java/lang/String");
|
||||
#if defined(JNI_ZERO_MULTIPLEXING_ENABLED)
|
||||
Java_JniInit_crashIfMultiplexingMisaligned(env, kJniZeroHashWhole,
|
||||
kJniZeroHashPriority);
|
||||
#else
|
||||
// Mark as used when multiplexing not enabled.
|
||||
(void)&Java_JniInit_crashIfMultiplexingMisaligned;
|
||||
#endif
|
||||
CheckException(env);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user