Disable immerse reading for PhET

This commit is contained in:
Balazs Perlaki-Horvath 2025-04-05 15:28:54 +02:00
parent cb9679a8ac
commit 28745d057d
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -5,9 +5,10 @@
"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": true,
"uses_audio": false,
"zim_url": "http://localhost:8000/phet_mul_all_2025-03.zim"
}

View File

@ -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"
}