From 5be8cdea42161934f943c6fc7d704d279b7473b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Hrinc=CC=8Ca=CC=81r?= Date: Wed, 14 Sep 2022 12:25:50 +0200 Subject: [PATCH] Turn on the BUILD_LIBRARY_FOR_DISTRIBUTION flag --- Charts.xcodeproj/project.pbxproj | 2 ++ Source/Charts/Data/Implementations/Standard/ChartDataSet.swift | 2 +- Source/Charts/Highlight/ChartHighlighter.swift | 2 +- Source/Charts/Highlight/CombinedHighlighter.swift | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Charts.xcodeproj/project.pbxproj b/Charts.xcodeproj/project.pbxproj index 69cdc7f398..1556903416 100644 --- a/Charts.xcodeproj/project.pbxproj +++ b/Charts.xcodeproj/project.pbxproj @@ -1020,6 +1020,7 @@ isa = XCBuildConfiguration; buildSettings = { APPLICATION_EXTENSION_API_ONLY = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; COMBINE_HIDPI_IMAGES = YES; CURRENT_PROJECT_VERSION = 1; DEAD_CODE_STRIPPING = YES; @@ -1209,6 +1210,7 @@ isa = XCBuildConfiguration; buildSettings = { APPLICATION_EXTENSION_API_ONLY = YES; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; COMBINE_HIDPI_IMAGES = YES; CURRENT_PROJECT_VERSION = 1; DEAD_CODE_STRIPPING = YES; diff --git a/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift b/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift index 344f0f658e..8407ef1e7d 100644 --- a/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift +++ b/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift @@ -9,7 +9,7 @@ // https://github.com/danielgindi/Charts // -import Algorithms +@_implementationOnly import Algorithms import Foundation /// Determines how to round DataSet index values for `ChartDataSet.entryIndex(x, rounding)` when an exact x-value is not found. diff --git a/Source/Charts/Highlight/ChartHighlighter.swift b/Source/Charts/Highlight/ChartHighlighter.swift index f1f1873386..26c4b94f3e 100644 --- a/Source/Charts/Highlight/ChartHighlighter.swift +++ b/Source/Charts/Highlight/ChartHighlighter.swift @@ -9,7 +9,7 @@ // https://github.com/danielgindi/Charts // -import Algorithms +@_implementationOnly import Algorithms import Foundation import CoreGraphics diff --git a/Source/Charts/Highlight/CombinedHighlighter.swift b/Source/Charts/Highlight/CombinedHighlighter.swift index 0a03db2301..27d74012c6 100644 --- a/Source/Charts/Highlight/CombinedHighlighter.swift +++ b/Source/Charts/Highlight/CombinedHighlighter.swift @@ -9,7 +9,7 @@ // https://github.com/danielgindi/Charts // -import Algorithms +@_implementationOnly import Algorithms import Foundation import CoreGraphics