Installation
Gradle Configuration
To use the Deep Hearing SDK, you must set up the Deep Hearing Maven
repository through gradle
.
build.gradle
If you are using a version of Gradle 6.7 or below, add the following code to the build.gradle(Project)
file.
- build.gradle (gradle < 6.8)
allprojects {
repositories {
google()
jcenter()
maven {
credentials {
username = "username"
password = "password"
}
url "https://repo.deephearing.com/repository/maven/"
}
}
}
settings.gradle
If you are using Gradle 6.8 or higher, add the following code to the settings.gradle(Project)
file.
- build.gradle (gradle ≥ 6.8)
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
credentials {
username = "username"
password = "password"
}
url "https://repo.deephearing.com/repository/maven/"
}
}
}
For more details, refer to the Android Official documentation.
Next, for all Gradle versions, add the following code to the build.gradle(Module)
file.
- build.gradle
dependencies {
implementation 'com.deephearing.sdk:denoiser-medium:2.1.0'
}