diff --git a/.bazelrc b/.bazelrc index 0300d0d841..37ffe658d8 100644 --- a/.bazelrc +++ b/.bazelrc @@ -27,7 +27,7 @@ build --javabase=@bazel_tools//tools/jdk:jdk build:ios --define=manual_stamp=manual_stamp # Default flags for builds targeting Android -build:android --fat_apk_cpu=x86_64 +build:android --define logger=android # Common flags for release builds # TODO: Enable `--copt -ggdb3`. Issues were encountered previously with this: @@ -42,4 +42,5 @@ build:release-ios --config=release-common build:release-ios --copt=-fembed-bitcode # Flags for release builds targeting Android or the JVM +build:release-android --config=android build:release-android --config=release-common diff --git a/docs/root/development/performance/cpu_battery_impact.rst b/docs/root/development/performance/cpu_battery_impact.rst index 581d3e5f4e..2601542965 100644 --- a/docs/root/development/performance/cpu_battery_impact.rst +++ b/docs/root/development/performance/cpu_battery_impact.rst @@ -94,7 +94,7 @@ a process listening to traffic sent over this connection. Getting the build: -1. Build the library using ``bazel build android_dist --config=android`` +1. Build the library using ``bazel build android_dist --config=android --fat_apk_cpu=armeabi-v7a`` 2. Control: ``bazel mobile-install //examples/kotlin/control:hello_control_kt`` 3. Envoy: ``bazel mobile-install //examples/kotlin/hello_world:hello_envoy_kt --fat_apk_cpu=armeabi-v7a`` diff --git a/docs/root/start/building/building.rst b/docs/root/start/building/building.rst index 0c8a5a8e2f..c70b34634f 100644 --- a/docs/root/start/building/building.rst +++ b/docs/root/start/building/building.rst @@ -51,7 +51,7 @@ Android AAR Envoy Mobile can be compiled into an ``.aar`` file for use with Android apps. This command is defined in the main :repo:`BUILD ` file of the repo, and may be run locally: -``bazel build android_dist --config=android`` +``bazel build android_dist --config=android --fat_apk_cpu=`` Upon completion of the build, you'll see an ``envoy.aar`` file at :repo:`dist/envoy.aar `. @@ -63,7 +63,7 @@ an example of how this artifact may be used. **When building the artifact for release** (usage outside of development), be sure to include the ``--config=release-android`` option, along with the architectures for which the artifact is being built: -``bazel build android_dist --config=release-android --fat_apk_cpu=x86,x86_64,armeabi-v7a,arm64-v8a`` +``bazel build android_dist --config=release-android --fat_apk_cpu=x86,armeabi-v7a,arm64-v8a`` For a demo of a working app using this artifact, see the :ref:`hello_world` example. diff --git a/docs/root/start/examples/hello_world.rst b/docs/root/start/examples/hello_world.rst index 5b2635f55f..a0d0cb0561 100644 --- a/docs/root/start/examples/hello_world.rst +++ b/docs/root/start/examples/hello_world.rst @@ -23,7 +23,7 @@ Next, make sure you have an Android simulator running. Run the :repo:`sample app ` using the following Bazel build rule: -``bazel mobile-install //examples/java/hello_world:hello_envoy --fat_apk_cpu=x86`` +``bazel mobile-install //examples/java/hello_world:hello_envoy --fat_apk_cpu=`` You should see a new app installed on your simulator called ``Hello Envoy``. Open it up, and requests will start flowing! @@ -38,7 +38,7 @@ Next, make sure you have an Android simulator running. Run the :repo:`sample app ` using the following Bazel build rule: -``bazel mobile-install //examples/kotlin/hello_world:hello_envoy_kt --fat_apk_cpu=x86`` +``bazel mobile-install //examples/kotlin/hello_world:hello_envoy_kt --fat_apk_cpu=`` You should see a new app installed on your simulator called ``Hello Envoy Kotlin``. Open it up, and requests will start flowing!