-
-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Godot version: 4.4.1
Android release builds are not compressing pandora data.
Some digging reveals that json_data_storage.gd's FileAccess.open_compressed() returns a null file. Using FileAccess.get_open_error() prints error 15, which is ERR_FILE_UNRECOGNIZED.
Unzipping the built APK to view data.pandora shows it is still a json text file (not compressed).
To Reproduce
Steps to reproduce the behavior:
- Export a project for android as an APK (as a 'release' build, not a debug build)
- Unzip the apk with something like
unzip build.apk -d some-dir - Check on
data.pandoravia something likeless some-dir/assets/data.pandora - See readable json instead of fancy compressed data
Desktop (please complete the following information):
- OS: Linux (Manjaro)
Additional context
I'm using the latest pandora from the godot-4.x branch (commit: 48ec6e4).
I can test in a fresh project to be sure this isn't just on my end - feel free to wait before looking any further into this.
I'm currently working around this by falling back to FileAccess.open() as seen here: russmatney/dothop@3e22379