mirror of
https://github.com/ruvnet/RuView.git
synced 2026-08-26 02:04:55 +00:00
fix(ios): isolate ARKit sources to iOS builds
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import Foundation
|
||||
import RuViewNLOSCore
|
||||
|
||||
#if canImport(ARKit)
|
||||
#if os(iOS) && canImport(ARKit)
|
||||
import ARKit
|
||||
#endif
|
||||
|
||||
@@ -49,7 +49,7 @@ public extension AppleNLOSCapabilityReport {
|
||||
|
||||
public enum AppleCapabilityProbe {
|
||||
public static func probe() -> AppleNLOSCapabilityReport {
|
||||
#if canImport(ARKit)
|
||||
#if os(iOS) && canImport(ARKit)
|
||||
let sceneDepth = ARWorldTrackingConfiguration.supportsFrameSemantics(.sceneDepth)
|
||||
let smoothedDepth = ARWorldTrackingConfiguration.supportsFrameSemantics(.smoothedSceneDepth)
|
||||
let mesh = ARWorldTrackingConfiguration.supportsSceneReconstruction(.mesh)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Foundation
|
||||
import RuViewNLOSCore
|
||||
|
||||
#if canImport(ARKit) && canImport(AVFoundation) && canImport(Combine)
|
||||
#if os(iOS) && canImport(ARKit) && canImport(AVFoundation) && canImport(Combine)
|
||||
@preconcurrency import ARKit
|
||||
@preconcurrency import AVFoundation
|
||||
import Combine
|
||||
|
||||
@@ -28,7 +28,7 @@ final class AppleCapabilityProbeTests: XCTestCase {
|
||||
XCTAssertFalse(flags.rawPhotonHistograms)
|
||||
}
|
||||
|
||||
#if !canImport(ARKit)
|
||||
#if !os(iOS) || !canImport(ARKit)
|
||||
func testNonAppleBuildHostReportsARKitSignalsUnavailable() {
|
||||
let report = AppleCapabilityProbe.probe()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user