Sha256: d4d203a0a7bfc0d7ea7b31324884e3a3f317dda9f16413d61bdc3ac714fb998f

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

require "fileutils"

class XCFrameworkCarthageArchive < CarthageArchive

  # Compresses `Carthage/Build/GoogleSignIn.xcframework``
  # into `GoogleSignIn-iOS.zip`.`
  def compress_archive(shell, carthage_build_dir = CARTHAGE_BUILD_DIR)
    $LOG.debug("Archiving #{@framework_name} for #{@platform}")

    framework_path = File.join(carthage_build_dir, "#{@framework_name}.xcframework")
    raise MissingFrameworkDirectoryError.new, "Archive can't be created, no xcframework directory at #{framework_path}" unless Dir.exist?(framework_path)

    delete_archive
    shell.archive([framework_path], @archive_path)
    $LOG.debug("Created #{@archive_path} archive, file size: #{formatted_archive_size}")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
carthage_remote_cache-0.0.13 lib/xcframework_carthage_archive.rb
carthage_remote_cache-0.0.12 lib/xcframework_carthage_archive.rb
carthage_remote_cache-0.0.11 lib/xcframework_carthage_archive.rb