Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

The latest Vibes Push Notifications Android SDK installation instructions are also located in the Vibes SDK repository .

Vibes SDK - Android

An Android SDK for handling push integration with the Vibes Platform API.

The Android install files and documentation are also available from the Vibes GitHub repository at: https://github.com/tablexi/vibes-sdk-android.

Note: You need credentials to sign into the Vibes Github repository.

Installation

  1. Click Add Firebase (Note: This will take you away from this Vibes documentation Wiki) and follow the instructions on the Firebase website. This will include setting up the Google Services plugin and downloading the google-services.json into your App folder.
  2. Click Add Firebase Cloud Messaging (Note: This will take you away from this Vibes documentation Wiki) and follow the instructions. This will include adding two services to your App to handle App token refresh and incoming push notifications.
  3. Add the Vibes SDK by doing the following:

    1. Add the following to your project-level build.gradle file:

      maven {
         url "https://raw.githubusercontent.com/tablexi/vibes-sdk-android/releases/"
      
         credentials {
            username VIBES_GITHUB_USERNAME
            password VIBES_GITHUB_PASSWORD
         }
      
         authentication {
            basic(BasicAuthentication)
         }
      }
    2. Add the following to your project- or system-level gradle.properties file:

      VIBES_GITHUB_USERNAME=your-github-username-here
      VIBES_GITHUB_PASSWORD=your-github-password-or-personal-access-token-here

      Note: Do not commit this file to version control.

    3. Add the following to your app-level build.gradle file:

      dependencies {
         // other dependencies here
         compile "com.vibes.vibes:vibes:2.0.0"
      }
    4. Sync your project in Android Studio.

Tests

You can run the tests from within Android Studio, or via the command line with ./bin/test.

Test results live in, vibes/build/reports/tests/testDebugUnitTest/.

Setup

Configure your root- or system-level gradle.properties file with your Github username and either a password or a personal access token (see the sample file for format).

To Release

Bump the ARTIFACT_VERSION in the vibes/gradle.properties file. Then run:

./bin/release

  • No labels