forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mobile: splitting out java utils from cronet (envoyproxy#25944)
moving the network utilities Envoy Mobile depends on out of the cronvoy directories and namespaces. Risk Level: medium: JNI typos cause failures Testing: relying on all utilities having existing tests Docs Changes: n/a Release Notes: n/a Signed-off-by: Alyssa Wilk <[email protected]> Co-authored-by: JP Simard <[email protected]>
- Loading branch information
1 parent
ee172d2
commit 34661f1
Showing
29 changed files
with
90 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...chromium/net/AndroidCertVerifyResult.java → ...le/utilities/AndroidCertVerifyResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...g/chromium/net/AndroidNetworkLibrary.java → ...bile/utilities/AndroidNetworkLibrary.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
mobile/library/java/io/envoyproxy/envoymobile/utilities/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
load("@build_bazel_rules_android//android:rules.bzl", "android_library") | ||
load("@rules_jvm_external//:defs.bzl", "artifact") | ||
|
||
licenses(["notice"]) # Apache 2 | ||
|
||
android_library( | ||
name = "utilities", | ||
srcs = glob(["*.java"]), | ||
manifest = "UtilitiesManifest.xml", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
artifact("androidx.annotation:annotation"), | ||
], | ||
) |
2 changes: 1 addition & 1 deletion
2
...chromium/net/CertVerifyStatusAndroid.java → ...le/utilities/CertVerifyStatusAndroid.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.chromium.net; | ||
package io.envoyproxy.envoymobile.utilities; | ||
|
||
import androidx.annotation.IntDef; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...y/java/org/chromium/net/ContextUtils.java → ...y/envoymobile/utilities/ContextUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...y/java/org/chromium/net/FakeX509Util.java → ...y/envoymobile/utilities/FakeX509Util.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...a/org/chromium/net/StrictModeContext.java → ...oymobile/utilities/StrictModeContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...org/chromium/net/impl/ThreadStatsUid.java → ...envoymobile/utilities/ThreadStatsUid.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
mobile/library/java/io/envoyproxy/envoymobile/utilities/UtilitiesManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="io.envoyproxy.envoymobile.utilities"> | ||
<uses-sdk | ||
android:minSdkVersion="21" | ||
android:targetSdkVersion="29"/> | ||
|
||
</manifest> |
2 changes: 1 addition & 1 deletion
2
...brary/java/org/chromium/net/X509Util.java → ...proxy/envoymobile/utilities/X509Util.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
mobile/test/java/io/envoyproxy/envoymobile/utilities/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
load("@envoy//bazel:envoy_build_system.bzl", "envoy_package") | ||
load("@envoy_mobile//bazel:kotlin_test.bzl", "envoy_mobile_android_test") | ||
|
||
licenses(["notice"]) # Apache 2 | ||
|
||
envoy_package() | ||
|
||
envoy_mobile_android_test( | ||
name = "certificate_verification_tests", | ||
srcs = [ | ||
"CertificateVerificationTest.java", | ||
], | ||
native_deps = [ | ||
"//test/common/jni:libenvoy_jni_with_test_extensions.so", | ||
"//test/common/jni:libenvoy_jni_with_test_extensions_jnilib", | ||
], | ||
deps = [ | ||
"//library/java/io/envoyproxy/envoymobile/engine:envoy_base_engine_lib", | ||
"//library/java/io/envoyproxy/envoymobile/engine:envoy_engine_lib", | ||
"//library/java/io/envoyproxy/envoymobile/utilities", | ||
"//library/java/org/chromium/net", | ||
], | ||
) |
2 changes: 1 addition & 1 deletion
2
...mium/net/CertificateVerificationTest.java → ...tilities/CertificateVerificationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters