GithubHelp home page GithubHelp logo

thefrontiergroup / fh-android-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from feedhenry/fh-android-sdk

0.0 15.0 0.0 7.77 MB

FeedHenry Android Native SDK

License: Apache License 2.0

Java 100.00%

fh-android-sdk's Introduction

FeedHenry Android SDK Build Status

This SDK should provide you with all you'll need to start developing cloud-connected apps with the FeedHenry platform. The SDK provides access to cloud action calls, app authentication and authorization.

Build

Prereqs

Building

This library is built as an aar project using Maven, but Google does not ship all the required libraries to Maven Central. You must locally deploy them using the maven-android-sdk-deployer.

Run the following commands outside the FeedHenry Android SDK directory to avoid polluting the repo:

git clone git://github.com/mosabua/maven-android-sdk-deployer.git
cd $PWD/maven-android-sdk-deployer/platforms/android-23
mvn install -N --quiet
cd -
cd $PWD/maven-android-sdk-deployer/repositories/google-m2repository
mvn install -N --quiet

Now let's build the library.

In the base repo directory:

cd $PWD/fh-android-sdk
mvn clean package

This will compile the source code, generating an aar and a jar file in the target directory.

Deploy

Until we don't have it released in Maven Central we are hosting it in a Github repo

To deploy it, you need to follow the instructions below:

Snapshots

mvn -DaltDeploymentRepository=snapshot-repo::default::file:[your repo dir]/snapshots clean deploy

Releases

mvn -DaltDeploymentRepository=releases-repo::default::file:[your repo dir]/releases clean deploy

After that, commit it in the fh-android-sdk-repository and send a PR on it

Usage

Gradle Projects (Recommended)

Add our Github host repo in your gradle.build project file

allprojects {
	repositories {
   	jcenter()
   		// for snapshots
		maven { url "https://github.com/feedhenry/fh-android-sdk-repository/raw/master/snapshots" }
		// for released
		maven { url "https://github.com/feedhenry/fh-android-sdk-repository/raw/master/releases" }
	}
}

Add the FH Android aar library in your build.gradle project

dependencies {
	compile 'com.feedhenry:fh-android-sdk:3.0.0'
}

For more detail about our API, See FH Android SDK Guide.

Ant Projects

To use the Android SDK in Ant-based Android projects, the following files need to be added as the dependencies:

  • The fh-android-sdk jar file (e.g. 3.0.0 Jar File)
  • All the jar files in the deps directory

Example

The example directory contains an example to demonstrate how to use all the Android native APIs. You can import it into Eclipse and run it on an emulator or device.

If building in Android Studio, you will need to manually add the jar as a library, as well as the Android Asynchronous Http Client.

Links

fh-android-sdk's People

Contributors

danielpassos avatar secondsun avatar psyren89 avatar jasonmadigan avatar david-martin avatar matzew avatar johnhiott avatar

Watchers

Matt Lambie avatar Tony Issakov avatar Vinny Osiro avatar Jordan Maguire avatar Greg Tangey avatar James Cloos avatar TFG Observer (for deployments only) avatar Paula avatar  avatar TFG Jenkins (for CI only) avatar Kevin Jackson avatar Sheldon Gill avatar Colyn Prater avatar  avatar  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.