Skip to content

@siteed/moonshine.rn: minSdkVersion hardcoded to 35 in build.gradle prevents use below Android 15 #425

Description

@AlexanderBaert79

The wrapper's android/build.gradle contains:

minSdkVersion Math.max((getExtOrDefault('minSdkVersion', 35) as Integer), 35)

The Math.max against a hardcoded 35 means the effective floor is always 35 regardless of what the host project declares or which AAR version is used.

This is relevant because the Moonshine AAR itself recently had its minSdk corrected from 35 to 26 (moonshine-ai/moonshine#197). The wrapper now sets a higher floor than the AAR it wraps.

A fix would be changing the default and the floor to 23 or 26, for example:

minSdkVersion Math.max((getExtOrDefault('minSdkVersion', 23) as Integer), 23)

Our use case is a React Native 0.73 app targeting API 23 and above. Happy to test a fix.

Cheers,
Alex

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