How to Add Gradle Dependency
This guide explains how to add the Bagisto Native Android library to your project using Gradle via JitPack.
Step 1: Open Project Settings
In Android Studio:
- Open your project
- Navigate to
settings.gradle.kts(Project Settings)
Step 2: Add JitPack Repository
Add JitPack to your dependency resolution management:
kotlin
// settings.gradle.kts
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}Step 3: Add Library Dependency
Add the Bagisto Native library to your app module:
kotlin
// app/build.gradle.kts
dependencies {
implementation("com.github.SocialMobikul:BagistoNative_Android:1.0.0")
}TIP
Replace 1.0.0 with the latest release version from GitHub Releases
Step 4: Sync Project
- Click Sync Now in the banner that appears.
- Or go to File → Sync Project with Gradle Files.
Troubleshooting
Dependency Not Found
- Verify JitPack repository is added correctly
- Check the Bagisto Native Android releases for correct version
Version Conflicts
If you have version conflicts, you can exclude specific dependencies:
kotlin
dependencies {
implementation("com.github.SocialMobikul:BagistoNative_Android:1.0.0") {
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib"
}
}Next Steps
- Adding Library to Project - Complete integration guide
- Use the Library - Configure components
- Create Android Project - Start from scratch
