mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Extract strings into resources (#151)
Move all strings into resource files to make future translating easier No user facing changes in this PR
This commit is contained in:
parent
40267be633
commit
2840fa3f2a
52 changed files with 616 additions and 306 deletions
|
|
@ -5,6 +5,7 @@ import android.content.Context
|
|||
import android.provider.Settings
|
||||
import androidx.datastore.core.DataStore
|
||||
import com.github.damontecres.wholphin.BuildConfig
|
||||
import com.github.damontecres.wholphin.R
|
||||
import com.github.damontecres.wholphin.data.ServerRepository
|
||||
import com.github.damontecres.wholphin.preferences.AppPreferences
|
||||
import com.github.damontecres.wholphin.preferences.UserPreferences
|
||||
|
|
@ -47,9 +48,11 @@ annotation class IoCoroutineScope
|
|||
object AppModule {
|
||||
@Provides
|
||||
@Singleton
|
||||
fun clientInfo(): ClientInfo =
|
||||
fun clientInfo(
|
||||
@ApplicationContext context: Context,
|
||||
): ClientInfo =
|
||||
ClientInfo(
|
||||
name = "Wholphin",
|
||||
name = context.getString(R.string.app_name),
|
||||
version = BuildConfig.VERSION_NAME,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue