Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spm support #27

Merged
merged 13 commits into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test implementation of spm
  • Loading branch information
Alexandr Nevyantsev committed Oct 20, 2021
commit 7e5db8be46f3fb92c237df2e5188aee98be613bd
47 changes: 14 additions & 33 deletions ExampleSPM/LightweightCharts.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -40,7 +40,7 @@
8C8C293224D1666600EC537E /* ThreeLineLegendViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE5053CE2397AF6D00143B03 /* ThreeLineLegendViewController.swift */; };
8C8C293324D1666F00EC537E /* TableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE5053DD2397AF6D00143B03 /* TableViewController.swift */; };
CE5054042397AF9400143B03 /* TooltipView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE5054032397AF9400143B03 /* TooltipView.swift */; };
FA80E209271773A8001BB011 /* LightweightCharts in Frameworks */ = {isa = PBXBuildFile; productRef = FA80E208271773A8001BB011 /* LightweightCharts */; };
FA621D5627208483000F40B0 /* lightweight-charts.js in Resources */ = {isa = PBXBuildFile; fileRef = FA621D5527208483000F40B0 /* lightweight-charts.js */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -91,15 +91,14 @@
CE5053E62397AF6D00143B03 /* NoPriceScaleViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NoPriceScaleViewController.swift; sourceTree = "<group>"; };
CE5053E72397AF6D00143B03 /* FloatingTooltipViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FloatingTooltipViewController.swift; sourceTree = "<group>"; };
CE5054032397AF9400143B03 /* TooltipView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TooltipView.swift; sourceTree = "<group>"; };
FA8C04692717737300DEB534 /* LightweightCharts */ = {isa = PBXFileReference; lastKnownFileType = folder; name = LightweightCharts; path = ../LightweightCharts; sourceTree = "<group>"; };
FA621D5527208483000F40B0 /* lightweight-charts.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = "lightweight-charts.js"; path = "../../LightweightCharts/Assets/lightweight-charts.js"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
607FACCD1AFB9204008FA782 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
FA80E209271773A8001BB011 /* LightweightCharts in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -136,6 +135,7 @@
607FACD21AFB9204008FA782 /* Example for LightweightCharts */ = {
isa = PBXGroup;
children = (
FA621D5527208483000F40B0 /* lightweight-charts.js */,
CE5054022397AF9400143B03 /* Views */,
CE5053CD2397AF6D00143B03 /* Example */,
607FACD51AFB9204008FA782 /* AppDelegate.swift */,
Expand Down Expand Up @@ -225,7 +225,6 @@
FA0FD6FB2717704F0056A052 /* Packages */ = {
isa = PBXGroup;
children = (
FA8C04692717737300DEB534 /* LightweightCharts */,
);
name = Packages;
sourceTree = "<group>";
Expand All @@ -248,7 +247,6 @@
);
name = LightweightCharts_Example;
packageProductDependencies = (
FA80E208271773A8001BB011 /* LightweightCharts */,
);
productName = LightweightCharts;
productReference = 607FACD01AFB9204008FA782 /* LightweightCharts_Example.app */;
Expand Down Expand Up @@ -302,6 +300,8 @@
Base,
);
mainGroup = 607FACC71AFB9204008FA782;
packageReferences = (
);
productRefGroup = 607FACD11AFB9204008FA782 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand All @@ -318,6 +318,7 @@
buildActionMask = 2147483647;
files = (
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
FA621D5627208483000F40B0 /* lightweight-charts.js in Resources */,
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -521,8 +522,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand All @@ -531,12 +531,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_ASSET_PATHS = ../LightweightCharts;
INFOPLIST_FILE = LightweightCharts/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 3.5.0;
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "tradingview.$(PRODUCT_NAME:rfc1034identifier)";
Expand All @@ -551,12 +549,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_ASSET_PATHS = ../LightweightCharts;
INFOPLIST_FILE = LightweightCharts/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 3.5.0;
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "tradingview.$(PRODUCT_NAME:rfc1034identifier)";
Expand All @@ -579,11 +575,7 @@
"$(inherited)",
);
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "tradingview.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
Expand All @@ -600,11 +592,7 @@
"$(inherited)",
);
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "tradingview.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
Expand Down Expand Up @@ -644,13 +632,6 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCSwiftPackageProductDependency section */
FA80E208271773A8001BB011 /* LightweightCharts */ = {
isa = XCSwiftPackageProductDependency;
productName = LightweightCharts;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 607FACC81AFB9204008FA782 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ class BarChartViewController: UIViewController {
view.backgroundColor = .white
}

setupChart()
setupData()
// setupChart()
// setupData()

let gallery = GalleryController()
gallery.delegate = self
present(gallery, animated: true, completion: nil)
}

private func setupChart() {
Expand Down
Loading