Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/androidbuild/Apk.zig
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,16 @@ assets: ArrayList(Resource),
pub const Options = struct {
/// APK file output name, ie. "{name}.apk"
name: []const u8,
/// ie. "35.0.0"
/// "37.0.0" will use "$ANDROID_HOME/build-tools/37.0.0" which contains tools like:
/// "aapt2", "zipalign", "apksigner", "d8"
build_tools_version: []const u8,
/// ie. "27.0.12077973"
/// "27.0.12077973" will is used to access:
/// - Include headers: $ANDROID_HOME/ndk/27.0.12077973/toolchains/llvm/prebuilt/YOUR_HOST_OS_HERE/sysroot/usr/include
/// - System libraries: $ANDROID_HOME/ndk/27.0.12077973/toolchains/llvm/prebuilt/YOUR_HOST_OS_HERE/sysroot/usr/lib
ndk_version: []const u8,
/// ie. .android15 = 35 (android 15 uses API version 35)
/// .android15 = 35 (android 15 uses API version 35) decides on:
/// - System libraries: $ANDROID_HOME/ndk/$NDK_VERSION/toolchains/llvm/prebuilt/$HOST_OS/sysroot/usr/lib/$TARGET_ARCH/$ANDROID_API_LEVEL
/// - Platform tool jar: $ANDROID_HOME/platforms/android-ANDROID_API_LEVEL
api_level: ApiLevel,
};

Expand Down
2 changes: 2 additions & 0 deletions src/androidbuild/androidbuild.zig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ pub const ApiLevel = enum(u32) {
android15 = 35,
/// Baklava
android16 = 36,
/// Cinnamon Bun
android17 = 37,
// allow custom overrides (incase this library is not up to date with the latest android version)
_,
};
Expand Down
Loading