kiwix / kiwix-android

Kiwix for Android
https://android.kiwix.org
GNU General Public License v3.0
861 stars 443 forks source link

Assess SimpleStorage #3475

Open kelson42 opened 1 year ago

kelson42 commented 1 year ago

Assess if we would benefit of using https://github.com/anggrayudi/SimpleStorage

Following #3265

MohitMaliFtechiz commented 3 months ago

This would benefit us as it provides the many methods that ease accessing files(DocumentFile) on different API levels, and handle code for different API levels. but as for now, we know that we can not open the ZIM file via inputStream/[DocumentFile]/fileDescriptor provided by this library. Libkiwix needs the filePath(with proper read access) to work properly with Xapian. And android restricts the direct read access to filePath. We already have this type of ticket for https://github.com/kiwix/kiwix-android/issues/3628 that is blocked due to the https://github.com/openzim/libzim/issues/852. So we can consider this after #3628 has been fixed.