Skip to content

Commit 8835450

Browse files
committed
Add native code docs
1 parent 3c43a27 commit 8835450

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

website/blog/modules/ROOT/pages/15-android-build-flow.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ The diagram above still doesn’t tell the whole story! It shows a typical build
144144
- Instrumented tests (separate APK, own resources, manifests, dependencies)
145145
- Native code (NDK builds, CMake integration)
146146

147-
We cover a lot of these architecture styles in the https://github.com/com-lihaoyi/mill/tree/main/example/androidlib[Android examples] and third party integration examples covering xref:mill::android/compose-samples.adoc[Android Compose], xref:mill::android/java.adoc#_using_third_party_native_libraries[Android Native] and xref:mill::android/hilt-sample.adoc[Dependency Injection with Hilt].
147+
We cover a lot of these architecture styles in various Android examples, based on xref:mill::android/java.adoc[Java], xref:mill::android/kotlin.adoc[Kotlin] and third party integration examples covering xref:mill::android/compose-samples.adoc[Android Compose], xref:mill::android/android-native-example.adoc[Android Native] and xref:mill::android/hilt-sample.adoc[Dependency Injection with Hilt].
148148

149149

150150
== Try it out
@@ -175,6 +175,6 @@ Then install it with
175175
$ mill app.androidInstall
176176
----
177177

178-
You may also inspect xref:mill::android/android-initial-setup.adoc[the documented examples] to find out more.
178+
You may also inspect xref:mill::android/android-initial-setup.adoc[the getting started docs] to find out more.
179179

180180
We’d love feedback from the Android community, whether it’s bug reports, feature requests, or success stories. If you’ve ever wished Android builds felt less like a black box, Mill is worth a look.

website/docs/modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
*** xref:android/android-linting.adoc[]
4040
*** xref:android/compose-samples.adoc[]
4141
*** xref:android/hilt-sample.adoc[]
42+
*** xref:android/android-native-example.adoc[]
4243
** xref:pythonlib/intro.adoc[]
4344
*** xref:pythonlib/module-config.adoc[]
4445
*** xref:pythonlib/dependencies.adoc[]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
= Android Native Example
2+
:page-aliases: android_native_example.adoc
3+
4+
This page provides an example of using Mill to build an Android application
5+
that utilizes Android Native for based on the official example of
6+
https://github.com/android/ndk-samples/tree/main/endless-tunnel[Endless Tunnel].
7+
8+
== Android Mill Setup for building Endless Tunnel with Android Native
9+
10+
include::partial$example/thirdparty/android-endless-tunnel.adoc[]
11+
12+
This example demonstrates how to build an Android app that uses Hilt for dependency injection,
13+
translating the original Gradle configuration to Mill.

0 commit comments

Comments
 (0)