Przeglądaj źródła

code improvements

Milan Jurkulak 2 lat temu
rodzic
commit
a4ab0e879a

+ 23 - 7
app/build.gradle.kts

@@ -68,6 +68,8 @@ android {
         buildConfigField("String", "GITHUB_USER", "\"mimoccc\"")
         buildConfigField("String", "GITHUB_REPOSITORY", "\"tvapp\"")
 
+        multiDexEnabled = true
+
         manifestPlaceholders.apply {
             put("auth0Domain", "@string/com_auth0_domain")
             put("auth0Scheme", "demo")
@@ -81,8 +83,8 @@ android {
             isDebuggable = true
             isMinifyEnabled = false
             isShrinkResources = false
-//            isCrunchPngs = true
-//            isEmbedMicroApp = true
+            isCrunchPngs = false
+            isEmbedMicroApp = true
             proguardFiles(
                 getDefaultProguardFile("proguard-android-optimize.txt"),
                 "proguard-rules.pro"
@@ -97,6 +99,11 @@ android {
                 "sync_auth",
                 "${defaultConfig.applicationId}$applicationIdSuffix.sync"
             )
+            resValue(
+                "string",
+                "app_name",
+                "TV ${applicationIdSuffix.toString().replace(".","").capitalize()}"
+            )
         }
 
         release {
@@ -104,8 +111,8 @@ android {
             isDebuggable = false
             isMinifyEnabled = true
             isShrinkResources = true
-//            isCrunchPngs = true
-//            isEmbedMicroApp = true
+            isCrunchPngs = true
+            isEmbedMicroApp = true
             proguardFiles(
                 getDefaultProguardFile("proguard-android-optimize.txt"),
                 "proguard-rules.pro"
@@ -120,6 +127,11 @@ android {
                 "sync_auth",
                 "${defaultConfig.applicationId}$applicationIdSuffix.sync"
             )
+            resValue(
+                "string",
+                "app_name",
+                "TV ${applicationIdSuffix.toString().replace(".","").capitalize()}"
+            )
         }
 
         create("recomposing") {
@@ -127,8 +139,8 @@ android {
             isDebuggable = true
             isMinifyEnabled = false
             isShrinkResources = false
-//            isCrunchPngs = true
-//            isEmbedMicroApp = true
+            isCrunchPngs = false
+            isEmbedMicroApp = true
             proguardFiles(
                 getDefaultProguardFile("proguard-android-optimize.txt"),
                 "proguard-rules.pro"
@@ -143,7 +155,11 @@ android {
                 "sync_auth",
                 "${defaultConfig.applicationId}$applicationIdSuffix.sync"
             )
-            multiDexEnabled = true
+            resValue(
+                "string",
+                "app_name",
+                "TV ${applicationIdSuffix.toString().replace(".","").capitalize()}"
+            )
             matchingFallbacks += listOf("debug")
         }
     }

+ 0 - 2
app/src/main/res/values-cs/strings.xml

@@ -10,8 +10,6 @@
 
 <resources>
 
-    <string name="app_name">Tv App</string>
-
     <string name="bt_dismiss">Zrušit</string>
     <string name="bt_update">Aktualizovat</string>
 

+ 0 - 2
app/src/main/res/values-sk/strings.xml

@@ -10,8 +10,6 @@
 
 <resources>
 
-    <string name="app_name">Tv App</string>
-
     <string name="bt_dismiss">Zrušiť</string>
     <string name="bt_update">Aktualizovať</string>
 

+ 1 - 4
app/src/main/res/values/strings.xml

@@ -1,4 +1,4 @@
-<!--
+<?xml version="1.0" encoding="utf-8"?><!--
 /*
  * Copyright (c) Milan Jurkulák 2023.
  * Contact:
@@ -7,11 +7,8 @@
  * w: https://mjdev.org
  */
 -->
-
 <resources>
 
-    <string name="app_name">Tv App</string>
-
     <string name="bt_dismiss">Dismiss</string>
     <string name="bt_update">Update</string>