Update dependencies, targetSDK add differnet App Names for the different versions

This commit is contained in:
Gergely Hegedus 2021-11-04 18:17:42 +02:00
parent 1f3c98ad91
commit 8707aedd75
5 changed files with 12 additions and 8 deletions

View file

@ -7,13 +7,12 @@ plugins {
}
android {
compileSdkVersion 30
compileSdkVersion 31
defaultConfig {
applicationId "org.fnives.test.showcase"
minSdkVersion 21
//noinspection OldTargetApi // todo
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
buildConfigField "String", "BASE_URL", '"https://606844a10add49001733fe6b.mockapi.io/"'
@ -31,11 +30,13 @@ android {
productFlavors {
hilt {
dimension 'di'
resValue "string", "app_name", "Hilt Test-ShowCase"
applicationId "org.fnives.test.showcase.hilt"
testInstrumentationRunner "org.fnives.test.showcase.testutils.configuration.HiltTestRunner"
}
koin {
dimension 'di'
resValue "string", "app_name", "Koin Test-ShowCase"
applicationId "org.fnives.test.showcase.koin"
}
}

View file

@ -1,6 +1,8 @@
package org.fnives.test.showcase.ui.splash
import android.annotation.SuppressLint
import dagger.hilt.android.AndroidEntryPoint
@SuppressLint("CustomSplashScreen")
@AndroidEntryPoint
class HiltSplashActivity : SplashActivity()

View file

@ -1,11 +1,13 @@
package org.fnives.test.showcase.ui.splash
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import org.fnives.test.showcase.R
import org.fnives.test.showcase.ui.IntentCoordinator
import org.fnives.test.showcase.ui.viewModels
@SuppressLint("CustomSplashScreen")
open class SplashActivity : AppCompatActivity() {
private val viewModel by viewModels<SplashViewModel>()

View file

@ -1,5 +1,4 @@
<resources>
<string name="app_name">Test ShowCase</string>
<string name="login">Login</string>
<string name="username">Username</string>
<string name="password">Password</string>