diff --git a/README.md b/README.md index 80269d1..aa8cb71 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ These key / values can be, but do not need to be included in the `info.json` fil - `bundle_id` - (optional) It should match to the bundle id set on the Apple Developer website for this app. If it's not set it will default to: "org.kiwix.custom.{brand_name}", where the brand name is the name of the folder, eg: "org.kiwix.custom.dwds". +- `disable_immersive_reading` - optional (true| false) - if set to true, it will disable the immersive reading functionality on iOS, which is hiding the top / bottom nav bars while scrolling the web content. If the ZIM content is specific to a full screen experience (eg: PhET) it might be better to turn this feature off, so that the user navigation is not blocked (eg navigating back, search, bookmarks ect). + - `zim_auth` - (optional) this is needed if standard http authentication is required to download the ZIM file. This should be set to **an environment variable name**, which will be resolved during build time. Make sure that the environment variable itself is set up properly before running the build process. **Do not place any credentials directly here, it's not safe, and won't work.** ## XCAssets file diff --git a/phet/info.json b/phet/info.json new file mode 100644 index 0000000..ce50a69 --- /dev/null +++ b/phet/info.json @@ -0,0 +1,14 @@ +{ + "about_app_url": "https://www.kiwix.org/support", + "about_text": "Chemistry & Physics simulation", + "app_name": "PhET", + "app_store_id": "id6744251352", + "bundle_id": "org.kiwix.phet", + "development_team": "L7HWM3SP3L", + "disable_immersive_reading": true, + "settings_default_external_link_to": "alwaysLoad", + "settings_show_external_link_option": true, + "settings_show_search_snippet": false, + "uses_audio": false, + "zim_url": "http://localhost:8000/phet_mul_all_2025-03.zim" +} diff --git a/phet/phet.xcassets/AppIcon.appiconset/Contents.json b/phet/phet.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..099a9b3 --- /dev/null +++ b/phet/phet.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,74 @@ +{ + "images" : [ + { + "filename" : "phet_logo_1024.png", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "filename" : "phet_logo_16.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "filename" : "phet_logo_32 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "filename" : "phet_logo_32.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "filename" : "phet_logo_64.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "filename" : "phet_logo_128.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "filename" : "phet_logo_256.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "filename" : "phet_logo_256 1.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "filename" : "phet_logo_512.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "filename" : "phet_logo_512 1.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "filename" : "phet_logo_1024 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_1024 1.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_1024 1.png new file mode 100644 index 0000000..fe99ee5 Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_1024 1.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_1024.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_1024.png new file mode 100644 index 0000000..fe99ee5 Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_1024.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_128.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_128.png new file mode 100644 index 0000000..15c133d Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_128.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_16.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_16.png new file mode 100644 index 0000000..703f7ff Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_16.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_256 1.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_256 1.png new file mode 100644 index 0000000..2b52331 Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_256 1.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_256.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_256.png new file mode 100644 index 0000000..2b52331 Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_256.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_32 1.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_32 1.png new file mode 100644 index 0000000..4b05a28 Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_32 1.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_32.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_32.png new file mode 100644 index 0000000..4b05a28 Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_32.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_512 1.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_512 1.png new file mode 100644 index 0000000..2e4d230 Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_512 1.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_512.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_512.png new file mode 100644 index 0000000..2e4d230 Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_512.png differ diff --git a/phet/phet.xcassets/AppIcon.appiconset/phet_logo_64.png b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_64.png new file mode 100644 index 0000000..4437441 Binary files /dev/null and b/phet/phet.xcassets/AppIcon.appiconset/phet_logo_64.png differ diff --git a/phet/phet.xcassets/Contents.json b/phet/phet.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/phet/phet.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/phet/phet.xcassets/GenericZimFile.imageset/Contents.json b/phet/phet.xcassets/GenericZimFile.imageset/Contents.json new file mode 100644 index 0000000..e577b37 --- /dev/null +++ b/phet/phet.xcassets/GenericZimFile.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "icon_128x128.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/phet/phet.xcassets/GenericZimFile.imageset/icon_128x128.png b/phet/phet.xcassets/GenericZimFile.imageset/icon_128x128.png new file mode 100644 index 0000000..7febc9a Binary files /dev/null and b/phet/phet.xcassets/GenericZimFile.imageset/icon_128x128.png differ diff --git a/phet/phet.xcassets/Other.imageset/Contents.json b/phet/phet.xcassets/Other.imageset/Contents.json new file mode 100644 index 0000000..c6a628d --- /dev/null +++ b/phet/phet.xcassets/Other.imageset/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "filename" : "notebook.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "preserves-vector-representation" : true + } +} diff --git a/phet/phet.xcassets/Other.imageset/notebook.svg b/phet/phet.xcassets/Other.imageset/notebook.svg new file mode 100644 index 0000000..862e953 --- /dev/null +++ b/phet/phet.xcassets/Other.imageset/notebook.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/phet/phet.xcassets/StarAdd.imageset/BookmarkAdded.png b/phet/phet.xcassets/StarAdd.imageset/BookmarkAdded.png new file mode 100644 index 0000000..d2d0e65 Binary files /dev/null and b/phet/phet.xcassets/StarAdd.imageset/BookmarkAdded.png differ diff --git a/phet/phet.xcassets/StarAdd.imageset/Contents.json b/phet/phet.xcassets/StarAdd.imageset/Contents.json new file mode 100644 index 0000000..98137d0 --- /dev/null +++ b/phet/phet.xcassets/StarAdd.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "BookmarkAdded.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/phet/phet.xcassets/StarRemove.imageset/BookmarkRemoved.png b/phet/phet.xcassets/StarRemove.imageset/BookmarkRemoved.png new file mode 100644 index 0000000..96fa66b Binary files /dev/null and b/phet/phet.xcassets/StarRemove.imageset/BookmarkRemoved.png differ diff --git a/phet/phet.xcassets/StarRemove.imageset/Contents.json b/phet/phet.xcassets/StarRemove.imageset/Contents.json new file mode 100644 index 0000000..7e508a6 --- /dev/null +++ b/phet/phet.xcassets/StarRemove.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "BookmarkRemoved.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/phet/phet.xcassets/welcomeLogo.imageset/Contents.json b/phet/phet.xcassets/welcomeLogo.imageset/Contents.json new file mode 100644 index 0000000..5e8813a --- /dev/null +++ b/phet/phet.xcassets/welcomeLogo.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "filename" : "phet_welcomeLogo.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "preserves-vector-representation" : true, + "template-rendering-intent" : "original" + } +} diff --git a/phet/phet.xcassets/welcomeLogo.imageset/phet_welcomeLogo.svg b/phet/phet.xcassets/welcomeLogo.imageset/phet_welcomeLogo.svg new file mode 100644 index 0000000..90d13de --- /dev/null +++ b/phet/phet.xcassets/welcomeLogo.imageset/phet_welcomeLogo.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/info_parser.py b/src/info_parser.py index 7f603e4..315e889 100644 --- a/src/info_parser.py +++ b/src/info_parser.py @@ -25,6 +25,7 @@ JSON_TO_PLIST_MAPPING = { "about_text": "CUSTOM_ABOUT_TEXT", "settings_default_external_link_to": "SETTINGS_DEFAULT_EXTERNAL_LINK_TO", "settings_show_search_snippet": "SETTINGS_SHOW_SEARCH_SNIPPET", + "disable_immersive_reading": "DISABLE_IMMERSIVE_READING", "settings_show_external_link_option": "SETTINGS_SHOW_EXTERNAL_LINK_OPTION" }