Class AppleResourceProcessing


  • public class AppleResourceProcessing
    extends Object
    Contains shared logic for adding resource processing steps to apple build rules
    • Field Detail

      • BASE_IBTOOL_FLAGS

        public static final com.google.common.collect.ImmutableList<String> BASE_IBTOOL_FLAGS
    • Method Detail

      • addStoryboardProcessingSteps

        public static void addStoryboardProcessingSteps​(SourcePathResolverAdapter resolver,
                                                        Path sourcePath,
                                                        Path destinationPath,
                                                        com.google.common.collect.ImmutableList.Builder<Step> stepsBuilder,
                                                        com.google.common.collect.ImmutableList<String> ibtoolFlags,
                                                        boolean isLegacyWatchApp,
                                                        ApplePlatform platform,
                                                        ProjectFilesystem projectFilesystem,
                                                        Logger LOG,
                                                        Tool ibtool,
                                                        boolean ibtoolModuleFlag,
                                                        BuildTarget buildTarget,
                                                        Optional<String> binaryName)
        Add Storyboard processing ibtool steps to a build rule
      • addVariantFileProcessingSteps

        public static void addVariantFileProcessingSteps​(AppleBundleResources resources,
                                                         BuildContext context,
                                                         Path dirRoot,
                                                         com.facebook.buck.apple.AppleBundleDestinations destinations,
                                                         com.google.common.collect.ImmutableList.Builder<Step> stepsBuilder,
                                                         ProjectFilesystem projectFilesystem,
                                                         com.google.common.collect.ImmutableList<String> ibtoolFlags,
                                                         boolean isLegacyWatchApp,
                                                         ApplePlatform platform,
                                                         Logger LOG,
                                                         Tool ibtool,
                                                         boolean ibtoolModuleFlag,
                                                         BuildTarget buildTarget,
                                                         Optional<String> binaryName)
        Adds Variant file processing steps to a build rule
      • addFrameworksProcessingSteps

        public static void addFrameworksProcessingSteps​(Set<SourcePath> frameworks,
                                                        Path dirRoot,
                                                        com.facebook.buck.apple.AppleBundleDestinations destinations,
                                                        com.google.common.collect.ImmutableList.Builder<Step> stepsBuilder,
                                                        BuildContext context,
                                                        ProjectFilesystem projectFilesystem,
                                                        com.google.common.collect.ImmutableList.Builder<Path> codeSignOnCopyPathsBuilder)
        Adds framework processing steps to a build rule
      • addSwiftStdlibStepIfNeeded

        public static void addSwiftStdlibStepIfNeeded​(SourcePathResolverAdapter resolver,
                                                      Path destinationPath,
                                                      Path bundleRoot,
                                                      Optional<java.util.function.Supplier<CodeSignIdentity>> codeSignIdentitySupplier,
                                                      com.google.common.collect.ImmutableList.Builder<Step> stepsBuilder,
                                                      boolean isForPackaging,
                                                      String bundleExtension,
                                                      boolean copySwiftStdlibToFrameworks,
                                                      boolean useLipoThin,
                                                      Optional<Tool> swiftStdlibTool,
                                                      ProjectFilesystem projectFilesystem,
                                                      BuildTarget buildTarget,
                                                      Path sdkPath,
                                                      Tool lipo,
                                                      Path bundleBinaryPath,
                                                      com.facebook.buck.apple.AppleBundleDestinations destinations,
                                                      boolean isAppClip)
        Adds the swift stdlib to the bundle if needed
      • addStepsToCopyResources

        public static void addStepsToCopyResources​(BuildContext context,
                                                   com.google.common.collect.ImmutableList.Builder<Step> stepsBuilder,
                                                   com.google.common.collect.ImmutableList.Builder<Path> codeSignOnCopyPathsBuilder,
                                                   AppleBundleResources resources,
                                                   boolean verifyResources,
                                                   Path dirRoot,
                                                   com.facebook.buck.apple.AppleBundleDestinations destinations,
                                                   ProjectFilesystem projectFilesystem,
                                                   com.google.common.collect.ImmutableList<String> ibtoolFlags,
                                                   boolean isLegacyWatchApp,
                                                   ApplePlatform platform,
                                                   Logger LOG,
                                                   Tool ibtool,
                                                   boolean ibtoolModuleFlag,
                                                   BuildTarget buildTarget,
                                                   Optional<String> binaryName)
        Adds required copy resources steps