@capacitor/ios 9.0.0-alpha.2 → 9.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -130,9 +130,7 @@ import WebKit
|
|
|
130
130
|
webViewConfiguration.allowsAirPlayForMediaPlayback = true
|
|
131
131
|
webViewConfiguration.mediaTypesRequiringUserActionForPlayback = []
|
|
132
132
|
webViewConfiguration.limitsNavigationsToAppBoundDomains = instanceConfiguration.limitsNavigationsToAppBoundDomains
|
|
133
|
-
|
|
134
|
-
webViewConfiguration.preferences.isElementFullscreenEnabled = true
|
|
135
|
-
}
|
|
133
|
+
webViewConfiguration.preferences.isElementFullscreenEnabled = true
|
|
136
134
|
if let appendUserAgent = instanceConfiguration.appendedUserAgentString {
|
|
137
135
|
if let appName = webViewConfiguration.applicationNameForUserAgent {
|
|
138
136
|
webViewConfiguration.applicationNameForUserAgent = "\(appName) \(appendUserAgent)"
|
|
@@ -30,6 +30,13 @@ import Foundation
|
|
|
30
30
|
return defaultValue
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
@objc public func getDouble(_ configKey: String, _ defaultValue: Double) -> Double {
|
|
34
|
+
if let val = (self.config)[keyPath: KeyPath(configKey)] as? Double {
|
|
35
|
+
return val
|
|
36
|
+
}
|
|
37
|
+
return defaultValue
|
|
38
|
+
}
|
|
39
|
+
|
|
33
40
|
public func getArray(_ configKey: String, _ defaultValue: JSArray? = nil) -> JSArray? {
|
|
34
41
|
if let val = (self.config)[keyPath: KeyPath(configKey)] as? JSArray {
|
|
35
42
|
return val
|
package/Capacitor.podspec
CHANGED
|
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.summary = 'Capacitor for iOS'
|
|
13
13
|
s.license = 'MIT'
|
|
14
14
|
s.homepage = 'https://capacitorjs.com/'
|
|
15
|
-
s.ios.deployment_target = '
|
|
15
|
+
s.ios.deployment_target = '16.0'
|
|
16
16
|
s.authors = { 'Ionic Team' => 'hi@ionicframework.com' }
|
|
17
17
|
s.source = { git: 'https://github.com/ionic-team/capacitor.git', tag: package['version'] }
|
|
18
18
|
s.source_files = "#{prefix}Capacitor/Capacitor/**/*.{swift,h,m}"
|
package/CapacitorCordova.podspec
CHANGED
|
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
s.license = 'MIT'
|
|
16
16
|
s.authors = { 'Ionic Team' => 'hi@ionicframework.com' }
|
|
17
17
|
s.source = { git: 'https://github.com/ionic-team/capacitor', tag: s.version.to_s }
|
|
18
|
-
s.platform = :ios,
|
|
18
|
+
s.platform = :ios, 16.0
|
|
19
19
|
s.source_files = "#{prefix}CapacitorCordova/CapacitorCordova/**/*.{h,m,swift}"
|
|
20
20
|
s.public_header_files = "#{prefix}CapacitorCordova/CapacitorCordova/Classes/Public/*.h",
|
|
21
21
|
"#{prefix}CapacitorCordova/CapacitorCordova/CapacitorCordova.h"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/ios",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.3",
|
|
4
4
|
"description": "Capacitor: Cross-platform apps with JavaScript and the web",
|
|
5
5
|
"homepage": "https://capacitorjs.com",
|
|
6
6
|
"author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"xc:build:CapacitorCordova": "cd CapacitorCordova && xcodebuild && cd .."
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@capacitor/core": "^9.0.0-alpha.
|
|
28
|
+
"@capacitor/core": "^9.0.0-alpha.3"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
package/scripts/pods_helpers.rb
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
def assertDeploymentTarget(installer)
|
|
2
2
|
installer.pods_project.targets.each do |target|
|
|
3
3
|
target.build_configurations.each do |config|
|
|
4
|
-
# ensure IPHONEOS_DEPLOYMENT_TARGET is at least
|
|
4
|
+
# ensure IPHONEOS_DEPLOYMENT_TARGET is at least 16.0
|
|
5
5
|
deployment_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f
|
|
6
|
-
should_upgrade = deployment_target <
|
|
6
|
+
should_upgrade = deployment_target < 16.0 && deployment_target != 0.0
|
|
7
7
|
if should_upgrade
|
|
8
|
-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '
|
|
8
|
+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
end
|