@capgo/inappbrowser 7.16.16 → 7.16.17

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.
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.homepage = package['repository']['url']
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
- s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
13
+ s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '14.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
package/Package.swift CHANGED
@@ -19,7 +19,7 @@ let package = Package(
19
19
  .product(name: "Capacitor", package: "capacitor-swift-pm"),
20
20
  .product(name: "Cordova", package: "capacitor-swift-pm")
21
21
  ],
22
- path: "ios/Plugin"),
22
+ path: "ios/Sources/InAppBrowserPlugin"),
23
23
  .testTarget(
24
24
  name: "InappbrowserPluginTests",
25
25
  dependencies: ["InappbrowserPlugin"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/inappbrowser",
3
- "version": "7.16.16",
3
+ "version": "7.16.17",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,8 +31,7 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
34
- "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -sdk iphoneos -scheme Plugin && cd ..",
35
- "verify:iosSPM": "xcodebuild -workspace ios/Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS",
34
+ "verify:ios": "xcodebuild -scheme CapgoInappbrowser -destination generic/platform=iOS",
36
35
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
37
36
  "verify:web": "npm run build",
38
37
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
@@ -1,65 +0,0 @@
1
- //
2
- // Enums.swift
3
- // Sample
4
- //
5
- // Created by Meniny on 2018-01-20.
6
- // Copyright © 2018年 Meniny. All rights reserved.
7
- //
8
-
9
- import Foundation
10
- import UIKit
11
-
12
- public enum WKWebSource: Equatable {
13
- case remote(URL)
14
- case file(URL, access: URL)
15
- case string(String, base: URL?)
16
-
17
- public var url: URL? {
18
- switch self {
19
- case .remote(let u): return u
20
- case .file(let u, access: _): return u
21
- default: return nil
22
- }
23
- }
24
-
25
- public var remoteURL: URL? {
26
- switch self {
27
- case .remote(let u): return u
28
- default: return nil
29
- }
30
- }
31
-
32
- public var absoluteString: String? {
33
- switch self {
34
- case .remote(let u): return u.absoluteString
35
- case .file(let u, access: _): return u.absoluteString
36
- default: return nil
37
- }
38
- }
39
- }
40
-
41
- public enum BarButtonItemType {
42
- case back
43
- case forward
44
- case reload
45
- case stop
46
- case activity
47
- case done
48
- case flexibleSpace
49
- case custom(icon: UIImage?, title: String?, action: (WKWebViewController) -> Void)
50
- }
51
-
52
- public enum NavigationBarPosition: String, Equatable, Codable {
53
- case none
54
- case left
55
- case right
56
- }
57
-
58
- @objc public enum NavigationType: Int, Equatable, Codable {
59
- case linkActivated
60
- case formSubmitted
61
- case backForward
62
- case reload
63
- case formResubmitted
64
- case other
65
- }