Yalantis / Koloda

KolodaView is a class designed to simplify the implementation of Tinder like cards on iOS.
https://yalantis.com
MIT License
5.37k stars 805 forks source link

[Add] Package.swift #480

Open Wei18 opened 2 years ago

Wei18 commented 2 years ago

As title, create Package.swift and binaryTarget pop.

About pop.zip

This script performs the following steps:

  1. Install Dependencies: Runs bundle install to set up Ruby dependencies.
  2. Clean Up: Removes previous builds and cache.
  3. Build Frameworks:
    • For iOS (arm64): Runs pod install and Rugby, then stores in popFrameworks/ios-arm64.
    • For Simulator (arm64): Builds and stores in popFrameworks/sim-arm64.
    • For Simulator (x86_64): Builds and stores in popFrameworks/sim-x86_64.
  4. Combine Architectures: Uses lipo to merge arm64 and x86_64 binaries into a single framework.
  5. Create XCFramework: Uses xcodebuild to bundle the iOS and simulator frameworks into pop.xcframework.

The resulting .xcframework is suitable for Xcode projects targeting both iOS devices and simulators.

For more details, you can download this file for reference to the source code: https://github.com/Wei18/pop/releases/download/1.0.12/setup-pop-zip.zip

Special thanks to @swiftyfinch:

N-ihad commented 1 year ago

Why is no one merging it?

N-ihad commented 1 year ago

By the way @Wei18 you sure about minimum version of Swift in Package.swift being 5.7?

// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
Wei18 commented 1 year ago

By the way @Wei18 you sure about minimum version of Swift in Package.swift being 5.7?


// swift-tools-version: 5.7

// The swift-tools-version declares the minimum version of Swift required to build this package.

Not the minimum but current. The SwiftPackage is still developing and closing stability, so I think that others developers should follow the latest tools version. It's okay to commit other tools version of Package.swift

swiftyfinch commented 1 month ago

@Wei18 Happy to hear it)