nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34df039
)
android: alwas generate `res/values/string.xml` if it does not exist
author
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 30 Jul 2014 21:24:56 +0000
(17:24 -0400)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/src/android_platform.nit
b/src/android_platform.nit
index
e3afc71
..
de0bec5
100644
(file)
--- 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
"""<?xml version="1.0" encoding="utf-8"?>
<resources>