Skip to content

A simple swift pacage registry service that can be used with Jfrog

Notifications You must be signed in to change notification settings

hollyoops/swiftPM-registry-service

Repository files navigation

SwiftPM registry service

A lightweight swiftPM registry service write by Node. Current this package registry only support for Github packages.

What is SwiftPM registry Service

SwiftPM registry Service is a standard web service interface that it can also use to download dependencies from a package registry. You can use the service to download remote packages with package-registry commands.

You use service with Jfrog as a remote Jfrog smart repository to download and cache github swift packages.

Current service is deploy to: spm-registry-service.onrender.com.

Requirements

  • Xcode 14.1+
  • Node JS

How to use?

  1. Setup the swift registry
swift package-registry set https://spm-registry-service.onrender.com
  1. Change the dependencies
dependencies: [
    // instead of .package(url: "https://github.com/Moya/Moya.git", from: "1.1.0")
   .package(id: "moya.moya", from: "1.1.0")),
   .package(id: "hollyoops.RecoilSwift", exact: "2.0.0")
]
  1. Resolve dependencies
swift package resolve

Run local

pnpm i

set GITHUB_ACCESS_TOKEN="Your github token" && pnpm start

Then the service run on 3001 port

Reference:

About

A simple swift pacage registry service that can be used with Jfrog

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published