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

ReIntroduce "Hotspot Feature" for custom apps. #4028

Open
MohitMaliFtechiz opened this issue Oct 11, 2024 · 0 comments
Open

ReIntroduce "Hotspot Feature" for custom apps. #4028

MohitMaliFtechiz opened this issue Oct 11, 2024 · 0 comments
Labels
Milestone

Comments

@MohitMaliFtechiz
Copy link
Collaborator

MohitMaliFtechiz commented Oct 11, 2024

Describe the bug
We had the hotspot feature for custom apps, which was removed because of #1600. But we reintroduced it in #3487. At that moment, we were using the obb file for custom apps, and the server was working with obb file because it is a file. But later we introduced the Asset Play Delivery API for custom apps which was necessary to upload the bundle on the play store.

In this feature, we started uploading fd in bundles in chunks. The hotspot feature did not work with the fd chunks, so we hid it for custom apps in #3516.

However, Library needs a Book() object in this book object we are adding the Archive object with the fd list, and KiwixServer showing the language of this ZIM file on the server but the ZIM file is not listed there.

Expected behavior
It should list the ZIM file on the Server with the fd list.

Environment

  • Version of Kiwix Android: 3.11.1
  • Device: Google Pixel 7a
  • OS version: Android 14

Logs after creating the Archive Object and before passing it to the Library

org.kiwix.kiwixcustomcustomexample   E  createKiwixServer: 
uuid = 11ed7bbb-bed2-ba2d-ff95-0390793ece1a 
filename = // it is empty since archive object is created by the fd list
allEntryCount = 252584
checksum = dd01d79d747655c301e510f6e5e3748b
filesize = 334794869
illustrationSizes = [J@32e212d
isMultiPart = false
mainEntry = org.kiwix.libzim.Entry@e8e0662
mediaCount = 297
metadataKeys = [Ljava.lang.String;@a36c3f3
allEntryCount = 252584
articleCount = 252152

After 5 second of starting the server

createdKiwixServer: After 5 second logbook url =  
book path = 
book allEntryCount = 252152
book creator = Berlin-Brandenburgische Akademie der Wissenschaften
book mediaCount = 297
book category = 
book date = 2024-08-23
book description = Der deutsche Wortschatz von 1600 bis heute
book flavour = 
book humanReadableIdFromPath = 
book id = 11ed7bbb-bed2-ba2d-ff95-0390793ece1a
book isPathValid = true
book publisher = Berlin-Brandenburgische Akademie der Wissenschaften
book name = Testversion
book tags = _ftindex:no;_pictures:yes;_videos:yes;_details:yes
book size = 334794752
book title = DWDS
book language = deu
book illustrations = [Lorg.kiwix.libkiwix.Illustration;@24dcb6a
screen-20241011-132720.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants