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 17 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.

Installation

  1. Add Firebase. This will include setting up the Google Services plugin and downloading the google-services.json into your App folder.
  2. Add Firebase Cloud Messaging. You only need to handle the part under "Set up Firebase and the FCM SDK", as everything else is handled by the Vibes SDK.
  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