11const std = @import ("std" );
22const androidbuild = @import ("src/androidbuild/androidbuild.zig" );
3- const apk = @import ("src/androidbuild/apk.zig" );
4- const tools = @import ("src/androidbuild/tools.zig" );
3+ const Apk = @import ("src/androidbuild/apk.zig" );
54
65// Expose Android build functionality for use in your build.zig
76
8- pub const ToolsOptions = tools .ToolsOptions ;
9- pub const Tools = tools .Tools ;
10- pub const APK = apk .APK ;
11- pub const APILevel = androidbuild .APILevel ;
12- pub const CreateKey = tools .CreateKey ;
7+ pub const Tools = @import ("src/androidbuild/tools.zig" );
8+ pub const APK = Apk ; // TODO(jae): 2025-03-13: Consider deprecating and using 'Apk' to be conventional to Zig
9+ pub const APILevel = androidbuild .APILevel ; // TODO(jae): 2025-03-13: Consider deprecating and using 'ApiLevel' to be conventional to Zig
1310pub const standardTargets = androidbuild .standardTargets ;
1411
12+ // Deprecated exposes fields
13+
14+ /// Deprecated: Use Tools.Options instead.
15+ pub const ToolsOptions = Tools .Options ;
16+ /// Deprecated: Use Tools.CreateKey instead.
17+ pub const CreateKey = Tools .CreateKey ;
18+
1519/// NOTE: As well as providing the "android" module this declaration is required so this can be imported by other build.zig files
1620pub fn build (b : * std.Build ) void {
1721 const target = b .standardTargetOptions (.{});
@@ -24,7 +28,7 @@ pub fn build(b: *std.Build) void {
2428 });
2529
2630 // Create stub of builtin options.
27- // This is discovered and then replace in src/androidbuild/apk.zig
31+ // This is discovered and then replaced by "Apk" in the build process
2832 const android_builtin_options = std .Build .addOptions (b );
2933 android_builtin_options .addOption ([:0 ]const u8 , "package_name" , "" );
3034 module .addImport ("android_builtin" , android_builtin_options .createModule ());
0 commit comments