To add the AWNetworkLibrary to your project, follow the listed process.

  1. Set up Gradle.

    Add all the dependency JARS and AARS from libs > AWNetworkLibrary > Dependencies. For each AAR file, add an entry stating the name and EXT type.

    dependencies {
                            ... // In addition to AWFramework entries add the listed library 
                            compile (name:'AWNetworkLibrary-18.7’, ext:'aar')
  2. Initialize the AWNetworkLibrary.

    1. Follow the steps outlined in Initialize the AWFramework.
    2. In the extended AWApplication class, override getMagCertificateEnable() and return true to fetch the certificate for the VMware Tunnel.

                                    * This method is overriden if your application supports fetch mag certificate during
                                    login process.
                                    * @return true if app supports fetch mag certificate.
                                    public boolean getMagCertificateEnable() {
                                    return true;
    3. Set GatewaySplashActivity as your main launching activity instead of SDKSplashActivity.

                                    android:label="@string/app_name"  > 
                                    <action android:name="android.intent.action.MAIN" /> 
                                    <category android:name="android.intent.category.LAUNCHER" /> 
    4. Extend GatewayBaseActivity at the activity level to support network features like tunneling and integrated authentication in addition to AWFramework features.