theme: move TW_THEME_VERSION to variables.h
Automatically add the current theme version to the
splash and ui xmls during the build
Change-Id: I52f8cb41fabe34a8849ecc54ece3c0fb645dcd74
diff --git a/gui/theme/landscape_hdpi/splash.xml b/gui/theme/landscape_hdpi/splash.xml
index b9d7853..56391bd 100644
--- a/gui/theme/landscape_hdpi/splash.xml
+++ b/gui/theme/landscape_hdpi/splash.xml
@@ -5,7 +5,7 @@
<author>TeamWin</author>
<title>TWRP</title>
<description>splash screen</description>
- <themeversion>4</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<resources>
diff --git a/gui/theme/landscape_hdpi/ui.xml b/gui/theme/landscape_hdpi/ui.xml
index da3c5fc..bd055bd 100755
--- a/gui/theme/landscape_hdpi/ui.xml
+++ b/gui/theme/landscape_hdpi/ui.xml
@@ -6,7 +6,7 @@
<title>Backup Naowz</title>
<description>Default basic theme</description>
<preview>preview.png</preview>
- <themeversion>4</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<include>
diff --git a/gui/theme/landscape_mdpi/splash.xml b/gui/theme/landscape_mdpi/splash.xml
index a2098fb..ea87310 100644
--- a/gui/theme/landscape_mdpi/splash.xml
+++ b/gui/theme/landscape_mdpi/splash.xml
@@ -5,7 +5,7 @@
<author>TeamWin</author>
<title>TWRP</title>
<description>splash screen</description>
- <themeversion>4</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<resources>
diff --git a/gui/theme/landscape_mdpi/ui.xml b/gui/theme/landscape_mdpi/ui.xml
index e29aa6b..9ab8863 100755
--- a/gui/theme/landscape_mdpi/ui.xml
+++ b/gui/theme/landscape_mdpi/ui.xml
@@ -6,7 +6,7 @@
<title>Backup Naowz</title>
<description>Default basic theme</description>
<preview>preview.png</preview>
- <themeversion>4</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<include>
diff --git a/gui/theme/portrait_hdpi/splash.xml b/gui/theme/portrait_hdpi/splash.xml
index f0b0756..f793afa 100644
--- a/gui/theme/portrait_hdpi/splash.xml
+++ b/gui/theme/portrait_hdpi/splash.xml
@@ -5,7 +5,7 @@
<author>TeamWin</author>
<title>TWRP</title>
<description>splash screen</description>
- <themeversion>4</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<resources>
diff --git a/gui/theme/portrait_hdpi/ui.xml b/gui/theme/portrait_hdpi/ui.xml
index 70df4e8..f7d21da 100755
--- a/gui/theme/portrait_hdpi/ui.xml
+++ b/gui/theme/portrait_hdpi/ui.xml
@@ -6,7 +6,7 @@
<title>Backup Naowz</title>
<description>Default basic theme</description>
<preview>preview.png</preview>
- <themeversion>4</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<include>
diff --git a/gui/theme/portrait_mdpi/splash.xml b/gui/theme/portrait_mdpi/splash.xml
index 4ce64b3..b0b97ee 100644
--- a/gui/theme/portrait_mdpi/splash.xml
+++ b/gui/theme/portrait_mdpi/splash.xml
@@ -5,7 +5,7 @@
<author>TeamWin</author>
<title>TWRP</title>
<description>splash screen</description>
- <themeversion>4</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<resources>
diff --git a/gui/theme/portrait_mdpi/ui.xml b/gui/theme/portrait_mdpi/ui.xml
index 9ed1a20..9189df0 100755
--- a/gui/theme/portrait_mdpi/ui.xml
+++ b/gui/theme/portrait_mdpi/ui.xml
@@ -6,7 +6,7 @@
<title>Backup Naowz</title>
<description>Default basic theme</description>
<preview>preview.png</preview>
- <themeversion>4</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<include>
diff --git a/gui/theme/watch_mdpi/splash.xml b/gui/theme/watch_mdpi/splash.xml
index 62e8dc3..2ce71b3 100644
--- a/gui/theme/watch_mdpi/splash.xml
+++ b/gui/theme/watch_mdpi/splash.xml
@@ -5,7 +5,7 @@
<author>TeamWin</author>
<title>TWRP</title>
<description>splash screen</description>
- <themeversion>3</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<resources>
diff --git a/gui/theme/watch_mdpi/ui.xml b/gui/theme/watch_mdpi/ui.xml
index 8ec73df..ed7ac82 100644
--- a/gui/theme/watch_mdpi/ui.xml
+++ b/gui/theme/watch_mdpi/ui.xml
@@ -7,7 +7,7 @@
<title>Backup Naowz</title>
<description>Default basic theme</description>
<preview>preview.png</preview>
- <themeversion>4</themeversion>
+ <themeversion>{themeversion}</themeversion>
</details>
<include>