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

How to use it in Android with Gradle? #13

Open
guidobonerz opened this issue Dec 21, 2024 · 6 comments
Open

How to use it in Android with Gradle? #13

guidobonerz opened this issue Dec 21, 2024 · 6 comments

Comments

@guidobonerz
Copy link

Hi, I want to use your plugin in an Android App to communicate with an esp32 controller, but i'm struggling to set it up correctly.
Any hints on that?

Best regards
Guido

@marc-christian-schulze
Copy link
Owner

Hello,
unfortunately, there's no gradle plugin at the moment.
However, you can either use the Exec task to call maven within your gradle project or use a plugin that hides some of the platform specifics when calling maven, e.g. gradle-maven-exec-plugin

@marc-christian-schulze
Copy link
Owner

Good news, a gradle plugin is now on the roadmap. I keep you posted on how I'm progressing the coming days.

@guidobonerz
Copy link
Author

Hi, these are really good news.

Schöne Weihnachten :-)

@marc-christian-schulze
Copy link
Owner

Frohe Weihnachten! ;-)

I've published a first version of a Gradle plugin to the plugin portal. I'm now awaiting the final approval which should be granted within the next 24 hours.

You should then be able to add the plugin to your build using:

plugins {
  id('java')
  id('io.github.marc-christian-schulze.structs4java.structs4java-gradle-plugin') version '1.2.8'
}

By default, the plugin processes all struct files under src/main/structs, generates the Java code and automatically adds it to the Java or Android Java's source path for compilation.

Please let me know if you encounter any issues applying or using the plugin, especially within an Android project.

@marc-christian-schulze
Copy link
Owner

Plugin got approved and is available in Gradle Portal now.

@guidobonerz
Copy link
Author

Happy new year.
Ok, I will give it a try.

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

No branches or pull requests

2 participants