Skip to content

Feature request: Detect installed package versions #98

Description

@ypsvlq

Currently wio's examples include 3 build scripts supporting Android, each of which has build options defaulting to what I have installed locally:

const apk = sdk.createApk(.{
    .build_tools_version = b.option([]const u8, "android_build_tools_version", "Android build tools version (e.g. 35.0.0)") orelse "37.0.0",
    .ndk_version = b.option([]const u8, "android_ndk_version", "Android NDK version (e.g. 27.0.12077973)") orelse "29.0.14206865",
    .api_level = b.option(android.ApiLevel, "android_api_level", "Android API level (e.g. android15)") orelse .android15,
});

It would be nice for maintenance and usability if zig-android-sdk could default to the newest installed versions, which could be implemented by iterating the respective SDK directories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions