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
- 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. - 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.
Add the Vibes SDK by doing the following:
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) } }
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.
Add the following to your app-level
build.gradle
file:dependencies { // other dependencies here compile "com.vibes.vibes:vibes:2.0.0" }
- 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