Skip to content
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

Make Java methods public? #19

Open
BorntraegerMarc opened this issue Apr 24, 2019 · 11 comments
Open

Make Java methods public? #19

BorntraegerMarc opened this issue Apr 24, 2019 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@BorntraegerMarc
Copy link
Contributor

What do you think of the idea to make all methods public & static from this class: https://github.com/BorntraegerMarc/cordova-aes256/blob/master/src/android/AES256.java

I could provide a PR.

The benefit would be that we could use the same class for our custom plugin without needing to manually copy & paste the code. Since we need to do something custom with encryption in our native plugin.

@pandiarajan-i2i
Copy link
Contributor

Thanks, @BorntraegerMarc,

Instead of making the plugin method static, we can provide a Util class where all the methods will be static.

@BorntraegerMarc
Copy link
Contributor Author

that's a good idea @pandiarajan-i2i you want me to create a PR?

@pandiarajan-i2i
Copy link
Contributor

Thanks for your contribution, @BorntraegerMarc

We will add these changes along with the swift version(s) support changes.

@BorntraegerMarc
Copy link
Contributor Author

OK. Tell me if I can help in any way :)

@pandiarajan-i2i
Copy link
Contributor

@BorntraegerMarc , Could you please check this functionality for swift?

@BorntraegerMarc
Copy link
Contributor Author

you mean for me to provide a PR to have static methods in swift?

@pandiarajan-i2i
Copy link
Contributor

it may be a pull request or can you confirm whether it's already available as public.

@BorntraegerMarc
Copy link
Contributor Author

@pandiarajan-i2i so I think these changes need to happen to be able to fully share the code with 3rd parties:

  1. Extract this method to a helper method in AES256CBC https://github.com/Ideas2IT/cordova-aes256/blob/master/src/ios/AES256.swift#L60
  2. Same for https://github.com/Ideas2IT/cordova-aes256/blob/master/src/ios/AES256.swift#L79

Because without these helper methods we had to manually copy these attributes: https://github.com/Ideas2IT/cordova-aes256/blob/master/src/ios/AES256.swift#L3-L5

tell me if I can help somehow

@pandiarajan-i2i
Copy link
Contributor

Yah you are welcome. If possible we can address the swift versions issues and will add this static method implementation later.

Because, Whenever the new updates to the iOS/Xcode they have removed the support for the previous swift versions. It indirectly forces the previous code implementations.
#18

If we do find some effective solutions then it will be helpful.

@pandiarajan-i2i pandiarajan-i2i added the enhancement New feature or request label Apr 30, 2019
@pandiarajan-i2i
Copy link
Contributor

@MukundhanSampath Can you please update your changes?

@BorntraegerMarc
Copy link
Contributor Author

any progress on this? :) let me know if you need some help...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants