@dicty/payment 2.0.0 → 2.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
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// swift-tools-version: 5.9
|
|
2
|
+
import PackageDescription
|
|
3
|
+
|
|
4
|
+
let package = Package(
|
|
5
|
+
name: "DictyPayment",
|
|
6
|
+
platforms: [.iOS(.v14)],
|
|
7
|
+
products: [
|
|
8
|
+
.library(
|
|
9
|
+
name: "DictyPayment",
|
|
10
|
+
targets: ["PaymentPlugin"])
|
|
11
|
+
],
|
|
12
|
+
dependencies: [
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
|
|
14
|
+
],
|
|
15
|
+
targets: [
|
|
16
|
+
.target(
|
|
17
|
+
name: "PaymentPlugin",
|
|
18
|
+
dependencies: [
|
|
19
|
+
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
|
20
|
+
.product(name: "Cordova", package: "capacitor-swift-pm")
|
|
21
|
+
],
|
|
22
|
+
path: "ios/Sources/PaymentPlugin"),
|
|
23
|
+
.testTarget(
|
|
24
|
+
name: "PaymentPluginTests",
|
|
25
|
+
dependencies: ["PaymentPlugin"],
|
|
26
|
+
path: "ios/Tests/PaymentPluginTests")
|
|
27
|
+
]
|
|
28
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import XCTest
|
|
2
|
+
@testable import PaymentPlugin
|
|
3
|
+
|
|
4
|
+
class PaymentTests: XCTestCase {
|
|
5
|
+
func testEcho() {
|
|
6
|
+
// This is an example of a functional test case for a plugin.
|
|
7
|
+
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
|
8
|
+
|
|
9
|
+
let implementation = Payment()
|
|
10
|
+
let value = "Hello, World!"
|
|
11
|
+
let result = implementation.echo(value)
|
|
12
|
+
|
|
13
|
+
XCTAssertEqual(value, result)
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicty/payment",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "Dicty
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Dicty Payment plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/plugin.cjs.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -11,28 +11,19 @@
|
|
|
11
11
|
"android/src/main/",
|
|
12
12
|
"android/build.gradle",
|
|
13
13
|
"dist/",
|
|
14
|
-
"ios/Sources
|
|
14
|
+
"ios/Sources",
|
|
15
|
+
"ios/Tests",
|
|
16
|
+
"Package.swift",
|
|
15
17
|
"DictyPayment.podspec"
|
|
16
18
|
],
|
|
17
19
|
"author": "Dicty",
|
|
18
20
|
"license": "MIT",
|
|
19
21
|
"repository": {
|
|
20
22
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/
|
|
23
|
+
"url": "git+https://github.com/dicty-app/payment.git"
|
|
22
24
|
},
|
|
23
25
|
"bugs": {
|
|
24
|
-
"url": "https://github.com/
|
|
25
|
-
},
|
|
26
|
-
"exports": {
|
|
27
|
-
".": {
|
|
28
|
-
"type": "./dist/esm/index.d.ts",
|
|
29
|
-
"import": "./dist/esm/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./react": {
|
|
32
|
-
"type": "./dist/esm/provider/react/PaymentPluginProvider.d.ts",
|
|
33
|
-
"import": "./dist/esm/provider/react/PaymentPluginProvider.js"
|
|
34
|
-
},
|
|
35
|
-
"./*": "./*"
|
|
26
|
+
"url": "https://github.com/dicty-app/payment/issues"
|
|
36
27
|
},
|
|
37
28
|
"keywords": [
|
|
38
29
|
"capacitor",
|
|
@@ -75,9 +66,10 @@
|
|
|
75
66
|
"typescript": "^5.9.3"
|
|
76
67
|
},
|
|
77
68
|
"peerDependencies": {
|
|
78
|
-
"@capacitor/core": "
|
|
69
|
+
"@capacitor/core": ">=7.0.0",
|
|
79
70
|
"react": "^19.2.0"
|
|
80
71
|
},
|
|
72
|
+
"prettier": "@ionic/prettier-config",
|
|
81
73
|
"swiftlint": "@ionic/swiftlint-config",
|
|
82
74
|
"eslintConfig": {
|
|
83
75
|
"extends": "@ionic/eslint-config/recommended"
|