-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #528 from Adamant-im/dev/trello.com/c/Qa3Dx6EI
[trello.com/c/Qa3Dx6EI] Release 3.8.0
- Loading branch information
Showing
162 changed files
with
9,161 additions
and
168 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// EdgeInsetLabel.swift | ||
// Adamant | ||
// | ||
// Created by Stanislav Jelezoglo on 16.07.2024. | ||
// Copyright © 2024 Adamant. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
final class EdgeInsetLabel: UILabel { | ||
var textInsets = UIEdgeInsets.zero { | ||
didSet { invalidateIntrinsicContentSize() } | ||
} | ||
|
||
override func textRect( | ||
forBounds bounds: CGRect, | ||
limitedToNumberOfLines numberOfLines: Int | ||
) -> CGRect { | ||
let textRect = super.textRect(forBounds: bounds, limitedToNumberOfLines: numberOfLines) | ||
let invertedInsets = UIEdgeInsets( | ||
top: -textInsets.top, | ||
left: -textInsets.left, | ||
bottom: -textInsets.bottom, | ||
right: -textInsets.right | ||
) | ||
return textRect.inset(by: invertedInsets) | ||
} | ||
|
||
override func drawText(in rect: CGRect) { | ||
super.drawText(in: rect.inset(by: textInsets)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
// | ||
|
||
import UIKit | ||
import CommonKit | ||
|
||
extension UITextField { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// DownloadPolicy.swift | ||
// Adamant | ||
// | ||
// Created by Stanislav Jelezoglo on 13.08.2024. | ||
// Copyright © 2024 Adamant. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import CommonKit | ||
|
||
extension Notification.Name { | ||
struct Storage { | ||
public static let storageClear = Notification.Name("adamant.storage.clear") | ||
public static let storageProprietiesUpdated = Notification.Name("adamant.storage.ProprietiesUpdated") | ||
} | ||
} | ||
|
||
enum DownloadPolicy: String { | ||
case everybody | ||
case nobody | ||
case contacts | ||
|
||
var title: String { | ||
switch self { | ||
case .everybody: | ||
return .localized("Storage.DownloadPolicy.Everybody.Title") | ||
case .nobody: | ||
return .localized("Storage.DownloadPolicy.Nobody.Title") | ||
case .contacts: | ||
return .localized("Storage.DownloadPolicy.Contacts.Title") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// IPFSNodeStatus.swift | ||
// Adamant | ||
// | ||
// Created by Stanislav Jelezoglo on 19.08.2024. | ||
// Copyright © 2024 Adamant. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct IPFSNodeStatus: Codable { | ||
let version: String | ||
} | ||
|
||
/* JSON | ||
{ | ||
"version":"0.0.1", | ||
"timestamp":1724085764840, | ||
"heliaStatus":"started", | ||
"peerId":"12D3KooWGMp6SaKon2UKwJsDEf3chLAGRzsjdAfDGN9zcwt6ydqJ", | ||
"multiAddresses":[ | ||
"/ip4/127.0.0.1/tcp/4001/p2p/12D3KooWGMp6SaKon2UKwJsDEf3chLAGRzsjdAfDGN9zcwt6ydqJ", | ||
"/ip4/95.216.45.88/tcp/4001/p2p/12D3KooWGMp6SaKon2UKwJsDEf3chLAGRzsjdAfDGN9zcwt6ydqJ" | ||
], | ||
"blockstoreSizeMb":5053.823321342468, | ||
"datastoreSizeMb":0.135406494140625, | ||
"availableSizeInMb":943942 | ||
} | ||
*/ |
Oops, something went wrong.