The Wayback Machine - https://web.archive.org/web/20211227075729/https://github.com/libgdx/libgdx/issues/6212
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Zip file handle #6212

Open
yuripourre opened this issue Oct 10, 2020 · 10 comments
Open

[Feature Request] Zip file handle #6212

yuripourre opened this issue Oct 10, 2020 · 10 comments

Comments

@yuripourre
Copy link
Contributor

@yuripourre yuripourre commented Oct 10, 2020

It may be a specific request but since there is a zip file handler for Android, doesn't hurt to ask for a desktop (maybe multiple backends?) implementation.

I would like to try that in the future but if anyone has time before feel free to do it.

Similar request:
#5830

Example code:
https://gist.github.com/MobiDevelop/5514357#file-archivefilehandle-java

@MrStahlfelge
Copy link
Member

@MrStahlfelge MrStahlfelge commented Oct 10, 2020

Personally, I achieved this by unpacking the zip to a local (temp) folder. Let's ping @MobiDevelop - it is his code, and his opinion if this should be added to the framework is important imo.

@PokeMMO
Copy link
Contributor

@PokeMMO PokeMMO commented Oct 10, 2020

I also use an implementation similar to MobiDevelop's on Desktop. This seems like it would be a good addition to libgdx.

@crykn
Copy link
Member

@crykn crykn commented Nov 24, 2020

Just as a quick note: According to Discord, @MobiDevelop is okay with adding ZipFileHandle to libGDX. If anyone is interested in taking this on, please feel free to do so. We also need implementations for iOS and GWT.

@Armaxxx
Copy link
Contributor

@Armaxxx Armaxxx commented Nov 27, 2020

I will try to tackle this issue, this will be my first issue on an open source project so please be patient.

@libgdx libgdx deleted a comment from SaraWinter1 Dec 10, 2020
@anbu93
Copy link

@anbu93 anbu93 commented Dec 19, 2020

For html module
you have error: No source code is available for type java.util.zip.ZipFile; did you forget to inherit a required module?
because java.util.zip not emulated JRE http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_util.

A possible workaround is to use JSZip in html backend

@igor98bn
Copy link

@igor98bn igor98bn commented Apr 22, 2021

Thanks for the solution anbu93

dushechka added a commit to dushechka/libgdx that referenced this issue May 4, 2021
@libgdx libgdx deleted a comment from Projectslib Jun 17, 2021
@libgdx libgdx deleted a comment from as-martin Sep 9, 2021
@kenneth120
Copy link

@kenneth120 kenneth120 commented Sep 13, 2021

I used an implementation similar to Mobil Develops on Laptop. it seems like it would be a wonderful addition to zip file handler and it has specific requests.

@libgdx libgdx deleted a comment Sep 26, 2021
@Sagar0-0
Copy link

@Sagar0-0 Sagar0-0 commented Sep 30, 2021

Is this issue is closed? if not then i would like to have some details for solution.

@yuripourre
Copy link
Contributor Author

@yuripourre yuripourre commented Sep 30, 2021

@Sagar0-0 no, the issue is not closed.

@dushechka created a PR (#6518) that works for desktop but some people asked/suggested a solution that works for web too. It was never approved/merged.

#6518

@crykn
Copy link
Member

@crykn crykn commented Oct 1, 2021

There is also #6326, which is also incomplete/abandoned.

@libgdx libgdx deleted a comment Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment