diff --git a/lutinModule.py b/lutinModule.py index dfed390..c48e92b 100644 --- a/lutinModule.py +++ b/lutinModule.py @@ -80,6 +80,7 @@ class Module: "PRIORITY" : set(""), "DESCRIPTION" : set(""), "VERSION" : set("0.0.0"), + "VERSION_CODE" : "", "NAME" : set("no-name"), # name of the application "ANDROID_MANIFEST" : "", # By default generate the manifest "ANDROID_JAVA_FILES" : ["DEFAULT"], # when user want to create his own services and activities @@ -658,6 +659,8 @@ class Module: self.packageProp[variable] = value elif "VERSION" == variable: self.packageProp[variable] = value + elif "VERSION_CODE" == variable: + self.packageProp[variable] = value elif "NAME" == variable: self.packageProp[variable] = value elif "ANDROID_MANIFEST" == variable: diff --git a/lutinTargetAndroid.py b/lutinTargetAndroid.py index c45188f..2aa9b41 100644 --- a/lutinTargetAndroid.py +++ b/lutinTargetAndroid.py @@ -307,13 +307,15 @@ class Target(lutinTarget.Target): debug.print_element("pkg", "AndroidManifest.xml", "<==", pkgProperties["ANDROID_MANIFEST"]) lutinTools.copy_file(pkgProperties["ANDROID_MANIFEST"], self.get_staging_folder(pkgName) + "/AndroidManifest.xml", True) else: + if "VERSION_CODE" not in pkgProperties: + pkgProperties["VERSION_CODE"] = "1" debug.print_element("pkg", "AndroidManifest.xml", "<==", "package configurations") tmpFile = open(self.get_staging_folder(pkgName) + "/AndroidManifest.xml", 'w') tmpFile.write( '\n') tmpFile.write( '\n') tmpFile.write( ' \n') tmpFile.write( ' \n') tmpFile.write( '