Михаил Капелько 10 月之前
父節點
當前提交
a0ad8da8df
共有 8 個文件被更改,包括 63 次插入2 次删除
  1. +5
    -0
      Modules/MicX/Mic/src/Mic.K.swift
  2. +1
    -0
      Modules/MicX/Mic/src/Mic.swift
  3. +27
    -0
      Modules/MicX/MicItem/src/MicItem.V.swift
  4. +1
    -0
      Modules/MicX/MicItem/src/MicItem.swift
  5. +17
    -0
      Modules/MicX/MicX.podspec
  6. +1
    -0
      app/Podfile
  7. +9
    -1
      app/Podfile.lock
  8. +2
    -1
      src/App.swift

+ 5
- 0
Modules/MicX/Mic/src/Mic.K.swift 查看文件

@@ -0,0 +1,5 @@
public extension Mic {
enum K {
public static let isActive = "Mic.isActive"
}
}

+ 1
- 0
Modules/MicX/Mic/src/Mic.swift 查看文件

@@ -0,0 +1 @@
public enum Mic { }

+ 27
- 0
Modules/MicX/MicItem/src/MicItem.V.swift 查看文件

@@ -0,0 +1,27 @@
import BusX
import SwiftUI

extension MicItem {
public struct V: View {
@StateObject var isActive = BusUI.Value(Mic.K.isActive, false)
public init() {
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
Bus.send(Mic.K.isActive, true)
}
DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
Bus.send(Mic.K.isActive, false)
}
}
public var body: some View {
Text("Mic activity")
.padding(8)
.border(
isActive.v ? Color.black : Color.gray,
width: isActive.v ? 3 : 1
)
.animation(.easeInOut(duration: 0.3))
}
}
}

+ 1
- 0
Modules/MicX/MicItem/src/MicItem.swift 查看文件

@@ -0,0 +1 @@
public enum MicItem { }

+ 17
- 0
Modules/MicX/MicX.podspec 查看文件

@@ -0,0 +1,17 @@
Pod::Spec.new do |s|

s.name = 'MicX'
s.version = '2024.01.15'
s.license = 'IVCS'
s.summary = 'Отображение звуковой активности участника'
s.homepage = 'IVCS'
s.author = 'IVCS'
s.source = { :git => 'https://fake.com/FAKE.git', :tag => s.version }
s.source_files = '**/**/*.{swift,yml}'
s.swift_version = '5.2'
s.ios.deployment_target = '14.0'
s.dependency 'AELog'
s.dependency 'BusX'
s.dependency 'MPAKX'

end

+ 1
- 0
app/Podfile 查看文件

@@ -6,6 +6,7 @@ pod 'AELog'

pod 'BusX', :path => '../Modules/BusX'
pod 'MeetupIdX', :path => '../Modules/MeetupIdX'
pod 'MicX', :path => '../Modules/MicX'
pod 'MPAKX', :path => '../Modules/MPAKX'

target 'pesochnicza' do


+ 9
- 1
app/Podfile.lock 查看文件

@@ -5,12 +5,17 @@ PODS:
- AELog
- BusX
- MPAKX
- MicX (2024.01.15):
- AELog
- BusX
- MPAKX
- MPAKX (2023.12.15)

DEPENDENCIES:
- AELog
- BusX (from `../Modules/BusX`)
- MeetupIdX (from `../Modules/MeetupIdX`)
- MicX (from `../Modules/MicX`)
- MPAKX (from `../Modules/MPAKX`)

SPEC REPOS:
@@ -22,6 +27,8 @@ EXTERNAL SOURCES:
:path: "../Modules/BusX"
MeetupIdX:
:path: "../Modules/MeetupIdX"
MicX:
:path: "../Modules/MicX"
MPAKX:
:path: "../Modules/MPAKX"

@@ -29,8 +36,9 @@ SPEC CHECKSUMS:
AELog: f732b70f7a9d1b4c6a3676304192b3908f362133
BusX: 1db5cf8652f7b206af468cc115cab3326efd1ced
MeetupIdX: 2fa9fb27717aa8878ff495c1abe960c96e524308
MicX: 6ffa81f29a477a66cde277e3ade3de8ce2d47b91
MPAKX: dc592434f55edf34709f6e4f37c9ec90dcd95185

PODFILE CHECKSUM: ff31073a9b868750f1cfabf6c1c740dbf32d4cb1
PODFILE CHECKSUM: 392946a4062b4b9d773ce17e4479d0040d242551

COCOAPODS: 1.13.0

+ 2
- 1
src/App.swift 查看文件

@@ -1,4 +1,5 @@
import MeetupIdX
import MicX
import SwiftUI
import UIKit

@@ -6,7 +7,7 @@ struct Content: View {
var body: some View {
MeetupId.V()
Divider()
MeetupId.V()
MicItem.V()
}
}



Loading…
取消
儲存