Skip to content

Commit

Permalink
Updated build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
vsnappy1 committed Nov 13, 2024
1 parent b5de1c5 commit 930e2ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import java.util.Properties
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.jetbrains.kotlin.android)
id("dev.randos.resourcemanager")
}

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,4 @@ package com.randos.resourceprovider

import android.app.Application

class ResourceProviderApp: Application(){

override fun onCreate() {
super.onCreate()

ResourceManager.initialize(this)
}
}
class ResourceProviderApp: Application()
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.randos.resourceprovider.ResourceManager
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch

Expand All @@ -17,12 +16,7 @@ class HomeViewModel : ViewModel() {
fun getData() {
viewModelScope.launch {
delay(1000)
try {
_uiState.postValue(HomeScreenState(text = ResourceManager.Strings.test()))

} catch (e: Exception) {
_uiState.postValue(HomeScreenState(text = e.localizedMessage?:"---"))
}
_uiState.postValue(HomeScreenState(text = "---"))
Log.d("TAG", "getData: ")
}
}
Expand Down

0 comments on commit 930e2ad

Please sign in to comment.