Open
This file contains hidden or 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
| => ERROR [9/9] RUN brownie compile 29.1s | |
| ------ | |
| > [9/9] RUN brownie compile: | |
| #13 1.187 Brownie v1.16.4 - Python development framework for Ethereum | |
| #13 1.187 | |
| 13.5kiB [00:00, 632kiB/s] | |
| #13 1.458 Downloading from https://solc-bin.ethereum.org/linux-amd64/solc-linux-amd64-v0.8.7+commit.e28d00a7 | |
| 100%|██████████| 12.1M/12.1M [00:21<00:00, 558kiB/s] | |
| #13 23.33 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory | |
| #13 23.41 Downloading from https://solc-bin.ethereum.org/linux-amd64/solc-linux-amd64-v0.8.9+commit.e5eed63a |
This file contains hidden or 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
| .xHeader-item--full { | |
| width: 2; | |
| width: auto !important; | |
| margin: 0 auto !important; | |
| flex: none; | |
| } | |
| xbody,.Box { | |
| background-color: #e7e7e7; | |
| } |
This file contains hidden or 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
| observers.append( | |
| NotificationCenter.default.addObserver( | |
| forName: AVAudioSession.interruptionNotification, | |
| object: nil, | |
| queue: nil | |
| ) | |
| { [weak weakSelf = self] (notification) in | |
| weakSelf?.onInterruption(notification) | |
| } | |
| ) |
This file contains hidden or 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
| observers.append(NotificationCenter.default.addObserver(forName: AVAudioSession.interruptionNotification, object: nil, queue: nil) { [weak weakSelf = self] (notification) in | |
| weakSelf?.onInterruption(notification) | |
| }) |
This file contains hidden or 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
| extension User: FromJson { | |
| static func from(value: JsonValue) -> User? { | |
| return value.ifObject { json in | |
| User( | |
| id: try json .! "id", | |
| name: try json .! "name", | |
| email: json .? "email", | |
| country: json .? "country", | |
| subscription: try json .! "subscription", | |
| favouriteSongs: (json ..? "favouriteSongs") ?? [] |
This file contains hidden or 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
| struct User { | |
| let id: Int | |
| let name: String | |
| let email: String? | |
| let country: Country? | |
| let subscription: Subscription | |
| let favouriteSongs: [Song] | |
| } | |
| enum Subscription: String { |
This file contains hidden or 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
| @discardableResult | |
| func attemptDownload(forItem item: Item) -> Promise<URL> { | |
| if !canSubmitDownload(forItem: item) { | |
| return Promise.reject(DownloadError.duplicatedDownload) | |
| } | |
| else if !SettingsManager.shared.canDownloadOrStream() { | |
| let error = DownloadError.canNotUseInternet | |
| self.registerFailedDownload(item, withError: error) | |
| return Promise.reject(error) | |
| } |
This file contains hidden or 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
| @discardableResult | |
| func downloadSpecificActivity(activityInfo: SpecificActivityFirebase, completion: @escaping ((URL?, Error?) -> Void), progress: ((Double?) -> Void)? = nil) -> ContentDownload? { | |
| if SettingsManager.shared.wifiOnlyEnabled && SettingsManager.shared.reachabilityManager?.isReachableOnWWAN ?? false { | |
| completion(nil, ContentError.notAllowedOnWWanError) | |
| } else if SettingsManager.shared.reachabilityManager != nil && !SettingsManager.shared.reachabilityManager!.isReachable { | |
| completion(nil, ContentError.notConnected) | |
| } else { | |
| let downloadStartDate = Date.now() | |
| if let tempUrl = temporaryDownloadUrl(forSpecificActivity: activityInfo) { |
This file contains hidden or 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
| let slides = [ | |
| Slide( | |
| title: "Bobby Mcferrin", | |
| description: "Jazz at its best", | |
| image: UIImage(name: "BobbyMcferrin")! | |
| ), | |
| Slide( | |
| title: "Kurt Vile", | |
| description: "A prolific creative", | |
| image: UIImage(name: "KurtVile")! |