Giter VIP home page Giter VIP logo

airbitz-android-gui's Introduction

airbitz-android-gui

Setup dependencies repositories

  1. Clone the core and the android repository.

    git clone https://github.com/Airbitz/airbitz-core.git
    git clone https://github.com/Airbitz/airbitz-android-gui.git
  2. Download and install the Android NDK https://developer.android.com/tools/sdk/ndk/index.html#download

  3. Download and install Java JDK7 https://jdk7.java.net/download.html

  4. Download and install SWIG

    brew install swig
    ./mkabc
  5. Build the core. This requires ndk to be in your path.

    cd airbitz-android-gui
    ./mkabc
  6. In order to work with Google Maps and the Airbitz Business Directory, you need to copy the sample all_keys-sample.xml file to all_keys.xml.

    cd airbitz-android-gui/AirBitz/airbitz/src/prod/res/values
    cp all_keys-sample.xml all_keys.xml
  7. Replace the various keys in the all_keys.xml file with your Google Maps API key, Hockey App API key, and Airbitz Business Directory API key

  8. Copy the XML file from prod to debug directory

    cp ./AirBitz/airbitz/src/prod/res/values/all_keys.xml ./AirBitz/airbitz/src/debug/res/values/all_keys.xml

Build with Android studio

  1. Install Android Studio on your machine: http://developer.android.com/sdk/index.html

  2. Download Github and install, or use Github from a browser.

  3. Open and sign into Github, on the left side click on Airbitz. Click on the button 'Clone to Computer' for the repository 'Airbitz/airbitz-android-gui' and select where you want to save.

  4. Open Android Studio. It might ask for a Java Runtime Environment which you can get here: http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html

  5. Select Import Non-Android Studio project, navigate to where you pulled the repository from Github, select 'Airbitz' and hit ok.

  6. Click through the next pages, making sure that the Gradle Environment and wrapper is selected if it pops up. It has been built with Gradle and so shouldn't need it.

  7. Sometime during the installation/opening of Android Studio, the SDK manager should open, if it doesn't once you have Android Studio open, go to Tools->Android->SDK Manager.

  8. In the SDK manager you will select the packages you need to install

    Currently they are:

  • Tools->Android SDK Tools 24.0.2
  • Tools->Android SDK Platform-tools 21
  • Tools->Android SDK Build-tools Rev 21.1.1
  • Android 5.0.1 (API 21)->SDK Platform
  • Android 5.0.1 (API 21)->Google APIs
  • Extras->Android Support Repository
  • Extras->Android Support Library
  • Extras->Google Play Services
  • Extras->Google Repository
  • Extras->Google USB Driver (if not Mac)

Some of the Extras might not be available at first, install the others and they should be there.

  1. To run Airbitz, click the solid green arrow on the toolbar at the top of the window. It might take a second but it will pop up a window in which you can select what to run it on. If you have devices plugged in via USB they will show up here, if not you can create an emulator from the popup but I would recommend not doing this if possible as it takes forever to load, and is slow and difficult to interact with. Running on a physical Android device is much better.

Build and install with gradle

cd airbitz-android-gui/Airbitz
./gradlew installProdDebug

airbitz-android-gui's People

Contributors

arriolac avatar cybaker avatar dannyroa avatar edge-builder avatar i3inary avatar jacobbubble avatar lclc avatar mstansbu avatar paullinator avatar swansontec avatar teneighty avatar

Watchers

 avatar

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.