From 437e7126cf4a557eb202d4730566389111e413b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Wed, 30 Jul 2014 17:24:56 -0400 Subject: [PATCH] android: alwas generate `res/values/string.xml` if it does not exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/android_platform.nit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/android_platform.nit b/src/android_platform.nit index e3afc71..de0bec5 100644 --- a/src/android_platform.nit +++ b/src/android_platform.nit @@ -239,7 +239,9 @@ $(call import-module,android/native_app_glue) res_dir = res_dir.realpath var target_res_dir = "{android_project_root}" toolcontext.exec_and_check(["cp", "-R", res_dir, target_res_dir], "Android project error") - else + end + + if not res_dir.file_exists or not "{res_dir}/values/strings.xml".file_exists then # Create our own custom `res/values/string.xml` with the App name """ -- 1.7.9.5