1
1
plugins {
2
2
id ' com.android.application'
3
3
id ' org.jetbrains.kotlin.android'
4
+ id ' kotlin-kapt'
5
+ id ' kotlin-platform-android'
6
+ id ' kotlin-android'
7
+ id ' kotlin-parcelize'
4
8
}
5
9
6
10
android {
@@ -9,36 +13,67 @@ android {
9
13
10
14
defaultConfig {
11
15
applicationId " com.fictadvisor.android"
12
- minSdk 24
16
+ minSdk 26
13
17
targetSdk 33
14
18
versionCode 1
15
19
versionName " 1.0"
16
20
17
21
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
18
22
}
19
23
24
+ buildFeatures {
25
+ viewBinding = true
26
+ }
27
+
20
28
buildTypes {
29
+ debug {
30
+ debuggable true
31
+ }
21
32
release {
33
+ debuggable false
22
34
minifyEnabled false
23
- proguardFiles getDefaultProguardFile(' proguard-android-optimize .txt' ), ' proguard-rules.pro'
35
+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
24
36
}
25
37
}
38
+
39
+ buildFeatures {
40
+ buildConfig = true
41
+ }
42
+
26
43
compileOptions {
27
- sourceCompatibility JavaVersion . VERSION_1_8
28
- targetCompatibility JavaVersion . VERSION_1_8
44
+ sourceCompatibility JavaVersion . VERSION_17
45
+ targetCompatibility JavaVersion . VERSION_17
29
46
}
30
47
kotlinOptions {
31
- jvmTarget = ' 1.8 '
48
+ jvmTarget = ' 17 '
32
49
}
33
50
}
34
51
35
52
dependencies {
36
53
37
54
implementation ' androidx.core:core-ktx:1.8.0'
38
- implementation ' androidx.appcompat:appcompat:1.4 .1'
39
- implementation ' com.google.android.material:material:1.5 .0'
40
- implementation ' androidx.constraintlayout:constraintlayout:2.1.3 '
55
+ implementation ' androidx.appcompat:appcompat:1.6 .1'
56
+ implementation ' com.google.android.material:material:1.9 .0'
57
+ implementation ' androidx.constraintlayout:constraintlayout:2.1.4 '
41
58
testImplementation ' junit:junit:4.13.2'
42
- androidTestImplementation ' androidx.test.ext:junit:1.1.3'
43
- androidTestImplementation ' androidx.test.espresso:espresso-core:3.4.0'
59
+ androidTestImplementation ' androidx.test.ext:junit:1.1.5'
60
+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.5.1'
61
+
62
+ // - - Coroutines
63
+ def coroutines_version = " 1.7.3"
64
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version "
65
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version "
66
+ def lifecycle_version = " 2.6.2"
67
+ // - - ViewModel
68
+ implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version "
69
+ // - - LiveData
70
+ implementation " androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version "
71
+
72
+ // - - Retrofit2
73
+ def retrofit_version = " 2.9.0"
74
+ def logging_version = " 4.9.1"
75
+ implementation " com.squareup.retrofit2:retrofit:$retrofit_version "
76
+ implementation " com.squareup.retrofit2:converter-gson:$retrofit_version "
77
+ implementation " com.squareup.okhttp3:okhttp:$logging_version "
78
+ implementation " com.squareup.okhttp3:logging-interceptor:$logging_version "
44
79
}
0 commit comments