Improving build speed
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ fun CustomGoogleButton(
|
||||
Text(
|
||||
style = MaterialTheme.typography.h5,
|
||||
color = MaterialTheme.colors.surface,
|
||||
text = stringResource(R.string.txt_connect_with_google)
|
||||
text = stringResource(org.zxconnect.android.beserve.i18n.R.string.txt_connect_with_google)
|
||||
)
|
||||
Icon(
|
||||
tint = Color.Transparent,
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ fun TopActionBar(modifier: Modifier = Modifier) {
|
||||
Image(
|
||||
modifier = Modifier.height(23.dp),
|
||||
painter = painterResource(id = R.drawable.ic_lottiefiles_logo),
|
||||
contentDescription = stringResource(id = R.string.txt_lottie_logo)
|
||||
contentDescription = stringResource(id = org.zxconnect.android.beserve.i18n.R.string.txt_lottie_logo)
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@ import com.ericampire.android.androidstudycase.domain.usecase.FindPopularLottieF
|
||||
import com.ericampire.android.androidstudycase.domain.usecase.FindRecentLottieFileUseCase
|
||||
import com.ericampire.android.androidstudycase.util.Result
|
||||
import com.ericampire.android.androidstudycase.util.data
|
||||
import com.ericampire.android.androidstudycase.util.mvi.BaseViewModel
|
||||
import com.ericampire.android.androidstudycase.util.mvi.BViewModel
|
||||
import dagger.assisted.Assisted
|
||||
import dagger.assisted.AssistedFactory
|
||||
import dagger.assisted.AssistedInject
|
||||
@@ -23,7 +23,7 @@ class ExploreViewModel @AssistedInject constructor(
|
||||
private val findPopularLottieFileUseCase: FindPopularLottieFileUseCase,
|
||||
private val findRecentLottieFileUseCase: FindRecentLottieFileUseCase,
|
||||
private val findFeaturedLottieFileUseCase: FindFeaturedLottieFileUseCase
|
||||
) : BaseViewModel<ExploreViewState, ExploreAction>(initialState) {
|
||||
) : BViewModel<ExploreViewState, ExploreAction>(initialState) {
|
||||
|
||||
init {
|
||||
viewModelScope.launch {
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ fun ExploreScreen(
|
||||
val state by viewModel.collectAsState(ExploreViewState::files)
|
||||
val context = LocalContext.current
|
||||
|
||||
val tabItems = stringArrayResource(id = R.array.explore_item)
|
||||
val tabItems = stringArrayResource(id = org.zxconnect.android.beserve.i18n.R.array.explore_item)
|
||||
val pagerState = rememberPagerState()
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@ import com.ericampire.android.androidstudycase.app.hilt.hiltMavericksViewModelFa
|
||||
import com.ericampire.android.androidstudycase.domain.usecase.*
|
||||
import com.ericampire.android.androidstudycase.util.PreviewData
|
||||
import com.ericampire.android.androidstudycase.util.data
|
||||
import com.ericampire.android.androidstudycase.util.mvi.BaseViewModel
|
||||
import com.ericampire.android.androidstudycase.util.mvi.BViewModel
|
||||
import dagger.assisted.Assisted
|
||||
import dagger.assisted.AssistedFactory
|
||||
import dagger.assisted.AssistedInject
|
||||
@@ -23,7 +23,7 @@ class HomeViewModel @AssistedInject constructor(
|
||||
private val findUsersUseCase: FindUsersUseCase,
|
||||
private val findFeaturedLottieFileUseCase: FindFeaturedLottieFileUseCase,
|
||||
private val saveUserUseCase: SaveUserUseCase
|
||||
) : BaseViewModel<HomeViewState, HomeAction>(initialState) {
|
||||
) : BViewModel<HomeViewState, HomeAction>(initialState) {
|
||||
|
||||
|
||||
init {
|
||||
|
||||
+3
-3
@@ -47,14 +47,14 @@ fun BrowseAllItemView(modifier: Modifier = Modifier) {
|
||||
modifier = Modifier.padding(end = 12.dp)
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(R.string.txt_browse_all),
|
||||
text = stringResource(org.zxconnect.android.beserve.i18n.R.string.txt_browse_all),
|
||||
style = MaterialTheme.typography.h4.copy(
|
||||
color = MaterialTheme.colors.onSurface
|
||||
),
|
||||
)
|
||||
|
||||
Text(
|
||||
text = stringResource(R.string.txt_browse_all_desc),
|
||||
text = stringResource(org.zxconnect.android.beserve.i18n.R.string.txt_browse_all_desc),
|
||||
style = MaterialTheme.typography.body1.copy(
|
||||
color = MaterialTheme.colors.onSurface
|
||||
),
|
||||
@@ -63,7 +63,7 @@ fun BrowseAllItemView(modifier: Modifier = Modifier) {
|
||||
|
||||
TextButton(onClick = { /*TODO*/ }) {
|
||||
Text(
|
||||
text = stringResource(R.string.txt_go_to_explore),
|
||||
text = stringResource(org.zxconnect.android.beserve.i18n.R.string.txt_go_to_explore),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -191,7 +191,7 @@ fun HomeContent(
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = 16.dp),
|
||||
maxLines = 1,
|
||||
text = stringResource(id = R.string.txt_featured_animator),
|
||||
text = stringResource(id = org.zxconnect.android.beserve.i18n.R.string.txt_featured_animator),
|
||||
style = MaterialTheme.typography.h4.copy(
|
||||
color = MaterialTheme.colors.onSurface
|
||||
),
|
||||
@@ -219,7 +219,7 @@ fun HomeContent(
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = 16.dp),
|
||||
maxLines = 1,
|
||||
text = stringResource(id = R.string.txt_latest_story),
|
||||
text = stringResource(id = org.zxconnect.android.beserve.i18n.R.string.txt_latest_story),
|
||||
style = MaterialTheme.typography.h4.copy(
|
||||
color = MaterialTheme.colors.onSurface
|
||||
),
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ fun LoginBottomSheet(
|
||||
)
|
||||
Text(
|
||||
textAlign = TextAlign.Center,
|
||||
text = stringResource(id = R.string.txt_get_started),
|
||||
text = stringResource(id = org.zxconnect.android.beserve.i18n.R.string.txt_get_started),
|
||||
style = MaterialTheme.typography.body1.copy(
|
||||
color = MaterialTheme.colors.onSurface
|
||||
),
|
||||
|
||||
+3
-3
@@ -37,7 +37,7 @@ fun UnLoggedUserHeaderView(
|
||||
.size(57.dp)
|
||||
.clip(CircleShape),
|
||||
painter = painterResource(id = R.drawable.lottiefiles_circle_logo),
|
||||
contentDescription = stringResource(id = R.string.txt_lottie_logo)
|
||||
contentDescription = stringResource(id = org.zxconnect.android.beserve.i18n.R.string.txt_lottie_logo)
|
||||
)
|
||||
Column(
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
@@ -51,7 +51,7 @@ fun UnLoggedUserHeaderView(
|
||||
)
|
||||
Text(
|
||||
maxLines = 1,
|
||||
text = stringResource(R.string.txt_hello_stranger),
|
||||
text = stringResource(org.zxconnect.android.beserve.i18n.R.string.txt_hello_stranger),
|
||||
style = MaterialTheme.typography.h3.copy(
|
||||
color = AppColor.PaleBlue
|
||||
),
|
||||
@@ -59,7 +59,7 @@ fun UnLoggedUserHeaderView(
|
||||
Text(
|
||||
modifier = Modifier.clickable(onClick = onLoginClick),
|
||||
maxLines = 1,
|
||||
text = stringResource(R.string.txt_login),
|
||||
text = stringResource(org.zxconnect.android.beserve.i18n.R.string.txt_login),
|
||||
style = MaterialTheme.typography.body1.copy(
|
||||
color = AppColor.Teal
|
||||
),
|
||||
|
||||
+2
-2
@@ -66,7 +66,7 @@ fun PreviewScreen(navController: NavController) {
|
||||
permissionState = cameraPermissionState,
|
||||
permissionNotGrantedContent = {
|
||||
PermissionNotAvailableContent(
|
||||
descriptionMessage = stringResource(R.string.txt_camera_permssion_required),
|
||||
descriptionMessage = stringResource(org.zxconnect.android.beserve.i18n.R.string.txt_camera_permssion_required),
|
||||
onPermissionRequest = {
|
||||
cameraPermissionState.launchPermissionRequest()
|
||||
}
|
||||
@@ -74,7 +74,7 @@ fun PreviewScreen(navController: NavController) {
|
||||
},
|
||||
permissionNotAvailableContent = {
|
||||
PermissionNotAvailableContent(
|
||||
descriptionMessage = stringResource(R.string.txt_permission_denied),
|
||||
descriptionMessage = stringResource(org.zxconnect.android.beserve.i18n.R.string.txt_permission_denied),
|
||||
onPermissionRequest = {
|
||||
cameraPermissionState.launchPermissionRequest()
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ import androidx.annotation.StringRes
|
||||
import com.ericampire.android.androidstudycase.R
|
||||
|
||||
sealed class Destination(val route: String, @StringRes val resourceId: Int) {
|
||||
object Home : Destination("home", R.string.txt_home)
|
||||
object Explore : Destination("explore", R.string.txt_explore)
|
||||
object Preview : Destination("preview", R.string.txt_preview)
|
||||
object Login : Destination("login", R.string.txt_login)
|
||||
object Home : Destination("home", org.zxconnect.android.beserve.i18n.R.string.txt_home)
|
||||
object Explore : Destination("explore", org.zxconnect.android.beserve.i18n.R.string.txt_explore)
|
||||
object Preview : Destination("preview", org.zxconnect.android.beserve.i18n.R.string.txt_preview)
|
||||
object Login : Destination("login", org.zxconnect.android.beserve.i18n.R.string.txt_login)
|
||||
}
|
||||
Reference in New Issue
Block a user