Class AppleBundleDescriptionArg

    • Method Detail

      • getBinary

        public Optional<BuildTarget> getBinary()
        Returns:
        The value of the binary attribute
      • getIbtoolModuleFlag

        public Optional<Boolean> getIbtoolModuleFlag()
        Returns:
        The value of the ibtoolModuleFlag attribute
      • getIbtoolFlags

        public Optional<com.google.common.collect.ImmutableList<String>> getIbtoolFlags()
        Returns:
        The value of the ibtoolFlags attribute
      • getResourceGroupMap

        public Optional<com.google.common.collect.ImmutableList<CxxLinkGroupMapping>> getResourceGroupMap()
        Returns:
        The value of the resourceGroupMap attribute
      • getResourceGroup

        public Optional<String> getResourceGroup()
        Returns:
        The value of the resourceGroup attribute
      • getDeps

        public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
        Specified by:
        getDeps in interface HasDeclaredDeps
        Returns:
        The value of the deps attribute
      • getLicenses

        public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
        Specified by:
        getLicenses in interface BuildRuleArg
        Returns:
        The value of the licenses attribute
      • getLabels

        public com.google.common.collect.ImmutableSortedSet<String> getLabels()
        Specified by:
        getLabels in interface BuildRuleArg
        Returns:
        The value of the labels attribute
      • getDefaultTargetPlatform

        public Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
        The name of build target default "new" platform: it is used when a platform is not specified either globally or in a target which used this target as a dependency.

        The value is a build target, but we specify it as string, because this function is not actually called, but the attr is fetched by name from the raw (unconfigured) target node.

        Specified by:
        getDefaultTargetPlatform in interface BuildRuleArg
      • getCodesignFlags

        public com.google.common.collect.ImmutableList<String> getCodesignFlags()
        Specified by:
        getCodesignFlags in interface HasAppleCodesignFields
        Returns:
        Additional flags passed to the underlying codesign tool. For example, this can be used to sign deep macOS frameworks using "--deep".
      • getCodesignIdentity

        public Optional<String> getCodesignIdentity()
        Specified by:
        getCodesignIdentity in interface HasAppleCodesignFields
        Returns:
        A codesign identity that will be used for adhoc signing (i.e., on platforms like macOS and simulators). This field can be used to sign with Developer ID on macOS.
      • getContacts

        public com.google.common.collect.ImmutableSortedSet<String> getContacts()
        Specified by:
        getContacts in interface HasContacts
        Returns:
        The value of the contacts attribute
      • getDefaultPlatform

        public Optional<Flavor> getDefaultPlatform()
        Specified by:
        getDefaultPlatform in interface HasDefaultPlatform
        Returns:
        If present, the default platform with which to build this target if none are provided on the command line.
      • getTests

        public com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
        Specified by:
        getTests in interface HasTests
        Returns:
        A list of tests of this target.
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of AppleBundleDescriptionArg that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: binary, platformBinary, ibtoolModuleFlag, ibtoolFlags, resourceGroupMap, resourceGroup, deps, licenses, labels, defaultTargetPlatform, compatibleWith, name, extension, infoPlist, productName, xcodeProductType, isAppClip, infoPlistSubstitutions, assetCatalogsCompilationOptions, codesignFlags, codesignIdentity, contacts, defaultPlatform, tests.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value AppleBundleDescriptionArg with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • getBinaryTargets

        public default com.google.common.collect.ImmutableSortedSet<BuildTarget> getBinaryTargets()
        Returns all binary targets of this bundle, which includes default and platform-specific ones.