diff --git a/mobile/.bazelrc b/mobile/.bazelrc index 6f8033b79256..da3a2ad67618 100644 --- a/mobile/.bazelrc +++ b/mobile/.bazelrc @@ -14,6 +14,10 @@ build \ --xcode_version=10.2.1 \ --incompatible_bzl_disallow_load_after_statement=false +# Manual Stamping is necessary in order to get versioning information in the ios +# static framework. +# More information on stamping can be found here: +# https://github.com/envoyproxy/envoy/tree/master/bazel#enabling-optional-features build:ios --define=manual_stamp=manual_stamp build:android --fat_apk_cpu=x86,x86_64,armeabi-v7a,arm64-v8a diff --git a/mobile/dist/BUILD b/mobile/dist/BUILD index b3f4b487cc82..d0bc377d5ae8 100644 --- a/mobile/dist/BUILD +++ b/mobile/dist/BUILD @@ -7,6 +7,8 @@ envoy_package() # NOTE: You must first build the top-level targets //:ios_dist and //:android_dist to use the # artifacts referenced here. +# You can also download the distributables referenced here from envoy-mobile's releases page: +# https://github.com/lyft/envoy-mobile/releases aar_import( name = "envoy_mobile_android", diff --git a/mobile/examples/common/config.yaml b/mobile/examples/common/config.yaml index b12466912530..9febce2bf1e3 100644 --- a/mobile/examples/common/config.yaml +++ b/mobile/examples/common/config.yaml @@ -1,3 +1,6 @@ +# Envoy config used by the example applications. +# More information about Envoy's config can be found at: +# https://www.envoyproxy.io/docs/envoy/latest/configuration/configuration static_resources: listeners: - address: diff --git a/mobile/examples/java/hello_world/AndroidManifest.xml b/mobile/examples/java/hello_world/AndroidManifest.xml index d3252ac19509..1ded686e66f8 100644 --- a/mobile/examples/java/hello_world/AndroidManifest.xml +++ b/mobile/examples/java/hello_world/AndroidManifest.xml @@ -3,6 +3,8 @@ android:versionCode="1" android:versionName="0.1"> + (3, envoy_argv); } catch (const Envoy::NoServingException& e) { diff --git a/mobile/library/java/io/envoyproxy/envoymobile/Envoy.java b/mobile/library/java/io/envoyproxy/envoymobile/Envoy.java index 860e83395b60..1794ce408a92 100644 --- a/mobile/library/java/io/envoyproxy/envoymobile/Envoy.java +++ b/mobile/library/java/io/envoyproxy/envoymobile/Envoy.java @@ -6,6 +6,7 @@ import java.io.*; +// Wrapper class that allows for easy calling of Envoy's JNI interface in native Java. public class Envoy { public void load() { System.loadLibrary("envoy_jni"); }