cocoapods-meitu-bin 1.4.0 → 2.0.0
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-meitu-bin/config/config.rb +1 -0
 - data/lib/cocoapods-meitu-bin/gem_version.rb +1 -1
 - data/lib/cocoapods-meitu-bin/helpers/buildAll/builder.rb +16 -15
 - data/lib/cocoapods-meitu-bin/helpers/buildAll/podspec_util.rb +1 -1
 - data/lib/cocoapods-meitu-bin/native/installation_options.rb +4 -0
 - data/lib/cocoapods-meitu-bin/native/pod_source_installer.rb +11 -8
 - data/lib/cocoapods-meitu-bin/source_provider_hook.rb +7 -0
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 86aab10f2c27b3bfbdf44ed3b6874b7d6be473bb91dcd8a51c0e5906547d48e6
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: a3b0f074a9ee8c24c8043c558314ea3bdfc3b28d1513e87909717547819b8460
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: '088de3a018fda2b6b9215b61a26e101881fd4ca2a5a1f2ec9c4a9a4773b4ac3d11c4cd880a4ee979fc776a76bb54fcada03ae198b7dc14096903ee8d43a78f1c'
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 7bf240596cded061b4dc3f86006c4e47f4fa9d5613a37b9d2655943ad8c980930e639159737fcd5f4ec5d7564cb5deecf7918ccfacaaf03257bb8a72a1026763
         
     | 
| 
         @@ -352,23 +352,24 @@ ibtool \ 
     | 
|
| 
       352 
352 
     | 
    
         
             
                    fwks_dir = "#{result_product_dir}/fwks"
         
     | 
| 
       353 
353 
     | 
    
         
             
                    FileUtils.mkdir(fwks_dir) unless File.exist?(fwks_dir)
         
     | 
| 
       354 
354 
     | 
    
         
             
                    fwks.map do |fwk|
         
     | 
| 
       355 
     | 
    
         
            -
                       
     | 
| 
       356 
     | 
    
         
            -
                       
     | 
| 
       357 
     | 
    
         
            -
             
     | 
| 
       358 
     | 
    
         
            -
                       
     | 
| 
       359 
     | 
    
         
            -
             
     | 
| 
       360 
     | 
    
         
            -
                       
     | 
| 
       361 
     | 
    
         
            -
             
     | 
| 
       362 
     | 
    
         
            -
                  end
         
     | 
| 
       363 
     | 
    
         
            -
                  def get_XCFrameworkIntermediates_path(path)
         
     | 
| 
       364 
     | 
    
         
            -
                    # 使用正则表达式匹配并提取 AdsFramework
         
     | 
| 
       365 
     | 
    
         
            -
                    match = path.to_s.match(/\/([^\/]+)\.xcframework/)
         
     | 
| 
       366 
     | 
    
         
            -
                    if match
         
     | 
| 
       367 
     | 
    
         
            -
                      framework_path = "#{product_dir}/#{iphoneos}/XCFrameworkIntermediates/#{match[1]}/#{match[1]}.framework"
         
     | 
| 
       368 
     | 
    
         
            -
                      return framework_path
         
     | 
| 
      
 355 
     | 
    
         
            +
                      `rsync -av #{fwk} #{fwks_dir}`
         
     | 
| 
      
 356 
     | 
    
         
            +
                      # new_fwk = get_XCFrameworkIntermediates_path(fwk)
         
     | 
| 
      
 357 
     | 
    
         
            +
                      # if new_fwk && File.exist?(new_fwk)
         
     | 
| 
      
 358 
     | 
    
         
            +
                      #   `rsync -av #{new_fwk} #{fwks_dir}`
         
     | 
| 
      
 359 
     | 
    
         
            +
                      # else
         
     | 
| 
      
 360 
     | 
    
         
            +
                      #   `rsync -av #{fwk} #{fwks_dir}`
         
     | 
| 
      
 361 
     | 
    
         
            +
                      # end
         
     | 
| 
       369 
362 
     | 
    
         
             
                    end
         
     | 
| 
       370 
     | 
    
         
            -
                    return  nil
         
     | 
| 
       371 
363 
     | 
    
         
             
                  end
         
     | 
| 
      
 364 
     | 
    
         
            +
                  # def get_XCFrameworkIntermediates_path(path)
         
     | 
| 
      
 365 
     | 
    
         
            +
                  #   # 使用正则表达式匹配并提取 AdsFramework
         
     | 
| 
      
 366 
     | 
    
         
            +
                  #   match = path.to_s.match(/\/([^\/]+)\.xcframework/)
         
     | 
| 
      
 367 
     | 
    
         
            +
                  #   if match
         
     | 
| 
      
 368 
     | 
    
         
            +
                  #     framework_path = "#{product_dir}/#{iphoneos}/XCFrameworkIntermediates/#{match[1]}/#{match[1]}.framework"
         
     | 
| 
      
 369 
     | 
    
         
            +
                  #     return framework_path
         
     | 
| 
      
 370 
     | 
    
         
            +
                  #   end
         
     | 
| 
      
 371 
     | 
    
         
            +
                  #   return  nil
         
     | 
| 
      
 372 
     | 
    
         
            +
                  # end
         
     | 
| 
       372 
373 
     | 
    
         | 
| 
       373 
374 
     | 
    
         
             
                  # 拷贝 framework
         
     | 
| 
       374 
375 
     | 
    
         
             
                  def copy_framework
         
     | 
| 
         @@ -27,7 +27,7 @@ module CBin 
     | 
|
| 
       27 
27 
     | 
    
         
             
                    # 处理vendored_libraries和vendored_frameworks
         
     | 
| 
       28 
28 
     | 
    
         
             
                    spec['vendored_libraries'] = "#{root_dir}/libs/*.a"
         
     | 
| 
       29 
29 
     | 
    
         
             
                    #兼容.xcframework
         
     | 
| 
       30 
     | 
    
         
            -
                    spec['vendored_frameworks'] = %W[#{root_dir} #{root_dir}/fwks/*.framework]
         
     | 
| 
      
 30 
     | 
    
         
            +
                    spec['vendored_frameworks'] = %W[#{root_dir} #{root_dir}/fwks/*.{framework,xcframework}]
         
     | 
| 
       31 
31 
     | 
    
         
             
                    # 处理资源
         
     | 
| 
       32 
32 
     | 
    
         
             
                    resources = %W[#{root_dir}/*.{#{special_resource_exts.join(',')}} #{root_dir}/resources/*]
         
     | 
| 
       33 
33 
     | 
    
         
             
                    spec['resources'] = resources
         
     | 
| 
         @@ -6,14 +6,17 @@ module Pod 
     | 
|
| 
       6 
6 
     | 
    
         
             
              class Installer
         
     | 
| 
       7 
7 
     | 
    
         
             
                class PodSourceInstaller
         
     | 
| 
       8 
8 
     | 
    
         
             
                  attr_accessor :installation_options
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
                  alias old_verify_source_is_secure verify_source_is_secure
         
     | 
| 
       11 
     | 
    
         
            -
                  def verify_source_is_secure(root_spec)
         
     | 
| 
       12 
     | 
    
         
            -
                    # http source 默认不警告
         
     | 
| 
       13 
     | 
    
         
            -
                    if installation_options.warn_for_unsecure_source?
         
     | 
| 
       14 
     | 
    
         
            -
                      old_verify_source_is_secure(root_spec)
         
     | 
| 
       15 
     | 
    
         
            -
                    end
         
     | 
| 
       16 
     | 
    
         
            -
                  end
         
     | 
| 
       17 
9 
     | 
    
         
             
                end
         
     | 
| 
      
 10 
     | 
    
         
            +
                # class PodSourceDownloader
         
     | 
| 
      
 11 
     | 
    
         
            +
                #   attr_accessor :installation_options
         
     | 
| 
      
 12 
     | 
    
         
            +
                #
         
     | 
| 
      
 13 
     | 
    
         
            +
                #   alias old_verify_source_is_secure verify_source_is_secure
         
     | 
| 
      
 14 
     | 
    
         
            +
                #   def verify_source_is_secure(root_spec)
         
     | 
| 
      
 15 
     | 
    
         
            +
                #     # http source 默认不警告
         
     | 
| 
      
 16 
     | 
    
         
            +
                #     if installation_options.warn_for_unsecure_source?
         
     | 
| 
      
 17 
     | 
    
         
            +
                #       old_verify_source_is_secure(root_spec)
         
     | 
| 
      
 18 
     | 
    
         
            +
                #     end
         
     | 
| 
      
 19 
     | 
    
         
            +
                #   end
         
     | 
| 
      
 20 
     | 
    
         
            +
                # end
         
     | 
| 
       18 
21 
     | 
    
         
             
              end
         
     | 
| 
       19 
22 
     | 
    
         
             
            end
         
     | 
| 
         @@ -203,6 +203,13 @@ Pod::HooksManager.register('cocoapods-meitu-bin', :pre_install) do |_context| 
     | 
|
| 
       203 
203 
     | 
    
         
             
              Pod::UI.puts "当前configuration: `#{ENV['configuration'] || Pod::Config.instance.podfile.configuration}`".green
         
     | 
| 
       204 
204 
     | 
    
         
             
              # pod bin repo update 更新二进制私有源
         
     | 
| 
       205 
205 
     | 
    
         
             
              Pod::Command::Bin::Repo::Update.new(CLAide::ARGV.new($ARGV)).run
         
     | 
| 
      
 206 
     | 
    
         
            +
              #获取analyzer中所有git 且branch 指向的pod
         
     | 
| 
      
 207 
     | 
    
         
            +
              Pod::Config.instance.podfile.dependencies.map do |dependency|
         
     | 
| 
      
 208 
     | 
    
         
            +
                if dependency.external_source && dependency.external_source[:git] && (dependency.external_source[:branch] || (dependency.external_source.size == 1))
         
     | 
| 
      
 209 
     | 
    
         
            +
                  #brash 指定的组件添加到全局PodUpdateConfig配置中,执行pod install 需要更新的分支最新提交
         
     | 
| 
      
 210 
     | 
    
         
            +
                  PodUpdateConfig.add_value(dependency.name)
         
     | 
| 
      
 211 
     | 
    
         
            +
                end
         
     | 
| 
      
 212 
     | 
    
         
            +
              end
         
     | 
| 
       206 
213 
     | 
    
         
             
              content = File.read(Pod::Config.instance.podfile_path)
         
     | 
| 
       207 
214 
     | 
    
         
             
              if content
         
     | 
| 
       208 
215 
     | 
    
         
             
                if content.include?("target \"MTXX\"")
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: cocoapods-meitu-bin
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version:  
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.0.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Jensen
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-10-17 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: parallel
         
     |