Conversation
BryanJacobs
left a comment
There was a problem hiding this comment.
I appreciate the contribution, but I've left a few review comments. I could see my way to merging something like this but it would need to remove a bit less of the existing functionality. As it stands this is less a "cleanup" and more a "rewrite".
Especially, it still needs to be possible to build a jcardsim jar with zero javacard dependencies present on the build machine, and it needs to be IMpossible to build an applet that relies on a jcardsim-only function.
build.gradle
Outdated
| jcdk files('../jckit/lib/api_classic-3.0.5.jar') | ||
|
|
||
| // Main and test dependencies use JCardSim | ||
| implementation files('../jcardsim-3.0.5.jar') |
There was a problem hiding this comment.
JCardSim shouldn't be a dependency for the javacard applet. It's only used for testing builds.
|
Overall, my main goal was to get rid of the klinec javacard plugin, and ideally be able to use Visual Studio Code with the Java Extension Pack. From the command line everything is working fine, but in Visual Studio Code I still have a nagging issue in |
BryanJacobs
left a comment
There was a problem hiding this comment.
Almost there now, but there should be some way to build with your choice of version of the JCDK without editing the sources.
|
Sorry to be so late responding, but this still doesn't appear to work properly with SDKs other than the last login-required one from Oracle. I'd love to merge this but it needs to be able to build the javacard applet when using older SDKs. This fails as written because of three problems:
I don't see cleaning up as being more important than being portable to a wider variety of build environments, so I'd rather not lose support for older tools just to reduce the size of the build.gradle file. If you can ensure this works with both older and newer SDKs I'd be glad to merge it. I really do appreciate the contribution, but what's being improved (the size and "cleanness" of the gradle file) needs to be greater than what's being lost (compatibility). |
|
Closing as my build focused only on JavaCard 3.0.4+. I appreciate your focus on multiple environments so let's leave it as it is. |
Hi Bryan, I like your project and since the tools for working with Java Cards are not frequently updated I removed dependencias since they tend to become technical debt. The
build.gradlefile is now simpler and I changed the README to help newcomers.