Эх сурвалжийг харах

Merge pull request #4912 from matopeto/feature/build_library_for_distribution

Turn on the BUILD_LIBRARY_FOR_DISTRIBUTION flag
Pierre-Marc Airoldi 2 жил өмнө
parent
commit
2f9ccf76e9

+ 2 - 0
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;

+ 1 - 1
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.

+ 1 - 1
Source/Charts/Highlight/ChartHighlighter.swift

@@ -9,7 +9,7 @@
 //  https://github.com/danielgindi/Charts
 //
 
-import Algorithms
+@_implementationOnly import Algorithms
 import Foundation
 import CoreGraphics
 

+ 1 - 1
Source/Charts/Highlight/CombinedHighlighter.swift

@@ -9,7 +9,7 @@
 //  https://github.com/danielgindi/Charts
 //
 
-import Algorithms
+@_implementationOnly import Algorithms
 import Foundation
 import CoreGraphics