Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Zhang <[email protected]>
  • Loading branch information
danzh1989 committed Oct 13, 2022
1 parent 34526b3 commit e815550
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions library/common/jni/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ cc_library(
],
deps = [
"base_java_jni_lib",
":android_network_utility_lib",
],
alwayslink = True,
)
Expand Down
2 changes: 1 addition & 1 deletion library/common/jni/android_jni_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Java_io_envoyproxy_envoymobile_engine_AndroidJniLibrary_initialize(JNIEnv* env,
envoy_status_t result =
register_platform_api(cert_validator_name, get_android_cert_validator_api());
if (result == ENVOY_FAILURE) {
return -1;
return ENVOY_FAILURE;
}

// See note above about c-ares.
Expand Down
7 changes: 1 addition & 6 deletions library/common/jni/android_test_jni_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,5 @@ Java_io_envoyproxy_envoymobile_engine_AndroidJniLibrary_initialize(JNIEnv* env,
jobject connectivity_manager) {
set_class_loader(env->NewGlobalRef(class_loader));
// At this point, we know Android APIs are available. Register cert chain validation JNI calls.
envoy_status_t result =
register_platform_api(cert_validator_name, get_android_cert_validator_api());
if (result == ENVOY_FAILURE) {
return -1;
}
return 0;
return register_platform_api(cert_validator_name, get_android_cert_validator_api());
}
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ protected static native int registerStringAccessor(String accessorName,
*
* @param engine Handle to the engine for which to drain connections.
*/

protected static native int resetConnectivityState(long engine);

/**
Expand Down

0 comments on commit e815550

Please sign in to comment.