From 87c2259c178dba08294e2b0fec20d362b0850ba2 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 1 Dec 2022 10:36:16 -0600 Subject: [PATCH] SPM Added --- .../contents.xcworkspacedata | 7 +++++ Package.swift | 28 ++++++++++++++++++ {iCarousel => Sources/iCarousel}/Info.plist | 0 {iCarousel => Sources/iCarousel}/iCarousel.m | 0 .../iCarousel/include}/iCarousel.h | 0 .../Events/Default-568h@2x.png | Bin .../Events/en.lproj/InfoPlist.strings | 0 .../Events/en.lproj/MainWindow.xib | 0 .../iCarouselExampleViewController.xib | 0 .../Events/iCarouselExampleAppDelegate.h | 0 .../Events/iCarouselExampleAppDelegate.m | 0 .../Events/iCarouselExampleViewController.h | 0 .../Events/iCarouselExampleViewController.m | 0 .../Events/iCarouselTest-Info.plist | 0 .../Events/iCarouselTest-Prefix.pch | 0 .../iCarouselTest.xcodeproj/project.pbxproj | 0 .../contents.xcworkspacedata | 0 {Tests => TestPrueba}/Events/main.m | 0 .../Scrolling/Default-568h@2x.png | Bin .../Scrolling/en.lproj/InfoPlist.strings | 0 .../Scrolling/en.lproj/MainWindow.xib | 0 .../iCarouselExampleViewController.xib | 0 .../Scrolling/iCarouselExampleAppDelegate.h | 0 .../Scrolling/iCarouselExampleAppDelegate.m | 0 .../iCarouselExampleViewController.h | 0 .../iCarouselExampleViewController.m | 0 .../Scrolling/iCarouselTest-Info.plist | 0 .../Scrolling/iCarouselTest-Prefix.pch | 0 .../iCarouselTest.xcodeproj/project.pbxproj | 0 .../contents.xcworkspacedata | 0 {Tests => TestPrueba}/Scrolling/main.m | 0 Tests/iCarouselTests/iCarouselTests.swift | 11 +++++++ 32 files changed, 46 insertions(+) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 Package.swift rename {iCarousel => Sources/iCarousel}/Info.plist (100%) rename {iCarousel => Sources/iCarousel}/iCarousel.m (100%) rename {iCarousel => Sources/iCarousel/include}/iCarousel.h (100%) rename {Tests => TestPrueba}/Events/Default-568h@2x.png (100%) rename {Tests => TestPrueba}/Events/en.lproj/InfoPlist.strings (100%) rename {Tests => TestPrueba}/Events/en.lproj/MainWindow.xib (100%) rename {Tests => TestPrueba}/Events/en.lproj/iCarouselExampleViewController.xib (100%) rename {Tests => TestPrueba}/Events/iCarouselExampleAppDelegate.h (100%) rename {Tests => TestPrueba}/Events/iCarouselExampleAppDelegate.m (100%) rename {Tests => TestPrueba}/Events/iCarouselExampleViewController.h (100%) rename {Tests => TestPrueba}/Events/iCarouselExampleViewController.m (100%) rename {Tests => TestPrueba}/Events/iCarouselTest-Info.plist (100%) rename {Tests => TestPrueba}/Events/iCarouselTest-Prefix.pch (100%) rename {Tests => TestPrueba}/Events/iCarouselTest.xcodeproj/project.pbxproj (100%) rename {Tests => TestPrueba}/Events/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename {Tests => TestPrueba}/Events/main.m (100%) rename {Tests => TestPrueba}/Scrolling/Default-568h@2x.png (100%) rename {Tests => TestPrueba}/Scrolling/en.lproj/InfoPlist.strings (100%) rename {Tests => TestPrueba}/Scrolling/en.lproj/MainWindow.xib (100%) rename {Tests => TestPrueba}/Scrolling/en.lproj/iCarouselExampleViewController.xib (100%) rename {Tests => TestPrueba}/Scrolling/iCarouselExampleAppDelegate.h (100%) rename {Tests => TestPrueba}/Scrolling/iCarouselExampleAppDelegate.m (100%) rename {Tests => TestPrueba}/Scrolling/iCarouselExampleViewController.h (100%) rename {Tests => TestPrueba}/Scrolling/iCarouselExampleViewController.m (100%) rename {Tests => TestPrueba}/Scrolling/iCarouselTest-Info.plist (100%) rename {Tests => TestPrueba}/Scrolling/iCarouselTest-Prefix.pch (100%) rename {Tests => TestPrueba}/Scrolling/iCarouselTest.xcodeproj/project.pbxproj (100%) rename {Tests => TestPrueba}/Scrolling/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename {Tests => TestPrueba}/Scrolling/main.m (100%) create mode 100644 Tests/iCarouselTests/iCarouselTests.swift diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000..919434a625 --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000000..6cd3edc868 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version: 5.7 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "iCarousel", + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "iCarousel", + targets: ["iCarousel"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "iCarousel", + publicHeadersPath: "include" + ) + + ], + swiftLanguageVersions: [.v5] +) diff --git a/iCarousel/Info.plist b/Sources/iCarousel/Info.plist similarity index 100% rename from iCarousel/Info.plist rename to Sources/iCarousel/Info.plist diff --git a/iCarousel/iCarousel.m b/Sources/iCarousel/iCarousel.m similarity index 100% rename from iCarousel/iCarousel.m rename to Sources/iCarousel/iCarousel.m diff --git a/iCarousel/iCarousel.h b/Sources/iCarousel/include/iCarousel.h similarity index 100% rename from iCarousel/iCarousel.h rename to Sources/iCarousel/include/iCarousel.h diff --git a/Tests/Events/Default-568h@2x.png b/TestPrueba/Events/Default-568h@2x.png similarity index 100% rename from Tests/Events/Default-568h@2x.png rename to TestPrueba/Events/Default-568h@2x.png diff --git a/Tests/Events/en.lproj/InfoPlist.strings b/TestPrueba/Events/en.lproj/InfoPlist.strings similarity index 100% rename from Tests/Events/en.lproj/InfoPlist.strings rename to TestPrueba/Events/en.lproj/InfoPlist.strings diff --git a/Tests/Events/en.lproj/MainWindow.xib b/TestPrueba/Events/en.lproj/MainWindow.xib similarity index 100% rename from Tests/Events/en.lproj/MainWindow.xib rename to TestPrueba/Events/en.lproj/MainWindow.xib diff --git a/Tests/Events/en.lproj/iCarouselExampleViewController.xib b/TestPrueba/Events/en.lproj/iCarouselExampleViewController.xib similarity index 100% rename from Tests/Events/en.lproj/iCarouselExampleViewController.xib rename to TestPrueba/Events/en.lproj/iCarouselExampleViewController.xib diff --git a/Tests/Events/iCarouselExampleAppDelegate.h b/TestPrueba/Events/iCarouselExampleAppDelegate.h similarity index 100% rename from Tests/Events/iCarouselExampleAppDelegate.h rename to TestPrueba/Events/iCarouselExampleAppDelegate.h diff --git a/Tests/Events/iCarouselExampleAppDelegate.m b/TestPrueba/Events/iCarouselExampleAppDelegate.m similarity index 100% rename from Tests/Events/iCarouselExampleAppDelegate.m rename to TestPrueba/Events/iCarouselExampleAppDelegate.m diff --git a/Tests/Events/iCarouselExampleViewController.h b/TestPrueba/Events/iCarouselExampleViewController.h similarity index 100% rename from Tests/Events/iCarouselExampleViewController.h rename to TestPrueba/Events/iCarouselExampleViewController.h diff --git a/Tests/Events/iCarouselExampleViewController.m b/TestPrueba/Events/iCarouselExampleViewController.m similarity index 100% rename from Tests/Events/iCarouselExampleViewController.m rename to TestPrueba/Events/iCarouselExampleViewController.m diff --git a/Tests/Events/iCarouselTest-Info.plist b/TestPrueba/Events/iCarouselTest-Info.plist similarity index 100% rename from Tests/Events/iCarouselTest-Info.plist rename to TestPrueba/Events/iCarouselTest-Info.plist diff --git a/Tests/Events/iCarouselTest-Prefix.pch b/TestPrueba/Events/iCarouselTest-Prefix.pch similarity index 100% rename from Tests/Events/iCarouselTest-Prefix.pch rename to TestPrueba/Events/iCarouselTest-Prefix.pch diff --git a/Tests/Events/iCarouselTest.xcodeproj/project.pbxproj b/TestPrueba/Events/iCarouselTest.xcodeproj/project.pbxproj similarity index 100% rename from Tests/Events/iCarouselTest.xcodeproj/project.pbxproj rename to TestPrueba/Events/iCarouselTest.xcodeproj/project.pbxproj diff --git a/Tests/Events/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/TestPrueba/Events/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Tests/Events/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to TestPrueba/Events/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Tests/Events/main.m b/TestPrueba/Events/main.m similarity index 100% rename from Tests/Events/main.m rename to TestPrueba/Events/main.m diff --git a/Tests/Scrolling/Default-568h@2x.png b/TestPrueba/Scrolling/Default-568h@2x.png similarity index 100% rename from Tests/Scrolling/Default-568h@2x.png rename to TestPrueba/Scrolling/Default-568h@2x.png diff --git a/Tests/Scrolling/en.lproj/InfoPlist.strings b/TestPrueba/Scrolling/en.lproj/InfoPlist.strings similarity index 100% rename from Tests/Scrolling/en.lproj/InfoPlist.strings rename to TestPrueba/Scrolling/en.lproj/InfoPlist.strings diff --git a/Tests/Scrolling/en.lproj/MainWindow.xib b/TestPrueba/Scrolling/en.lproj/MainWindow.xib similarity index 100% rename from Tests/Scrolling/en.lproj/MainWindow.xib rename to TestPrueba/Scrolling/en.lproj/MainWindow.xib diff --git a/Tests/Scrolling/en.lproj/iCarouselExampleViewController.xib b/TestPrueba/Scrolling/en.lproj/iCarouselExampleViewController.xib similarity index 100% rename from Tests/Scrolling/en.lproj/iCarouselExampleViewController.xib rename to TestPrueba/Scrolling/en.lproj/iCarouselExampleViewController.xib diff --git a/Tests/Scrolling/iCarouselExampleAppDelegate.h b/TestPrueba/Scrolling/iCarouselExampleAppDelegate.h similarity index 100% rename from Tests/Scrolling/iCarouselExampleAppDelegate.h rename to TestPrueba/Scrolling/iCarouselExampleAppDelegate.h diff --git a/Tests/Scrolling/iCarouselExampleAppDelegate.m b/TestPrueba/Scrolling/iCarouselExampleAppDelegate.m similarity index 100% rename from Tests/Scrolling/iCarouselExampleAppDelegate.m rename to TestPrueba/Scrolling/iCarouselExampleAppDelegate.m diff --git a/Tests/Scrolling/iCarouselExampleViewController.h b/TestPrueba/Scrolling/iCarouselExampleViewController.h similarity index 100% rename from Tests/Scrolling/iCarouselExampleViewController.h rename to TestPrueba/Scrolling/iCarouselExampleViewController.h diff --git a/Tests/Scrolling/iCarouselExampleViewController.m b/TestPrueba/Scrolling/iCarouselExampleViewController.m similarity index 100% rename from Tests/Scrolling/iCarouselExampleViewController.m rename to TestPrueba/Scrolling/iCarouselExampleViewController.m diff --git a/Tests/Scrolling/iCarouselTest-Info.plist b/TestPrueba/Scrolling/iCarouselTest-Info.plist similarity index 100% rename from Tests/Scrolling/iCarouselTest-Info.plist rename to TestPrueba/Scrolling/iCarouselTest-Info.plist diff --git a/Tests/Scrolling/iCarouselTest-Prefix.pch b/TestPrueba/Scrolling/iCarouselTest-Prefix.pch similarity index 100% rename from Tests/Scrolling/iCarouselTest-Prefix.pch rename to TestPrueba/Scrolling/iCarouselTest-Prefix.pch diff --git a/Tests/Scrolling/iCarouselTest.xcodeproj/project.pbxproj b/TestPrueba/Scrolling/iCarouselTest.xcodeproj/project.pbxproj similarity index 100% rename from Tests/Scrolling/iCarouselTest.xcodeproj/project.pbxproj rename to TestPrueba/Scrolling/iCarouselTest.xcodeproj/project.pbxproj diff --git a/Tests/Scrolling/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/TestPrueba/Scrolling/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Tests/Scrolling/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to TestPrueba/Scrolling/iCarouselTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Tests/Scrolling/main.m b/TestPrueba/Scrolling/main.m similarity index 100% rename from Tests/Scrolling/main.m rename to TestPrueba/Scrolling/main.m diff --git a/Tests/iCarouselTests/iCarouselTests.swift b/Tests/iCarouselTests/iCarouselTests.swift new file mode 100644 index 0000000000..ce30bd26d5 --- /dev/null +++ b/Tests/iCarouselTests/iCarouselTests.swift @@ -0,0 +1,11 @@ +import XCTest +@testable import iCarousel + +final class iCarouselTests: XCTestCase { + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct + // results. + XCTAssertEqual(iCarousel().text, "Hello, World!") + } +}