-
- All Implemented Interfaces:
public class CocoapodsExtension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CocoapodsExtension.CocoapodsDependency
public final class
CocoapodsExtension.PodspecPlatformSettings
public final class
CocoapodsExtension.SpecRepos
public class
CocoapodsExtension.Companion
-
Field Summary
Fields Modifier and Type Field Description private String
version
private String
authors
private File
podfile
private String
name
private String
license
private String
summary
private String
homepage
private String
source
private Map<String, String>
extraSpecAttributes
private final CocoapodsExtension.PodspecPlatformSettings
ios
private final CocoapodsExtension.PodspecPlatformSettings
osx
private final CocoapodsExtension.PodspecPlatformSettings
tvos
private final CocoapodsExtension.PodspecPlatformSettings
watchos
private String
frameworkName
private final Map<String, NativeBuildType>
xcodeConfigurationToNativeBuildType
private File
publishDir
private final List<CocoapodsExtension.CocoapodsDependency>
podsAsTaskInput
private final NamedDomainObjectSet<CocoapodsExtension.CocoapodsDependency>
pods
-
Constructor Summary
Constructors Constructor Description CocoapodsExtension(Project project)
-
Method Summary
Modifier and Type Method Description final String
getVersion()
Configure version of the pod final Unit
setVersion(String version)
Configure version of the pod final String
getAuthors()
Configure authors of the pod built from this project. final Unit
setAuthors(String authors)
Configure authors of the pod built from this project. final File
getPodfile()
Configure existing file Podfile
.final Unit
setPodfile(File podfile)
Configure existing file Podfile
.final String
getName()
Configure name of the pod built from this project. final Unit
setName(String name)
Configure name of the pod built from this project. final String
getLicense()
Configure license of the pod built from this project. final Unit
setLicense(String license)
Configure license of the pod built from this project. final String
getSummary()
Configure description of the pod built from this project. final Unit
setSummary(String summary)
Configure description of the pod built from this project. final String
getHomepage()
Configure homepage of the pod built from this project. final Unit
setHomepage(String homepage)
Configure homepage of the pod built from this project. final String
getSource()
Configure location of the pod built from this project. final Unit
setSource(String source)
Configure location of the pod built from this project. final Map<String, String>
getExtraSpecAttributes()
Configure other podspec attributes final Unit
setExtraSpecAttributes(Map<String, String> extraSpecAttributes)
Configure other podspec attributes final CocoapodsExtension.PodspecPlatformSettings
getIos()
final CocoapodsExtension.PodspecPlatformSettings
getOsx()
final CocoapodsExtension.PodspecPlatformSettings
getTvos()
final CocoapodsExtension.PodspecPlatformSettings
getWatchos()
final String
getFrameworkName()
final Unit
setFrameworkName(@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 File
getPublishDir()
Configure output directory for pod publishing final Unit
setPublishDir(File publishDir)
Configure output directory for pod publishing final List<CocoapodsExtension.CocoapodsDependency>
getPodsAsTaskInput()
final NamedDomainObjectSet<CocoapodsExtension.CocoapodsDependency>
getPods()
final Unit
noPodspec()
Setup plugin not to produce podspec file for cocoapods section final Unit
useLibraries()
Setup plugin to generate synthetic xcodeproj compatible with static libraries final Unit
framework(Function1<Framework, Unit> configure)
Configure framework of the pod built from this project. final Unit
framework(Action<Framework> configure)
Configure framework of the pod built from this project. final Unit
pod(String name, String version, File path, String moduleName)
Add a CocoaPods dependency to the pod built from this project. final Unit
pod(String name, String version, File path)
Add a CocoaPods dependency to the pod built from this project. final Unit
pod(String name, String version)
Add a CocoaPods dependency to the pod built from this project. final Unit
pod(String name)
Add a CocoaPods dependency to the pod built from this project. final Unit
pod(String name, Function1<CocoapodsExtension.CocoapodsDependency, Unit> configure)
Add a CocoaPods dependency to the pod built from this project. final Unit
pod(String name, Closure<?> configure)
Add a CocoaPods dependency to the pod built from this project. final Unit
specRepos(Function1<CocoapodsExtension.SpecRepos, Unit> configure)
Add spec repositories (note that spec repository is different from usual git repository). final Unit
specRepos(Closure<?> 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)
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, Closure<?> 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(Closure<?> 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.
-
-