Configure an existing Android project
These steps assume you have a project already created and a
libs
directory in that project. The libs
directory must not be at the top level of your project. It must be at the same level as your build.gradle
file.- Download and unzip theBlackBerry Dynamics Launcher Library.
- Change the directory toGoodLauncherLibraryand copy the filelauncherlib.aarto thelibsdirectory described in the prerequisites below.
- Make the following declarations in yourbuild.gradlefile, as shown in these snippets:
- Declare a dependency on thelauncherlib.aarlibrary andgdlibrary:dependencies { implementation(name: 'launcherlib', ext: 'aar' implementation(name: 'gd', ext: 'aar') }
- Declare thelibsdirectory as a repository:repositories{ flatDir { dirs 'libs' } }
- Add theAndroidsupport library dependencies:dependencies { implementation 'com.android.support:support-v13:28.0.0' implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:cardview-v7:28.0.0' }
- Copy the BlackBerry Dynamics SDK release .aar file to <your_project_directory>/app/libs/gd.aar.
- To build your project withGradle, use eithergradle--info --stacktrace clean assembleDebugorgradle --info --stacktrace clean assembleRelease.