Skip to content

philip-han/dictator_graal

Repository files navigation

Introduction

This is a sample library component for Android and iOS mobile apps. Please refer to companion article for more information.

Android App

iOS App

This module depends on speechcore module found in Android App, so please configure and build it first.


Instruction

Please create local.properties in your project root prior to building.

staticJdk=<location of static JDK>
temp=<location of tmp directory>
speechcoreModule=<location of speechcore module>

Note that speechcore module is located in a different project root. You'll find it under Android App.


Tooling

Please install GraalVM Tools for Java - Visual Studio Marketplace first. You will need following modules once the extension is installed. You may also download and install GraalVM using this extension.

GraalVM Extension Modules

Tested GraalVM version is 22.1.0 or lower. Higher version is not working at the moment due to modules not importing correctly. Will update as soon as that is working.


Downloading Static JDK for ios-aarch64 and ios-x86_64

You may obtain the static JDK libs by first cloning Gluon Samples.

Gluon Samples Repository

Change to HelloFX directory and execute this command:

mvn -Pios gluonfx:compile

Once this command completes, you will have the static libs under <USER_HOME>/.gluon/substrate/javaStaticSdk/18-ea+prep18-8/ios-x86_64/staticjdk/lib/static

You may need to adjust the path depending on which version was downloaded, .e.g. 18-ea+prep18-8.

Use this path to fill in the properties file above.


Building

From the project root, build and run app module with the tracing agent enabled, then native compilation:

./gradlew app:run -Pagent
./gradlew gradle_interface:nativeCompile

Currently, VS Code Gradle extension is not working properly on this project. In order to make it work, you'll have to hard code the path of speechcore module. Details are at the bottom of settings.gradle file. So, use either commands above or enable/fix the Gradle extension.

Lastly, CoreNLP server should be running for app:run. Refer to Android App for the NLP server instructions.

Releases

No releases published

Packages

No packages published