Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Customize the dex --min-api #17

Closed
liplum opened this issue Jul 13, 2022 · 1 comment
Closed

[Feature Request] Customize the dex --min-api #17

liplum opened this issue Jul 13, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@liplum
Copy link
Member

liplum commented Jul 13, 2022

The default --min-api is 14, although Mindustry can run on Android 4.0.1 which is the minimum.
But in some rare cases, we need the """new""" features from higher version.

@liplum liplum added the enhancement New feature or request label Jul 13, 2022
@liplum liplum added this to the Mgpp v1.1.1 milestone Jul 13, 2022
@liplum liplum self-assigned this Jul 13, 2022
@liplum liplum closed this as completed in bc64280 Jul 13, 2022
@liplum
Copy link
Member Author

liplum commented Jul 13, 2022

Since mgpp v1.1.1, you can

  • Kotlin DSL
    tasks.dexJar {
        options.minApi = "26"
        options {
            minApi = "14"
        }
    }
  • Groovy DSL
    dexJar {
        options.minApi = '26'
        options {
            minApi = '14'
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant