@@ -2,7 +2,14 @@ plugins {
22 id ' com.android.application'
33 id ' kotlin-android'
44 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
613}
714
815android {
@@ -17,6 +24,11 @@ android {
1724 versionCode 1
1825 versionName " 1.0"
1926
27+ manifestPlaceholders = [
28+ appId : keys. appId,
29+ apiKey : keys. apiKey
30+ ]
31+
2032 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
2133 }
2234 buildFeatures {
@@ -34,26 +46,29 @@ android {
3446 dimension " default"
3547 applicationIdSuffix " .dev"
3648 manifestPlaceholders = [
37- APP_NAME : " MonstarlabDev"
49+ APP_NAME : " MonstarlabDev" ,
50+ env : " staging"
3851 ]
39- buildConfigField " String" , " API_URL" , " \" https://jsonplaceholder.typicode.com \" "
52+ buildConfigField " String" , " API_URL" , " \" https://reqres.in/api/ \" "
4053 }
4154 staging {
4255 dimension " default"
4356 applicationIdSuffix " .staging"
4457 // signingConfig signingConfigs.staging
4558 manifestPlaceholders = [
46- APP_NAME : " MonstarlabStaging"
59+ APP_NAME : " MonstarlabStaging" ,
60+ env : " staging"
4761 ]
48- buildConfigField " String" , " API_URL" , " \" https://jsonplaceholder.typicode.com \" "
62+ buildConfigField " String" , " API_URL" , " \" https://reqres.in/api/ \" "
4963 }
5064 production {
5165 dimension " default"
5266 // signingConfig signingConfigs.production
5367 manifestPlaceholders = [
5468 APP_NAME : " Monstarlab" ,
69+ env : " production"
5570 ]
56- buildConfigField " String" , " API_URL" , " \" https://jsonplaceholder.typicode.com \" "
71+ buildConfigField " String" , " API_URL" , " \" https://reqres.in/api/ \" "
5772 }
5873 }
5974
@@ -68,18 +83,17 @@ android {
6883
6984dependencies {
7085
71- implementation " org.jetbrains.kotlin:kotlin-stdlib:$versions . kotlin "
72- def coroutinesVersion = " 1.4.2"
86+ implementation (" org.jetbrains.kotlin:kotlin-stdlib:${ versions.kotlin} " )
7387
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 } "
7690 implementation " org.jetbrains.kotlinx:kotlinx-serialization-json:1.0.1"
7791
7892 implementation ' androidx.core:core-ktx:1.3.2'
7993 implementation ' androidx.appcompat:appcompat:1.2.0'
8094 implementation ' com.google.android.material:material:1.2.1'
8195 implementation ' androidx.constraintlayout:constraintlayout:2.0.4'
82- testImplementation ' junit:junit:4.+ '
96+ testImplementation ' junit:junit:4.13.1 '
8397 androidTestImplementation ' androidx.test.ext:junit:1.1.2'
8498 androidTestImplementation ' androidx.test.espresso:espresso-core:3.3.0'
8599
@@ -95,11 +109,14 @@ dependencies {
95109 implementation(" androidx.navigation:navigation-fragment-ktx:2.3.2" )
96110 implementation(" androidx.navigation:navigation-ui-ktx:2.3.2" )
97111
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+
105122}
0 commit comments