Skip to content

Commit

Permalink
Demos update
Browse files Browse the repository at this point in the history
  • Loading branch information
charlymr committed Nov 25, 2021
1 parent 86914a8 commit 4571ad0
Show file tree
Hide file tree
Showing 9 changed files with 135 additions and 50 deletions.
8 changes: 8 additions & 0 deletions Demo-cocoapods/Demo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ class ViewController: UIViewController {

third.text = worksheet.cell(forCellReference: "B4").stringValue()

let paths: Array = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.userDomainMask, true) as Array

let fullPath: String = paths[0] + "/testSwiftOpenClose.xlsx"
try? FileManager.default.removeItem(at: URL(fileURLWithPath: fullPath))
odp.save(as: fullPath)

print(fullPath)


}

Expand Down
2 changes: 1 addition & 1 deletion Demo-cocoapods/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ target 'Demo' do

platform :ios, '10.2'

pod 'XlsxReaderWriter', path: '../XlsxReaderWriter.podspec'
pod 'XlsxReaderWriter', '~> 2.5', :source => 'https://github.com/charlymr/XlsxReaderWriter-Podspecs.git'

use_frameworks!

Expand Down
20 changes: 10 additions & 10 deletions Demo-spm/Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
objects = {

/* Begin PBXBuildFile section */
61AF3BE4274FA8770099176F /* XlsxReaderWriter in Frameworks */ = {isa = PBXBuildFile; productRef = 61AF3BE3274FA8770099176F /* XlsxReaderWriter */; };
826068722049437A00116455 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 826068712049437A00116455 /* AppDelegate.swift */; };
826068742049437A00116455 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 826068732049437A00116455 /* ViewController.swift */; };
826068772049437A00116455 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 826068752049437A00116455 /* Main.storyboard */; };
826068792049437B00116455 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 826068782049437A00116455 /* Assets.xcassets */; };
8260687C2049437B00116455 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8260687A2049437B00116455 /* LaunchScreen.storyboard */; };
82904D432049483500760D35 /* testWorkbook.xlsx in Resources */ = {isa = PBXBuildFile; fileRef = 82904D422049483500760D35 /* testWorkbook.xlsx */; };
82D7BB7726B7EAF1006F5077 /* XlsxReaderWriter in Frameworks */ = {isa = PBXBuildFile; productRef = 82D7BB7626B7EAF1006F5077 /* XlsxReaderWriter */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand Down Expand Up @@ -45,7 +45,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
82D7BB7726B7EAF1006F5077 /* XlsxReaderWriter in Frameworks */,
61AF3BE4274FA8770099176F /* XlsxReaderWriter in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -109,7 +109,7 @@
);
name = Demo;
packageProductDependencies = (
82D7BB7626B7EAF1006F5077 /* XlsxReaderWriter */,
61AF3BE3274FA8770099176F /* XlsxReaderWriter */,
);
productName = Demo;
productReference = 8260686E2049437A00116455 /* Demo.app */;
Expand Down Expand Up @@ -142,7 +142,7 @@
);
mainGroup = 826068652049437A00116455;
packageReferences = (
82D7BB7526B7EAF1006F5077 /* XCRemoteSwiftPackageReference "XlsxReaderWriter" */,
61AF3BE2274FA8770099176F /* XCRemoteSwiftPackageReference "XlsxReaderWriter" */,
);
productRefGroup = 8260686F2049437A00116455 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -384,24 +384,24 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
82D7BB7526B7EAF1006F5077 /* XCRemoteSwiftPackageReference "XlsxReaderWriter" */ = {
61AF3BE2274FA8770099176F /* XCRemoteSwiftPackageReference "XlsxReaderWriter" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/charlymr/XlsxReaderWriter.git";
repositoryURL = "https://github.com/charlymr/XlsxReaderWriter";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 2.4.3;
minimumVersion = 2.5.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
8201DE4126B52FE800ABA5EF /* XlsxReaderWriter */ = {
61AF3BE3274FA8770099176F /* XlsxReaderWriter */ = {
isa = XCSwiftPackageProductDependency;
package = 61AF3BE2274FA8770099176F /* XCRemoteSwiftPackageReference "XlsxReaderWriter" */;
productName = XlsxReaderWriter;
};
82D7BB7626B7EAF1006F5077 /* XlsxReaderWriter */ = {
8201DE4126B52FE800ABA5EF /* XlsxReaderWriter */ = {
isa = XCSwiftPackageProductDependency;
package = 82D7BB7526B7EAF1006F5077 /* XCRemoteSwiftPackageReference "XlsxReaderWriter" */;
productName = XlsxReaderWriter;
};
/* End XCSwiftPackageProductDependency section */
Expand Down

This file was deleted.

98 changes: 98 additions & 0 deletions Demo-spm/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8260686D2049437A00116455"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "XlsxReaderWriterSwiftTests"
BuildableName = "XlsxReaderWriterSwiftTests"
BlueprintName = "XlsxReaderWriterSwiftTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "XlsxReaderWriterTests"
BuildableName = "XlsxReaderWriterTests"
BlueprintName = "XlsxReaderWriterTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8260686D2049437A00116455"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8260686D2049437A00116455"
BuildableName = "Demo.app"
BlueprintName = "Demo"
ReferencedContainer = "container:Demo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
8 changes: 8 additions & 0 deletions Demo-spm/Demo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ class ViewController: UIViewController {

third.text = worksheet.cell(forCellReference: "B4").stringValue()

let paths: Array = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.userDomainMask, true) as Array

let fullPath: String = paths[0] + "/testSwiftOpenClose.xlsx"
try? FileManager.default.removeItem(at: URL(fileURLWithPath: fullPath))
odp.save(as: fullPath)

print(fullPath)


}


Expand Down
14 changes: 2 additions & 12 deletions Demo/Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/* Begin PBXBuildFile section */
6119EC0A26F50831002A9B4A /* XlsxReaderWriter.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6119EC0826F50831002A9B4A /* XlsxReaderWriter.xcframework */; };
6119EC0B26F50831002A9B4A /* ZipArchive.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6119EC0926F50831002A9B4A /* ZipArchive.xcframework */; };
826068722049437A00116455 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 826068712049437A00116455 /* AppDelegate.swift */; };
826068742049437A00116455 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 826068732049437A00116455 /* ViewController.swift */; };
826068772049437A00116455 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 826068752049437A00116455 /* Main.storyboard */; };
Expand All @@ -32,7 +31,6 @@

/* Begin PBXFileReference section */
6119EC0826F50831002A9B4A /* XlsxReaderWriter.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = XlsxReaderWriter.xcframework; path = Carthage/Build/XlsxReaderWriter.xcframework; sourceTree = "<group>"; };
6119EC0926F50831002A9B4A /* ZipArchive.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = ZipArchive.xcframework; path = Carthage/Build/ZipArchive.xcframework; sourceTree = "<group>"; };
8260686E2049437A00116455 /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; };
826068712049437A00116455 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
826068732049437A00116455 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
Expand All @@ -48,7 +46,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6119EC0B26F50831002A9B4A /* ZipArchive.xcframework in Frameworks */,
6119EC0A26F50831002A9B4A /* XlsxReaderWriter.xcframework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -61,7 +58,6 @@
children = (
82904D422049483500760D35 /* testWorkbook.xlsx */,
6119EC0826F50831002A9B4A /* XlsxReaderWriter.xcframework */,
6119EC0926F50831002A9B4A /* ZipArchive.xcframework */,
826068702049437A00116455 /* Demo */,
8260686F2049437A00116455 /* Products */,
);
Expand Down Expand Up @@ -311,10 +307,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Carthage/Build/iOS",
);
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Demo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -333,10 +326,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Carthage/Build/iOS",
);
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Demo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
8 changes: 8 additions & 0 deletions Demo/Demo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ class ViewController: UIViewController {

third.text = worksheet.cell(forCellReference: "B4").stringValue()

let paths: Array = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.userDomainMask, true) as Array

let fullPath: String = paths[0] + "/testSwiftOpenClose.xlsx"
try? FileManager.default.removeItem(at: URL(fileURLWithPath: fullPath))
odp.save(as: fullPath)

print(fullPath)


}


Expand Down
2 changes: 0 additions & 2 deletions XlsxReaderWriter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,6 @@
8265BC302041C4BE004A2A7D /* XlsxReaderXMLDictionary.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XlsxReaderXMLDictionary.m; sourceTree = "<group>"; };
827A14DE26B7BC03008EB8C2 /* BRAHyperlink.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BRAHyperlink.m; sourceTree = "<group>"; };
827A14E326B7BC1F008EB8C2 /* BRAHyperlink.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BRAHyperlink.h; sourceTree = "<group>"; };
8289AA5C2041CD4A00E00603 /* Cartfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Cartfile; sourceTree = SOURCE_ROOT; };
8289AA5D2041D98C00E00603 /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
8289AA632041D9F900E00603 /* XlsxReaderWriter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = XlsxReaderWriter.framework; sourceTree = BUILT_PRODUCTS_DIR; };
8289AAD620420FFC00E00603 /* XlsxReaderWriter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = XlsxReaderWriter.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -751,7 +750,6 @@
isa = PBXGroup;
children = (
455542A31C48DE4D00EAB8FE /* XlsxReaderWriter.podspec */,
8289AA5C2041CD4A00E00603 /* Cartfile */,
455542A21C48DE4D00EAB8FE /* README.md */,
8289AA5D2041D98C00E00603 /* CHANGELOG.md */,
8287359926B5214B00C4DC60 /* Sources */,
Expand Down

0 comments on commit 4571ad0

Please sign in to comment.