Skip to content

Leveraging LibGdx, this project seamlessly runs OIS projects across platforms. The OIS core library ensures smooth execution, while the OIS Deployer Gradle plugin simplifies tailored deployment for effortless platform-specific launches.

License

Notifications You must be signed in to change notification settings

attiasas/open-interactive-simulation-runner

Repository files navigation

open-interactive-simulation-runner

Test


Table of Contents


📚 Overview

This project is built on the LibGdx framework and provides the capability to run OIS projects on various platforms. It achieves this by utilizing the OIS core library, which defines an API for seamless execution of different OIS projects along this project.

To streamline deployment, we've developed the OIS deployer Gradle plugin. This plugin leverages the platform's features to facilitate the deployment of OIS projects on specific platforms based on your requirements by using this project.

🚥 Requirements

  • Java version 15 or a more recent release.
  • Gradle version 7 or a newer version.

📦 Installation

The project is not available in Maven central, required to be used locally Install OIS core library:

  1. Clone the core library
     git clone https://github.com/attiasas/open-interactive-simulation-core.git
  2. Navigate to the cloned directory and publish the library to maven local
     ./gradlew publishToMavenLocal

🏗️ Usage

Each submodule correspond to a different project that is used to run/deploy to a specific platform. Use the task configured by the project.

Running

When running the gradle commands configure the following environment variables:

Environment Variable Description
OIS_ENV_DEBUG_MODE Tell the runner to run on debug mode and not published
OIS_ENV_PROJECT_CONFIG_PATH path to the simulation.ois project configuration file
OIS_ENV_PROJECT_JAR_PATH path to the OIS project Jar location
OIS_ENV_PROJECT_ASSETS_DIR [Optional, default to yhe assets directory] path to your project resource directory
OIS_ENV_ANDROID_SDK_PATH [Optional, default to the value of 'ANDROID_HOME'] path to your Android sdk directory

Distributing

When running the gradle commands configure the following environment variables:

Environment Variable Description
OIS_ENV_PROJECT_NAME the base name of the generated artifacts
OIS_ENV_PROJECT_JAR_PATH path to the OIS project Jar location
OIS_ENV_PROJECT_GROUP group name of the generated artifacts
OIS_ENV_PROJECT_VERSION version of the generated artifacts
OIS_ENV_PROJECT_VERSION_NUM version number (typically incremented with each release) of the generated artifacts

The resources needs to be placed at the assets directory at the root project Create a directory named ois and place the simulation.ois file inside. Icons may be placed inside an icons directory. Android Icons may be placed at res directory at android-runner.

🐞 Reporting Issues

We highly recommend running Gradle with the -d option to get useful and readable debug information if something goes wrong with your build.

Please help us improve the library by reporting any issues you encounter.

🤝 Contributions

We welcome pull requests from the community. To help us improve this project.

About

Leveraging LibGdx, this project seamlessly runs OIS projects across platforms. The OIS core library ensures smooth execution, while the OIS Deployer Gradle plugin simplifies tailored deployment for effortless platform-specific launches.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages