Skip to content

chore: Update directory watcher and tell ProGuard to leave it alone#87

Open
Rover656 wants to merge 2 commits intoAppliedEnergistics:mainfrom
Rover656:fix/macos-directory-watcher
Open

chore: Update directory watcher and tell ProGuard to leave it alone#87
Rover656 wants to merge 2 commits intoAppliedEnergistics:mainfrom
Rover656:fix/macos-directory-watcher

Conversation

@Rover656
Copy link
Copy Markdown

Fixes MacOS directory watcher by ensuring ProGuard doesn't strip constructors used by JNI.

Also bumps the version of directory watcher as it also has MacOS JNI improvements.

Comment thread proguard.conf
-keepclassmembers class guideme.internal.hooks.mixins.* {
*;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment that it's because jni has a direct reference? (That's why, right?)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to keep all? How much bigger does this make the resulting jar?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will look at how much can be stripped before it breaks, and document it's presence :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File size difference after changing to only preserving the JNI package (which still fixes the root issue)

Before: 5,192,460 bytes (5.2 MB on disk)
After: 5,195,286 bytes (5.2 MB on disk)

…oGuard

I attempted just constructors, but further funky errors were caused as a result - seems safest to just prevent the JNI package from being trimmed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants