Merge branch 'bugfix/CXTDT-573370' into 'release/20_0_0'

Digital PCT265 defect CXTDT-573370: Expose VDS bundle helper in MVMCoreUI.

### Summary
Fix webview local font loading.

### JIRA Ticket
https://onejira.verizon.com/browse/CXTDT-573370

Co-authored-by: Hedden, Kyle Matthew <kyle.hedden@verizonwireless.com>

See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui/-/merge_requests/1131
This commit is contained in:
Bruce, Matt R 2024-06-14 18:16:19 +00:00
commit 1fcd8854f5
2 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,9 @@ NS_ASSUME_NONNULL_BEGIN
// The bundle for this framework
+ (nullable NSBundle *)bundleForMVMCoreUI;
/// The bundle for the VDS frameowrk. Handy for accessing VDS resources such as fonts.
+ (nullable NSBundle *)bundleForFonts;
// Returns the hardcoded string from the string file.
+ (nullable NSString *)hardcodedStringWithKey:(nonnull NSString *)key;

View File

@ -22,6 +22,10 @@
return [NSBundle bundleWithIdentifier:@"com.vzw.MVMCoreUI"];
}
+ (nullable NSBundle *)bundleForFonts {
return [NSBundle bundleWithIdentifier:@"com.vzw.vds"];
}
+ (nullable NSString *)hardcodedStringWithKey:(nonnull NSString *)key {
// Redirect key with relevant module.
return [MVMCoreGetterUtility hardcodedStringWithKey:key bundle:[MVMCoreUIUtility bundleForMVMCoreUI]];