Index: sitescripts/extensions/utils.py |
=================================================================== |
--- a/sitescripts/extensions/utils.py |
+++ b/sitescripts/extensions/utils.py |
@@ -435,3 +435,19 @@ |
"version": version |
} |
writeLibabpUpdateManifest(path, updates) |
+ |
+def writeAndroidUpdateManifest(path, extensions): |
+ """ |
+ Writes update.json for Android |
+ """ |
+ |
+ if not extensions: |
+ return |
+ |
+ updates = {} |
+ for extension in extensions: |
+ updates[extension['basename']] = { |
+ "url": extension['updateURL'], |
+ "version": extension['version'] |
+ } |
+ writeLibabpUpdateManifest(path, updates) |