android: alwas generate `res/values/string.xml` if it does not exist
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 30 Jul 2014 21:24:56 +0000 (17:24 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 30 Jul 2014 21:28:21 +0000 (17:28 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/android_platform.nit

index e3afc71..de0bec5 100644 (file)
@@ -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
 """<?xml version="1.0" encoding="utf-8"?>
 <resources>