Swiftpack.co - bartosz-treeline/GooglePlaces as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by bartosz-treeline.
bartosz-treeline/GooglePlaces remove
GooglePlaces framework packed as a swift package
⭐️ 1
🕓 1 year ago
.package(url: "https://github.com/bartosz-treeline/GooglePlaces.git", from: "remove")

GooglePlaces

GooglePlaces framework packed as a swift package

Steps to create SPM package

  1. Download the code from https://github.com/YAtechnologies/GoogleMaps-SP
  2. Update the Cartfile to have only GooglePlaces reference, so the carthage downloads only the GooglePlaces framework. Update the version to the desired one, e.g.: 6.2.1-beta.
  3. Update the make_xcframework.sh script to process only GooglePlaces framework.
  4. Use bash ./make_xcframework.sh -g in order to fetch the framework and make xcframework out of it.
  5. Make some adjustments inside the xcframework:
  • move *.bundle one directory up, out of Resources directory
  • remove Resources directory
  • remove Info.plist from the *.bundle directory
  • make the binary inside the *.framework an executable by invoking chmod +x <binary>
  • add simplified Info.plist inside the *.framework directory (see Releases for reference)
  1. Comment out the carthage step, so the carthage does not download the binary and override made changes
  2. Run bash ./make_xcframework.sh -g to create xcframework once again
  3. Use the Build folder (zip * checksum inside) to distribute the framework as a swift package.

Reference

https://github.com/firebase/firebase-ios-sdk/blob/master/Package.swift https://github.com/PSPDFKit/PSPDFKit-SP/blob/master/Package.swift https://github.com/YAtechnologies/GoogleMaps-SP/blob/main/Package.swift

GitHub

link
Stars: 1
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics