Add .aar files if you installed the SDK using the Android
SDK Manager
Android
SDK ManagerIf you installed the SDK using the
Android
SDK Manager, the .aar files are added to the
following path: ANDROID_HOME/extras/BlackBerry/dynamics_sdk/m2repository.- Define the path to the .aar files in the build.gradle repositories block.Example: Hard-coded pathallprojects { repositories { maven { url android.sdkDirectory.path+'/extras/blackberry/dynamics_sdk/m2repository' } //other maven URLs ... } }Example: Path from local propertiesallprojects { repositories { def localProperties = new File(rootDir, "local.properties") Properties properties = new Properties() localProperties.withInputStream { instr -> properties.load(instr) } def sdkDir = properties.getProperty('sdk.dir') maven { url sdkDir+'/extras/blackberry/dynamics_sdk/m2repository' } //other maven URLs ... } }
- AddGradlecompile dependencies in the format<group_ID>:<artefact_ID>:<version>. For example:dependencies { compile 'com.blackberry.blackberrydynamics:android_handheld_platform:4.0.0.3515' compile 'com.blackberry.blackberrydynamics:android_handheld_backup_support:4.0.0.3515' compile 'com.blackberry.blackberrydynamics:android_handheld_samsung_pass_support:4.0.0.3515' compile 'com.blackberry.blackberrydynamics:android_handheld_wearable_support:4.0.0.3515' compile 'com.blackberry.blackberrydynamics:android_wearable_platform:4.0.0.3515' }