@idpass/smartscanner-capacitor 0.6.0 → 0.7.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/IdpassSmartscannerCapacitor.podspec +17 -17
- package/LICENSE +201 -201
- package/README.md +125 -125
- package/android/.gradle/8.0.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.0.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.0.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.0.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.project +28 -0
- package/android/build.gradle +151 -151
- package/android/gradle/wrapper/gradle-wrapper.properties +6 -6
- package/android/gradle.properties +22 -22
- package/android/gradlew +188 -188
- package/android/proguard-rules.pro +27 -21
- package/android/settings.gradle +1 -1
- package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +28 -28
- package/android/src/main/AndroidManifest.xml +2 -2
- package/android/src/main/java/org/idpass/smartscanner/capacitor/SmartScannerPlugin.kt +75 -75
- package/android/src/main/res/layout/bridge_layout_main.xml +13 -13
- package/android/src/main/res/values/colors.xml +3 -3
- package/android/src/main/res/values/strings.xml +3 -3
- package/android/src/main/res/values/styles.xml +3 -3
- package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +18 -18
- package/ios/Plugin/Info.plist +24 -24
- package/ios/Plugin/Plugin.h +10 -10
- package/ios/Plugin/Plugin.m +8 -8
- package/ios/Plugin/Plugin.swift +17 -17
- package/ios/Plugin.xcodeproj/project.pbxproj +554 -554
- package/ios/PluginTests/Info.plist +22 -22
- package/ios/PluginTests/PluginTests.swift +35 -35
- package/ios/Podfile +16 -16
- package/package.json +8 -9
- package/android/.DS_Store +0 -0
- package/android/.npmignore +0 -1
- package/ios/.npmignore +0 -4
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
-
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
-
<key>CFBundleExecutable</key>
|
|
8
|
-
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
-
<key>CFBundleIdentifier</key>
|
|
10
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
-
<string>6.0</string>
|
|
13
|
-
<key>CFBundleName</key>
|
|
14
|
-
<string>$(PRODUCT_NAME)</string>
|
|
15
|
-
<key>CFBundlePackageType</key>
|
|
16
|
-
<string>BNDL</string>
|
|
17
|
-
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>1.0</string>
|
|
19
|
-
<key>CFBundleVersion</key>
|
|
20
|
-
<string>1</string>
|
|
21
|
-
</dict>
|
|
22
|
-
</plist>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundleName</key>
|
|
14
|
+
<string>$(PRODUCT_NAME)</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>BNDL</string>
|
|
17
|
+
<key>CFBundleShortVersionString</key>
|
|
18
|
+
<string>1.0</string>
|
|
19
|
+
<key>CFBundleVersion</key>
|
|
20
|
+
<string>1</string>
|
|
21
|
+
</dict>
|
|
22
|
+
</plist>
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import XCTest
|
|
2
|
-
import Capacitor
|
|
3
|
-
@testable import Plugin
|
|
4
|
-
|
|
5
|
-
class PluginTests: XCTestCase {
|
|
6
|
-
|
|
7
|
-
override func setUp() {
|
|
8
|
-
super.setUp()
|
|
9
|
-
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
override func tearDown() {
|
|
13
|
-
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
14
|
-
super.tearDown()
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
func testEcho() {
|
|
18
|
-
// This is an example of a functional test case for a plugin.
|
|
19
|
-
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
|
20
|
-
|
|
21
|
-
let value = "Hello, World!"
|
|
22
|
-
let plugin = MyPlugin()
|
|
23
|
-
|
|
24
|
-
let call = CAPPluginCall(callbackId: "test", options: [
|
|
25
|
-
"value": value
|
|
26
|
-
], success: { (result, _) in
|
|
27
|
-
let resultValue = result!.data["value"] as? String
|
|
28
|
-
XCTAssertEqual(value, resultValue)
|
|
29
|
-
}, error: { (_) in
|
|
30
|
-
XCTFail("Error shouldn't have been called")
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
plugin.echo(call!)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
import XCTest
|
|
2
|
+
import Capacitor
|
|
3
|
+
@testable import Plugin
|
|
4
|
+
|
|
5
|
+
class PluginTests: XCTestCase {
|
|
6
|
+
|
|
7
|
+
override func setUp() {
|
|
8
|
+
super.setUp()
|
|
9
|
+
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
override func tearDown() {
|
|
13
|
+
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
14
|
+
super.tearDown()
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
func testEcho() {
|
|
18
|
+
// This is an example of a functional test case for a plugin.
|
|
19
|
+
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
|
20
|
+
|
|
21
|
+
let value = "Hello, World!"
|
|
22
|
+
let plugin = MyPlugin()
|
|
23
|
+
|
|
24
|
+
let call = CAPPluginCall(callbackId: "test", options: [
|
|
25
|
+
"value": value
|
|
26
|
+
], success: { (result, _) in
|
|
27
|
+
let resultValue = result!.data["value"] as? String
|
|
28
|
+
XCTAssertEqual(value, resultValue)
|
|
29
|
+
}, error: { (_) in
|
|
30
|
+
XCTFail("Error shouldn't have been called")
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
plugin.echo(call!)
|
|
34
|
+
}
|
|
35
|
+
}
|
package/ios/Podfile
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
platform :ios, '13.0'
|
|
2
|
-
|
|
3
|
-
def capacitor_pods
|
|
4
|
-
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
|
|
5
|
-
use_frameworks!
|
|
6
|
-
pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
|
|
7
|
-
pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
target 'Plugin' do
|
|
11
|
-
capacitor_pods
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
target 'PluginTests' do
|
|
15
|
-
capacitor_pods
|
|
16
|
-
end
|
|
1
|
+
platform :ios, '13.0'
|
|
2
|
+
|
|
3
|
+
def capacitor_pods
|
|
4
|
+
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
|
|
5
|
+
use_frameworks!
|
|
6
|
+
pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
|
|
7
|
+
pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
target 'Plugin' do
|
|
11
|
+
capacitor_pods
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
target 'PluginTests' do
|
|
15
|
+
capacitor_pods
|
|
16
|
+
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idpass/smartscanner-capacitor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Capacitor plugin for the SmartScanner Core library to scan MRZ, NFC and barcodes",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -17,22 +17,21 @@
|
|
|
17
17
|
"author": "NewLogic",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@capacitor/android": "^
|
|
21
|
-
"@capacitor/
|
|
22
|
-
"@capacitor/
|
|
23
|
-
"@capacitor/ios": "^4.0.1"
|
|
20
|
+
"@capacitor/android": "^6.0.0",
|
|
21
|
+
"@capacitor/core": "^6.0.0",
|
|
22
|
+
"@capacitor/ios": "^6.0.0"
|
|
24
23
|
},
|
|
25
24
|
"devDependencies": {
|
|
26
|
-
"@
|
|
25
|
+
"@capacitor/cli": "^6.1.2",
|
|
26
|
+
"@ionic/eslint-config": "^0.4.0",
|
|
27
27
|
"@ionic/prettier-config": "^1.0.1",
|
|
28
28
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
29
29
|
"@rollup/plugin-node-resolve": "^8.1.0",
|
|
30
|
-
"eslint": "^
|
|
30
|
+
"eslint": "^8.57.0",
|
|
31
31
|
"prettier": "~2.2.0",
|
|
32
|
-
"rimraf": "^3.0.2",
|
|
33
32
|
"rollup": "^2.32.0",
|
|
34
33
|
"swiftlint": "^1.0.1",
|
|
35
|
-
"typescript": "
|
|
34
|
+
"typescript": "^5.8.2"
|
|
36
35
|
},
|
|
37
36
|
"files": [
|
|
38
37
|
"dist/",
|
package/android/.DS_Store
DELETED
|
Binary file
|
package/android/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/build
|
package/ios/.npmignore
DELETED