Giter Club home page Giter Club logo

destsolandroid's Introduction

Destination Sol Android Facade

This project provides the Android front-end for https://github.com/MovingBlocks/DestinationSol and is meant to be used from within that project, not independently. See its repo for basic setup instructions!

Using the Android Facade

You can build the Android version of the game by either using the command line tools or using IntelliJ IDEA / Android Studio. Any modules that you have will be included.

Using the command line

  • Download the Android SDK and use the sdkmanager tool to install the API 30 build tools.
  • In the root Destination Sol project directory, run the command echo sdk.dir=<SDK_ROOT> > local.properties, where <SDK_ROOT> is the root directory in which you installed the Android SDK, to create a new local properties file.
  • To fetch the Android facade, in the same root project directory run the command gradlew fetchAndroid The command should complete successfully.
  • Afterwards, run the command gradlew android:assembleDebug to build the APK. This command should also complete successfully.
  • Once the command has completed, use the Android emulator or connect a suitable device and ensure that it can be detected by the adb tool. This can be verified by running the command adb devices, which should show the device name in its output.
  • Then, run the command gradlew android:installDebug to install the APK to the first connected device.
  • A new "Destination Sol" app should now be visible on the test device. Run it and play the game. It should not crash with any errors or exceptions.

Using IntelliJ IDEA (or Android Studio)

  • Use the Android plugin (if not installed, then install it) to install the API 30 SDK build tools and platform tools.
  • In the root Destination Sol project directory, run the command gradlew fetchAndroid. The command should complete successfully.
  • Create a new build configuration based on the "Android App" template. You should set the start-up module to the "android" module.
  • In the File->Project Structure->SDKs menu, add a new SDK and set the build target to Android API 30 and the Java SDK to Java 1.8.
  • In the File->Project Structure->Modules menu, select the android module and open the Dependencies tab. Set the module SDK to the new SDK you just added.
  • Set the current build configuration to the newly created one and run the project using the debug button.
  • A new "Destination Sol" app should now be visible on the test device. Run it and play the game. It should not crash with any errors or exceptions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.