Commit 7d4ebba8 by sikang

update script

parent 36e3d3cb
......@@ -13,13 +13,13 @@ def addToProperties(line):
os.system("./update_properties.py "+line)
def getStringFiled(key,value):
return "\t\t\tbuildConfigField 'String', '" + key + "', " + value + "+\n"
return "\t\t\tbuildConfigField 'String', '" + key + "', " + value + "\n"
def getColorRes(key,value):
return "\t\t\tresValue('color', '"+key+"', " + value + "\n"
return "\t\t\tresValue('color', '"+key+"', " + value + ")\n"
def getStringRes(key,value):
return "\t\t\tresValue('string', '"+key+"', " + value + "\n"
return "\t\t\tresValue('string', '"+key+"', " + value + ")\n"
def move_config(path):
# print("processing content: %s..." % path)
......@@ -45,7 +45,7 @@ def move_config(path):
if line.startswith("//"):
line = ""
else:
addToProperties("language="+getResValue(line))
addToProperties("language=in")
line = getStringFiled("LANGUAGE","\"${language}\"")
if "'color', 'main_color'" in line:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment