@cap-kit/ssl-pinning 8.0.0 → 8.0.1
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.
package/Package.swift
CHANGED
|
@@ -10,7 +10,7 @@ let package = Package(
|
|
|
10
10
|
targets: ["SslPinningPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.1.0")
|
|
14
14
|
],
|
|
15
15
|
targets: [
|
|
16
16
|
.target(
|
package/android/build.gradle
CHANGED
|
@@ -11,7 +11,7 @@ buildscript {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
plugins {
|
|
14
|
-
id "org.jlleitschuh.gradle.ktlint" version "
|
|
14
|
+
id "org.jlleitschuh.gradle.ktlint" version "14.0.1" apply false
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
ext {
|
|
@@ -38,8 +38,9 @@ def getPluginVersion() {
|
|
|
38
38
|
}
|
|
39
39
|
} catch (Exception e) {
|
|
40
40
|
// Ignore errors and fallback
|
|
41
|
+
logger.info("Exception", e)
|
|
41
42
|
}
|
|
42
|
-
return "0.0
|
|
43
|
+
return "8.0.0"
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
def pluginVersion = getPluginVersion()
|
|
@@ -48,16 +49,16 @@ android {
|
|
|
48
49
|
namespace = "io.capkit.sslpinning"
|
|
49
50
|
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion as Integer : 36
|
|
50
51
|
|
|
51
|
-
// AGP 8.0+ disables BuildConfig by default for libraries.
|
|
52
|
+
// AGP 8.0+ disables BuildConfig by default for libraries.
|
|
52
53
|
// We need to enable it to inject the plugin version.
|
|
53
54
|
buildFeatures {
|
|
54
55
|
buildConfig = true
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
defaultConfig {
|
|
58
|
-
minSdkVersion
|
|
59
|
-
targetSdkVersion
|
|
60
|
-
versionCode
|
|
59
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion as Integer : 24
|
|
60
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion as Integer : 36
|
|
61
|
+
versionCode 1
|
|
61
62
|
|
|
62
63
|
// Dynamic versioning (feature enabled)
|
|
63
64
|
versionName = pluginVersion
|
|
@@ -19,10 +19,7 @@ public final class SSLPinningImpl: NSObject {
|
|
|
19
19
|
|
|
20
20
|
// MARK: - Properties
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
Immutable plugin configuration.
|
|
24
|
-
Injected once during plugin initialization.
|
|
25
|
-
*/
|
|
22
|
+
// Properties
|
|
26
23
|
private var config: SSLPinningConfig?
|
|
27
24
|
|
|
28
25
|
// MARK: - Configuration
|
|
@@ -34,9 +31,18 @@ public final class SSLPinningImpl: NSObject {
|
|
|
34
31
|
from the Plugin layer during `load()`.
|
|
35
32
|
*/
|
|
36
33
|
func applyConfig(_ config: SSLPinningConfig) {
|
|
34
|
+
precondition(
|
|
35
|
+
self.config == nil,
|
|
36
|
+
"SSLPinningImpl.applyConfig(_:) must be called exactly once"
|
|
37
|
+
)
|
|
38
|
+
|
|
37
39
|
self.config = config
|
|
38
40
|
SSLPinningLogger.verbose = config.verboseLogging
|
|
39
|
-
|
|
41
|
+
|
|
42
|
+
SSLPinningLogger.debug(
|
|
43
|
+
"Configuration applied. Verbose logging:",
|
|
44
|
+
config.verboseLogging
|
|
45
|
+
)
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
// MARK: - Single fingerprint
|
|
@@ -10,7 +10,7 @@ import Foundation
|
|
|
10
10
|
public enum PluginVersion {
|
|
11
11
|
/**
|
|
12
12
|
The semantic version string of the plugin.
|
|
13
|
-
Value synchronized from package.json: "8.0.
|
|
13
|
+
Value synchronized from package.json: "8.0.1"
|
|
14
14
|
*/
|
|
15
|
-
public static let number = "8.0.
|
|
15
|
+
public static let number = "8.0.1"
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cap-kit/ssl-pinning",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Capacitor plugin for runtime SSL certificate fingerprint pinning on iOS and Android",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
|
+
"sideEffects": false,
|
|
7
8
|
"engines": {
|
|
8
9
|
"node": ">=24.0.0",
|
|
9
10
|
"pnpm": ">=10.0.0"
|
|
@@ -24,7 +25,18 @@
|
|
|
24
25
|
"bin/",
|
|
25
26
|
"scripts/"
|
|
26
27
|
],
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/esm/index.d.ts",
|
|
31
|
+
"import": "./dist/esm/index.js",
|
|
32
|
+
"require": "./dist/plugin.cjs.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
27
35
|
"author": "CapKit Team",
|
|
36
|
+
"funding": {
|
|
37
|
+
"type": "github",
|
|
38
|
+
"url": "https://github.com/sponsors/cap-kit"
|
|
39
|
+
},
|
|
28
40
|
"license": "MIT",
|
|
29
41
|
"repository": {
|
|
30
42
|
"type": "git",
|
|
@@ -61,16 +73,16 @@
|
|
|
61
73
|
"yargs": "^18.0.0"
|
|
62
74
|
},
|
|
63
75
|
"devDependencies": {
|
|
64
|
-
"@capacitor/android": "^8.0
|
|
65
|
-
"@capacitor/cli": "^8.0
|
|
66
|
-
"@capacitor/core": "^8.0
|
|
76
|
+
"@capacitor/android": "^8.1.0",
|
|
77
|
+
"@capacitor/cli": "^8.1.0",
|
|
78
|
+
"@capacitor/core": "^8.1.0",
|
|
67
79
|
"@capacitor/docgen": "^0.3.1",
|
|
68
|
-
"@capacitor/ios": "^8.0
|
|
80
|
+
"@capacitor/ios": "^8.1.0",
|
|
69
81
|
"@eslint/eslintrc": "^3.3.3",
|
|
70
82
|
"@eslint/js": "^9.39.2",
|
|
71
83
|
"eslint": "^9.39.2",
|
|
72
84
|
"eslint-plugin-import": "^2.32.0",
|
|
73
|
-
"@types/node": "^25.2.
|
|
85
|
+
"@types/node": "^25.2.3",
|
|
74
86
|
"@types/yargs": "^17.0.35",
|
|
75
87
|
"globals": "^17.3.0",
|
|
76
88
|
"prettier": "^3.8.1",
|
|
@@ -79,10 +91,10 @@
|
|
|
79
91
|
"rollup": "^4.57.1",
|
|
80
92
|
"swiftlint": "^2.0.0",
|
|
81
93
|
"typescript": "~5.9.3",
|
|
82
|
-
"typescript-eslint": "^8.
|
|
94
|
+
"typescript-eslint": "^8.55.0"
|
|
83
95
|
},
|
|
84
96
|
"peerDependencies": {
|
|
85
|
-
"@capacitor/core": "^8.0
|
|
97
|
+
"@capacitor/core": "^8.1.0"
|
|
86
98
|
},
|
|
87
99
|
"capacitor": {
|
|
88
100
|
"ios": {
|