Skip to content

Commit

Permalink
Merge pull request #41 from tink-sdk-build/release-changes-1.10.0
Browse files Browse the repository at this point in the history
Tink Core 1.10.0 release
  • Loading branch information
Eeyore741 committed Feb 2, 2023
2 parents b803cf6 + ec2a6e4 commit a5450a3
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let package = Package(
targets: [
.binaryTarget(
name: "TinkCore",
url: "https://github.com/tink-ab/tink-core-ios/releases/download/1.9.0/TinkCore.xcframework.zip", checksum: "8d9a833ed8f3476de2660dde9aff231df45fd3e26add1f578140cfc57df35c42"
url: "https://github.com/tink-ab/tink-core-ios/releases/download/1.10.0/TinkCore.xcframework.zip", checksum: "97397a400aee3d6849b35e3ec187af64379cd2b48e505e3124331d833ef10b66"
),
]
)
2 changes: 1 addition & 1 deletion Sources/TinkCore/PFM/Models/Category.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extension Category.Code {

public var type: Category.Kind { Category.Kind(code: self) }

public var isUncategorized: Bool { type == .expenses && value == "expenses:misc.uncategorized" }
public var isUncategorized: Bool { (type == .expenses && value == "expenses:misc.uncategorized") || value.starts(with: "income:uncategorized") }
public var isReimbursement: Bool { type == .income && value.starts(with: "income:refund") }
public var isSavings: Bool { type == .transfers && value == "transfers:savings.other" }
public var isExcluded: Bool { type == .transfers && value == "transfers:exclude.other" }
Expand Down
2 changes: 1 addition & 1 deletion Sources/TinkCore/Shared/Tink/Tink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
#endif

/// Current TinkCore version.
public let version = "1.9.0"
public let version = "1.10.0"

/// The `Tink` class encapsulates a connection to the Tink API.
///
Expand Down
42 changes: 42 additions & 0 deletions Tests/TinkCoreTests/PFM/Models/CodeTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import XCTest
@testable import TinkCore

final class CodeTests: XCTestCase {
func testInit() {
let sut0 = Category.Code("some")
let sut1 = Category.Code(stringLiteral: "some")
let sut2 = Category.Code(unicodeScalarLiteral: "some")

XCTAssertEqual(sut0.value, "some")
XCTAssertEqual(sut1.value, sut0.value)
XCTAssertEqual(sut2.value, sut1.value)
}

func testCharacteristicChecks() {
XCTAssertTrue(Category.Code("expenses").isExpense)
XCTAssertTrue(Category.Code("income").isIncome)
XCTAssertTrue(Category.Code("transfers").isTransfer)
XCTAssertTrue(Category.Code("expenses:misc.uncategorized").isUncategorized)
XCTAssertTrue(Category.Code("income:uncategorized").isUncategorized)
XCTAssertTrue(Category.Code("income:uncategorized.other").isUncategorized)
XCTAssertTrue(Category.Code("income:uncategorized.other").isOther)
XCTAssertTrue(Category.Code("income:refund.anything.random").isReimbursement)
XCTAssertTrue(Category.Code("transfers:savings.other").isSavings)
XCTAssertTrue(Category.Code("transfers:exclude.other").isExcluded)
XCTAssertTrue(Category.Code("anthing.random.other").isOther)
XCTAssertTrue(Category.Code("expenses:misc.other").isMiscOther)
XCTAssertTrue(Category.Code("expenses:anything.unknown.other").isExpensesOther)
XCTAssertTrue(Category.Code("root.category").isRootCategory)
XCTAssertTrue(Category.Code("not:root.category").isSubcategory)
}

func testType() {
let sut0 = Category.Code("income")
let sut1 = Category.Code("expenses")
let sut2 = Category.Code("transfer")

XCTAssertEqual(sut0.type, Category.Kind(code: Category.Code("income")))
XCTAssertEqual(sut1.type, Category.Kind(code: Category.Code("expenses")))
XCTAssertEqual(sut2.type, Category.Kind(code: Category.Code("transfer")))
}
}
2 changes: 1 addition & 1 deletion TinkCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Pod::Spec.new do |spec|
spec.description = <<-DESC
Core library for Tink SDKs.
DESC
spec.version = "1.9.0"
spec.version = "1.10.0"
spec.license = { :type => "MIT", :file => "LICENSE" }
spec.authors = { "Tink AB" => "mobile@tink.se" }
spec.homepage = "https://tink.com"
Expand Down
10 changes: 5 additions & 5 deletions TinkCore.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>TinkCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>TinkCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
Expand Down
Binary file modified TinkCore.xcframework/ios-arm64/TinkCore.framework/Info.plist
Binary file not shown.
Binary file modified TinkCore.xcframework/ios-arm64/TinkCore.framework/TinkCore
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</data>
<key>Info.plist</key>
<data>
j/KEgyY9KYe7jpczayP+6jM1x/U=
vHcDXcBr1iIN0IpKgOrb09hcIgM=
</data>
<key>Modules/TinkCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
<data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>21A559</string>
<string>21G320</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ targets:
PRODUCT_BUNDLE_IDENTIFIER: "com.tink.Core"
IPHONEOS_DEPLOYMENT_TARGET: 11.0
MACOSX_DEPLOYMENT_TARGET: 10.13
MARKETING_VERSION: 1.9.0
MARKETING_VERSION: 1.10.0
CURRENT_PROJECT_VERSION: 3
scheme:
testTargets:
Expand Down

0 comments on commit a5450a3

Please sign in to comment.