d
This commit is contained in:
@@ -6,7 +6,7 @@ model:
|
|||||||
|
|
||||||
service:
|
service:
|
||||||
actions:
|
actions:
|
||||||
shouldResetActivityDates: Bus.send(K.activityDates, v)
|
shouldResetActivityDates: Bus.send(K.activityDates, v);Bus.deliver(K.activityDate, v)
|
||||||
pipes:
|
pipes:
|
||||||
activeIds: [recent, K.activeIds]
|
activeIds: [recent, K.activeIds]
|
||||||
activityDates: [recent, K.activityDates]
|
activityDates: [recent, K.activityDates]
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate
|
|||||||
{
|
{
|
||||||
let meetupIS = MeetupId.Service(.init())
|
let meetupIS = MeetupId.Service(.init())
|
||||||
let micS = Mic.Service(.init())
|
let micS = Mic.Service(.init())
|
||||||
|
var subscriptions = [AnyCancellable]()
|
||||||
var window: UIWindow?
|
var window: UIWindow?
|
||||||
|
|
||||||
func application(
|
func application(
|
||||||
@@ -83,6 +84,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate
|
|||||||
window?.makeKeyAndVisible()
|
window?.makeKeyAndVisible()
|
||||||
|
|
||||||
/**/print("ИГР App.didFLWO")
|
/**/print("ИГР App.didFLWO")
|
||||||
|
printBus()
|
||||||
//testMic1()
|
//testMic1()
|
||||||
//testMic2()
|
//testMic2()
|
||||||
//testMic2_id("1")
|
//testMic2_id("1")
|
||||||
@@ -95,6 +97,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
func printBus() {
|
||||||
|
Bus.events
|
||||||
|
.sink { v in print("ИГР App.printB k/v: '\(v.0)'/'\(v.1)'") }
|
||||||
|
.store(in: &subscriptions)
|
||||||
|
}
|
||||||
|
|
||||||
func testMic1() {
|
func testMic1() {
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
||||||
Bus.send(Mic.K.isActive, true)
|
Bus.send(Mic.K.isActive, true)
|
||||||
@@ -117,7 +126,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var subscriptions = [AnyCancellable]()
|
|
||||||
func testMic2_id(_ id: String) {
|
func testMic2_id(_ id: String) {
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
|
||||||
Bus.send(Bus.keyId(Mic.K.activityDate, id), Date() + 2)
|
Bus.send(Bus.keyId(Mic.K.activityDate, id), Date() + 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user