SID-SDK-Android-Example
147 строк · 5.1 Кб
1import org.gradle.internal.impldep.bsh.commands.dir
2
3plugins {
4id("com.android.application")
5id("org.jetbrains.kotlin.android")
6id("androidx.navigation.safeargs.kotlin")
7}
8
9android {
10namespace = "com.example.sid"
11compileSdk = 34
12
13defaultConfig {
14applicationId = "com.example.sid"
15minSdk = 24
16targetSdk = 34
17versionCode = 1
18versionName = "1.0"
19
20testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
21}
22
23buildTypes {
24release {
25isMinifyEnabled = false
26proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
27}
28}
29compileOptions {
30sourceCompatibility = JavaVersion.VERSION_1_8
31targetCompatibility = JavaVersion.VERSION_1_8
32}
33kotlinOptions {
34jvmTarget = "1.8"
35}
36
37buildFeatures {
38compose = true
39}
40composeOptions {
41kotlinCompilerExtensionVersion = "1.5.8"
42}
43}
44
45dependencies {
46
47implementation("androidx.core:core-ktx:1.12.0")
48implementation("androidx.appcompat:appcompat:1.6.1")
49implementation("com.google.android.material:material:1.11.0")
50testImplementation("junit:junit:4.13.2")
51androidTestImplementation("androidx.test.ext:junit:1.1.5")
52androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
53
54// Feature module Support
55val nav_version = "2.7.6"
56implementation("androidx.navigation:navigation-dynamic-features-fragment:$nav_version")
57
58val composeToolingUI = "1.4.3"
59val composeMaterial3 = "1.1.1"
60
61//Compose
62implementation ("androidx.compose.ui:ui-tooling-preview:$composeToolingUI")
63implementation ("androidx.compose.material:material:$composeToolingUI")
64implementation ("androidx.compose.material3:material3:$composeMaterial3")
65implementation("com.google.code.gson:gson:2.10.1")
66
67
68
69
70implementation("io.github.sid-sdk:SIDSDK:1.0.1")
71/*
72^^^ Для ручного добавления библиотеки нужно закомментировать имплементацию через репозиторий ^^^
73и раскомментировать эти импорты.
74
75implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar"))))
76implementation("com.squareup.okhttp3:okhttp:4.11.0") // min 4.6.0
77implementation("androidx.annotation:annotation:1.6.0")
78implementation("androidx.core:core:1.10.1") // min 1.3.0
79
80//region Dependencies for SberId
81implementation ("androidx.browser:browser:1.5.0")
82implementation ("com.yandex.android:mobmetricalib:5.0.0")
83//end region
84
85
86implementation ("androidx.appcompat:appcompat:1.6.1")
87implementation ("androidx.core:core-ktx:1.10.1")
88implementation ("androidx.cardview:cardview:1.0.0")
89implementation ("androidx.constraintlayout:constraintlayout:2.1.4")
90implementation ("com.google.android.material:material:1.9.0")
91implementation ("androidx.tracing:tracing:1.1.0")
92
93testImplementation ("junit:junit:4.13.2")
94androidTestImplementation ("androidx.test:runner:1.5.2")
95androidTestImplementation ("androidx.test.espresso:espresso-core:3.6.0-alpha01")
96androidTestImplementation ("androidx.test.espresso:espresso-intents:3.5.1")
97androidTestImplementation ("androidx.test:rules:1.6.0-alpha01")
98androidTestImplementation ("androidx.test.ext:junit:1.1.5")
99androidTestImplementation ("androidx.test.espresso:espresso-contrib:3.5.1")
100androidTestImplementation ("com.kaspersky.android-components:kaspresso:1.5.5")
101androidTestImplementation ("com.kaspersky.android-components:kaspresso-compose-support:1.5.3")
102androidTestImplementation ("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
113implementation ("androidx.navigation:navigation-compose:$nav_version")
114
115//Encrypted features
116implementation ("androidx.security:security-crypto:1.1.0-alpha06")
117
118val koin_version = "3.4.3"
119implementation ("io.insert-koin:koin-android:$koin_version")
120implementation ("io.insert-koin:koin-androidx-compose:3.4.6")
121
122val coroutineVersion = "1.7.3"
123val coilVersion = "2.4.0"
124val composeActivity = "1.7.2"
125val composeViewModelLifecycle = "2.6.1"
126
127debugImplementation ("androidx.compose.ui:ui-tooling:$composeToolingUI")
128androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeToolingUI")
129////PICTIRES
130implementation("io.coil-kt:coil-compose:$coilVersion")
131
132//KTOR
133val ktorVersion = "2.3.5"
134implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
135implementation ("io.ktor:ktor-client-android:$ktorVersion")
136implementation ("io.ktor:ktor-client-serialization:$ktorVersion")
137implementation ("io.ktor:ktor-client-logging-jvm:$ktorVersion")
138implementation ("io.ktor:ktor-client-json-jvm:$ktorVersion")
139implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
140implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
141
142implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
143val kotlin_version = "1.9.22"
144runtimeOnly("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
145implementation ("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")*/
146
147}