Подключение SaluteJazz SDK
Обновлено 10 июня 2026
Подключение SDK
В settings.gradle заполните блок repositories:
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven {
url "https://public.repo.dp.s2b.tech/repo/public/repository/jazz-maven/"
}
google() {
content { excludeGroup("com.facebook.react") }
}
mavenCentral() {
content { excludeGroup("com.facebook.react") }
}
jcenter() {
content { excludeGroup("com.facebook.react") }
}
}
}
Настройте build.gradle приложения (модуль app):
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
namespace "com.sd.jazz_testapp"
compileSdk 34
defaultConfig {
applicationId "com.sd.jazz_testapp"
minSdk 26
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
viewBinding true
}
packagingOptions {
pickFirst '**/*.so'
pickFirst 'META-INF/kotlinx_coroutines_core.version'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.lifecycle:lifecycle-runtime:2.6.2'
implementation("com.sdkit.jazz:jazz-public-sdk:25.07.1.3") {
exclude(group: "ru.sberbank.sdakit.sbercast")
}
implementation(platform("com.sdkit.jazz:jazz-public-bom:25.07.1.3"))
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
Синхронизируйте (File → Sync Project with Gradle Files) и соберите проект.