0

I am using the GluonFX Maven plugin to provide my application for desktop and mobile operating systems as a native binary. That mostly works fine, but there are some areas where using specific modules compiles and links on desktop, but not on android.

Is there a way to have platform dependent variations of a source code when using the GluonFX Maven plugin? Like having src/main/java for common code, src/desktop/java for desktop only code and src/android/java for Android only code?

That option seemed to exist in the older JavaFXPorts, but I cannot find any hint it exists in the current GluonFX Maven plugin anymore. (And I tried, but don't see any indiciation that the code in the folder is picked).

taranion
  • 631
  • 1
  • 6
  • 17
  • 1
    See [Go Native](https://github.com/gluonhq/gluon-samples/tree/master/GoNative) sample. Adding Android/iOS code can be done, but in the very same way as Attach does, so you can create new services like the LogService, reusing the [Attach Extended](https://github.com/gluonhq/AttachExtended) project. – José Pereda Nov 20 '22 at 00:02

0 Answers0