SID-SDK-Android-Example

Форк
0
/
build.gradle.kts 
147 строк · 5.1 Кб
1
import org.gradle.internal.impldep.bsh.commands.dir
2

3
plugins {
4
	id("com.android.application")
5
	id("org.jetbrains.kotlin.android")
6
	id("androidx.navigation.safeargs.kotlin")
7
}
8

9
android {
10
	namespace = "com.example.sid"
11
	compileSdk = 34
12

13
	defaultConfig {
14
		applicationId = "com.example.sid"
15
		minSdk = 24
16
		targetSdk = 34
17
		versionCode = 1
18
		versionName = "1.0"
19

20
		testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
21
	}
22

23
	buildTypes {
24
		release {
25
			isMinifyEnabled = false
26
			proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
27
		}
28
	}
29
	compileOptions {
30
		sourceCompatibility = JavaVersion.VERSION_1_8
31
		targetCompatibility = JavaVersion.VERSION_1_8
32
	}
33
	kotlinOptions {
34
		jvmTarget = "1.8"
35
	}
36

37
	buildFeatures {
38
		compose = true
39
	}
40
	composeOptions {
41
		kotlinCompilerExtensionVersion = "1.5.8"
42
	}
43
}
44

45
dependencies {
46

47
	implementation("androidx.core:core-ktx:1.12.0")
48
	implementation("androidx.appcompat:appcompat:1.6.1")
49
	implementation("com.google.android.material:material:1.11.0")
50
	testImplementation("junit:junit:4.13.2")
51
	androidTestImplementation("androidx.test.ext:junit:1.1.5")
52
	androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
53

54
	// Feature module Support
55
	val nav_version = "2.7.6"
56
	implementation("androidx.navigation:navigation-dynamic-features-fragment:$nav_version")
57

58
	val composeToolingUI = "1.4.3"
59
	val composeMaterial3 = "1.1.1"
60

61
	//Compose
62
	implementation ("androidx.compose.ui:ui-tooling-preview:$composeToolingUI")
63
	implementation ("androidx.compose.material:material:$composeToolingUI")
64
	implementation ("androidx.compose.material3:material3:$composeMaterial3")
65
	implementation("com.google.code.gson:gson:2.10.1")
66

67

68

69

70
	implementation("io.github.sid-sdk:SIDSDK:1.0.1")
71
/*
72
	^^^ Для ручного добавления библиотеки нужно закомментировать имплементацию через репозиторий ^^^
73
		и раскомментировать эти импорты.
74

75
	implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar"))))
76
	implementation("com.squareup.okhttp3:okhttp:4.11.0") // min 4.6.0
77
	implementation("androidx.annotation:annotation:1.6.0")
78
	implementation("androidx.core:core:1.10.1") // min 1.3.0
79

80
	//region Dependencies for SberId
81
	implementation ("androidx.browser:browser:1.5.0")
82
	implementation ("com.yandex.android:mobmetricalib:5.0.0")
83
	//end region
84

85

86
	implementation ("androidx.appcompat:appcompat:1.6.1")
87
	implementation ("androidx.core:core-ktx:1.10.1")
88
	implementation ("androidx.cardview:cardview:1.0.0")
89
	implementation ("androidx.constraintlayout:constraintlayout:2.1.4")
90
	implementation ("com.google.android.material:material:1.9.0")
91
	implementation ("androidx.tracing:tracing:1.1.0")
92

93
	testImplementation          ("junit:junit:4.13.2")
94
	androidTestImplementation   ("androidx.test:runner:1.5.2")
95
	androidTestImplementation   ("androidx.test.espresso:espresso-core:3.6.0-alpha01")
96
	androidTestImplementation   ("androidx.test.espresso:espresso-intents:3.5.1")
97
	androidTestImplementation   ("androidx.test:rules:1.6.0-alpha01")
98
	androidTestImplementation   ("androidx.test.ext:junit:1.1.5")
99
	androidTestImplementation   ("androidx.test.espresso:espresso-contrib:3.5.1")
100
	androidTestImplementation   ("com.kaspersky.android-components:kaspresso:1.5.5")
101
	androidTestImplementation   ("com.kaspersky.android-components:kaspresso-compose-support:1.5.3")
102
	androidTestImplementation   ("com.kaspersky.android-components:kaspresso-allure-support:1.5.3")
103

104
	//debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
105

106
	//NAVIGATION
107

108

109
	// Feature module Support
110
	//implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
111

112
	// Jetpack Compose Integration
113
	implementation ("androidx.navigation:navigation-compose:$nav_version")
114

115
	//Encrypted features
116
	implementation ("androidx.security:security-crypto:1.1.0-alpha06")
117

118
	val koin_version = "3.4.3"
119
	implementation ("io.insert-koin:koin-android:$koin_version")
120
	implementation ("io.insert-koin:koin-androidx-compose:3.4.6")
121

122
	val coroutineVersion = "1.7.3"
123
	val coilVersion = "2.4.0"
124
	val composeActivity = "1.7.2"
125
	val composeViewModelLifecycle = "2.6.1"
126

127
	debugImplementation ("androidx.compose.ui:ui-tooling:$composeToolingUI")
128
	androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeToolingUI")
129
	////PICTIRES
130
	implementation("io.coil-kt:coil-compose:$coilVersion")
131

132
	//KTOR
133
	val ktorVersion = "2.3.5"
134
	implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
135
	implementation ("io.ktor:ktor-client-android:$ktorVersion")
136
	implementation ("io.ktor:ktor-client-serialization:$ktorVersion")
137
	implementation ("io.ktor:ktor-client-logging-jvm:$ktorVersion")
138
	implementation ("io.ktor:ktor-client-json-jvm:$ktorVersion")
139
	implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
140
	implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
141

142
	implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
143
	val kotlin_version = "1.9.22"
144
	runtimeOnly("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
145
	implementation ("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")*/
146

147
}

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.