Manual Integration by Downloading Modules from the GitHub Repository
Integrating manually by downloading the modules from Github repository.
Integrating manually by downloading the modules from Github repository.
Step 1:
-
Navigate to the GitHub Repository
- Click on the provided link to go to the GitHub repository.
- Once you are in the repository, locate and click on the "Releases" section.
- Always choose the latest release.
- Under the "Assets" section, find the necessary files.
-
Download the webexconnect-core Module:
- Download the webexconnect-core module from the Assets section.
- Unzip the Core module.
- Copy the webexconnect-core.aar file to the library folder of your app module.
-
Download Additional Required Modules:
- Similarly, download the required modules such as push, fcm, hms, and in-app messaging.
- Follow the same process as in Step 2: Unzip each module and copy the respective .aar files to your app module's library folder.
-
Open Your Android Studio Project:
- Launch Android Studio.
- Open your project in Android Studio where you want to integrate these modules.
-
Add Dependencies in build.gradle:
- Open the build.gradle file for your app module.
- Within the dependencies section, add the following line to include the webexconnect-core module and other required modules:
dependencies { //Core Module (Mandatory) - This module provides essential functionality that all other modules depend on. implementation(files("../../library/webexconnect-core-3.0.0.aar")) //Push Module - The push module enables your application to receive and handle push notifications. implementation(files("../../library/webexconnect-push-3.0.0.aar")) //FCM Module - Required to use Firebase Cloud Messaging as the push provider. implementation(files("../../library/webexconnect-fcm-3.0.0.aar")) //HMS Module - Required to use Huawei Mobile Services as the push provider. implementation(files("../../library/webexconnect-hms-3.0.0.aar")) //In-App Messaging - Required to use In-App Messaging capabilities within your app. implementation(files("../../library/webexconnect-inappmessaging-3.0.0.aar")) }
dependencies { implementation files("../../library/webexconnect-core-3.0.0.aar") implementation files("../../library/webexconnect-push-3.0.0.aar") implementation files("../../library/webexconnect-fcm-3.0.0.aar") implementation files("../../library/webexconnect-hms-3.0.0.aar") implementation files("../../library/webexconnect-inappmessaging-3.0.0.aar") }
Step 2:
In your app/build.gradle, add the following entries:
dependencies {
// Core Module
implementation(files("../../library/webexconnect-core-3.0.0.aar"))
implementation("androidx.core:core-ktx:1.13.1")
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.startup:startup-runtime:1.1.1")
implementation("androidx.work:work-runtime-ktx:2.9.1")
implementation("androidx.room:room-ktx:2.6.1")
implementation("androidx.room:room-runtime:2.6.1")
implementation("androidx.sqlite:sqlite-ktx:2.4.0")
implementation("net.zetetic:sqlcipher-android:4.5.5")
implementation("com.google.android.material:material:1.12.0")
implementation("com.android.volley:volley:1.2.1")
// Push Module
implementation(files("../../library/webexconnect-push-3.0.0.aar"))
implementation("com.squareup.picasso:picasso:2.5.2")
// FCM Module
implementation(files("../../library/webexconnect-fcm-3.0.0.aar"))
implementation("com.google.firebase:firebase-messaging:24.0.1")
implementation("com.google.android.gms:play-services-base:18.5.0")
// HMS Module
implementation("com.huawei.hms:push:6.11.0.300")
implementation(files("../../library/webexconnect-hms-3.0.0.aar"))
// In-App Messaging Module
implementation(files("../../library/webexconnect-inappmessaging-3.0.0.aar"))
}
app/build.gradle
apply plugin: 'com.android.application'
apply plugin: 'com.huawei.agconnect'
android {
// ...
}
dependencies {
// Core Module
implementation(files("../../library/webexconnect-core-3.0.0.aar"))
implementation "androidx.core:core-ktx:1.13.1"
implementation "androidx.appcompat:appcompat:1.7.0"
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "androidx.startup:startup-runtime:1.1.1"
implementation "androidx.work:work-runtime-ktx:2.9.1"
implementation "androidx.room:room-ktx:2.6.1"
implementation "androidx.room:room-runtime:2.6.1"
implementation "androidx.sqlite:sqlite-ktx:2.4.0"
implementation "net.zetetic:sqlcipher-android:4.5.5"
implementation "com.google.android.material:material:1.12.0"
implementation "com.android.volley:volley:1.2.1"
// Push Module
implementation (files("../../library/webexconnect-push-3.0.0.aar"))
implementation "com.squareup.picasso:picasso:2.5.2"
// FCM Module
implementation(files("../../library/webexconnect-fcm-3.0.0.aar"))
implementation "com.google.firebase:firebase-messaging:24.0.1"
implementation "com.google.android.gms:play-services-base:18.5.0"
// HMS Module
implementation(files("../../library/webexconnect-hms-3.0.0.aar"))
implementation "com.huawei.hms:push:6.11.0.300"
// In-App Messaging Module
implementation(files("../../library/webexconnect-inappmessaging-3.0.0.aar"))
}
And follow the next steps (Code Integration) provided in the Android Modularization SDK Quick Start Guide.
Updated 8 days ago