CyxouD / releases-android

Release packages for Android products from Layer http://layer.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Layer Android Releases

This repository contains binary distributions of Android products released by Layer.

If you have any questions, comments, or issues related to any products distributed via this repository then please contact the team by emailing support@layer.com. Questions about pricing or product roadmap can be directed to growth@layer.com.

Layer SDK

This repository contains releases of the Android SDK for interacting with the Layer communications cloud. It provides a simple, object oriented interface to the rich messaging capabilities provided by the platform. See the changelog for the latest version and updates.

In order to use the SDK you must be a registered developer with a provisioned application identifier and have configured a backend system to act as an identity provider for your client applications. All aspects of this setup are covered in detail in the Layer Integration Guide.

Installation

The Layer Android SDK can be installed directly into your application by importing a JAR from the filesystem or an AAR via Maven. Quick installation instructions are provided below for reference, but please refer to the Layer Integration Guide for full details and troubleshooting.

Maven Installation

The recommended path for installation on Android is via Maven. Maven is a software project management and comprehension tool. It is capable of managing a project's build configuration and dependencies from a central location. You can install the Layer SDK into your project via Maven by adding the following code to your project's build.gradle file:

apply plugin: 'maven'

dependencies {
    compile 'com.layer.sdk:layer-sdk:0.16.1'
    compile 'org.slf4j:slf4j-nop:1.5.8'
}

Once you have successfully built your project, proceed to the Verifying SDK Configuration section below.

JAR Installation

If you wish to install the Layer Android SDK directly from a JAR binary, then download the latest JAR release from the Github project and complete the following steps:

  1. Drag the JAR file into the /libs directory of your Android Studio application Navigate to the JAR file in Android Studio navigatior, right click and select "Add As A Library..."
  2. Navigate to your build.gradle file and ensure that you include the following:
apply plugin: 'maven'

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.android.gms:play-services-gcm:7.8.0'
    compile 'org.slf4j:slf4j-nop:1.5.8'
}

Once you have successfully built your project, proceed to the Verifying SDK Configuration section below.

Verifying SDK Configuration

Once you have finished installing the Layer SDK, you can test your configuration by connecting a client to the Layer cloud. To do so, edit your Application object's onCreate() method to include the code below (note that you must substitute the app ID placeholder text with your actual app identifier):

// Instatiates a LayerClient object
LayerClient.Options options = new LayerClient.Options().googleCloudMessagingSenderId("INSERT-GCM-SENDER-ID-HERE");
LayerClient client = LayerClient.newInstance(this, "INSERT-APP-ID-HERE", options);

// Asks the LayerSDK to establish a network connection with the Layer service
client.connect();

Launch your application and verify that the connection is successful. You are now ready to begin authenticating clients and sending messages. Please refer to the Layer Integration Guide for details.

Contact

You can reach the Layer team at any time by emailing support@layer.com.

License

Layer SDK for Android is licensed under the Layer SDK License.

About

Release packages for Android products from Layer http://layer.com/

License:Other