Add to a project Pixelnetica™ Document Scanning SDK for Android
Please follow the steps below to add Pixelnetica Document Scanning SDK to the custom Android project.
1. Prerequisites
GitHub account and token with read_packages
permission.
More information on GitHub website.
2. Specify repository in the Project
Document Scanner SDK for Android available from Pixelnetica repository on GitHub and should be specified in the project.
The following information should be specified in project-level Gradle script. E.g. in DSSDK demo application this information added through local.properties
file.
repositories {
maven {
// Reference to Scanning SDK library
url = "https://maven.pkg.github.com/Pixelnetica/artifacts"
credentials {
username = "<YOUR GITHUB USER NAME>"
password = "<YOUR GITHUB TOKEN>"
}
}
}
3. Manage Dependencies
The following string should be added to the “dependencies” section of module-level build.gradle.kts
configuration file:
dependencies {
implementation("com.pixelnetica.sdk:scanning:3.0.1")
.....
}
Dependencies could also be managed through Version Catalog.
-
Add the following information to the
gradle/libs.version.toml
file.[versions] ..... pixelnetica="3.0.1" [libraries] ..... pixelnetica-camera = { module = "com.pixelnetica.sdk:camera", version.ref = "pixelnetica"} pixelnetica-design = { module = "com.pixelnetica.sdk:design", version.ref = "pixelnetica"} pixelnetica-scanning = { module = "com.pixelnetica.sdk:scanning", version.ref = "pixelnetica"}
-
Update
build.gradle.kts
module file adding the following information.dependencies { ..... implementation(libs.pixelnetica.scanning) implementation(libs.pixelnetica.design) implementation(libs.pixelnetica.camera) }
Please use the most recent DSSDK version if you have an active SMUA (Support Maintenance and Upgrade Assurance) or active Standard subscription. If you are not sure feel free to contact Pixelnetica DSSDK Support. Take into consideration that from time to time DSSDK can be changed.
For more details please check: