Skip to content

Commit

Permalink
Merge pull request #50 from tink-sdk-build/release-changes-2.2.0-MON-…
Browse files Browse the repository at this point in the history
…1526

MON-1526: Tink Core 2.2.0 release
  • Loading branch information
belous committed Feb 23, 2024
2 parents efefc82 + 833856f commit d32b565
Show file tree
Hide file tree
Showing 39 changed files with 133 additions and 52 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/2.1.0/TinkCore.xcframework.zip", checksum: "b44c79ad86466339a11555e565994c0e88b300e50a1c86ad06f92c40980bcf95"
url: "https://github.com/tink-ab/tink-core-ios/releases/download/2.2.0/TinkCore.xcframework.zip", checksum: "4080bfcd6ee61e13696ef547d84a4132d363ae416c7dd81bbc2913fbb250464e"
),
]
)
1 change: 1 addition & 0 deletions Sources/TinkCore/AIS/Models/SelectOption.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation

/// A list of options where the user should select one.
public struct SelectOption: Equatable {
/// A URL the client can optionally use to show an icon to represent the option.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Foundation

@available(*, deprecated)
extension SuggestTransactionsResponse {
init(from restSuggestTransactionsResponse: RESTSuggestTransactionsResponse) {
self.categorizationImprovement = restSuggestTransactionsResponse.categorizationImprovement
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Foundation

@available(*, deprecated)
extension TransactionCluster {
init(from restTransactionCluster: RESTTransactionCluster) {
self.categorizationImprovement = restTransactionCluster.categorizationImprovement
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation

/// The response when fetching transactions to categorize.
@available(*, deprecated)
public struct SuggestTransactionsResponse {
/// The categorization improvement achived if cluster is categorized.
public let categorizationImprovement: Double
Expand Down
1 change: 1 addition & 0 deletions Sources/TinkCore/PFM/Models/TransactionCluster.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation

/// A cluster of transactions to be categorized.
@available(*, deprecated)
public struct TransactionCluster {
/// The categorization improvement achived if cluster is categorized.
public let categorizationImprovement: Double
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@available(*, deprecated)
struct RESTSuggestTransactionsResponse: Decodable {
let categorizationImprovement: Double
let categorizationLevel: Double
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@available(*, deprecated)
struct RESTTransactionCluster: Decodable {
let categorizationImprovement: Double
let description: String
Expand Down
4 changes: 2 additions & 2 deletions Sources/TinkCore/PFM/REST/Services/RESTBudgetService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class RESTBudgetService: BudgetService {
var tags = [String]()
var searchQuery = String()

filter.forEach { budgetFilter in
for budgetFilter in filter {
switch budgetFilter {
case .account(let accountID): accountIDs.append(accountID)
case .category(let categoryCode): categoryCodes.append(categoryCode)
Expand Down Expand Up @@ -73,7 +73,7 @@ final class RESTBudgetService: BudgetService {
var tags = [String]()
var searchQuery = String()

filter.forEach { budgetFilter in
for budgetFilter in filter {
switch budgetFilter {
case .account(let accountID): accountIDs.append(accountID)
case .category(let categoryCode): categoryCodes.append(categoryCode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ final class RESTTransactionService: TransactionService {
return client.performRequest(request)
}

@available(*, deprecated)
func suggestTransactions(numberOfClusters: Int?, evaluateEverything: Bool? = nil, completion: @escaping (Result<SuggestTransactionsResponse, Error>) -> Void) -> Cancellable? {
var parameters: [URLQueryItem] = []

Expand Down
1 change: 1 addition & 0 deletions Sources/TinkCore/PFM/Services/TransactionService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public protocol TransactionService {
completion: @escaping (Result<Transaction, Error>) -> Void
) -> Cancellable?

@available(*, deprecated)
func suggestTransactions(
numberOfClusters: Int?,
evaluateEverything: Bool?,
Expand Down
1 change: 1 addition & 0 deletions Sources/TinkCore/Shared/Model/Scope.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation

/// Access to Tink is divided into scopes which grant access to different API endpoints.
/// Each API customer has a set of scopes which control the maximum permitted data access.
/// To see the total set of scopes that you can use, go to app settings in the Tink Console.
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 = "2.1.0"
public let version = "2.2.0"

/// The `Tink` class encapsulates a connection to the Tink API.
///
Expand Down
1 change: 1 addition & 0 deletions Tests/TinkCoreTests/REST/SuggestTransactionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Foundation
@testable import TinkCore
import XCTest

@available(*, deprecated)
class SuggestTransactionsTests: XCTestCase {
func testSuggestTransactions() {
let restCurrencyDenominatedAmount = RESTCurrencyDenominatedAmount(
Expand Down
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 = "2.1.0"
spec.version = "2.2.0"
spec.license = { :type => "MIT", :file => "LICENSE" }
spec.authors = { "Tink AB" => "mobile@tink.se" }
spec.homepage = "https://github.com/tink-ab/tink-core-ios"
Expand Down
16 changes: 8 additions & 8 deletions TinkCore.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@
<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>macos-arm64_x86_64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>TinkCore.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -30,19 +27,22 @@
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>macos-arm64_x86_64</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>
<string>macos</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file modified TinkCore.xcframework/ios-arm64/TinkCore.framework/Info.plist
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -37572,8 +37572,10 @@
"usr": "s:8TinkCore27SuggestTransactionsResponseV",
"mangledName": "$s8TinkCore27SuggestTransactionsResponseV",
"moduleName": "TinkCore",
"deprecated": true,
"declAttributes": [
"AccessControl",
"Available",
"RawDocComment"
]
},
Expand Down Expand Up @@ -41600,8 +41602,10 @@
"usr": "s:8TinkCore18TransactionClusterV",
"mangledName": "$s8TinkCore18TransactionClusterV",
"moduleName": "TinkCore",
"deprecated": true,
"declAttributes": [
"AccessControl",
"Available",
"RawDocComment"
]
},
Expand Down Expand Up @@ -43946,7 +43950,11 @@
"moduleName": "TinkCore",
"genericSig": "<τ_0_0 where τ_0_0 : TinkCore.TransactionService>",
"sugared_genericSig": "<Self where Self : TinkCore.TransactionService>",
"deprecated": true,
"protocolReq": true,
"declAttributes": [
"Available"
],
"reqNewWitnessTableEntry": true,
"funcSelfKind": "NonMutating"
}
Expand Down Expand Up @@ -46755,7 +46763,7 @@
{
"filePath": "\/Users\/runner\/work\/tink-core-ios-private\/tink-core-ios-private\/Sources\/TinkCore\/PFM\/REST\/Services\/RESTBudgetService.swift",
"kind": "BooleanLiteral",
"offset": 8566,
"offset": 8558,
"length": 5,
"value": "false"
},
Expand Down Expand Up @@ -48771,14 +48779,14 @@
{
"filePath": "\/Users\/runner\/work\/tink-core-ios-private\/tink-core-ios-private\/Sources\/TinkCore\/Shared\/Model\/Scope.swift",
"kind": "StringLiteral",
"offset": 1347,
"offset": 1348,
"length": 11,
"value": "\"web_hooks\""
},
{
"filePath": "\/Users\/runner\/work\/tink-core-ios-private\/tink-core-ios-private\/Sources\/TinkCore\/Shared\/Model\/Scope.swift",
"kind": "StringLiteral",
"offset": 1347,
"offset": 1348,
"length": 11,
"value": "\"web_hooks\""
},
Expand All @@ -48794,7 +48802,7 @@
"kind": "StringLiteral",
"offset": 106,
"length": 7,
"value": "\"2.1.0\""
"value": "\"2.2.0\""
},
{
"filePath": "\/Users\/runner\/work\/tink-core-ios-private\/tink-core-ios-private\/Sources\/TinkCore\/Shared\/Tink\/Tink.swift",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,7 @@ public enum StatisticPeriod : Swift.Hashable {
public protocol StatisticService {
func statistics(description: Swift.String?, periods: [TinkCore.StatisticPeriod], types: [TinkCore.Statistic.Kind], resolution: TinkCore.Statistic.Resolution, padResultsUntilToday: Swift.Bool, completion: @escaping (Swift.Result<[TinkCore.Statistic], Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
}
@available(*, deprecated)
public struct SuggestTransactionsResponse {
public let categorizationImprovement: Swift.Double
public let categorizationLevel: Swift.Double
Expand Down Expand Up @@ -1286,6 +1287,7 @@ public enum CategoryType {
get
}
}
@available(*, deprecated)
public struct TransactionCluster {
public let categorizationImprovement: Swift.Double
public let description: Swift.String
Expand Down Expand Up @@ -1341,6 +1343,7 @@ public protocol TransactionService {
func transactionsSimilar(to transactionID: Swift.String, ifCategorizedAs categoryID: Swift.String, completion: @escaping (Swift.Result<[TinkCore.Transaction], Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
func transaction(id: TinkCore.Transaction.ID, completion: @escaping (Swift.Result<TinkCore.Transaction, Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
func update(transactionID: TinkCore.Transaction.ID, amount: TinkCore.CurrencyDenominatedAmount, categoryID: TinkCore.Category.ID, date: Foundation.Date, description: Swift.String, notes: Swift.String?, completion: @escaping (Swift.Result<TinkCore.Transaction, Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
@available(*, deprecated)
func suggestTransactions(numberOfClusters: Swift.Int?, evaluateEverything: Swift.Bool?, completion: @escaping (Swift.Result<TinkCore.SuggestTransactionsResponse, Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
}
public struct User {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,7 @@ public enum StatisticPeriod : Swift.Hashable {
public protocol StatisticService {
func statistics(description: Swift.String?, periods: [TinkCore.StatisticPeriod], types: [TinkCore.Statistic.Kind], resolution: TinkCore.Statistic.Resolution, padResultsUntilToday: Swift.Bool, completion: @escaping (Swift.Result<[TinkCore.Statistic], Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
}
@available(*, deprecated)
public struct SuggestTransactionsResponse {
public let categorizationImprovement: Swift.Double
public let categorizationLevel: Swift.Double
Expand Down Expand Up @@ -1286,6 +1287,7 @@ public enum CategoryType {
get
}
}
@available(*, deprecated)
public struct TransactionCluster {
public let categorizationImprovement: Swift.Double
public let description: Swift.String
Expand Down Expand Up @@ -1341,6 +1343,7 @@ public protocol TransactionService {
func transactionsSimilar(to transactionID: Swift.String, ifCategorizedAs categoryID: Swift.String, completion: @escaping (Swift.Result<[TinkCore.Transaction], Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
func transaction(id: TinkCore.Transaction.ID, completion: @escaping (Swift.Result<TinkCore.Transaction, Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
func update(transactionID: TinkCore.Transaction.ID, amount: TinkCore.CurrencyDenominatedAmount, categoryID: TinkCore.Category.ID, date: Foundation.Date, description: Swift.String, notes: Swift.String?, completion: @escaping (Swift.Result<TinkCore.Transaction, Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
@available(*, deprecated)
func suggestTransactions(numberOfClusters: Swift.Int?, evaluateEverything: Swift.Bool?, completion: @escaping (Swift.Result<TinkCore.SuggestTransactionsResponse, Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
}
public struct User {
Expand Down
Binary file modified TinkCore.xcframework/ios-arm64/TinkCore.framework/TinkCore
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -37572,8 +37572,10 @@
"usr": "s:8TinkCore27SuggestTransactionsResponseV",
"mangledName": "$s8TinkCore27SuggestTransactionsResponseV",
"moduleName": "TinkCore",
"deprecated": true,
"declAttributes": [
"AccessControl",
"Available",
"RawDocComment"
]
},
Expand Down Expand Up @@ -41600,8 +41602,10 @@
"usr": "s:8TinkCore18TransactionClusterV",
"mangledName": "$s8TinkCore18TransactionClusterV",
"moduleName": "TinkCore",
"deprecated": true,
"declAttributes": [
"AccessControl",
"Available",
"RawDocComment"
]
},
Expand Down Expand Up @@ -43946,7 +43950,11 @@
"moduleName": "TinkCore",
"genericSig": "<τ_0_0 where τ_0_0 : TinkCore.TransactionService>",
"sugared_genericSig": "<Self where Self : TinkCore.TransactionService>",
"deprecated": true,
"protocolReq": true,
"declAttributes": [
"Available"
],
"reqNewWitnessTableEntry": true,
"funcSelfKind": "NonMutating"
}
Expand Down Expand Up @@ -46755,7 +46763,7 @@
{
"filePath": "\/Users\/runner\/work\/tink-core-ios-private\/tink-core-ios-private\/Sources\/TinkCore\/PFM\/REST\/Services\/RESTBudgetService.swift",
"kind": "BooleanLiteral",
"offset": 8566,
"offset": 8558,
"length": 5,
"value": "false"
},
Expand Down Expand Up @@ -48771,14 +48779,14 @@
{
"filePath": "\/Users\/runner\/work\/tink-core-ios-private\/tink-core-ios-private\/Sources\/TinkCore\/Shared\/Model\/Scope.swift",
"kind": "StringLiteral",
"offset": 1347,
"offset": 1348,
"length": 11,
"value": "\"web_hooks\""
},
{
"filePath": "\/Users\/runner\/work\/tink-core-ios-private\/tink-core-ios-private\/Sources\/TinkCore\/Shared\/Model\/Scope.swift",
"kind": "StringLiteral",
"offset": 1347,
"offset": 1348,
"length": 11,
"value": "\"web_hooks\""
},
Expand All @@ -48794,7 +48802,7 @@
"kind": "StringLiteral",
"offset": 106,
"length": 7,
"value": "\"2.1.0\""
"value": "\"2.2.0\""
},
{
"filePath": "\/Users\/runner\/work\/tink-core-ios-private\/tink-core-ios-private\/Sources\/TinkCore\/Shared\/Tink\/Tink.swift",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,7 @@ public enum StatisticPeriod : Swift.Hashable {
public protocol StatisticService {
func statistics(description: Swift.String?, periods: [TinkCore.StatisticPeriod], types: [TinkCore.Statistic.Kind], resolution: TinkCore.Statistic.Resolution, padResultsUntilToday: Swift.Bool, completion: @escaping (Swift.Result<[TinkCore.Statistic], Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
}
@available(*, deprecated)
public struct SuggestTransactionsResponse {
public let categorizationImprovement: Swift.Double
public let categorizationLevel: Swift.Double
Expand Down Expand Up @@ -1286,6 +1287,7 @@ public enum CategoryType {
get
}
}
@available(*, deprecated)
public struct TransactionCluster {
public let categorizationImprovement: Swift.Double
public let description: Swift.String
Expand Down Expand Up @@ -1341,6 +1343,7 @@ public protocol TransactionService {
func transactionsSimilar(to transactionID: Swift.String, ifCategorizedAs categoryID: Swift.String, completion: @escaping (Swift.Result<[TinkCore.Transaction], Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
func transaction(id: TinkCore.Transaction.ID, completion: @escaping (Swift.Result<TinkCore.Transaction, Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
func update(transactionID: TinkCore.Transaction.ID, amount: TinkCore.CurrencyDenominatedAmount, categoryID: TinkCore.Category.ID, date: Foundation.Date, description: Swift.String, notes: Swift.String?, completion: @escaping (Swift.Result<TinkCore.Transaction, Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
@available(*, deprecated)
func suggestTransactions(numberOfClusters: Swift.Int?, evaluateEverything: Swift.Bool?, completion: @escaping (Swift.Result<TinkCore.SuggestTransactionsResponse, Swift.Error>) -> Swift.Void) -> TinkCore.Cancellable?
}
public struct User {
Expand Down

0 comments on commit d32b565

Please sign in to comment.