Skip to content

xbee/airbitz-android-gui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 65.2%
  • HTML 24.4%
  • C 10.3%
  • Other 0.1%