mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 06:42:21 -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",
|
"app_name": "Wikipédia médicale",
|
||||||
"package": "org.kiwix.kiwixcustomwikimedfr",
|
"package": "org.kiwix.kiwixcustomwikimedfr",
|
||||||
"version_name": "2016-09",
|
"version_name": "2016-09",
|
||||||
"version_code": "1",
|
"version_code": "8",
|
||||||
|
"content_version_code" : 7,
|
||||||
"zim_file": "custom/wikimedfr/content.zim",
|
"zim_file": "custom/wikimedfr/content.zim",
|
||||||
"embed_zim": false,
|
"embed_zim": false,
|
||||||
"ic_launcher": "custom/wikimedfr/icon.png",
|
"ic_launcher": "custom/wikimedfr/icon.png",
|
||||||
|
@ -52,6 +52,7 @@ DEFAULT_JSDATA = {
|
|||||||
# 'zim_file': "wikipedia_bm.zim",
|
# 'zim_file': "wikipedia_bm.zim",
|
||||||
'enforced_lang': None,
|
'enforced_lang': None,
|
||||||
'embed_zim': False,
|
'embed_zim': False,
|
||||||
|
'content_version_code' : 0,
|
||||||
|
|
||||||
# main icon source & store icon
|
# main icon source & store icon
|
||||||
'ic_launcher': os.path.join('android',
|
'ic_launcher': os.path.join('android',
|
||||||
@ -609,6 +610,10 @@ def main(jspath, **options):
|
|||||||
if jsdata.get('embed_zim'):
|
if jsdata.get('embed_zim'):
|
||||||
jsdata.update({'zim_name': 'libcontent.so'})
|
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
|
# greetings
|
||||||
logger.info("Your are now building {app_name} version {version_name} "
|
logger.info("Your are now building {app_name} version {version_name} "
|
||||||
"at {path} for {zim_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_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~";
|
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 long CUSTOM_APP_ZIM_FILE_SIZE = ~zim_size~;
|
||||||
public static final String CUSTOM_APP_VERSION_NAME = "~version_name~";
|
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_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_WEBSITE = "~website~";
|
||||||
public static final String CUSTOM_APP_EMAIL = "~support_email~";
|
public static final String CUSTOM_APP_EMAIL = "~support_email~";
|
||||||
public static final String CUSTOM_APP_SUPPORT_EMAIL = "~support_email~";
|
public static final String CUSTOM_APP_SUPPORT_EMAIL = "~support_email~";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user