Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require way to set extended podspec values #615

Open
kebernet opened this issue Apr 19, 2016 · 1 comment
Open

Require way to set extended podspec values #615

kebernet opened this issue Apr 19, 2016 · 1 comment

Comments

@kebernet
Copy link

Authors, License and other values are now warnings and errors from cococapods. Need a way to configure these.

@mithepner
Copy link

I found a work around for this. I adapted a solution from @zasadnyy on issue #596.

add this to your shared/build.gradle

j2objcPodspec.doLast {
    println('Modifying generated podspecs to be able to run pod install')
    [getPodspecDebug(), getPodspecRelease()].asList().each {
        File podspec = it

        String text = podspec.text.replace(
                "Pod::Spec.new do |spec|",
                '''Pod::Spec.new do |spec|
  spec.authors = 'authors'
  spec.license = 'license'
  spec.homepage = 'homepage'
  spec.source = { :git => '[email protected]:your/repo.git' }''')
        podspec.write(text)
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants