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
- Add Firebase. This will include setting up the Google Services plugin and downloading the
google-services.json
into your App folder. - 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.
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.
Install Android Studio. Once you open Android Studio, it should handle downloading and syncing any of the Android SDK components it needs.
When you're ready, run:
./bin/setup
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