diff --git a/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 4bef8cd4..10bdc195 100644 --- a/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -69,7 +69,7 @@ "location" : "https://github.com/kukai-wallet/kukai-core-swift", "state" : { "branch" : "develop", - "revision" : "6a7d1f937117de5d88b9a936e74c64084a56be2b" + "revision" : "f3205473ddd59a6cfc7107c106e73dd9fe830247" } }, { diff --git a/Kukai Mobile/Localization/en.lproj/Localizable.strings b/Kukai Mobile/Localization/en.lproj/Localizable.strings index 53afb9cf..503b5fd8 100644 --- a/Kukai Mobile/Localization/en.lproj/Localizable.strings +++ b/Kukai Mobile/Localization/en.lproj/Localizable.strings @@ -52,3 +52,4 @@ "error-wc2-unrecoverable"="An unknown error occured with the connection. This operation can't continue. Please check the other application and try agian"; "error-wc2-cant-continue"="Unable to continue with this request due to system error"; "error-beacon-not-supported"="Beacon QRCodes are not supported, only Wallet Connect. Please make sure you are using the kukai option. If you are, please contact the dApp support team and ask them to update their beacon version"; +"error-collectible-media-generic"="Unable to play media at this time, please try again later"; diff --git a/Kukai Mobile/Modules/Collectibles/Cells/Collection/CollectiblesCollectionItemLargeWithTextCell.swift b/Kukai Mobile/Modules/Collectibles/Cells/Collection/CollectiblesCollectionItemLargeWithTextCell.swift index ee269fa7..878f85c8 100644 --- a/Kukai Mobile/Modules/Collectibles/Cells/Collection/CollectiblesCollectionItemLargeWithTextCell.swift +++ b/Kukai Mobile/Modules/Collectibles/Cells/Collection/CollectiblesCollectionItemLargeWithTextCell.swift @@ -6,10 +6,11 @@ // import UIKit +import SDWebImage class CollectiblesCollectionItemLargeWithTextCell: UICollectionViewCell, UITableViewCellImageDownloading { - @IBOutlet weak var iconView: UIImageView! + @IBOutlet weak var iconView: SDAnimatedImageView! @IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var quantityView: UIView! @IBOutlet weak var quantityLabel: UILabel! diff --git a/Kukai Mobile/Modules/Collectibles/Cells/Detail/CollectibleDetailAVCell.swift b/Kukai Mobile/Modules/Collectibles/Cells/Detail/CollectibleDetailAVCell.swift index ca3128a9..a434e683 100644 --- a/Kukai Mobile/Modules/Collectibles/Cells/Detail/CollectibleDetailAVCell.swift +++ b/Kukai Mobile/Modules/Collectibles/Cells/Detail/CollectibleDetailAVCell.swift @@ -98,6 +98,7 @@ class CollectibleDetailAVCell: UICollectionViewCell { case .failed: self?.mediaActivityView.stopAnimating() self?.mediaActivityView.isHidden = true + self?.parentViewController()?.windowError(withTitle: "error".localized(), description: "error-collectible-media-generic".localized()) Logger.app.error("AVPlayer - Error: \(String(describing: item.error)), Message: \(String(describing: item.error?.localizedDescription))") case .unknown: diff --git a/Kukai Mobile/Modules/Collectibles/Cells/Detail/CollectibleDetailImageCell.swift b/Kukai Mobile/Modules/Collectibles/Cells/Detail/CollectibleDetailImageCell.swift index 664053bb..92364ec4 100644 --- a/Kukai Mobile/Modules/Collectibles/Cells/Detail/CollectibleDetailImageCell.swift +++ b/Kukai Mobile/Modules/Collectibles/Cells/Detail/CollectibleDetailImageCell.swift @@ -7,11 +7,12 @@ import UIKit import KukaiCoreSwift +import SDWebImage class CollectibleDetailImageCell: UICollectionViewCell { @IBOutlet weak var activityIndicator: UIActivityIndicatorView! - @IBOutlet weak var imageView: UIImageView! + @IBOutlet weak var imageView: SDAnimatedImageView! @IBOutlet weak var aspectRatioConstraint: NSLayoutConstraint! public var setup = false diff --git a/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionCell.swift b/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionCell.swift index c306bdc4..ed1e82ef 100644 --- a/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionCell.swift +++ b/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionCell.swift @@ -46,7 +46,6 @@ class CollectiblesCollectionCell: UICollectionViewCell, UITableViewCellImageDown func setupImages(imageURLs: [URL?]) { // Images 1-4 display if urls present - emptyStyle(forImageView: collectionImage1) if imageURLs.count > 0 { MediaProxyService.load(url: imageURLs[0], to: collectionImage1, withCacheType: .temporary, fallback: UIImage.unknownGroup()) { [weak self] imageSize in diff --git a/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionCell.xib b/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionCell.xib index 449253b0..78f6a1ba 100644 --- a/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionCell.xib +++ b/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionCell.xib @@ -1,9 +1,9 @@ - + - + @@ -45,7 +45,7 @@ - + @@ -58,7 +58,7 @@ - + @@ -71,7 +71,7 @@ - + @@ -84,7 +84,7 @@ - + @@ -100,7 +100,7 @@ - + diff --git a/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionLargeCell.swift b/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionLargeCell.swift index bb44c66b..f31f6154 100644 --- a/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionLargeCell.swift +++ b/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionLargeCell.swift @@ -6,10 +6,11 @@ // import UIKit +import SDWebImage class CollectiblesCollectionLargeCell: UICollectionViewCell { - @IBOutlet weak var iconView: UIImageView! + @IBOutlet weak var iconView: SDAnimatedImageView! @IBOutlet weak var titleLabel: UILabel! @IBOutlet var quantityView: UIView! @IBOutlet var quantityLabel: UILabel! diff --git a/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionSinglePageCell.swift b/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionSinglePageCell.swift index e6f5e838..f37329be 100644 --- a/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionSinglePageCell.swift +++ b/Kukai Mobile/Modules/Collectibles/Cells/List/CollectiblesCollectionSinglePageCell.swift @@ -6,10 +6,11 @@ // import UIKit +import SDWebImage class CollectiblesCollectionSinglePageCell: UICollectionViewCell { - @IBOutlet weak var iconView: UIImageView! + @IBOutlet weak var iconView: SDAnimatedImageView! @IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var subTitleLabel: UILabel! @IBOutlet weak var buttonView: UIView! diff --git a/Kukai Mobile/Modules/Collectibles/Cells/List/SearchResultCell.swift b/Kukai Mobile/Modules/Collectibles/Cells/List/SearchResultCell.swift index e4547385..4a6df828 100644 --- a/Kukai Mobile/Modules/Collectibles/Cells/List/SearchResultCell.swift +++ b/Kukai Mobile/Modules/Collectibles/Cells/List/SearchResultCell.swift @@ -6,10 +6,11 @@ // import UIKit +import SDWebImage class SearchResultCell: UICollectionViewCell { - @IBOutlet weak var iconView: UIImageView! + @IBOutlet weak var iconView: SDAnimatedImageView! @IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var quantityView: UIView! @IBOutlet weak var quantityLabel: UILabel!