Android JNI generation: Set JNI namespace in build files
This CL removes the use of the @JNINamespace annotation and instead sets the correct JNI namespace in the build file. Bug: webrtc:8278 Change-Id: Ia4490399e45a97d56b02c260fd80df4edfa092bf Reviewed-on: https://webrtc-review.googlesource.com/76440 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23299}
This commit is contained in:

committed by
Commit Bot

parent
7e6fcea7de
commit
c7da266cb8
@ -28,6 +28,7 @@ generate_jni("generated_jni") {
|
||||
"java/org/webrtc/examples/androidnativeapi/CallClient.java",
|
||||
]
|
||||
jni_package = ""
|
||||
namespace = "webrtc_examples"
|
||||
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
|
||||
}
|
||||
|
||||
|
@ -13,13 +13,10 @@ package org.webrtc.examples.androidnativeapi;
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
import org.webrtc.JNINamespace;
|
||||
import org.webrtc.NativeClassQualifiedName;
|
||||
import org.webrtc.SurfaceTextureHelper;
|
||||
import org.webrtc.VideoCapturer;
|
||||
import org.webrtc.VideoSink;
|
||||
|
||||
@JNINamespace("webrtc_examples")
|
||||
public class CallClient {
|
||||
private static final String TAG = "CallClient";
|
||||
private static final int CAPTURE_WIDTH = 640;
|
||||
@ -65,13 +62,10 @@ public class CallClient {
|
||||
}
|
||||
|
||||
private static native long nativeCreateClient();
|
||||
@NativeClassQualifiedName("webrtc_examples::AndroidCallClient")
|
||||
private static native void nativeCall(long nativePtr, VideoSink localSink, VideoSink remoteSink);
|
||||
@NativeClassQualifiedName("webrtc_examples::AndroidCallClient")
|
||||
private static native void nativeHangup(long nativePtr);
|
||||
@NativeClassQualifiedName("webrtc_examples::AndroidCallClient")
|
||||
private static native void nativeDelete(long nativePtr);
|
||||
@NativeClassQualifiedName("webrtc_examples::AndroidCallClient")
|
||||
private static native void nativeCall(
|
||||
long nativeAndroidCallClient, VideoSink localSink, VideoSink remoteSink);
|
||||
private static native void nativeHangup(long nativeAndroidCallClient);
|
||||
private static native void nativeDelete(long nativeAndroidCallClient);
|
||||
private static native VideoCapturer.CapturerObserver nativeGetJavaVideoCapturerObserver(
|
||||
long nativePtr);
|
||||
long nativeAndroidCallClient);
|
||||
}
|
||||
|
Reference in New Issue
Block a user