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

chore(android): forward --sdk in module build process #14112

Merged
merged 4 commits into from
Sep 14, 2024

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented Sep 14, 2024

When testing the gradle8 PR I saw that inside a module when I run ti build -p android --sdk 12.6.0 it was building the module with 12.6.0 but the example app was still starting with 12.4.0.GA.

This PR will forward the --sdk parameter and it won't crash with Unsupported Class File Major Version 61 errors (module is build with java 17 but then run with java 11)

Testing:

  • build an Android module with an example folder
  • ti build -p android -l trace --sdk 12.6.0 should show:
[DEBUG] Running example project...
[DEBUG] Titanium Command-Line Interface v7.1.1 SDK v12.6.0

after building the module ZIP.

  • copy android/cli/commands/_buildModule.js to 12.4.0.GA and build the module again:
  • ti build -p android -l trace (no custom SDK, it should take the default SDK) should show:
[DEBUG] Running example project...
[DEBUG] Titanium Command-Line Interface v7.1.1 SDK v12.4.0

@m1ga m1ga mentioned this pull request Sep 14, 2024
Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good catch! LGTM

@hansemannn hansemannn merged commit 4c1c067 into master Sep 14, 2024
5 checks passed
hansemannn pushed a commit that referenced this pull request Sep 16, 2024
* chore(android): forward --sdk in module build process

* optimize code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants