-
Notifications
You must be signed in to change notification settings - Fork 1
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
Finished implementation #9
Conversation
Native CI
app/src/main/java/me/timpushkin/sgbmandroidapp/utils/StorageUtils.kt
Outdated
Show resolved
Hide resolved
It the last commit some things appeared which I'm not so sure about:
|
class StorageUtils(private val context: Context) { | ||
private val mFileSystem = AndroidFileSystem(context) | ||
|
||
fun copyToCache(uri: Uri, filename: String): File? = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already removed cache? is it useless?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this one is still required. I removed only caching of images, but caching of calibration parameters is still needed: I have to pass a raw file path to the native library, but in the recent versions of Android it is pretty hard (and not recommended) to work with raw paths outside of app-specific directories. That's why I copy the file with parameters to app's cache -- this way I have a safe way to get its path.
First version of the project consisting of the library and a demo application.