Page MenuHomeSoftware Heritage

Metadata Indexer for CocoaPods (.podspec)
Closed, MigratedEdits Locked

Description

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"
}

Event Timeline

VickyMerzOwn created this task.
VickyMerzOwn created this object in space S1 Public.