Skip to content

Commit

Permalink
Public release 1.9.6
Browse files Browse the repository at this point in the history
Public release 1.9.6
  • Loading branch information
EugeneIOs committed Feb 11, 2022
2 parents 837393c + 9c5e7c5 commit cab6a1c
Show file tree
Hide file tree
Showing 118 changed files with 131 additions and 373 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/verygoodsecurity/CardIOSDK-iOS.git",
"state": {
"branch": null,
"revision": "2a764795a837f259a9f50845fbd5fbba69b330bf",
"version": "5.5.5"
"revision": "9f21bec2d2f12d14ffbe8305c44ceff9b60e35af",
"version": "5.5.7"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let package = Package(
.package(
name: "CardIOSDK",
url: "https://github.com/verygoodsecurity/CardIOSDK-iOS.git",
.exact("5.5.5")
.exact("5.5.7")
)
],
targets: [
Expand Down
37 changes: 2 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ Table of contents
* [Before you start](#before-you-start)
* [Integration](#integration)
* [CocoaPods](#cocoapods)
* [Carthage](#carthage)
* [Swift Package Manager](#swift-package-manager-beta)
* [Swift Package Manager](#swift-package-manager)
* [Usage](#usage)
* [Create VGSCollect instance and VGS UI Elements](#create-vgscollect-instance-and-vgs-ui-elements)
* [Scan Credit Card Data](#scan-credit-card-data)
Expand Down Expand Up @@ -49,39 +48,7 @@ You should have your organization registered at <a href="https://dashboard.veryg
pod 'VGSCollectSDK'
```

### Carthage

VGCollectSDK is also available through [Carthage](https://github.com/Carthage/Carthage).
Add the following line to your `Cartfile`:

```ruby
github "verygoodsecurity/vgs-collect-ios"
```

then run:

```ruby
carthage update --platform iOS
```

If you don't need additional features like card scanning, you should add into your project only `VGSCollectSDK`. Other submodules can safely be deleted from Carthage Build folder.

Check VGSCollecSDK submodules and required frameworks:

| Build Frameworks | Core SDK | CardIO | Card Scan |
| ----- | -------------- |---------------- |--------------- |
| VGSCollectSDK ||||
| CardIO | || |
| VGSCardIOCollector | || |
| CardScan | | ||
| VGSCardScanCollector | | ||

Don't forget to import `VGSCardIOCollector` or `VGSCardScanCollector` in files where you use scan modules.

> NOTE: At this time **Carthage** does not provide a way to build only specific repository submodules. All submodules and their dependencies will be built by default. However you can include into your project only submodules that you need.

### Swift Package Manager (beta)
### Swift Package Manager

The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler.
Xcode with Swift tools version of 5.3 is required for VGSCollectSDK. Earlier Xcode versions don't support Swift packages with resources.
Expand Down
65 changes: 0 additions & 65 deletions Sources/VGSCollectSDK/Core/Collector/VGSCollect+extension.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Sources/VGSCollectSDK/Utils/Extensions/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ internal class Utils {

/// VGS Collect SDK Version.
/// Necessary since SPM doesn't track info plist correctly: https://forums.swift.org/t/add-info-plist-on-spm-bundle/40274/5
static let vgsCollectVersion: String = "1.9.5"
static let vgsCollectVersion: String = "1.9.6"
}

extension Dictionary {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,42 +120,42 @@ class ValidationRulesTest: VGSCollectBaseTestCase {
config.formatPattern = ""

textfield.configuration = config
textfield.textField.secureText = "1022"
textfield.textField.secureText = "1024"
XCTAssertTrue(textfield.state.isValid)
XCTAssertTrue(textfield.state.validationErrors.count == 0)

textfield.textField.secureText = "102022"
textfield.textField.secureText = "102024"
XCTAssertTrue(textfield.state.isValid == false)
XCTAssertTrue(textfield.state.validationErrors.count == 1)

config.validationRules = VGSValidationRuleSet(rules: [
VGSValidationRuleCardExpirationDate(dateFormat: .shortYear, error: error)
])
textfield.configuration = config
textfield.textField.secureText = "1022"
textfield.textField.secureText = "1024"
XCTAssertTrue(textfield.state.isValid)
XCTAssertTrue(textfield.state.validationErrors.count == 0)

textfield.textField.secureText = "102022"
textfield.textField.secureText = "102024"
XCTAssertTrue(textfield.state.isValid == false)
XCTAssertTrue(textfield.state.validationErrors.count == 1)
XCTAssertTrue(textfield.state.validationErrors.first == error)

/// Test month in valid range
textfield.textField.secureText = "1322"
textfield.textField.secureText = "1324"
XCTAssertTrue(textfield.state.isValid == false)
XCTAssertTrue(textfield.state.validationErrors.count == 1)
XCTAssertTrue(textfield.state.validationErrors.first == error)

textfield.textField.secureText = "0122"
textfield.textField.secureText = "0124"
XCTAssertTrue(textfield.state.isValid == true)
XCTAssertTrue(textfield.state.validationErrors.count == 0)

textfield.textField.secureText = "1222"
textfield.textField.secureText = "1224"
XCTAssertTrue(textfield.state.isValid == true)
XCTAssertTrue(textfield.state.validationErrors.count == 0)

textfield.textField.secureText = "0022"
textfield.textField.secureText = "0024"
XCTAssertTrue(textfield.state.isValid == false)
XCTAssertTrue(textfield.state.validationErrors.count == 1)
XCTAssertTrue(textfield.state.validationErrors.first == error)
Expand All @@ -164,12 +164,12 @@ class ValidationRulesTest: VGSCollectBaseTestCase {
VGSValidationRuleCardExpirationDate(dateFormat: .longYear, error: error)
])
textfield.configuration = config
textfield.textField.secureText = "1022"
textfield.textField.secureText = "1024"
XCTAssertTrue(textfield.state.isValid == false)
XCTAssertTrue(textfield.state.validationErrors.count == 1)
XCTAssertTrue(textfield.state.validationErrors.first == error)

textfield.textField.secureText = "102022"
textfield.textField.secureText = "102024"
XCTAssertTrue(textfield.state.isValid)
XCTAssertTrue(textfield.state.validationErrors.count == 0)
}
Expand Down
9 changes: 0 additions & 9 deletions Tests/FrameworkTests/VGSCollectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,6 @@ class VGSCollectTests: VGSCollectBaseTestCase {
XCTAssert(collector.customHeaders![headerKey] == headerValue)
}

func testJail() {
XCTAssertFalse(VGSCollect.isJailbroken())
}

func testCanOpen() {
let path = "."
XCTAssertTrue(VGSCollect.canOpen(path: path))
}

func testRegistrationSingleTextField() {
let config = VGSConfiguration(collector: collector, fieldName: "test")
let tf = VGSCardTextField()
Expand Down
4 changes: 2 additions & 2 deletions VGSCollectSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'VGSCollectSDK'
spec.version = '1.9.5'
spec.version = '1.9.6'
spec.summary = 'VGS Collect - is a product suite that allows customers to collect information securely without possession of it.'
spec.swift_version = '5.0'
spec.description = <<-DESC
Expand Down Expand Up @@ -43,6 +43,6 @@ Pod::Spec.new do |spec|
spec.subspec 'CardIO' do |cardIO|
cardIO.source_files = "Sources/VGSCardIOCollector", "Sources/VGSCardIOCollector/**/*.{swift}", "Sources/VGSCardIOCollector/**/*.{h, m}"
cardIO.dependency "VGSCollectSDK/Core"
cardIO.dependency "CardIOSDK", "5.5.6"
cardIO.dependency "CardIOSDK", "5.5.7"
end
end
8 changes: 2 additions & 6 deletions VGSCollectSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
FD05F94C2316CE5A000EAF52 /* VGSCollectSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = FD05F93F2316CE5A000EAF52 /* VGSCollectSDK.h */; settings = {ATTRIBUTES = (Public, ); }; };
FD1489FF232D4F8000FD7781 /* MaskedTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD1489FE232D4F8000FD7781 /* MaskedTextField.swift */; };
FD148A07232EC53600FD7781 /* State.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD148A06232EC53600FD7781 /* State.swift */; };
FD1B44612327A6C6009AA04A /* VGSCollect+extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD1B445F2327A6A4009AA04A /* VGSCollect+extension.swift */; settings = {COMPILER_FLAGS = "-w"; }; };
FD1B44662327D9B0009AA04A /* VGSTextField+state.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD1B44652327D9B0009AA04A /* VGSTextField+state.swift */; };
FD1BE48723462F1A006D8658 /* CardNumerTextFieldTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD24956F2330E834009024E6 /* CardNumerTextFieldTests.swift */; };
FD1BE48823462F1E006D8658 /* ExpDateTextFieldTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDE8907A2333A16A00FA170D /* ExpDateTextFieldTests.swift */; };
Expand Down Expand Up @@ -351,7 +350,6 @@
FD12B9AF2304619100B670DD /* VGSCollectSDK.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = VGSCollectSDK.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FD1489FE232D4F8000FD7781 /* MaskedTextField.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MaskedTextField.swift; sourceTree = "<group>"; };
FD148A06232EC53600FD7781 /* State.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = State.swift; sourceTree = "<group>"; };
FD1B445F2327A6A4009AA04A /* VGSCollect+extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "VGSCollect+extension.swift"; sourceTree = "<group>"; };
FD1B44652327D9B0009AA04A /* VGSTextField+state.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "VGSTextField+state.swift"; sourceTree = "<group>"; };
FD2495512330CB49009024E6 /* FrameworkTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FrameworkTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
FD2495552330CB49009024E6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1071,7 +1069,6 @@
children = (
FD05F93B2316CE5A000EAF52 /* VGSCollect.swift */,
FDE247CE246749C3008D75B0 /* VGSCollect+network.swift */,
FD1B445F2327A6A4009AA04A /* VGSCollect+extension.swift */,
323105622417DF07009C3360 /* VGSCollect+internal.swift */,
4479453D25F8C032006CB371 /* VGSCollect+fieldNameMapping.swift */,
);
Expand Down Expand Up @@ -1613,7 +1610,6 @@
44F8F51C25DBD1950052647A /* VGSCollectSatelliteUtils.swift in Sources */,
326FFB0424F90B940024A4F9 /* CrardScannerInteractionProtocol.swift in Sources */,
FD8B62472497CD580097C9AB /* VGSExpDateTextField.swift in Sources */,
FD1B44612327A6C6009AA04A /* VGSCollect+extension.swift in Sources */,
3262B2FD23F5A36E00D4A73D /* VGSImagePicker.swift in Sources */,
3262B2FB23F5A32400D4A73D /* VGSFileSource.swift in Sources */,
327CDD4D256FF8FB00ACB373 /* VGSFormAnanlyticsDetails.swift in Sources */,
Expand Down Expand Up @@ -2202,7 +2198,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.9.5;
MARKETING_VERSION = 1.9.6;
PRODUCT_BUNDLE_IDENTIFIER = com.vgs.framework;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -2238,7 +2234,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.9.5;
MARKETING_VERSION = 1.9.6;
PRODUCT_BUNDLE_IDENTIFIER = com.vgs.framework;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ class CardsDataCollectingViewController: UIViewController {
setupUI()
setupElementsConfiguration()

// check if device is jailbroken
if VGSCollect.isJailbroken() {
print("Device is Jailbroken")
}

// set custom headers
vgsCollect.customHeaders = [
"my custome header": "some custom data"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ class CustomPaymentCardsViewController: UIViewController {

setupUI()
setupElementsConfiguration()

// check if device is jailbroken
if VGSCollect.isJailbroken() {
print("Device is Jailbroken")
}


// set custom headers
vgsCollect.customHeaders = [
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/CardState.html
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-01-27)</p>
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-02-11)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SSNState.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-01-27)</p>
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-02-11)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/State.html
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-01-27)</p>
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-02-11)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/VGSCVCTextField.html
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-01-27)</p>
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-02-11)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/VGSCVCTextField/CVCIconLocation.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-01-27)</p>
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-02-11)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/VGSCardTextField.html
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-01-27)</p>
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-02-11)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/VGSCardTextField/CardIconLocation.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-01-27)</p>
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-02-11)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/VGSCollect.html
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ <h4>Parameters</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-01-27)</p>
<p>&copy; 2022 <a class="link" href="https://verygoodsecurity.com" target="_blank" rel="external">Very Good Security</a>. All rights reserved. (Last updated: 2022-02-11)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
Expand Down
Loading

0 comments on commit cab6a1c

Please sign in to comment.