@@ -2,7 +2,14 @@ plugins {
2
2
id ' com.android.application'
3
3
id ' kotlin-android'
4
4
id ' kotlin-kapt'
5
- id ' org.jetbrains.kotlin.plugin.serialization' version ' 1.4.20'
5
+ id ' org.jetbrains.kotlin.plugin.serialization' version ' 1.4.21'
6
+ id ' dk.nstack.translation.plugin'
7
+ }
8
+
9
+ translation {
10
+ appId = keys. appId
11
+ apiKey = keys. apiKey
12
+ acceptHeader = keys. acceptHeader
6
13
}
7
14
8
15
android {
@@ -17,6 +24,11 @@ android {
17
24
versionCode 1
18
25
versionName " 1.0"
19
26
27
+ manifestPlaceholders = [
28
+ appId : keys. appId,
29
+ apiKey : keys. apiKey
30
+ ]
31
+
20
32
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
21
33
}
22
34
buildFeatures {
@@ -34,7 +46,8 @@ android {
34
46
dimension " default"
35
47
applicationIdSuffix " .dev"
36
48
manifestPlaceholders = [
37
- APP_NAME : " MonstarlabDev"
49
+ APP_NAME : " MonstarlabDev" ,
50
+ env : " staging"
38
51
]
39
52
buildConfigField " String" , " API_URL" , " \" https://reqres.in/api/\" "
40
53
}
@@ -43,7 +56,8 @@ android {
43
56
applicationIdSuffix " .staging"
44
57
// signingConfig signingConfigs.staging
45
58
manifestPlaceholders = [
46
- APP_NAME : " MonstarlabStaging"
59
+ APP_NAME : " MonstarlabStaging" ,
60
+ env : " staging"
47
61
]
48
62
buildConfigField " String" , " API_URL" , " \" https://reqres.in/api/\" "
49
63
}
@@ -52,6 +66,7 @@ android {
52
66
// signingConfig signingConfigs.production
53
67
manifestPlaceholders = [
54
68
APP_NAME : " Monstarlab" ,
69
+ env : " production"
55
70
]
56
71
buildConfigField " String" , " API_URL" , " \" https://reqres.in/api/\" "
57
72
}
@@ -68,18 +83,17 @@ android {
68
83
69
84
dependencies {
70
85
71
- implementation " org.jetbrains.kotlin:kotlin-stdlib:$versions . kotlin "
72
- def coroutinesVersion = " 1.4.2"
86
+ implementation (" org.jetbrains.kotlin:kotlin-stdlib:${ versions.kotlin} " )
73
87
74
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:$c oroutinesVersion "
75
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$c oroutinesVersion "
88
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:${ versions.coroutines } "
89
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:${ versions.coroutines } "
76
90
implementation " org.jetbrains.kotlinx:kotlinx-serialization-json:1.0.1"
77
91
78
92
implementation ' androidx.core:core-ktx:1.3.2'
79
93
implementation ' androidx.appcompat:appcompat:1.2.0'
80
94
implementation ' com.google.android.material:material:1.2.1'
81
95
implementation ' androidx.constraintlayout:constraintlayout:2.0.4'
82
- testImplementation ' junit:junit:4.+ '
96
+ testImplementation ' junit:junit:4.13.1 '
83
97
androidTestImplementation ' androidx.test.ext:junit:1.1.2'
84
98
androidTestImplementation ' androidx.test.espresso:espresso-core:3.3.0'
85
99
@@ -95,11 +109,14 @@ dependencies {
95
109
implementation(" androidx.navigation:navigation-fragment-ktx:2.3.2" )
96
110
implementation(" androidx.navigation:navigation-ui-ktx:2.3.2" )
97
111
98
- def lifecycle = " 2.2.0"
99
- implementation(" androidx.lifecycle:lifecycle-livedata-core-ktx:$lifecycle " )
100
- implementation(" androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle " )
101
- implementation(" androidx.lifecycle:lifecycle-common-java8:$lifecycle " )
102
- implementation(" androidx.lifecycle:lifecycle-extensions:$lifecycle " )
103
- implementation(" androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle " )
104
- implementation(" androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle " )
112
+ implementation(" androidx.lifecycle:lifecycle-livedata-core-ktx:${ versions.lifecycle} " )
113
+ implementation(" androidx.lifecycle:lifecycle-runtime-ktx:${ versions.lifecycle} " )
114
+ implementation(" androidx.lifecycle:lifecycle-common-java8:${ versions.lifecycle} " )
115
+ implementation(" androidx.lifecycle:lifecycle-extensions:${ versions.lifecycle} " )
116
+ implementation(" androidx.lifecycle:lifecycle-viewmodel-ktx:${ versions.lifecycle} " )
117
+ implementation(" androidx.lifecycle:lifecycle-livedata-ktx:${ versions.lifecycle} " )
118
+
119
+ implementation " dk.nodes.nstack:nstack-kotlin:${ versions.nodes_nstack_kotlin} "
120
+ implementation " com.jakewharton.timber:timber:${ versions.timber} "
121
+
105
122
}
0 commit comments