@W-17247702: Remove getBuildConfigValue reflection usage#2850
Merged
wmathurin merged 1 commit intoforcedotcom:devfrom Mar 17, 2026
Merged
@W-17247702: Remove getBuildConfigValue reflection usage#2850wmathurin merged 1 commit intoforcedotcom:devfrom
wmathurin merged 1 commit intoforcedotcom:devfrom
Conversation
Replace reflection-based BuildConfig access with direct use of SDK's BuildConfig.DEBUG constant to fix obfuscation compatibility issues and ClassNotFoundException errors.
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## dev #2850 +/- ##
=============================================
- Coverage 64.90% 54.16% -10.74%
+ Complexity 2963 2433 -530
=============================================
Files 222 222
Lines 17394 17382 -12
Branches 2478 2475 -3
=============================================
- Hits 11289 9415 -1874
- Misses 4906 6880 +1974
+ Partials 1199 1087 -112
🚀 New features to boost your workflow:
|
brandonpage
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace reflection-based BuildConfig access with direct use of SDK's BuildConfig.DEBUG constant to fix obfuscation compatibility issues and ClassNotFoundException errors.
NB: The buildConfig feature was already enabled, the import com.salesforce.androidsdk.BuildConfig.DEBUG was already at the top of the file (line 74), but the code was still using reflection to access the consumer app's BuildConfig instead of the SDK's own BuildConfig.