Skip to content

Commit 2309855

Browse files
committed
improvements to offline caching of ui
1 parent 977e13c commit 2309855

10 files changed

Lines changed: 590 additions & 82 deletions

File tree

native/app/Embedded/ui.zip

22 Bytes
Binary file not shown.

native/app/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ target 'eqMac' do
1313
pod 'Alamofire', '~> 5.1'
1414
pod 'AudioKit', '4.9.5'
1515
pod 'AMCoreAudio', '~> 3.3.1'
16-
pod 'Criollo', '~> 0.5’
16+
# pod 'Criollo', '~> 0.5’
1717
pod 'WebViewJavascriptBridge', '~> 6.0'
18-
# pod 'ReachabilitySwift'
18+
pod 'ReachabilitySwift'
1919
pod 'ReSwift'
2020
pod 'SwiftLint'
2121
pod 'Sparkle'

native/app/Podfile.lock

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ PODS:
77
- AudioKit/Core (4.9.5)
88
- AudioKit/UI (4.9.5):
99
- AudioKit/Core
10-
- CocoaAsyncSocket (7.6.4)
11-
- Criollo (0.5.5):
12-
- CocoaAsyncSocket (~> 7.6)
1310
- EmitterKit (5.2.2)
1411
- KeychainSwift (13.0.0)
12+
- ReachabilitySwift (5.0.0)
1513
- ReSwift (5.0.0)
1614
- Sentry (4.5.0):
1715
- Sentry/Core (= 4.5.0)
@@ -28,9 +26,9 @@ DEPENDENCIES:
2826
- Alamofire (~> 5.1)
2927
- AMCoreAudio (~> 3.3.1)
3028
- AudioKit (= 4.9.5)
31-
- Criollo (~> 0.5)
3229
- EmitterKit (~> 5.2)
3330
- KeychainSwift (~> 13.0)
31+
- ReachabilitySwift
3432
- ReSwift
3533
- Sentry (~> 4.1)
3634
- Sparkle
@@ -46,10 +44,9 @@ SPEC REPOS:
4644
- Alamofire
4745
- AMCoreAudio
4846
- AudioKit
49-
- CocoaAsyncSocket
50-
- Criollo
5147
- EmitterKit
5248
- KeychainSwift
49+
- ReachabilitySwift
5350
- ReSwift
5451
- Sentry
5552
- Sparkle
@@ -73,10 +70,9 @@ SPEC CHECKSUMS:
7370
Alamofire: 9d5c5f602928e512395b30950c5984eca840093c
7471
AMCoreAudio: 6bf97d548d02ebb75b56c1cbf6b1f87bcfdeb748
7572
AudioKit: ccf4e39c89ed6e5cbbce5fef58d819db39446437
76-
CocoaAsyncSocket: 694058e7c0ed05a9e217d1b3c7ded962f4180845
77-
Criollo: 617173837c296ca4248b0b058f36ce9b91e5c25b
7873
EmitterKit: e7a27b37118823d8ad413b8396f75e40d59f8cba
7974
KeychainSwift: 23d6c16cbc33f20fafa30c3d783241b4b87d998c
75+
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
8076
ReSwift: 628f1a9b3ee52e3b3ca2a644435472fd77afafe1
8177
Sentry: ab6c209f23700d1460691dbc90e19ed0a05d496b
8278
Sparkle: 55b1a87ba69d56913375a281546b7c82dec95bb0
@@ -87,6 +83,6 @@ SPEC CHECKSUMS:
8783
WebViewJavascriptBridge: 7f5bc4d3581e672e8f32bd0f812d54bc69bb8e29
8884
Zip: 8877eede3dda76bcac281225c20e71c25270774c
8985

90-
PODFILE CHECKSUM: 4c8e6a3107661defb97470cd7ccc392808ba9b23
86+
PODFILE CHECKSUM: 3850edcd366592498848f4adaf654cc1d56c6dc8
9187

9288
COCOAPODS: 1.9.1

native/app/Source/Application.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,5 +504,9 @@ class Application {
504504
selectedDeviceSampleRateChangedListener?.isListening = false
505505
selectedDeviceSampleRateChangedListener = nil
506506
}
507+
508+
static var version: String {
509+
return Bundle.main.infoDictionary!["CFBundleVersion"] as! String
510+
}
507511
}
508512

native/app/Source/Helpers/Networking.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,22 @@
77
//
88

99
import Foundation
10+
import Reachability
1011

1112
class Networking {
13+
static func isReachable (_ host: String, _ callback: @escaping (Bool) -> Void) {
14+
let ping = try! SwiftyPing(
15+
host: host,
16+
configuration: PingConfiguration(interval: 0.1, with: 5),
17+
queue: DispatchQueue.global()
18+
)
19+
ping.observer = { (response) in
20+
callback(response.error == nil)
21+
}
22+
ping.targetCount = 1
23+
ping.startPinging()
24+
}
25+
1226
static func tcpPortIsAvailable(_ port: UInt) -> Bool {
1327

1428
let socketFileDescriptor = socket(AF_INET, SOCK_STREAM, 0)

0 commit comments

Comments
 (0)