Skip to content

Commit b1602c7

Browse files
committed
Update framework to version 2.6.2
1 parent 151ad69 commit b1602c7

File tree

106 files changed

+272032
-1193
lines changed

Some content is hidden

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

106 files changed

+272032
-1193
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Version 2.6.2
2+
2025-25-03
3+
+ Fixed crash when accessing `enrolled_at` property of account model after account recovery
4+
+ Fixed issue where enrollment process retry was not possible in some cases after the first try enrollment failed
5+
16
# Version 1.7.1
27
2025-25-03
38
+ Fixed crash when accessing `enrolled_at` property of account model after account recovery

CarthageJson/FuturaeKit.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"3.6.3": "https://github.com/Futurae-Technologies/ios-sdk/releases/download/v3.6.3/FuturaeKit-v3.6.3-framework.zip",
6060
"2.6.1": "https://github.com/Futurae-Technologies/ios-sdk/releases/download/v2.6.1/FuturaeKit-v2.6.1-framework.zip",
6161
"3.6.4": "https://github.com/Futurae-Technologies/ios-sdk/releases/download/v3.6.4/FuturaeKit-v3.6.4-framework.zip",
62-
"1.7.1": "https://github.com/Futurae-Technologies/ios-sdk/releases/download/v1.7.1/FuturaeKit-v1.7.1-framework.zip"
62+
"1.7.1": "https://github.com/Futurae-Technologies/ios-sdk/releases/download/v1.7.1/FuturaeKit-v1.7.1-framework.zip",
63+
"2.6.2": "https://github.com/Futurae-Technologies/ios-sdk/releases/download/v2.6.2/FuturaeKit-v2.6.2-framework.zip"
6364
}

FuturaeDemo.xcodeproj/project.pbxproj

Lines changed: 834 additions & 128 deletions
Large diffs are not rendered by default.

FuturaeDemo.xcodeproj/xcshareddata/xcschemes/FuturaeDemo.xcscheme

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1310"
3+
LastUpgradeVersion = "1250"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -23,15 +23,15 @@
2323
</BuildActionEntries>
2424
</BuildAction>
2525
<TestAction
26-
buildConfiguration = "TestDebug"
26+
buildConfiguration = "DevelopmentDebug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
3232
</TestAction>
3333
<LaunchAction
34-
buildConfiguration = "Debug"
34+
buildConfiguration = "DevelopmentDebug"
3535
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
3636
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
3737
launchStyle = "0"
@@ -52,17 +52,17 @@
5252
</BuildableProductRunnable>
5353
</LaunchAction>
5454
<ProfileAction
55-
buildConfiguration = "TestRelease"
55+
buildConfiguration = "ProductionRelease"
5656
shouldUseLaunchSchemeArgsEnv = "YES"
5757
savedToolIdentifier = ""
5858
useCustomWorkingDirectory = "NO"
5959
debugDocumentVersioning = "YES">
6060
</ProfileAction>
6161
<AnalyzeAction
62-
buildConfiguration = "TestRelease">
62+
buildConfiguration = "ProductionRelease">
6363
</AnalyzeAction>
6464
<ArchiveAction
65-
buildConfiguration = "ProductionRelease"
65+
buildConfiguration = "TestRelease"
6666
revealArchiveInOrganizer = "YES">
6767
</ArchiveAction>
6868
</Scheme>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// AdaptiveTableViewCell.swift
3+
// FuturaeDemo
4+
//
5+
// Created by Armend Hasani on 26.1.23.
6+
// Copyright © 2023 Futurae. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
class AdaptiveTableViewCell: UITableViewCell {
12+
@IBOutlet weak var titleLabel: UILabel!
13+
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
//
2+
// AdaptiveViewController.swift
3+
// FuturaeDemo
4+
//
5+
// Created by Armend Hasani on 26.1.23.
6+
// Copyright © 2023 Futurae. All rights reserved.
7+
//
8+
9+
import UIKit
10+
import FuturaeKit
11+
12+
class AdaptiveViewController: UIViewController {
13+
@IBOutlet weak var closeButton: UIButton!
14+
@IBOutlet weak var textView: UITextView!
15+
@IBOutlet weak var tableView: UITableView!
16+
17+
var collections: [[String: Any]] = []
18+
var pendingCollections: [[String: Any]] = []
19+
20+
override func viewDidLoad() {
21+
super.viewDidLoad()
22+
23+
collections = AdaptiveDebugStorage.shared().savedCollections().sorted(by: {
24+
if let timestamp1 = $0["timestamp"] as? Double, let timestamp2 = $1["timestamp"] as? Double {
25+
return timestamp1 > timestamp2
26+
}
27+
28+
return true
29+
})
30+
pendingCollections = FTRClient.shared()?.pendingAdaptiveCollections() ?? []
31+
tableView.reloadData()
32+
}
33+
34+
@IBAction func closeTextView(_ sender: Any) {
35+
textView.isHidden = true
36+
closeButton.isHidden = true
37+
}
38+
39+
}
40+
41+
extension AdaptiveViewController: UITableViewDataSource {
42+
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
43+
collections.count
44+
}
45+
46+
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
47+
let cell = tableView.dequeueReusableCell(withIdentifier: "AdaptiveCell") as! AdaptiveTableViewCell
48+
if let timestamp = collections[indexPath.row]["timestamp"] as? Double {
49+
let date = Date(timeIntervalSince1970: timestamp).description
50+
var status = "UPLOADED"
51+
if let _ = (pendingCollections.first { $0["timestamp"] as? Double == timestamp }) {
52+
status = "PENDING"
53+
}
54+
55+
cell.titleLabel.text = "\(date) : \(status) "
56+
}
57+
58+
return cell
59+
}
60+
}
61+
62+
extension AdaptiveViewController: UITableViewDelegate {
63+
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
64+
let collection = collections[indexPath.row]
65+
if let data = try? JSONSerialization.data(withJSONObject: collection, options: .prettyPrinted) {
66+
textView.text = String(data: data, encoding: .utf8)
67+
textView.isHidden = false
68+
closeButton.isHidden = false
69+
}
70+
}
71+
}

0 commit comments

Comments
 (0)