You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During build-time I see the files here are encrypted, but at run-time they are not decrypted. The reason is the DecryptResource.java class is not getting updated with the file regex, and it still has the default list:
I see code in after_prepare.js that intends to change the class, but it is targeting INCLUDE_FILES and EXCLUDE_FILES properties in the Java source, rather than CRYPT_FILES which is in the source here:
Describe the bug
Following the README, I've added the following to
plugin.xml
so I can supportjson
files being encrypted.During build-time I see the files here are encrypted, but at run-time they are not decrypted. The reason is the
DecryptResource.java
class is not getting updated with the file regex, and it still has the default list:I see code in
after_prepare.js
that intends to change the class, but it is targetingINCLUDE_FILES
andEXCLUDE_FILES
properties in the Java source, rather thanCRYPT_FILES
which is in the source here:cordova-plugin-crypto-file/src/android/com/crypt/cordova/DecryptResource.java
Line 31 in 348a65a
My workaround is to manually edit the Java class to add the extension.
To Reproduce
Steps to reproduce the behavior:
plugin.xml
as aboveExpected behavior
The app should decrypt the read when it is called.
Additional information
I notice that the original plugin cordova-plugin-crypt-file does have
INCLUDE_FILES
andEXCLUDE_FILES
, so it's possibly just a back-porting issue:https://github.com/tkyaji/cordova-plugin-crypt-file/blob/ddee9dfcbf082c417a41b8480f7a9d2b7884ed87/src/android/com/tkyaji/cordova/DecryptResource.java#L29
The text was updated successfully, but these errors were encountered: