-
- All Implemented Interfaces:
public abstract class CocoapodsExtension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classCocoapodsExtension.CocoapodsDependencypublic final classCocoapodsExtension.PodspecPlatformSettingspublic final classCocoapodsExtension.SpecRepospublic classCocoapodsExtension.Companion
-
Field Summary
Fields Modifier and Type Field Description private Stringversionprivate Stringauthorsprivate Filepodfileprivate Stringnameprivate Stringlicenseprivate Stringsummaryprivate Stringhomepageprivate Stringsourceprivate Map<String, String>extraSpecAttributesprivate final CocoapodsExtension.PodspecPlatformSettingsiosprivate final CocoapodsExtension.PodspecPlatformSettingsosxprivate final CocoapodsExtension.PodspecPlatformSettingstvosprivate final CocoapodsExtension.PodspecPlatformSettingswatchosprivate StringframeworkNameprivate final Map<String, NativeBuildType>xcodeConfigurationToNativeBuildTypeprivate FilepublishDirprivate final List<CocoapodsExtension.CocoapodsDependency>podsAsTaskInputprivate final NamedDomainObjectSet<CocoapodsExtension.CocoapodsDependency>pods
-
Constructor Summary
Constructors Constructor Description CocoapodsExtension(Project project)
-
Method Summary
Modifier and Type Method Description final StringgetVersion()Configure version of the pod final UnitsetVersion(String version)Configure version of the pod final StringgetAuthors()Configure authors of the pod built from this project. final UnitsetAuthors(String authors)Configure authors of the pod built from this project. final FilegetPodfile()Configure existing file Podfile.final UnitsetPodfile(File podfile)Configure existing file Podfile.final StringgetName()Configure name of the pod built from this project. final UnitsetName(String name)Configure name of the pod built from this project. final StringgetLicense()Configure license of the pod built from this project. final UnitsetLicense(String license)Configure license of the pod built from this project. final StringgetSummary()Configure description of the pod built from this project. final UnitsetSummary(String summary)Configure description of the pod built from this project. final StringgetHomepage()Configure homepage of the pod built from this project. final UnitsetHomepage(String homepage)Configure homepage of the pod built from this project. final StringgetSource()Configure location of the pod built from this project. final UnitsetSource(String source)Configure location of the pod built from this project. final Map<String, String>getExtraSpecAttributes()Configure other podspec attributes final UnitsetExtraSpecAttributes(Map<String, String> extraSpecAttributes)Configure other podspec attributes final CocoapodsExtension.PodspecPlatformSettingsgetIos()final CocoapodsExtension.PodspecPlatformSettingsgetOsx()final CocoapodsExtension.PodspecPlatformSettingsgetTvos()final CocoapodsExtension.PodspecPlatformSettingsgetWatchos()final StringgetFrameworkName()final UnitsetFrameworkName(@Deprecated(message = "Use 'baseName' property within framework{} block to configure framework name") String frameworkName)final Map<String, NativeBuildType>getXcodeConfigurationToNativeBuildType()Configure custom Xcode Configurations to Native Build Types mapping final FilegetPublishDir()Configure output directory for pod publishing final UnitsetPublishDir(File publishDir)Configure output directory for pod publishing final List<CocoapodsExtension.CocoapodsDependency>getPodsAsTaskInput()final NamedDomainObjectSet<CocoapodsExtension.CocoapodsDependency>getPods()final UnitnoPodspec()Setup plugin not to produce podspec file for cocoapods section final UnituseLibraries()Setup plugin to generate synthetic xcodeproj compatible with static libraries final Unitframework(Function1<Framework, Unit> configure)Configure framework of the pod built from this project. final Unitframework(Action<Framework> configure)Configure framework of the pod built from this project. final Unitpod(String name, String version, File path, String moduleName, String headers)Add a CocoaPods dependency to the pod built from this project. final Unitpod(String name, String version, File path, String moduleName)Add a CocoaPods dependency to the pod built from this project. final Unitpod(String name, String version, File path)Add a CocoaPods dependency to the pod built from this project. final Unitpod(String name, String version)Add a CocoaPods dependency to the pod built from this project. final Unitpod(String name)Add a CocoaPods dependency to the pod built from this project. final Unitpod(String name, Function1<CocoapodsExtension.CocoapodsDependency, Unit> configure)Add a CocoaPods dependency to the pod built from this project. final Unitpod(String name, Action<CocoapodsExtension.CocoapodsDependency> configure)Add a CocoaPods dependency to the pod built from this project. final UnitspecRepos(Function1<CocoapodsExtension.SpecRepos, Unit> configure)Add spec repositories (note that spec repository is different from usual git repository). final UnitspecRepos(Action<CocoapodsExtension.SpecRepos> configure)Add spec repositories (note that spec repository is different from usual git repository). -
-
Method Detail
-
getVersion
final String getVersion()
Configure version of the pod
-
setVersion
final Unit setVersion(String version)
Configure version of the pod
-
getAuthors
final String getAuthors()
Configure authors of the pod built from this project.
-
setAuthors
final Unit setAuthors(String authors)
Configure authors of the pod built from this project.
-
getPodfile
final File getPodfile()
Configure existing file
Podfile.
-
setPodfile
final Unit setPodfile(File podfile)
Configure existing file
Podfile.
-
getLicense
final String getLicense()
Configure license of the pod built from this project.
-
setLicense
final Unit setLicense(String license)
Configure license of the pod built from this project.
-
getSummary
final String getSummary()
Configure description of the pod built from this project.
-
setSummary
final Unit setSummary(String summary)
Configure description of the pod built from this project.
-
getHomepage
final String getHomepage()
Configure homepage of the pod built from this project.
-
setHomepage
final Unit setHomepage(String homepage)
Configure homepage of the pod built from this project.
-
setSource
final Unit setSource(String source)
Configure location of the pod built from this project.
-
getExtraSpecAttributes
final Map<String, String> getExtraSpecAttributes()
Configure other podspec attributes
-
setExtraSpecAttributes
final Unit setExtraSpecAttributes(Map<String, String> extraSpecAttributes)
Configure other podspec attributes
-
getIos
final CocoapodsExtension.PodspecPlatformSettings getIos()
-
getOsx
final CocoapodsExtension.PodspecPlatformSettings getOsx()
-
getTvos
final CocoapodsExtension.PodspecPlatformSettings getTvos()
-
getWatchos
final CocoapodsExtension.PodspecPlatformSettings getWatchos()
-
getFrameworkName
final String getFrameworkName()
-
setFrameworkName
final Unit setFrameworkName(@Deprecated(message = "Use 'baseName' property within framework{} block to configure framework name") String frameworkName)
-
getXcodeConfigurationToNativeBuildType
final Map<String, NativeBuildType> getXcodeConfigurationToNativeBuildType()
Configure custom Xcode Configurations to Native Build Types mapping
-
getPublishDir
final File getPublishDir()
Configure output directory for pod publishing
-
setPublishDir
final Unit setPublishDir(File publishDir)
Configure output directory for pod publishing
-
getPodsAsTaskInput
final List<CocoapodsExtension.CocoapodsDependency> getPodsAsTaskInput()
-
getPods
final NamedDomainObjectSet<CocoapodsExtension.CocoapodsDependency> getPods()
-
useLibraries
final Unit useLibraries()
Setup plugin to generate synthetic xcodeproj compatible with static libraries
-
framework
final Unit framework(Function1<Framework, Unit> configure)
Configure framework of the pod built from this project.
-
framework
final Unit framework(Action<Framework> configure)
Configure framework of the pod built from this project.
-
pod
final Unit pod(String name, String version, File path, String moduleName, String headers)
Add a CocoaPods dependency to the pod built from this project.
-
pod
final Unit pod(String name, String version, File path, String moduleName)
Add a CocoaPods dependency to the pod built from this project.
-
pod
final Unit pod(String name, String version, File path)
Add a CocoaPods dependency to the pod built from this project.
-
pod
final Unit pod(String name, String version)
Add a CocoaPods dependency to the pod built from this project.
-
pod
final Unit pod(String name, Function1<CocoapodsExtension.CocoapodsDependency, Unit> configure)
Add a CocoaPods dependency to the pod built from this project.
-
pod
final Unit pod(String name, Action<CocoapodsExtension.CocoapodsDependency> configure)
Add a CocoaPods dependency to the pod built from this project.
-
specRepos
final Unit specRepos(Function1<CocoapodsExtension.SpecRepos, Unit> configure)
Add spec repositories (note that spec repository is different from usual git repository). Please refer to <a href="https://guides.cocoapods.org/making/private-cocoapods.html">cocoapods documentation</a> for additional information. Default sources (cdn.cocoapods.org) implicitly included.
-
specRepos
final Unit specRepos(Action<CocoapodsExtension.SpecRepos> configure)
Add spec repositories (note that spec repository is different from usual git repository). Please refer to <a href="https://guides.cocoapods.org/making/private-cocoapods.html">cocoapods documentation</a> for additional information. Default sources (cdn.cocoapods.org) implicitly included.
-
-
-
-