Android Prerequisites

  • Must set minSdkVersion in build.gradle to 26 or above.
  • Add the Brady SDK dependency to your app-level build.gradle in Android Studio.
implementation 'com.bradyid:BradySdk:3.0.0'
  • In app/build.gradle you must also set "minifyEnabled" to false inside the buildType block as such:
buildTypes {
    release {
        //Set minifyEnabled to false OR you may remove this line entirely which will also disable 
        //minifying. This will make sure the SDK doesn't lose any of the classes it needs during 
        //optimization while compiling.
        minifyEnabled false
        ...
        ...
    }
    debug {
        minifyEnabled false
        ...
        ...
    }
}
  • If you are not using Android Studio, find alternative methods here: https://central.sonatype.com/artifact/com.bradyid/BradySdk
    • Within the "Snippets" box on the "Overview" page, you may select the dropdown menu to see other supported dependencies.
  • It is also suggested to use the most updated version of the SDK. Ensure that your version is the most recent version using the same link above.

Versions >=1.7.0

Custom Brady fonts are no longer embedded in the Android SDK. Therefore, they must be downloaded here.

The custom Brady fonts only need to be downloaded and embedded into your application if the BWT files being used by your application were designed with any of these fonts. To embed them in your Android application:

  • Create a Resource Folder called "fonts" in your application's "res" directory.
  • Drag and drop the desired fonts into the new Resource Folder.
  • After initializing a Template object in your code, add the following:
int[] fontList = new int[]{R.font.brady_fixed_width, R.font.brady_fixed_width_bold, R.font.brady_alpine, R.font.brady_alpine_bold};
template.storeFonts(this, fontList);