Skip to content

A sample app that demonstrates how to hook up HockeyApp into your Android application.

Notifications You must be signed in to change notification settings

akoscz/HockeyAppSample

Repository files navigation

HockeyAppSample

This is a sample app that demonstrates how to hook up HockeyApp into your application.

Note that the minimum Android SDK version for this sample app is API Lvl 14 (Ice Cream Sandwich). This sample app uses the ActivityLifecycleCallbacks which are only available in API Lvl 14 and above. It depends on the HockeyApp Android SDK and the Gradle HockeyApp Plugin to automatically upload your build to HockeyApp.

Setup

  • Sign up for HockeyApp
  • Create a "New App" from the HockeyApp dashboard
  • MANDATORY Find the App ID and Secret on your HockeyApp app page (this sample app will NOT work without the App ID and App Secret)
  • OPTIONAL Create an API Token: Account Settings > API Tokens > Create (only needed if you want gradle to upload your apk to HockeyApp.)
  • edit app/gradle.properties and replace YOUR_APP_ID, YOUR_APP_SECRET and YOUR_API_TOKEN (optional, see above) with your valid App ID, App Secret and API Token values.

Build and Upload gradle commands

NOTE: you MUST have a valid API Token for upload to work

HockeyApp tasks
---------------
uploadHockeyDebugToHockeyApp - Upload 'hockeyDebug' to HockeyApp
uploadHockeyReleaseToHockeyApp - Upload 'hockeyRelease' to HockeyApp
uploadProductionDebugToHockeyApp - Upload 'productionDebug' to HockeyApp
uploadProductionReleaseToHockeyApp - Upload 'productionRelease' to HockeyApp

Example: sh gradlew uploadHockeyReleaseToHockeyApp This will build the HockeyRelease flavor and upload your build to HockeyApp.

Building without uploading to HockeyApp

Build tasks
-----------
assemble - Assembles all variants of all applications and secondary packages.
assembleDebug - Assembles all Debug builds.
assembleHockey - Assembles all Hockey builds.
assembleHockeyDebug - Assembles the DebugHockey build.
assembleHockeyRelease - Assembles the ReleaseHockey build.
assembleProduction - Assembles all Production builds.
assembleProductionDebug - Assembles the DebugProduction build.
assembleProductionRelease - Assembles the ReleaseProduction build.
assembleRelease - Assembles all Release builds.

Example: sh gradlew assembleHockeyRelease This will build the HockeyRelease flavor and produce an apk file in your app/build/outputs/apk/ directory.

Dependencies

License

About

A sample app that demonstrates how to hook up HockeyApp into your Android application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages