-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds attributed string swizzling that allows Transifex SDK to allow for SwiftUI support. * De-swizzles methods when SDK is deactivated (when `dispose` is called). * Adds public static method to deactivate swizzling on passed `Bundle` instance. * Ensures that the special Transifex `.stringsdict` key used to calculate the plural rules, cannot be swizzled (`TRANSIFEX_STRINGSDICT_KEY`). * Ensures that SDK is properly deactivated when a unit test finishes, so that swizzling is re-applied correctly on each test. * Adds unit test for the `localizedAttributedString:...` method in Objective-C. * Adds unit test for the `NSLocalizedString()` method in Swift. NOTE: SwiftUI elements (`View`, `Button` etc) cannot be added to unit tests.
- Loading branch information
1 parent
b85d7c8
commit 1e2accc
Showing
9 changed files
with
295 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.