Skip to content

Commit 7fd000a

Browse files
authored
Release 1.0.0-beta05 (#222)
- Added Analytics to Transfer Method Module - Enhancements
1 parent 50ed93a commit 7fd000a

File tree

208 files changed

+9347
-7800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+9347
-7800
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ xcuserdata/
2121
*.moved-aside
2222
*.xccheckout
2323
*.xcscmblueprint
24+
**/.DS_Store
2425

2526
## Obj-C/Swift specific
2627
*.hmap
@@ -62,6 +63,3 @@ Carthage/
6263
# Fastlane
6364
fastlane/README.md
6465
fastlane/report.xml
65-
66-
# Gem
67-
Gemfile.lock

.jazzy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
copyright: Copyright (c) 2018-present, Hyperwallet Systems Inc. All rights reserved.

.swiftlint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ excluded:
33
disabled_rules: # rule identifiers to exclude from running
44
- type_body_length
55
- file_length
6+
- closure_body_length
7+
- implicit_return
68
type_name:
79
max_length: # warning and error
810
warning: 60
@@ -13,7 +15,7 @@ identifier_name:
1315
error: 100
1416
opt_in_rules: # some rules are only opt-in
1517
- first_where
16-
- unused_private_declaration
18+
- unused_declaration
1719
- empty_count
1820
- empty_string
1921
- empty_xctest_method

.travis.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
language: swift
2-
osx_image: xcode10.3
2+
osx_image: xcode11.2
33
os: osx
44
branches:
5-
only:
6-
- /.*/
5+
only:
6+
- "/.*/"
77
cache:
88
directories:
9-
- Carthage/Build/
9+
- Carthage/Build/
1010
env:
1111
global:
1212
- LC_CTYPE=en_US.UTF-8
1313
- LANG=en_US.UTF-8
1414
- PROJECT=HyperwalletUISDK.xcodeproj
1515
- IOS_FRAMEWORK_SCHEME="HyperwalletUISDK"
1616
- IOS_UI_TESTS_SCHEME="Demo"
17-
1817
matrix:
19-
- ios_version='12.1' ios_device='iPhone XR' scheme="$IOS_FRAMEWORK_SCHEME" platform='iOS Simulator' configuration="Debug" code_coverage="YES" only_active_arch="YES"
20-
- ios_version='12.1' ios_device='iPhone XR' scheme="$IOS_UI_TESTS_SCHEME" platform='iOS Simulator' configuration="XCUITest" code_coverage="NO" only_active_arch="NO"
21-
- ios_version='11.1' ios_device='iPhone 7' scheme="$IOS_UI_TESTS_SCHEME" platform='iOS Simulator' configuration="XCUITest" code_coverage="NO" only_active_arch="NO"
22-
18+
- ios_version='13.2.2' ios_device='iPhone 8' scheme="$IOS_FRAMEWORK_SCHEME" platform='iOS
19+
Simulator' configuration="Debug" code_coverage="YES" publish_docs="YES" only_active_arch="YES"
20+
- ios_version='13.2.2' ios_device='iPhone 8' scheme="$IOS_UI_TESTS_SCHEME" platform='iOS
21+
Simulator' configuration="XCUITest" code_coverage="NO" publish_docs="NO" only_active_arch="NO"
2322
before_install:
2423
# Boot the emulator by ID
2524
- |
@@ -39,6 +38,10 @@ before_install:
3938
- xcrun simctl list | grep "(Booted)"
4039
# Print the swiftlint version
4140
- swiftlint version
41+
# Installing Jazzy
42+
- gem install jazzy
43+
# Installing Sourcekitten
44+
- brew install sourcekitten
4245
script: |
4346
set -o pipefail
4447
set -e
@@ -51,11 +54,18 @@ script: |
5154
-scheme "$scheme" \
5255
-destination "$destination" \
5356
-configuration "$configuration" ONLY_ACTIVE_ARCH="$only_active_arch" ENABLE_TESTABILITY=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO \
54-
| xcpretty
57+
| xcpretty --color
5558
5659
# Lint - Add `--strict` to fail for warning and violation
5760
swiftlint lint --quiet --reporter json
5861
after_success:
59-
if [ "$code_coverage" == "YES" ]; then
62+
- |
63+
if [ "$code_coverage" == "YES" ]; then
6064
slather;
61-
fi
65+
fi
66+
if [ "$publish_docs" == "YES" ]; then
67+
make docs;
68+
if [ $TRAVIS_BRANCH = 'master' ] && [ $TRAVIS_PULL_REQUEST = 'false' ]; then
69+
sh ./Scripts/travisPublishDocs.sh;
70+
fi
71+
fi

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
[1.0.0-beta05](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta05)
5+
-------------------
6+
- Added Analytics to Transfer Method Module
7+
- Enhancements
8+
49
[1.0.0-beta04](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta04)
510
-------------------
611
- Added support for Create Transfer Funds

Cartfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta05"
1+
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta06"
2+
github "hyperwallet/hyperwallet-ios-insight" "1.0.0-beta02"

Cartfile.private

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
github "JanGorman/Hippolyte" "0.8.0"
2-
github "httpswift/swifter" "1.4.6"
2+
github "httpswift/swifter" "1.4.7"

Cartfile.resolved

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
github "JanGorman/Hippolyte" "0.8.0"
2-
github "httpswift/swifter" "1.4.6"
3-
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta05"
2+
github "httpswift/swifter" "1.4.7"
3+
github "hyperwallet/hyperwallet-ios-insight" "1.0.0-beta02"
4+
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta06"

Common/Sources/Extensions/HyperwalletFee.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import Foundation
2020
import HyperwalletSDK
2121

22-
/// The HyperwalletFee extenstion
22+
/// The HyperwalletFee extension
2323
public extension HyperwalletFee {
2424
private static let percent = "PERCENT"
2525
private static let flat = "FLAT"
@@ -41,14 +41,12 @@ public extension HyperwalletFee {
4141
}
4242

4343
/// Represents the fee types
44-
///
45-
/// - flat: the flat format
46-
/// - percent: the percent format
47-
/// - mixed: the flat and percent format
48-
// swiftlint:disable missing_docs
4944
enum FeeTypes {
45+
/// Flat fee
5046
case flat(_ flatFee: HyperwalletFee)
47+
/// Percent fee
5148
case percent(_ percentFee: HyperwalletFee)
49+
/// Mixed fee
5250
case mixed(_ percentFee: HyperwalletFee, _ flatFee: HyperwalletFee)
5351

5452
func feeDescription() -> String {

Common/Sources/Extensions/Notification.swift

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,23 @@ public extension Notification.Name {
4141
static var transferScheduled: Notification.Name {
4242
return .init(rawValue: "transferScheduled")
4343
}
44+
45+
/// Posted when authentication error occurs
46+
static var authenticationError: Notification.Name {
47+
return .init(rawValue: "authenticationError")
48+
}
4449
}
4550

4651
/// The Hyperwallet's `NotificationCenter` key to access the information.
47-
///
48-
/// - transferMethodAdded: A new transfer method has been added.
49-
/// - transferMethodDeactivated: A transfer method has been deactivated.
50-
/// - transferCreated: A transfer of funds has been created.
51-
/// - transferScheduled: A transfer has been scheduled.
5252
public enum UserInfo: String {
53+
/// A new transfer method has been added.
5354
case transferMethodAdded
55+
/// A transfer method has been deactivated.
5456
case transferMethodDeactivated
57+
/// A transfer of funds has been created.
5558
case transferCreated
59+
/// A transfer has been scheduled.
5660
case transferScheduled
61+
/// Authentication error has been occured
62+
case authenticationError
5763
}

0 commit comments

Comments
 (0)