troZee / push-sdk-android

Vibes SDK - Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vibes SDK - Android

Installation and Usage

For installation and integration instructions, see the Android SDK documentation.

Contributing

Installation

Install Android Studio and Ruby. 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

Unit

You can run the unit tests from within Android Studio, or via the command line with ./bin/test. Test results live in vibes/build/reports/tests/testDebugUnitTest/.

Integration

You can run the integration tests from within Android Studio, or via the command line with ./bin/integration-test. Test results live in vibes/build/reports/androidTests/connected

NOTE: The integration tests are "connected" tests; you must have an open emulator or connected device to run them.

Documentation

To generate the public docs, run ./bin/docs-public; for internal docs, use: ./bin/docs-internal.

Check

Code style is checked via Android lint, Checkstyle, FindBugs, and pmd. All of these can be run with ./bin/check

Releases

To release

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

./bin/release

SDK Example App

See example-java/ for the java example app or example-kotlin/ for the kotlin example app using the Vibes Android SDK. They implement device registration/unregistration and push registration/unregistration of the Vibes SDK.

Setup

  1. In your Android Studio, open the /example-java/ for the java app or /example-kotlin for the kotlin app ie FILE > Open > example-java/example-kotlin
  2. In the AndroidManifest.xml located in the example-java/example-kotlin module, replace '[YOUR KEY GOES HERE]' with your vibes_app_id.
  3. Create a Firebase project using the package name.
  4. Build and run the example-java app.

Note The main purpose of this example app is to show a standard integration with the Vibes Android SDK. Sending push notification is outside the scope of this example app, but you have the option to configure your own Firebase project and send out notifications.

About

Vibes SDK - Android


Languages

Language:Java 91.5%Language:Kotlin 7.9%Language:Ruby 0.3%Language:Shell 0.3%