Giter Club home page Giter Club logo

cocoapods-azure-universal-packages's Introduction

CocoaPods Azure Universal Packages plugin

This project is a CocoaPods plugin that allows to dowload pods published as Universal Packages in Azure Artifacts feeds.

Getting started

Install the plugin by adding to your Gemfile

gem "cocoapods-azure-universal-packages"

Under the hood the plugin uses the Azure CLI to download the Universal Packages, you can install it running

brew update && brew install azure-cli

Finally, ensure that you are logged in using

az login

How it works

The plugin replaces the default CocoaPods HTTP downloader when a pod source URL points to a universal package and it uses the Azure CLI to perform the download.

Note: The plugin will install the Azure CLI DevOps extension automatically when running pod install or pod update for the first time.

Usage

Add to your Podfile

plugin 'cocoapods-azure-universal-packages', {
    :organization => '{{ORGANIZATION_URL}}'
}

replacing {{ORGANIZATION_URL}} with the base URL of your Azure Artifacts feed (for example: https://pkgs.dev.azure.com/myorg).

Then, in your podspec set the pod's source to

# For project scoped feeds:
spec.source = { :http => '{{ORGANIZATION_URL}}/{{PROJECT}}/_apis/packaging/feeds/{{FEED}}/upack/packages/{{PACKAGE}}/versions/{{VERSION}}' }

# For organization scoped feeds:
spec.source = { :http => '{{ORGANIZATION_URL}}/_apis/packaging/feeds/{{FEED}}/upack/packages/{{PACKAGE}}/versions/{{VERSION}}' }

where:

  • {{ORGANIZATION_URL}} is the URL of your feed's organization
  • {{PROJECT}} is the name of your feed's project (you must specify this only if your feed is a project scoped feed)
  • {{PACKAGE}} is the name of your universal package
  • {{VERSION}} is the version of your universal package

Plugin parameters

Parameter Description
organization The URL of the Azure Artifacts feed's orgnization. Required unless organizations is specified.
organizations An array of URLs of possible Azure Artifacts feeds' organizations. Required unless organization is specified.
update_cli_extension Whether to update the Azure CLI DevOps extensions automatically. Default to false.

Run tests for this plugin

To run the tests, use

rake tests

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

cocoapods-azure-universal-packages's People

Contributors

frugghi avatar microsoft-github-operations[bot] avatar microsoftopensource avatar mitchins avatar sayzenberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocoapods-azure-universal-packages's Issues

Gem::ConflictError with new released cocoapods-downloader-2.0

Hi,

since last week everything was working fine, but unfortunately on 2023-10-26 cocoapods-downloader was released in version 2.0, see https://rubygems.org/gems/cocoapods-downloader/versions/2.0

Since then I get this error when running pod install:
Gem::ConflictError - Unable to activate cocoapods-azure-universal-packages-0.1.0, because cocoapods-downloader-2.0 conflicts with cocoapods-downloader (~> 1.0)

I guess in https://github.com/microsoft/cocoapods-azure-universal-packages/blob/main/cocoapods-azure-universal-packages.gemspec the runtime version dependency to cocoapods-downloader should be updated to 2.0 to stay compatible!?

Please can you try to have a look and fix it?

Thanks
Ben

Not able to install cocoapods from project level feed

  1. Uploaded cocopods project to azure artifacts. This is a project level feed
  2. Followed all the steps mentioned in readme file
  3. Unable to install the pods. Getting this error 'looks like a Azure artifact feed but it's malformed'

After debugging the gem file, azure_universal_package_downloader.db found that on line no 37, aup_uri_components is nil. This is nil because somehow the url is not parsed correctly.

Can anyone help me in this. Or am I missing any steps.

Podspec file addition

Hello,

Is there any sample consumer project available which is able to use it successfully and download universal feed of cocoapds type, using this plugin.

spec.source addition in .Podspec file of consumer project does nothing for me. @Frugghi for your help please.

Thanks,
Pallav Joshi.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.