parent
e3deab5dc8
commit
fb2058bec7
|
|
@ -112,3 +112,29 @@ screenshot/
|
||||||
.opencode/skills/writing-great-skills/GLOSSARY.md
|
.opencode/skills/writing-great-skills/GLOSSARY.md
|
||||||
.opencode/skills/writing-great-skills/SKILL.md
|
.opencode/skills/writing-great-skills/SKILL.md
|
||||||
.opencode/skills/writing-great-skills/agents/openai.yaml
|
.opencode/skills/writing-great-skills/agents/openai.yaml
|
||||||
|
.cursor/commands/opsx-apply.md
|
||||||
|
.cursor/commands/opsx-archive.md
|
||||||
|
.cursor/commands/opsx-explore.md
|
||||||
|
.cursor/commands/opsx-propose.md
|
||||||
|
.cursor/commands/opsx-sync.md
|
||||||
|
.cursor/commands/opsx-update.md
|
||||||
|
.cursor/skills/openspec-apply-change/SKILL.md
|
||||||
|
.cursor/skills/openspec-archive-change/SKILL.md
|
||||||
|
.cursor/skills/openspec-explore/SKILL.md
|
||||||
|
.cursor/skills/openspec-propose/SKILL.md
|
||||||
|
.cursor/skills/openspec-sync-specs/SKILL.md
|
||||||
|
.cursor/skills/openspec-update-change/SKILL.md
|
||||||
|
.opencode/commands/opsx-apply.md
|
||||||
|
.opencode/commands/opsx-archive.md
|
||||||
|
.opencode/commands/opsx-explore.md
|
||||||
|
.opencode/commands/opsx-propose.md
|
||||||
|
.opencode/commands/opsx-sync.md
|
||||||
|
.opencode/commands/opsx-update.md
|
||||||
|
.opencode/skills/openspec-apply-change/SKILL.md
|
||||||
|
.opencode/skills/openspec-archive-change/SKILL.md
|
||||||
|
.opencode/skills/openspec-explore/SKILL.md
|
||||||
|
.opencode/skills/openspec-propose/SKILL.md
|
||||||
|
.opencode/skills/openspec-sync-specs/SKILL.md
|
||||||
|
.opencode/skills/openspec-update-change/SKILL.md
|
||||||
|
openspec/config.yaml
|
||||||
|
openspec/CONVENTIONS.md
|
||||||
|
|
|
||||||
2
Podfile
2
Podfile
|
|
@ -25,7 +25,7 @@ target 'QuickLocation' do
|
||||||
|
|
||||||
|
|
||||||
#工具
|
#工具
|
||||||
#pod 'FLEX', :configurations => ['Debug', 'AdHoc']
|
pod 'FLEX', :git => 'https://github.com/FLEXTool/FLEX.git', :configurations => ['Debug']
|
||||||
pod 'HXPHPicker'
|
pod 'HXPHPicker'
|
||||||
pod 'SwiftKeychainWrapper'
|
pod 'SwiftKeychainWrapper'
|
||||||
pod 'SGQRCode', '~> 4.1.0' #扫描
|
pod 'SGQRCode', '~> 4.1.0' #扫描
|
||||||
|
|
|
||||||
10
Podfile.lock
10
Podfile.lock
|
|
@ -26,6 +26,7 @@ PODS:
|
||||||
- CocoaMQTT/Core (2.2.5):
|
- CocoaMQTT/Core (2.2.5):
|
||||||
- MqttCocoaAsyncSocket (~> 1.0.8)
|
- MqttCocoaAsyncSocket (~> 1.0.8)
|
||||||
- Differentiator (5.0.0)
|
- Differentiator (5.0.0)
|
||||||
|
- FLEX (5.22.10)
|
||||||
- GTCommonSDK (3.2.3.0):
|
- GTCommonSDK (3.2.3.0):
|
||||||
- ZXSDK
|
- ZXSDK
|
||||||
- GYSDK (3.1.3.0):
|
- GYSDK (3.1.3.0):
|
||||||
|
|
@ -199,6 +200,7 @@ DEPENDENCIES:
|
||||||
- BRPickerView
|
- BRPickerView
|
||||||
- CocoaLumberjack/Swift
|
- CocoaLumberjack/Swift
|
||||||
- CocoaMQTT
|
- CocoaMQTT
|
||||||
|
- FLEX (from `https://github.com/FLEXTool/FLEX.git`)
|
||||||
- GYSDK
|
- GYSDK
|
||||||
- HXPHPicker
|
- HXPHPicker
|
||||||
- IQKeyboardManagerSwift
|
- IQKeyboardManagerSwift
|
||||||
|
|
@ -297,10 +299,15 @@ SPEC REPOS:
|
||||||
- ZXSDK
|
- ZXSDK
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
|
FLEX:
|
||||||
|
:git: https://github.com/FLEXTool/FLEX.git
|
||||||
MBProgressHUD:
|
MBProgressHUD:
|
||||||
:git: https://github.com/jdg/MBProgressHUD.git
|
:git: https://github.com/jdg/MBProgressHUD.git
|
||||||
|
|
||||||
CHECKOUT OPTIONS:
|
CHECKOUT OPTIONS:
|
||||||
|
FLEX:
|
||||||
|
:commit: 63a6f588841e94e4c3adaa045ff16eb8163f0bb4
|
||||||
|
:git: https://github.com/FLEXTool/FLEX.git
|
||||||
MBProgressHUD:
|
MBProgressHUD:
|
||||||
:commit: 4a7c5f3e53cdea77c5dcb8578c2ee5acacdf6781
|
:commit: 4a7c5f3e53cdea77c5dcb8578c2ee5acacdf6781
|
||||||
:git: https://github.com/jdg/MBProgressHUD.git
|
:git: https://github.com/jdg/MBProgressHUD.git
|
||||||
|
|
@ -316,6 +323,7 @@ SPEC CHECKSUMS:
|
||||||
CocoaLumberjack: e4ba3b414dfca8c1916c6303d37f63b3a95134c6
|
CocoaLumberjack: e4ba3b414dfca8c1916c6303d37f63b3a95134c6
|
||||||
CocoaMQTT: 1e2fa493d57045d66fb1eba2bb5ffb8d77039c60
|
CocoaMQTT: 1e2fa493d57045d66fb1eba2bb5ffb8d77039c60
|
||||||
Differentiator: e8497ceab83c1b10ca233716d547b9af21b9344d
|
Differentiator: e8497ceab83c1b10ca233716d547b9af21b9344d
|
||||||
|
FLEX: 6ec7816b9f392fb4c635cf50381e6bd4fb15541d
|
||||||
GTCommonSDK: 238c6735add91e654f8564638854686ee3dcb4ac
|
GTCommonSDK: 238c6735add91e654f8564638854686ee3dcb4ac
|
||||||
GYSDK: db5f4b3aae8df06201be5e786076211ec11791be
|
GYSDK: db5f4b3aae8df06201be5e786076211ec11791be
|
||||||
HXPHPicker: 451f6af62845d60d5dd2235f4665d81f2688a51b
|
HXPHPicker: 451f6af62845d60d5dd2235f4665d81f2688a51b
|
||||||
|
|
@ -366,6 +374,6 @@ SPEC CHECKSUMS:
|
||||||
YYImage: 1e1b62a9997399593e4b9c4ecfbbabbf1d3f3b54
|
YYImage: 1e1b62a9997399593e4b9c4ecfbbabbf1d3f3b54
|
||||||
ZXSDK: 786338c0a18e98e03eda00699c3bfd2700b97117
|
ZXSDK: 786338c0a18e98e03eda00699c3bfd2700b97117
|
||||||
|
|
||||||
PODFILE CHECKSUM: 439991fe5523a65e07f0df7135995adfc31f6cb3
|
PODFILE CHECKSUM: f676321d820ce55c18e69318732ac59e39a57e43
|
||||||
|
|
||||||
COCOAPODS: 1.16.2
|
COCOAPODS: 1.16.2
|
||||||
|
|
|
||||||
|
|
@ -298,6 +298,7 @@
|
||||||
30EFF3E82FCA8C7000227D26 /* AuthenticationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 30EFF3E92FCA8C7000227D26 /* AuthenticationServices.framework */; };
|
30EFF3E82FCA8C7000227D26 /* AuthenticationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 30EFF3E92FCA8C7000227D26 /* AuthenticationServices.framework */; };
|
||||||
55BF752D2FFE53F70055DA57 /* LocationPermissionPopView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55BF752C2FFE53F70055DA57 /* LocationPermissionPopView.swift */; };
|
55BF752D2FFE53F70055DA57 /* LocationPermissionPopView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55BF752C2FFE53F70055DA57 /* LocationPermissionPopView.swift */; };
|
||||||
55BF75352FFF91690055DA57 /* InteractionEmojiCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55BF75342FFF91690055DA57 /* InteractionEmojiCell.swift */; };
|
55BF75352FFF91690055DA57 /* InteractionEmojiCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55BF75342FFF91690055DA57 /* InteractionEmojiCell.swift */; };
|
||||||
|
A1B2C3D42FDABC8C009215C1 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = A1B2C3D52FDABC8C009215C1 /* PrivacyInfo.xcprivacy */; };
|
||||||
D698E9C56D6F2C152772131D /* Pods_QuickLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 475D33CAFA1E1911EB1F8D9F /* Pods_QuickLocation.framework */; };
|
D698E9C56D6F2C152772131D /* Pods_QuickLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 475D33CAFA1E1911EB1F8D9F /* Pods_QuickLocation.framework */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
|
@ -606,6 +607,7 @@
|
||||||
475D33CAFA1E1911EB1F8D9F /* Pods_QuickLocation.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QuickLocation.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
475D33CAFA1E1911EB1F8D9F /* Pods_QuickLocation.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QuickLocation.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
55BF752C2FFE53F70055DA57 /* LocationPermissionPopView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationPermissionPopView.swift; sourceTree = "<group>"; };
|
55BF752C2FFE53F70055DA57 /* LocationPermissionPopView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationPermissionPopView.swift; sourceTree = "<group>"; };
|
||||||
55BF75342FFF91690055DA57 /* InteractionEmojiCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InteractionEmojiCell.swift; sourceTree = "<group>"; };
|
55BF75342FFF91690055DA57 /* InteractionEmojiCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InteractionEmojiCell.swift; sourceTree = "<group>"; };
|
||||||
|
A1B2C3D52FDABC8C009215C1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
|
||||||
DA16D49AA46D4F6838340B55 /* Pods-QuickLocation.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QuickLocation.debug.xcconfig"; path = "Target Support Files/Pods-QuickLocation/Pods-QuickLocation.debug.xcconfig"; sourceTree = "<group>"; };
|
DA16D49AA46D4F6838340B55 /* Pods-QuickLocation.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QuickLocation.debug.xcconfig"; path = "Target Support Files/Pods-QuickLocation/Pods-QuickLocation.debug.xcconfig"; sourceTree = "<group>"; };
|
||||||
E483B9929C03809ADEDE8341 /* Pods-QuickLocation.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QuickLocation.release.xcconfig"; path = "Target Support Files/Pods-QuickLocation/Pods-QuickLocation.release.xcconfig"; sourceTree = "<group>"; };
|
E483B9929C03809ADEDE8341 /* Pods-QuickLocation.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QuickLocation.release.xcconfig"; path = "Target Support Files/Pods-QuickLocation/Pods-QuickLocation.release.xcconfig"; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
@ -1253,6 +1255,7 @@
|
||||||
305A767E2FCA8C7000227D26 /* AppDelegate.swift */,
|
305A767E2FCA8C7000227D26 /* AppDelegate.swift */,
|
||||||
305A767F2FCA8C7000227D26 /* Assets.xcassets */,
|
305A767F2FCA8C7000227D26 /* Assets.xcassets */,
|
||||||
305A76802FCA8C7000227D26 /* Info.plist */,
|
305A76802FCA8C7000227D26 /* Info.plist */,
|
||||||
|
A1B2C3D52FDABC8C009215C1 /* PrivacyInfo.xcprivacy */,
|
||||||
305A76822FCA8C7000227D26 /* LaunchScreen.storyboard */,
|
305A76822FCA8C7000227D26 /* LaunchScreen.storyboard */,
|
||||||
305A76842FCA8C7000227D26 /* Main.storyboard */,
|
305A76842FCA8C7000227D26 /* Main.storyboard */,
|
||||||
305A76852FCA8C7000227D26 /* QuickLocation-Bridging-Header.h */,
|
305A76852FCA8C7000227D26 /* QuickLocation-Bridging-Header.h */,
|
||||||
|
|
@ -1755,6 +1758,7 @@
|
||||||
305A77222FCA8C7000227D26 /* YouSheBiaoTiHei.ttf in Resources */,
|
305A77222FCA8C7000227D26 /* YouSheBiaoTiHei.ttf in Resources */,
|
||||||
305A77232FCA8C7000227D26 /* zihunbiantaoti-r.ttf in Resources */,
|
305A77232FCA8C7000227D26 /* zihunbiantaoti-r.ttf in Resources */,
|
||||||
305A77F92FCA8C7000227D26 /* Assets.xcassets in Resources */,
|
305A77F92FCA8C7000227D26 /* Assets.xcassets in Resources */,
|
||||||
|
A1B2C3D42FDABC8C009215C1 /* PrivacyInfo.xcprivacy in Resources */,
|
||||||
305A77FB2FCA8C7000227D26 /* LaunchScreen.storyboard in Resources */,
|
305A77FB2FCA8C7000227D26 /* LaunchScreen.storyboard in Resources */,
|
||||||
305A77FC2FCA8C7000227D26 /* Main.storyboard in Resources */,
|
305A77FC2FCA8C7000227D26 /* Main.storyboard in Resources */,
|
||||||
);
|
);
|
||||||
|
|
@ -2183,7 +2187,7 @@
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "QuickLocation/QuickLocation-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "QuickLocation/QuickLocation-Bridging-Header.h";
|
||||||
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
|
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = 1;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
|
|
@ -2236,7 +2240,7 @@
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "QuickLocation/QuickLocation-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "QuickLocation/QuickLocation-Bridging-Header.h";
|
||||||
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
|
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = 1;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,7 @@ public let kScreenHeight = UIScreen.main.bounds.size.height
|
||||||
/// 状态栏高度
|
/// 状态栏高度
|
||||||
public var kStatusBarHeight: CGFloat {
|
public var kStatusBarHeight: CGFloat {
|
||||||
if #available(iOS 13.0, *) {
|
if #available(iOS 13.0, *) {
|
||||||
let statusBarHeight = UIApplication.shared.windows
|
let statusBarHeight = kKeyWindow?
|
||||||
.filter { $0.isKeyWindow }
|
|
||||||
.first?
|
|
||||||
.windowScene?
|
.windowScene?
|
||||||
.statusBarManager?
|
.statusBarManager?
|
||||||
.statusBarFrame
|
.statusBarFrame
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,15 @@ import UIKit
|
||||||
public extension UIApplication {
|
public extension UIApplication {
|
||||||
|
|
||||||
static var keyWindow: UIWindow? {
|
static var keyWindow: UIWindow? {
|
||||||
shared.windows.filter { $0.isKeyWindow }.first
|
if #available(iOS 15.0, *) {
|
||||||
|
return UIApplication.shared.connectedScenes
|
||||||
|
.filter { $0.activationState == .foregroundActive }
|
||||||
|
.compactMap { $0 as? UIWindowScene }
|
||||||
|
.first?.windows
|
||||||
|
.first { $0.isKeyWindow }
|
||||||
|
} else {
|
||||||
|
return UIApplication.shared.windows.first { $0.isKeyWindow }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static func delegate<T: UIApplicationDelegate>() -> T? {
|
static func delegate<T: UIApplicationDelegate>() -> T? {
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,11 @@
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
public class DL {}
|
nonisolated public class DL {}
|
||||||
|
|
||||||
public class DLWrapper<Base> {
|
// nonisolated: 退出工程默认的 MainActor 隔离。
|
||||||
|
// 该通用包装类会在 Release(-O) 归档时触发 EarlyPerfInliner 对合成 deinit 的编译器崩溃。
|
||||||
|
nonisolated public class DLWrapper<Base> {
|
||||||
|
|
||||||
/// 原始对象
|
/// 原始对象
|
||||||
public private(set) var base: Base
|
public private(set) var base: Base
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,8 @@ enum PagingRequestType {
|
||||||
typealias RefreshResult = (status: RefreshStatus, isEmpty: Bool)
|
typealias RefreshResult = (status: RefreshStatus, isEmpty: Bool)
|
||||||
|
|
||||||
/// ListType: 列表数据泛型类,例: ListService<ListModel<PaginationModel>>
|
/// ListType: 列表数据泛型类,例: ListService<ListModel<PaginationModel>>
|
||||||
class ListService<ListType>: ListServiceType where ListType: ListModelType, ListType.Item: Mappable {
|
// nonisolated: 泛型类在默认 MainActor 隔离下,Release(-O) 归档会触发 EarlyPerfInliner 编译器崩溃
|
||||||
|
nonisolated class ListService<ListType>: ListServiceType where ListType: ListModelType, ListType.Item: Mappable {
|
||||||
typealias BaseListModel = ListType
|
typealias BaseListModel = ListType
|
||||||
typealias BaseItem = ListType.Item
|
typealias BaseItem = ListType.Item
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ import RxCocoa
|
||||||
import RxSwift
|
import RxSwift
|
||||||
import YBImageBrowser
|
import YBImageBrowser
|
||||||
import UMCommon
|
import UMCommon
|
||||||
#if DEBUG || AdHoc
|
#if DEBUG
|
||||||
//import FLEX
|
import FLEX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class BaseViewController: UIViewController {
|
class BaseViewController: UIViewController {
|
||||||
|
|
@ -187,8 +187,8 @@ extension BaseViewController {
|
||||||
// MARK: - FLEX
|
// MARK: - FLEX
|
||||||
extension BaseViewController {
|
extension BaseViewController {
|
||||||
private func setupFlex() {
|
private func setupFlex() {
|
||||||
#if DEBUG || AdHoc
|
#if DEBUG
|
||||||
// FLEXManager.shared.showExplorer()
|
FLEXManager.shared.showExplorer()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,16 +49,16 @@ extension DefaultsKeys {
|
||||||
func setupNetworkMode() {
|
func setupNetworkMode() {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
setupApiEnv(1)
|
setupApiEnv(1)
|
||||||
openIM_API = "https://imapi.zuom8.cn"
|
openIM_API = "https://imapi.zuom8.cn" // http://38.207.176.65:10002
|
||||||
openIM_WS = "ws://imws.zuom8.cn"
|
openIM_WS = "ws://imws.zuom8.cn" // ws://38.207.176.65:10010
|
||||||
#elseif AdHoc
|
#elseif AdHoc
|
||||||
setupApiEnv(-1)
|
setupApiEnv(-1)
|
||||||
openIM_API = "http://38.207.176.65:10002"
|
openIM_API = "https://imapi.zuom8.cn"
|
||||||
openIM_WS = "ws://38.207.176.65:10010"
|
openIM_WS = "ws://imws.zuom8.cn"
|
||||||
#else
|
#else
|
||||||
setupApiEnv(1)
|
setupApiEnv(1)
|
||||||
openIM_API = "http://38.207.176.65:10002"
|
openIM_API = "https://imapi.zuom8.cn"
|
||||||
openIM_WS = "ws://38.207.176.65:10010"
|
openIM_WS = "ws://imws.zuom8.cn"
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyTracking</key>
|
||||||
|
<false/>
|
||||||
|
<key>NSPrivacyTrackingDomains</key>
|
||||||
|
<array/>
|
||||||
|
<key>NSPrivacyCollectedDataTypes</key>
|
||||||
|
<array/>
|
||||||
|
<key>NSPrivacyAccessedAPITypes</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyAccessedAPIType</key>
|
||||||
|
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
||||||
|
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||||
|
<array>
|
||||||
|
<string>CA92.1</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyAccessedAPIType</key>
|
||||||
|
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
||||||
|
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||||
|
<array>
|
||||||
|
<string>C617.1</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
@ -19,7 +19,8 @@ and produces an Observable<Element> as its output.
|
||||||
|
|
||||||
When this excuted via execute() or inputs subject, it passes its parameter to this closure and subscribes to the work.
|
When this excuted via execute() or inputs subject, it passes its parameter to this closure and subscribes to the work.
|
||||||
*/
|
*/
|
||||||
public final class Action<Input, Element> {
|
// nonisolated: 泛型类在默认 MainActor 隔离下,Release(-O) 归档会触发 EarlyPerfInliner 编译器崩溃
|
||||||
|
nonisolated public final class Action<Input, Element> {
|
||||||
public typealias WorkFactory = (Input) -> Observable<Element>
|
public typealias WorkFactory = (Input) -> Observable<Element>
|
||||||
|
|
||||||
public let _enabledIf: Observable<Bool>
|
public let _enabledIf: Observable<Bool>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@ import Foundation
|
||||||
import RxSwift
|
import RxSwift
|
||||||
|
|
||||||
/// A special subject for Action.inputs. It only emits `.next` event.
|
/// A special subject for Action.inputs. It only emits `.next` event.
|
||||||
public class InputSubject<Element>: ObservableType, Cancelable, SubjectType, ObserverType {
|
// nonisolated: 泛型类在默认 MainActor 隔离下,Release(-O) 归档会触发 EarlyPerfInliner 编译器崩溃
|
||||||
|
nonisolated public class InputSubject<Element>: ObservableType, Cancelable, SubjectType, ObserverType {
|
||||||
|
|
||||||
public typealias E = Element
|
public typealias E = Element
|
||||||
typealias Key = UInt
|
typealias Key = UInt
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue