Skip to content

Commit af6a3af

Browse files
OdNairyclaude
authored andcommitted
[maps-ios] Replace @_implementationOnly with internal import (#13597)
The @_implementationOnly attribute is deprecated and emits warnings without library evolution enabled. SE-0409 (Swift 6.0+) provides `internal import` as the stable replacement; the minimum supported Xcode for maps-ios is 16, so no swiftSettings flag is needed. Links: - [Access-level modifiers on import declarations](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0409-access-level-on-imports.md) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> GitOrigin-RevId: 4467419c55db65edb7429b2cf5cc272a332b564f
1 parent 32f66f1 commit af6a3af

47 files changed

Lines changed: 49 additions & 49 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Sources/MapboxMaps/Annotations/OffsetGeometryCalculator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import UIKit
2-
@_implementationOnly import MapboxCommon_Private
2+
internal import MapboxCommon_Private
33

44
protocol OffsetGeometryCalculator {
55
associatedtype GeometryType: GeometryConvertible

Sources/MapboxMaps/Annotations/ViewAnnotationManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// swiftlint:disable file_length
22
import UIKit
3-
@_implementationOnly import MapboxCommon_Private
3+
internal import MapboxCommon_Private
44
import Turf
55

66
public struct ViewAnnotationManagerError: Error, Equatable, Sendable {

Sources/MapboxMaps/Attribution/AttributionMenu.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22
import UIKit
3-
@_implementationOnly import MapboxCommon_Private
3+
internal import MapboxCommon_Private
44

55
/// API for attribution menu configuration
66
/// Restricted API. Please contact Mapbox to discuss your use case if you intend to use this property.

Sources/MapboxMaps/Camera/CameraAnimationsManagerImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import UIKit
2-
@_implementationOnly import MapboxCommon_Private
2+
internal import MapboxCommon_Private
33

44
internal protocol CameraAnimationsManagerProtocol: AnyObject {
55

Sources/MapboxMaps/Camera/SimpleCameraAnimator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@_implementationOnly import MapboxCommon_Private
1+
internal import MapboxCommon_Private
22
import UIKit
33

44
internal protocol SimpleCameraAnimatorProtocol: CameraAnimatorProtocol {

Sources/MapboxMaps/ContentBuilders/MapContent/MapContentUniqueProperties.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@_implementationOnly import MapboxCommon_Private
1+
internal import MapboxCommon_Private
22
import os
33

44
/// The style properties that can be applied once in the whole style.

Sources/MapboxMaps/ContentBuilders/Tree/MapContentMountedComponent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
@_implementationOnly import MapboxCommon_Private
2+
internal import MapboxCommon_Private
33

44
protocol MapContentMountedComponent {
55
func mount(with context: MapContentNodeContext) throws

Sources/MapboxMaps/Foundation/CoreAliases.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@_implementationOnly import MapboxCoreMaps_Private
2-
@_implementationOnly import MapboxCommon_Private
1+
internal import MapboxCoreMaps_Private
2+
internal import MapboxCommon_Private
33
@_spi(Internal) import MapboxCoreMaps
44

55
typealias CoreCameraOptions = MapboxCoreMaps_Private.__CameraOptions

Sources/MapboxMaps/Foundation/Events/EventsManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import UIKit
2-
@_implementationOnly import MapboxCommon_Private
2+
internal import MapboxCommon_Private
33

44
extension UserDefaults {
55
// dynamic var's name has to be the same as corresponding key in UserDefaults

Sources/MapboxMaps/Foundation/Extensions/Core/RenderedQueryOptions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Foundation
2-
@_implementationOnly import MapboxCommon_Private
2+
internal import MapboxCommon_Private
33

44
extension RenderedQueryOptions {
55

0 commit comments

Comments
 (0)