mibrito707 / cordova-plugin-secure-storage-echo

Secure storage plugin for Apache Cordova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to build on the Mac

orest opened this issue · comments

commented

I'm having this issue when building/running on the Mac. Can you please let me know how to go around it. When i do
ionic cordova build android i get this error message

xxx/platforms/android/src/com/crypho/plugins/SecureStorage.java:229: error: local variable title is accessed from within inner class; needs to be declared final
Intent intent = keyguardManager.createConfirmDeviceCredentialIntent(title, description);
^
xxx/platforms/android/src/com/crypho/plugins/SecureStorage.java:229: error: local variable description is accessed from within inner class; needs to be declared final
Intent intent = keyguardManager.createConfirmDeviceCredentialIntent(title, description);
^
xxx/platforms/android/src/com/crypho/plugins/SecureStorage.java:249: error: local variable userAuthenticationValidityDuration is accessed from within inner class; needs to be declared final
RSA.createKeyPair(getContext(), alias, userAuthenticationValidityDuration);

Can you please help.
Thank you

@orest @mibrito707 I have this fixed here Chuckv01@c962d93

I didn't do a pull request as I changed the package name so I could publish the changes to an npm package. Should be pretty easy to merge that commit to this repo though.

Thanks @Chuckv01, I'll merge that change ASAP

Fixed in PR #6

Thanks a lot @giordanocardillo 👍