cocoapods-packager-ext 0.0.23 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cocoapods-packager-ext/command/package_ext.rb +17 -7
- data/lib/cocoapods-packager-ext/ext/builder.rb +7 -4
- data/lib/cocoapods-packager-ext/ext/pod_utils.rb +1 -1
- data/lib/cocoapods-packager-ext/ext/validator.rb +25 -0
- data/lib/cocoapods-packager-ext/gem_version.rb +1 -1
- data/lib/cocoapods_plugin.rb +1 -0
- metadata +3 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: a4a7c4eb8ea2da2a0ba4062e761774f735b9f876d844a5d496572ca8f8f8ba06
         | 
| 4 | 
            +
              data.tar.gz: 0bd6ff054c0a6a9693a6874f6d49c2756648b49b3a677e1bd0a20b004ee014d9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: d2bea48cee61556923f7f931eda06e82b39424adda0f3b144e4f75eceb3c98dab15aa029ecba464b0c4dc1ed686482f597e57b333c118f468f0e7de1863a381a
         | 
| 7 | 
            +
              data.tar.gz: 1a1d97ad12dee4bbf539c417896b0ebe85867302130a3fa6fc97c8e678597340bb58d2f5d6debdd897ad4150907fb1cc422dbadfbf30b4b797011434b9621db8
         | 
| @@ -65,7 +65,8 @@ module Pod | |
| 65 65 | 
             
                        begin
         | 
| 66 66 | 
             
                            perform_build(platform, static_sandbox, dynamic_sandbox, static_installer)
         | 
| 67 67 | 
             
                        ensure # in case the build fails; see Builder#xcodebuild.
         | 
| 68 | 
            -
                            if  | 
| 68 | 
            +
                            if ENV['ENABLE_BACKUP_WORKSPACE'] && (ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'YES' || ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'TRUE')
         | 
| 69 | 
            +
                            else
         | 
| 69 70 | 
             
                                Pathname.new(config.sandbox_root).rmtree
         | 
| 70 71 | 
             
                                FileUtils.rm_f('Podfile.lock')
         | 
| 71 72 | 
             
                            end
         | 
| @@ -74,12 +75,21 @@ module Pod | |
| 74 75 |  | 
| 75 76 | 
             
                    def spec_library(platform)
         | 
| 76 77 | 
             
                        spec = <<RB
         | 
| 77 | 
            -
              s.#{platform.name}.deployment_target    = '#{platform.deployment_target}'
         | 
| 78 | 
            -
              s.#{platform.name}.vendored_libraries  = ['#{platform}/*.a']
         | 
| 79 | 
            -
              s.#{platform.name}.public_header_files = ['#{platform}/Headers/*.{h}']
         | 
| 80 | 
            -
              s.#{platform.name}.source_files = ['#{platform}/Headers/*.{h}']
         | 
| 81 | 
            -
              s.#{platform.name}.resource = ['#{platform}/Resources/*.bundle']
         | 
| 82 | 
            -
              s.#{platform.name}.module_map   = "#{platform}/Modules/module.modulemap"
         | 
| 78 | 
            +
              s.#{platform.name.to_s}.deployment_target    = '#{platform.deployment_target}'
         | 
| 79 | 
            +
              s.#{platform.name.to_s}.vendored_libraries  = ['#{platform.name.to_s}/*.a']
         | 
| 80 | 
            +
              s.#{platform.name.to_s}.public_header_files = ['#{platform.name.to_s}/Headers/*.{h}']
         | 
| 81 | 
            +
              s.#{platform.name.to_s}.source_files = ['#{platform.name.to_s}/Headers/*.{h}']
         | 
| 82 | 
            +
              s.#{platform.name.to_s}.resource = ['#{platform.name.to_s}/Resources/*.bundle']
         | 
| 83 | 
            +
              s.#{platform.name.to_s}.module_map   = "#{platform.name.to_s}/Modules/module.modulemap"
         | 
| 84 | 
            +
            RB
         | 
| 85 | 
            +
                    end
         | 
| 86 | 
            +
             | 
| 87 | 
            +
                    def spec_framework(platform)
         | 
| 88 | 
            +
                        spec = <<RB
         | 
| 89 | 
            +
              s.#{platform.name.to_s}.public_header_files = ['#{platform.name.to_s}/Headers/*.{h}']
         | 
| 90 | 
            +
              s.#{platform.name.to_s}.source_files = ['#{platform.name.to_s}/**/Headers/*.{h}']
         | 
| 91 | 
            +
              s.#{platform.name.to_s}.resource = ['#{platform.name.to_s}/**/Resources/*.bundle']
         | 
| 92 | 
            +
              s.#{platform.name.to_s}.module_map   = "#{platform.name.to_s}/**/Modules/module.modulemap"
         | 
| 83 93 | 
             
            RB
         | 
| 84 94 | 
             
                    end
         | 
| 85 95 |  | 
| @@ -61,7 +61,7 @@ module Pod | |
| 61 61 | 
             
                end
         | 
| 62 62 |  | 
| 63 63 | 
             
                def ios_build_options
         | 
| 64 | 
            -
                  if ENV['DISABLE_BITCODE']
         | 
| 64 | 
            +
                  if ENV['DISABLE_BITCODE'] && (ENV['DISABLE_BITCODE'].upcase == 'YES' || ENV['DISABLE_BITCODE'].upcase == 'TRUE')
         | 
| 65 65 | 
             
                    "ARCHS=\'#{ios_architectures.join(' ')}\' OTHER_CFLAGS=\'-Qunused-arguments\'"
         | 
| 66 66 | 
             
                  else
         | 
| 67 67 | 
             
                    "ARCHS=\'#{ios_architectures.join(' ')}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
         | 
| @@ -113,7 +113,7 @@ module Pod | |
| 113 113 | 
             
                  copy_headers_to_target @fwk.headers_path
         | 
| 114 114 | 
             
                end
         | 
| 115 115 |  | 
| 116 | 
            -
                def copy_headers_to_target(headers_target_path,module_map_target_path)
         | 
| 116 | 
            +
                def copy_headers_to_target(headers_target_path = nil ,module_map_target_path = nil )
         | 
| 117 117 | 
             
                  headers_target_path = @fwk.headers_path if headers_target_path.nil?
         | 
| 118 118 | 
             
                  module_map_target_path = @fwk.module_map_path if module_map_target_path.nil?
         | 
| 119 119 |  | 
| @@ -167,9 +167,9 @@ MAP | |
| 167 167 |  | 
| 168 168 | 
             
                alias copy_resources_t copy_resources
         | 
| 169 169 | 
             
                def copy_resources
         | 
| 170 | 
            -
                  copy_resources_to_target @fwk.resources_path
         | 
| 170 | 
            +
                  copy_resources_to_target @fwk.resources_path unless @dynamic
         | 
| 171 171 | 
             
                end
         | 
| 172 | 
            -
                def copy_resources_to_target(resources_target_path)
         | 
| 172 | 
            +
                def copy_resources_to_target(resources_target_path = nil )
         | 
| 173 173 | 
             
                  resources_target_path = @fwk.resources_path if resources_target_path.nil?
         | 
| 174 174 | 
             
                  if @exclude_deps
         | 
| 175 175 | 
             
                    bundles = @static_installer.pod_targets.flat_map(&:file_accessors).flat_map{|item|item.resources}
         | 
| @@ -196,6 +196,9 @@ MAP | |
| 196 196 | 
             
                    if resources.count > 0
         | 
| 197 197 | 
             
                      `cp -rp #{resources.join(' ')} #{resources_target_path}`
         | 
| 198 198 | 
             
                    end
         | 
| 199 | 
            +
                    if bundles.count > 0
         | 
| 200 | 
            +
                      `cp -rp #{bundles.join(' ')} #{resources_target_path}`
         | 
| 201 | 
            +
                    end
         | 
| 199 202 | 
             
                  end
         | 
| 200 203 | 
             
                end
         | 
| 201 204 |  | 
| @@ -45,7 +45,7 @@ module Pod | |
| 45 45 | 
             
                        config.build_settings['USER_HEADER_SEARCH_PATHS'] = "$(inherited) #{header_path}"
         | 
| 46 46 | 
             
                        config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -ObjC'
         | 
| 47 47 |  | 
| 48 | 
            -
                        if ENV['DISABLE_BITCODE']
         | 
| 48 | 
            +
                        if ENV['DISABLE_BITCODE'] && (ENV['DISABLE_BITCODE'].upcase == 'YES' || ENV['DISABLE_BITCODE'].upcase == 'TRUE')
         | 
| 49 49 | 
             
                          config.build_settings['ENABLE_BITCODE'] = 'NO'
         | 
| 50 50 | 
             
                        end
         | 
| 51 51 | 
             
                      end
         | 
| @@ -0,0 +1,25 @@ | |
| 1 | 
            +
            require 'pathname'
         | 
| 2 | 
            +
            module Pod
         | 
| 3 | 
            +
              class Validator
         | 
| 4 | 
            +
             | 
| 5 | 
            +
                alias _xcodebuild_t _xcodebuild
         | 
| 6 | 
            +
                def _xcodebuild(command, raise_on_failure = false)
         | 
| 7 | 
            +
                  begin
         | 
| 8 | 
            +
                    _xcodebuild_t(command, raise_on_failure)
         | 
| 9 | 
            +
                  rescue => e
         | 
| 10 | 
            +
                    if ENV['PUSH_BACKUP_PATH']
         | 
| 11 | 
            +
                      for item in command
         | 
| 12 | 
            +
                        if item.include?(".xcworkspace")
         | 
| 13 | 
            +
                          # puts command.join(' ')
         | 
| 14 | 
            +
                          path = Pathname.new(item).parent
         | 
| 15 | 
            +
                          puts path
         | 
| 16 | 
            +
                          `mv #{path} #{ENV['PUSH_BACKUP_PATH']}`
         | 
| 17 | 
            +
                        end
         | 
| 18 | 
            +
                      end
         | 
| 19 | 
            +
                    end
         | 
| 20 | 
            +
                    raise e
         | 
| 21 | 
            +
                  end
         | 
| 22 | 
            +
                end
         | 
| 23 | 
            +
                 
         | 
| 24 | 
            +
              end
         | 
| 25 | 
            +
            end
         | 
    
        data/lib/cocoapods_plugin.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: cocoapods-packager-ext
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.28
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - kyle.zhou
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021-05- | 
| 11 | 
            +
            date: 2021-05-26 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -73,6 +73,7 @@ files: | |
| 73 73 | 
             
            - lib/cocoapods-packager-ext/ext/downloader/lnpath.rb
         | 
| 74 74 | 
             
            - lib/cocoapods-packager-ext/ext/downloader_ext.rb
         | 
| 75 75 | 
             
            - lib/cocoapods-packager-ext/ext/pod_utils.rb
         | 
| 76 | 
            +
            - lib/cocoapods-packager-ext/ext/validator.rb
         | 
| 76 77 | 
             
            - lib/cocoapods-packager-ext/gem_version.rb
         | 
| 77 78 | 
             
            - lib/cocoapods_plugin.rb
         | 
| 78 79 | 
             
            - spec/command/ext_spec.rb
         |