Hello World¶
The “hello world” example projects start Envoy Mobile and use it to make network requests on a 1-second timer, displaying a collection of responses in a list.
The demos and building instructions are available below in the following languages:
Java¶
First, build the Android AAR artifact.
Next, make sure you have an Android simulator running.
Run the sample app using the following Bazel build rule:
./bazelw mobile-install //examples/java/hello_world:hello_envoy --fat_apk_cpu=<arch1,arch2>
You should see a new app installed on your simulator called Hello Envoy
.
Open it up, and requests will start flowing!
Kotlin¶
First, build the Android AAR artifact.
Next, make sure you have an Android simulator running.
Run the sample app using the following Bazel build rule:
./bazelw mobile-install //examples/kotlin/hello_world:hello_envoy_kt --fat_apk_cpu=<arch1,arch2>
You should see a new app installed on your simulator called Hello Envoy Kotlin
.
Open it up, and requests will start flowing!
Objective-C¶
First, build the iOS static framework artifact.
Next, run the sample app using the following Bazel build rule:
./bazelw run //examples/objective-c/hello_world:app --config=ios
This will start a simulator and open a new app. You should see requests start flowing!
Swift¶
First, build the iOS static framework artifact.
Next, run the sample app using the following Bazel build rule:
./bazelw run //examples/swift/hello_world:app --config=ios
This will start a simulator and open a new app. You should see requests start flowing!