Welcome! Sign in or Register to get your developer token.

Overview

Overview

iOS SDK

Installation Connecting Reading Stats Types

Android SDK

Installation Connecting Reading Stats Types

React Native

Demo App

Web API

Authenticating

Android SDK Installation

Breathalyzer SDK Jitpack Breathalyzer SDK License

Installation

  1. Include the JitPack repository in your project's build file

    Kotlin DSL
    
                            // settings.gradle.kts
                            dependencyResolutionManagement {
                            repositories {
                            maven(url = "https://jitpack.io")
                            }
                            }
    Groovy
    
                            // settings.gradle
                            dependencyResolutionManagement {
                            repositories {
                            maven { url "https://jitpack.io" }
                            }
                            }
  2. Add the dependencies to your app's build file

    Kotlin DSL
    
                            // build.gradle.kts
                            dependencies {
                            implementation("com.github.BACtrack:breathalyzer-sdk:${bactrack_sdk_version}")
                            }
    Groovy
    
                            // build.gradle
                            dependencies {
                            implementation "com.github.BACtrack:breathalyzer-sdk:${bactrack_sdk_version}"
                            }

Migration guide

If you previously installed the BACtrack SDK by downloading a zip, then delete the following file:

  • app/lib/BACtrackAPI.jar

Lastly, in app/build.gradle delete the following line:

  • implementation files('libs/BACtrackAPI.jar')

Following the official renaming of the SDK to Breathalyzer SDK, it is necessary to update the imports in the source files to use BreathalyzerSDK instead of BACtrackAPI after syncing the gradle files.

Moving forward, to use the SDK start using the implementation as described in the section: SDK installation

Demo App

A demo application for the SDK can be accessed on the Breathalyzer SDK Demo Github repository.
This project serves as a valuable resource for reference purposes when implementing the SDK in your own project.
It's highly recommend utilizing this demo as a reference to ensure a seamless integration into your application.