Skip Navigation

Integrate the BBWebView library

Add the BBWebView library dependency to the app project dependencies.
  1. Use one of the following methods to integrate the BBWebView library with a
    BlackBerry Dynamics
    app:
    Method
    Steps
    Use the local m2repository maven repository
    Add the following to the build.gradle project file:
    implementation ('com.blackberry.blackberrydynamics:android_webview:$DYNAMICS_SDK_VERSION')
    Use the build.gradle project file
    1. Add the following to the build.gradle project file:
      implementation project(':BBWebView')
    2. Add the following to the settings.gradle project file:
      include(':BBWebView')project(':BBWebView').projectDir = newFile('${SDK_DISTRIBUTION_FOLDER}/sdk/libs/handheld/bb_webview')
  2. Add the following dependencies to the build.gradle project file:
    dependencies { implementation 'org.brotli:dec:0.1.2' implementation group: 'org.apache.commons', name: 'commons-pool2', version: '2.6.2' implementation 'androidx.webkit:webkit:1.4.0' }