Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • M Meta
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 471
    • Issues 471
    • List
    • Boards
    • Service Desk
    • Milestones
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Platform
  • Meta
  • Issues
  • #4437

Metadata Indexer for CocoaPods (.podspec)

An example .podspec file:

Pod::Spec.new do |spec|
  spec.name          = 'Reachability'
  spec.version       = '3.1.0'
  spec.license       = { :type => 'BSD' }
  spec.homepage      = 'https://github.com/tonymillion/Reachability'
  spec.authors       = { 'Tony Million' => 'tonymillion@gmail.com' }
  spec.summary       = 'ARC and GCD Compatible Reachability Class for iOS and OS X.'
  spec.source        = { :git => 'https://github.com/tonymillion/Reachability.git', :tag => 'v3.1.0' }
  spec.module_name   = 'Rich'
  spec.swift_version = '4.0'

  spec.ios.deployment_target  = '9.0'
  spec.osx.deployment_target  = '10.10'

  spec.source_files       = 'Reachability/common/*.swift'
  spec.ios.source_files   = 'Reachability/ios/*.swift', 'Reachability/extensions/*.swift'
  spec.osx.source_files   = 'Reachability/osx/*.swift'

  spec.framework      = 'SystemConfiguration'
  spec.ios.framework  = 'UIKit'
  spec.osx.framework  = 'AppKit'

  spec.dependency 'SomeOtherPod'
end

Here's what's expected in codemeta:

{
  "@context": "https://raw.githubusercontent.com/SoftwareHeritage/swh-indexer/master/swh/indexer/data/codemeta/codemeta.jsonld",
  "type": "SoftwareSourceCode",
  "author": [
    {
      "type": "Person",
      "name": "Tony Million",
      "email": "tonymillion@gmail.com"
    }
  ],
  "description": "ARC and GCD Compatible Reachability Class for iOS and OS X.",
  "url": "https://github.com/tonymillion/Reachability",
  "codeRepository": "https://github.com/tonymillion/Reachability.git",
  "name": "Reachability",
  "softwareVersion": "3.1.0"
}

Migrated from T4437 (view on Phabricator)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking