Skip to content

Android Release Build does not compress data.pandora #224

@russmatney

Description

@russmatney

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:

  1. Export a project for android as an APK (as a 'release' build, not a debug build)
  2. Unzip the apk with something like unzip build.apk -d some-dir
  3. Check on data.pandora via something like less some-dir/assets/data.pandora
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions