lib/run_loop/l10n.rb in run_loop-4.3.0 vs lib/run_loop/l10n.rb in run_loop-4.4.1
- old
+ new
@@ -15,13 +15,12 @@
return nil unless lookup_table_dir
key_name_lookup_table(lookup_table_dir)[key_code]
end
- UIKIT_AXBUNDLE_PATH_CORE_SIM = 'Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/AccessibilityBundles/UIKit.axbundle/'
- UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_9 = "Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/UIKit.axbundle"
- UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_11 = "Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/UIKit.axbundle"
+ UIKIT_AXBUNDLE_PATH_CORE_SIM = 'Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/AccessibilityBundles/UIKit.axbundle'
+ UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_9 = "Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/UIKit.axbundle"
LANG_CODE_TO_LANG_NAME_MAP = {
'en' => 'English',
'nl' => 'Dutch',
'fr' => 'French',
@@ -70,13 +69,11 @@
end
nil
end
def uikit_bundle_l10n_path
- if xcode.version_gte_110?
- File.join(xcode.developer_dir, UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_11)
- elsif xcode.version_gte_90?
- File.join(xcode.developer_dir, UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_9)
+ if xcode.version_gte_90?
+ File.join(xcode.core_simulator_dir, UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_9)
else
File.join(xcode.developer_dir, UIKIT_AXBUNDLE_PATH_CORE_SIM)
end
end