Virtual Everywhere It's How We Play the Game, Javafx and Graalvm

Virtual Everywhere It's How We Play the Game, Javafx and Graalvm

Virtual Everywhere January 13, 2021 It’s How We Play the Game, JavaFX and GraalVM Paul Anderson Gail Anderson Anderson Software Group, Inc. asgteach.com © 2021 Anderson Software Group 1 } Training Company ◦ Java, JavaFX Courses } JavaFX Authors ◦ Definitive Guide to JavaFX ◦ JavaFX Rich Client Programming on the NetBeans Platform } LiveLesson Videos ◦ JavaFX Programming ◦ Java Reflection © 2021 Anderson Software Group 2 } Why JavaFX on Mobile? } Gluon Framework } Gluon Substrate and GraalVM } Mobile App Roadmap } Gluon Client Plugin } IOS and Android Native Images } App Stores } Wrap Up, Q & A © 2021 Anderson Software Group 3 } Critical Goal ◦ Platform independent source code ◦ “Write Once, Install Everywhere” } Design Approach ◦ Gluon tools and GraalVM platform ◦ Lets you build native images } JavaFX Advantages ◦ Java UI, scene graph, nodes, FXML views ◦ Properties, listeners, binding, event handlers © 2021 Anderson Software Group 4 © 2021 Anderson Software Group 5 } MobileApplication ◦ Main class for JavaFX mobile applications ◦ Extends JavaFX Application class ◦ Specify views as factories that are called on demand } Views ◦ View class invokes FXMLLoader for FXML ◦ Presenter class is the FXML controller class } Resources ◦ fxml, css, images, licensing files © 2021 Anderson Software Group 6 © 2021 Anderson Software Group 7 © 2021 Anderson Software Group 8 © 2021 Anderson Software Group 9 } Development Steps 1 Local development with JVM/Desktop environment 2 Install and test on local device 3 Upload to stores for beta testing/approval TestFlight for IOS Multilevel Beta Testing for Android 4 Place in store for general access/approval © 2021 Anderson Software Group 10 © 2021 Anderson Software Group 11 © 2021 Anderson Software Group 12 } Maven Client Plugin ◦ Builds native image apps for multiple platforms ◦ Targets MacOs, Linux, Windows, IOS, Android ◦ Leverages GraalVM, OpenJDK, OpenJFX } GraalVM Features ◦ Java VM and JDK platform, implemented in Java ◦ Supports AOT compilation of Java applications ◦ Creates native images ◦ Fast startup, low memory footprint © 2021 Anderson Software Group 13 } Mac with MacOS ◦ Xcode development tools ◦ Native libraries ◦ GraalVM JDK } Other Requirements ◦ Apple provisioning ◦ Icon images ◦ Feature configuration © 2021 Anderson Software Group 14 } Maven Configuration File pom.xml } Build and Package $ mvn –Pios client:build $ mvn –Pios client:package } Install and Run $ mvn –Pios client:run © 2021 Anderson Software Group 15 } Linux Box or Virtual Linux OS ◦ Development tools ◦ Native libraries ◦ GraalVM JDK } Other Requirements ◦ Java signing ◦ Icon images ◦ Feature configuration © 2021 Anderson Software Group 16 } Build and Package $ mvn –Pandroid client:build $ mvn –Pandroid client:package } Install and Run $ mvn –Pandroid client:install $ mvn –Pandroid client:run © 2021 Anderson Software Group 17 © 2021 Anderson Software Group 18 } Apple AppStore ◦ Provisioning profile to sign app ◦ App Store Connect ◦ Upload with Transporter } Google Play ◦ Signup for Google Play Console ◦ Sign APK package ◦ Upload to site © 2021 Anderson Software Group 19 https://t.co/141k1n7iQ6?amp=1 https://t.co/ayInaH8cvi?amp=1 © 2021 Anderson Software Group 20 } JavaFX Advantages ◦ Platform independent source code ◦ Observables, binding, listeners, event handlers ◦ Background tasks to sync UI } Useful Frameworks ◦ Gluon Substrate for mobile deployment ◦ Based on OpenJDK and OpenJFX ◦ GraalVM to create IOS and Android native images ◦ GitHub Actions to simplify deployments © 2021 Anderson Software Group 21 } Thanks for Attending! [email protected] @paul_asgteach [email protected] @gail_asgteach } GitHub Source Code https://github.com/gailasgteach/MiniGolf } Q & A © 2021 Anderson Software Group 22.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    22 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us