mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Added option to build customapps for specific expansion version
Use content_version_code to set the expansion version code. Defaults to the same as version_code.
This commit is contained in:
parent
ff78335e18
commit
279e196fbb
@ -2,7 +2,8 @@
|
||||
"app_name": "Wikipédia médicale",
|
||||
"package": "org.kiwix.kiwixcustomwikimedfr",
|
||||
"version_name": "2016-09",
|
||||
"version_code": "1",
|
||||
"version_code": "8",
|
||||
"content_version_code" : 7,
|
||||
"zim_file": "custom/wikimedfr/content.zim",
|
||||
"embed_zim": false,
|
||||
"ic_launcher": "custom/wikimedfr/icon.png",
|
||||
|
@ -52,6 +52,7 @@ DEFAULT_JSDATA = {
|
||||
# 'zim_file': "wikipedia_bm.zim",
|
||||
'enforced_lang': None,
|
||||
'embed_zim': False,
|
||||
'content_version_code' : 0,
|
||||
|
||||
# main icon source & store icon
|
||||
'ic_launcher': os.path.join('android',
|
||||
@ -608,7 +609,11 @@ def main(jspath, **options):
|
||||
jsdata.update({'zim_name': zim_name_from_path(jsdata.get('zim_file'))})
|
||||
if jsdata.get('embed_zim'):
|
||||
jsdata.update({'zim_name': 'libcontent.so'})
|
||||
|
||||
|
||||
# Update Content Version Code
|
||||
if jsdata.get('content_version_code') == 0:
|
||||
jsdata.update({'content_version_code' : jsdata.get('version_code')})
|
||||
|
||||
# greetings
|
||||
logger.info("Your are now building {app_name} version {version_name} "
|
||||
"at {path} for {zim_name}"
|
||||
|
@ -16,7 +16,7 @@ public class Constants {
|
||||
|
||||
public static final int CUSTOM_APP_VERSION_CODE = 2;
|
||||
|
||||
public static final int CUSTOM_APP_CONTENT_VERSION_CODE = CUSTOM_APP_VERSION_CODE;
|
||||
public static final int CUSTOM_APP_CONTENT_VERSION_CODE = 0;
|
||||
|
||||
public static final String CUSTOM_APP_WEBSITE = "~website~";
|
||||
|
||||
|
@ -8,6 +8,7 @@ public class Constants {
|
||||
public static final long CUSTOM_APP_ZIM_FILE_SIZE = ~zim_size~;
|
||||
public static final String CUSTOM_APP_VERSION_NAME = "~version_name~";
|
||||
public static final int CUSTOM_APP_VERSION_CODE = ~version_code~;
|
||||
public static final int CUSTOM_APP_CONTENT_VERSION_CODE = ~content_version_code~
|
||||
public static final String CUSTOM_APP_WEBSITE = "~website~";
|
||||
public static final String CUSTOM_APP_EMAIL = "~support_email~";
|
||||
public static final String CUSTOM_APP_SUPPORT_EMAIL = "~support_email~";
|
||||
|
Loading…
x
Reference in New Issue
Block a user