Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Public release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneIOs committed Dec 6, 2021
0 parents commit 9f4da60
Show file tree
Hide file tree
Showing 562 changed files with 86,573 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# For a detailed guide to building and testing on iOS, read the docs:
# https://circleci.com/docs/2.0/testing-ios/

version: 2.1

jobs:
build-and-test-sdk-xcode13:
macos:
xcode: "13.0.0"
steps:
- checkout
- run:
name: Run Tests iOS 13-14
command: >
cd Tests/VGSCheckoutSDKTests/Resources/MockedData &&
plutil -insert vaultID -string ${COLLECT_UNIT_TESTS_VAULT_ID} VGSCheckoutTestConfig.plist && cd .. && cd .. && cd .. && cd .. && ls && xcodebuild test -project VGSCheckoutSDK.xcodeproj -scheme VGSCheckoutSDKTests -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.0' -testPlan VGSCheckoutSDKTests
build-and-test-sdk:
macos:
xcode: "12.5.1"
steps:
- checkout
- run:
name: Run Tests iOS 13-14
command: >
cd Tests/VGSCheckoutSDKTests/Resources/MockedData &&
plutil -insert vaultID -string ${COLLECT_UNIT_TESTS_VAULT_ID} VGSCheckoutTestConfig.plist && cd .. && cd .. && cd .. && cd .. && ls && xcodebuild test -project VGSCheckoutSDK.xcodeproj -scheme VGSCheckoutSDKTests -destination 'platform=iOS Simulator,name=iPhone 12,OS=14.5' -testPlan VGSCheckoutSDKTests
build-and-ui-test-demo-app-ios-15:
macos:
xcode: "13.0.0"
steps:
- checkout
- run:
name: Run UI Tests
command: >
cd VGSCheckoutDemoApp/VGSCheckoutDemoApp/Models/MockedData &&
plutil -insert vaultID -string ${COLLECT_UNIT_TESTS_VAULT_ID} UITestsMockedData.plist && cd .. && cd .. && cd .. && ls &&
pod install &&
xcrun instruments -w "iPhone 13 Pro Max (15.0) [" || true &&
xcodebuild test -workspace VGSCheckoutDemoApp.xcworkspace
-scheme VGSCheckoutDemoAppUITests
-sdk iphonesimulator
-destination 'platform=iOS Simulator,name=iPhone 13 Pro Max,OS=15.0'
build-and-ui-test-demo-app-ios-13-14:
macos:
xcode: "12.5.1"
steps:
- checkout
- run:
name: Run UI Tests
command: >
cd VGSCheckoutDemoApp/VGSCheckoutDemoApp/Models/MockedData &&
plutil -insert vaultID -string ${COLLECT_UNIT_TESTS_VAULT_ID} UITestsMockedData.plist && cd .. && cd .. && cd .. && ls &&
pod install &&
xcrun instruments -w "iPhone 12 (14.2) [" || true &&
xcodebuild test -workspace VGSCheckoutDemoApp.xcworkspace
-scheme VGSCheckoutDemoAppUITests
-sdk iphonesimulator
-destination 'platform=iOS Simulator,name=iPhone 12,OS=14.5'
workflows:
version: 2
build-and-test:
jobs:
- build-and-test-sdk-xcode13
- build-and-test-sdk
- build-and-ui-test-demo-app-ios-13-14
- build-and-ui-test-demo-app-ios-15
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE]"
labels: ''
assignees: EugeneIOs

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. It's not comfortable to use [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

**Possible solution**
If you have the solution share it here.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Issue report
about: Create a report to help us improve
title: "[ISSUE]"
labels: ''
assignees: EugeneIOs

---

**Describe the bug**
A clear and concise description of what the issue is.

**To Reproduce**
Steps to reproduce the behavior:
1. Create textfield with Configuration '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- SDK Version [e.g. 1.4.1]
- iOS Version: [e.g. iOS 13.1+]
- Xcode Version: [e.g. Xcode 11.4.1]
- Device: [e.g. iPhone 6]
- Dependency manager and it's version:
- [ ] Cocoapods: [e.g. 1.9.1]

**Additional context**
Add any other context about the problem here.

**Possible Solution**
If you have the solution how to fix the issue.
87 changes: 87 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@


# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/
**/xcuserdata
**.xcworkspace


## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
VGSCheckoutDemoApp/Pods
VGSCheckoutDemoApp/Podfile.lock
*.xcworkspacedata
*.xcconfig


# Jazzy docs
build

85 changes: 85 additions & 0 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
####################
# Comments
# 1. pods should be installed/updated
# 2. jazzy command should be running form framework root dir
####################
#names
module: VGSCheckoutSDK
title: VGSCheckoutSDK
author: Very Good Security
author_url: https://verygoodsecurity.com
github_url: https://github.com/verygoodsecurity/vgs-checkout-ios
github_file_prefix: https://github.com/verygoodsecurity/vgs-checkout-ios/tree/master
readme: README.md
#output folder
output: docs
#path to project
framework_root: ../
sdk: iphonesimulator
#settings
clean: true
objc: false
skip_undocumented: true
hide_documentation_coverage: true
theme: fullwidth
exclude:

custom_categories:
- name: VGSCheckout
children:
- VGSCheckout
- VGSCheckoutDelegate
- name: Configuration
children:
- VGSCheckoutConfigurationProtocol
- VGSCheckoutCustomConfiguration
- VGSCheckoutMultiplexingConfiguration
- VGSCheckoutFieldVisibility
- VGSCheckoutBillingAddressVisibility
- name: Card Details Configuration
children:
- VGSCheckoutCardOptions
- VGSCheckoutCardHolderOptions
- VGSCheckoutCardNumberOptions
- VGSCheckoutExpirationDateOptions
- VGSCheckoutCardExpDateFormat
- VGSCheckoutExpDateSeparateSerializer
- VGSCheckoutCVCOptions
- name: Billing Address Details Configuration
children:
- VGSCheckoutBillingAddressOptions
- VGSCheckoutBillingAddressCountryOptions
- VGSCheckoutBillingAddressLine1Options
- VGSCheckoutBillingAddressLine2Options
- VGSCheckoutBillingAddressCityOptions
- VGSCheckoutBillingAddressPostalCodeOptions
- name: UITheme
children:
- VGSCheckoutDefaultTheme
- VGSCheckoutThemeProtocol
- VGSCheckoutTextFieldThemeProtocol
- VGSCheckoutSubmitButtonThemeProtocol
- VGSCheckoutViewThemeProtocol
- name: Form Validation Behaviour
children:
- VGSCheckoutFormValidationBehaviour
- name: APIConfiguration
children:
- VGSCheckoutRequestOptions
- VGSCheckoutRouteConfiguration
- VGSCheckoutHTTPMethod
- VGSCheckoutHostnamePolicy
- VGSCheckoutDataMergePolicy
- VGSCheckoutRequestResult
- name: PaymentCards
children:
- VGSCheckoutPaymentCards
- VGSCheckoutPaymentCardModel
- VGSCheckoutUnknownPaymentCardModel
- VGSCheckoutCustomPaymentCardModel
- VGSCheckoutCheckSumAlgorithmType
- name: Debugging
children:
- VGSCheckoutLogger
- VGSCheckoutLoggingConfiguration
- VGSCheckoutLogLevel
23 changes: 23 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
disabled_rules: # rule identifiers to exclude from running
- trailing_whitespace
- shorthand_operator
- unused_setter_value
- cyclomatic_complexity
- function_body_length
- notification_center_detachment
identifier_name:
min_length: 2
max_length:
warning: 90
error: 1000
excluded:
- id
line_length: 500
type_body_length: 400
reporter: "xcode"
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- Carthage
- Package.swift
- demoapp/Pods
- demoapp/Carthage
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @dmytro.khl @EugeneIOs @flor-master
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Very Good Security, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
37 changes: 37 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "VGSCheckoutSDK",
defaultLocalization: "en",
platforms: [
.iOS(.v11),
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "VGSCheckoutSDK",
targets: ["VGSCheckoutSDK"])
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "VGSCheckoutSDK",
exclude: [
"VGSCheckoutSDK.h",
"Info.plist"
], resources: [.process("Resources")]),
.testTarget(
name: "VGSCheckoutSDKTests",
dependencies: ["VGSCheckoutSDK"],
exclude: [
"Info.plist",
"VGSCheckoutSDKTests.xctestplan"
],
resources: [.process("Resources")]
),
])
Loading

0 comments on commit 9f4da60

Please sign in to comment.