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!") + } +}