-
Notifications
You must be signed in to change notification settings - Fork 417
Support skipping string constant remapping #1401
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
Conversation
6e070d3
to
7ab3258
Compare
5042c45
to
233e9e0
Compare
# Conflicts: # src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/RelocationTest.kt
ad4a70a
to
de55c7b
Compare
# Conflicts: # api/shadow.api # docs/changes/README.md
bab7138
to
7953783
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for disabling string constant remapping during relocation by introducing a new skipStringConstants
property to the Relocator
interface. This feature allows users to prevent string literals from being relocated when they only want class and package names to be relocated.
- Added
skipStringConstants
property toRelocator
interface with default value offalse
- Implemented the property in
SimpleRelocator
with support in constructor, equals, and hashCode methods - Updated relocation logic in
RelocatorRemapper
to respect theskipStringConstants
flag
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
Relocator.kt | Added skipStringConstants property to interface with default implementation |
SimpleRelocator.kt | Implemented skipStringConstants property with constructor parameter and equality support |
RelocatorRemapper.kt | Updated mapping logic to conditionally skip string constant relocation |
RelocationTest.kt | Added parameterized test to verify string constant skipping functionality |
README.md | Added documentation section explaining the new string constant skipping feature |
README.md (changes) | Updated changelog with the new feature |
shadow.api | Updated API signature file to reflect new method signatures |
src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/RelocatorRemapper.kt
Show resolved
Hide resolved
…ernal/RelocatorRemapper.kt Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
…adow/internal/RelocatorRemapper.kt" This reverts commit d5060b1.
Uh oh!
There was an error while loading. Please reload this page.