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

Android examples: basic structure for an android example app module #38

Merged
merged 4 commits into from
Feb 21, 2023

Conversation

Scrappers-glitch
Copy link
Member

This PR modifies the following:

  • The project root structure to include 4 modules.
  • Helper-scripts to include android-debug scripts/

This PR adds the following:

  • jme3-alloc-android-example application module that implements both the jme3-alloc and jme3-alloc-examples jar outputs.

@Scrappers-glitch Scrappers-glitch added techdemos Related to jme3-testalloc android Related to android labels Feb 19, 2023
@Scrappers-glitch
Copy link
Member Author

Notice, this is a minimal android port, there should be more work on this android application to implement a test chooser for example.

@Scrappers-glitch
Copy link
Member Author

Scrappers-glitch commented Feb 19, 2023

To test locally use this command:

└──╼ $./gradlew clean && 
      ./gradlew :jme3-alloc:compileJava &&
      ./gradlew :jme3-alloc-native:compileAndroid && 
      ./gradlew :jme3-alloc-native:copyNatives && 
      ./gradlew :jme3-alloc:android :jme3-alloc:assemble && 
      ./gradlew :jme3-alloc-examples:copyLibs && 
      ./gradlew :jme3-alloc-examples:createJar && 
      ./gradlew :jme3-alloc-android-example:clean &&
      ./gradlew :jme3-alloc-android-example:build &&
      ./gradlew :jme3-alloc-android-example:assemble && 
      ./gradlew :jme3-alloc-android-example:installDebug

And to run, use:

$ adb shell am start -n "com.jme3.alloc.android.example/com.jme3.alloc.android.example.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER && adb logcat

Or just launch the application from the app drawer gui.

@Scrappers-glitch Scrappers-glitch merged commit 5c055fa into master Feb 21, 2023
@Scrappers-glitch Scrappers-glitch deleted the android-examples branch February 21, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Related to android techdemos Related to jme3-testalloc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Examples] Port the jme3-alloc-examples to an android example application
1 participant