Skip to content

Commit d1758e5

Browse files
committed
fix: fix #164 Build Failure on CI Due to CocoaPods 1.1.9 in iOS Project
1 parent ea3671f commit d1758e5

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

ios/RCTImageMarker/ImageMarker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public final class ImageMarker: NSObject, RCTBridgeModule {
2525
let images = try await withThrowingTaskGroup(of: (Int, UIImage).self) { group in
2626
for (index, img) in imageOptions.enumerated() {
2727
group.addTask {
28-
try await withUnsafeThrowingContinuation { continuation in
28+
try await withUnsafeThrowingContinuation { continuation -> Void in
2929
if Utils.isBase64(img.uri) {
3030
if let image = UIImage.transBase64(img.uri) {
3131
continuation.resume(returning: (index, image))

ios/RCTImageMarker/RCTConvert+ImageMarker.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,34 @@ import Foundation
99
import UIKit
1010
import CoreFoundation
1111
import React
12+
import CoreGraphics
1213

1314
extension RCTConvert {
1415
static func CGSize(_ json: Any, offset: Int) -> CGSize {
1516
let arr = self.nsArray(json)
1617
if arr!.count < offset + 2 {
1718
NSLog("Too few elements in array (expected at least %zd): %@", 2 + offset, arr!)
18-
return CoreFoundation.CGSize.zero
19+
return CoreGraphics.CGSize.zero
1920
}
20-
return CoreFoundation.CGSize(width: self.cgFloat(arr![offset]), height: self.cgFloat(arr![offset + 1]))
21+
return CoreGraphics.CGSize(width: self.cgFloat(arr![offset]), height: self.cgFloat(arr![offset + 1]))
2122
}
2223

2324
static func CGPoint(_ json: Any, offset: Int) -> CGPoint {
2425
let arr = self.nsArray(json)
2526
if arr!.count < offset + 2 {
2627
NSLog("Too few elements in array (expected at least %zd): %@", 2 + offset, arr!)
27-
return CoreFoundation.CGPoint.zero
28+
return CoreGraphics.CGPoint.zero
2829
}
29-
return CoreFoundation.CGPoint(x: self.cgFloat(arr?[offset]), y: self.cgFloat(arr![offset + 1]))
30+
return CoreGraphics.CGPoint(x: self.cgFloat(arr?[offset]), y: self.cgFloat(arr![offset + 1]))
3031
}
3132

3233
static func CGRect(_ json: Any, offset: Int) -> CGRect {
3334
let arr = self.nsArray(json)
3435
if arr!.count < offset + 4 {
3536
NSLog("Too few elements in array (expected at least %zd): %@", 4 + offset, arr!)
36-
return CoreFoundation.CGRect.zero
37+
return CoreGraphics.CGRect.zero
3738
}
38-
return CoreFoundation.CGRect(x: self.cgFloat(arr![offset]), y: self.cgFloat(arr![offset + 1]), width: self.cgFloat(arr![offset + 2]), height: self.cgFloat(arr![offset + 3]))
39+
return CoreGraphics.CGRect(x: self.cgFloat(arr![offset]), y: self.cgFloat(arr![offset + 1]), width: self.cgFloat(arr![offset + 2]), height: self.cgFloat(arr![offset + 3]))
3940
}
4041

4142
static func CGColor(_ json: Any, offset: Int) -> CGColor? {

0 commit comments

Comments
 (0)