Skip to content

chore: draft at using new API to replace java.io.File#9661

Draft
farfromrefug wants to merge 5 commits into
NativeScript:mainfrom
Akylas:android11
Draft

chore: draft at using new API to replace java.io.File#9661
farfromrefug wants to merge 5 commits into
NativeScript:mainfrom
Akylas:android11

Conversation

@farfromrefug
Copy link
Copy Markdown
Collaborator

@farfromrefug farfromrefug commented Nov 6, 2021

This is a draft PR at introducing new APIs for Android 11.
With Android 11 java.io.File is rendered useless because of permissions.

This PR replaces java.io.File in most places.
It also moves most file system logics to the Java side to improve perfomances.

The work is not finished yet:

  • i implemented a new org.nativescript.widgets.Utils.getFileStats methods to get all stats for a File or a Folder. Still needs to be plugged on the JS side
  • need to implement enumEntities method on the Java side (i have the code).
  • need to implement removeFile/createFile/mkdirs .... For that i have no idea yet.

I also moved the mobile-ui-base android project to gradle 7.0 with latest features. Thus the changes in java files.

Any help on this is welcome. We need this ASAP

@cla-bot cla-bot Bot added the cla: yes label Nov 6, 2021
@rigor789 rigor789 added this to the 8.2 milestone Dec 14, 2021
@xpalacincreditoh
Copy link
Copy Markdown

Hello,

I'm pending the resolution of this change, oh that I can not upload documents.

Thanks

@d3ividloper
Copy link
Copy Markdown

Hello I came across with the same issue, please let me know when test were fixed in order to apply the fix to uploads documents.
thanks in advance and Merry Christmas!!!

@xpalacincreditoh
Copy link
Copy Markdown

I test to apply changes of PR of /core/file-system/file-system-access.android.ts in a patch and have same error.
Is it possible that I don't use ts i lame from js?

@xpalacincreditoh
Copy link
Copy Markdown

I test to apply changes of PR of /core/file-system/file-system-access.android.js of JS in a patch and have same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants