pod-builder 5.0.0 → 5.1.1
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/README.md +9 -0
- data/lib/pod_builder/configuration.rb +8 -1
- data/lib/pod_builder/install.rb +15 -0
- data/lib/pod_builder/rome/post_install.rb +1 -1
- data/lib/pod_builder/version.rb +1 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 6e761d8fa097790ad9ff4e292ba83ba8e9673b82c21eee69122a8e34063659f0
         | 
| 4 | 
            +
              data.tar.gz: 5e31d711b5910b0a5ae1f2667a114f219f7f93614e819d19e255a9864ffa9fcd
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 74f2b675929b005266ddb41c0809941dd984cec4f6f4148cdf615c54e6367f34d5d7431c6a140545431f9f6ef30e08eb77efcd4963133134fea6c2089badebc6
         | 
| 7 | 
            +
              data.tar.gz: 944835d7249f5ff560af5668ad0798025d32f7172b0d0f40675b7b9b67ae96147ba06483f3ec1a7f061f4eb16e3694e874aeea9862e1717b5276b9e6556beef0
         | 
    
        data/README.md
    CHANGED
    
    | @@ -203,6 +203,15 @@ _PodBuilder.json_ allows some advanced customizations. | |
| 203 203 |  | 
| 204 204 | 
             
            ## Supported keys
         | 
| 205 205 |  | 
| 206 | 
            +
            #### `development_team`
         | 
| 207 | 
            +
             | 
| 208 | 
            +
            Starting with Xcode 14 it is mandatory to sign both frameworks and framework bundles. PodBuilder will try to automatically extract the developer team from the application, however there are cases where this will fail and the development_team needs to be added explicitly in the configuration file.
         | 
| 209 | 
            +
             | 
| 210 | 
            +
             | 
| 211 | 
            +
            #### `development_language`
         | 
| 212 | 
            +
             | 
| 213 | 
            +
            Starting with Xcode 14, when the main language is different than english, it might be necessary to explicitly set the default app language to properly localize app's extensions. Use the ISO 639-1 code.
         | 
| 214 | 
            +
             | 
| 206 215 | 
             
            #### `spec_overrides`
         | 
| 207 216 |  | 
| 208 217 | 
             
            This hash allows to add/replace keys in a podspec specification. This can be useful to solve compilation issue or change compilation behaviour (e.g. compile framework statically by specifying `static_framework = true`) without having to fork the repo.
         | 
| @@ -78,6 +78,7 @@ module PodBuilder | |
| 78 78 | 
             
                  attr_accessor :pre_actions
         | 
| 79 79 | 
             
                  attr_accessor :post_actions
         | 
| 80 80 | 
             
                  attr_accessor :development_team
         | 
| 81 | 
            +
                  attr_accessor :development_language
         | 
| 81 82 | 
             
                end
         | 
| 82 83 |  | 
| 83 84 | 
             
                @build_settings = DEFAULT_BUILD_SETTINGS
         | 
| @@ -119,6 +120,7 @@ module PodBuilder | |
| 119 120 | 
             
                @post_actions = {}
         | 
| 120 121 |  | 
| 121 122 | 
             
                @development_team = ""
         | 
| 123 | 
            +
                @development_language = nil
         | 
| 122 124 |  | 
| 123 125 | 
             
                def self.check_inited
         | 
| 124 126 | 
             
                  raise "\n\nNot inited, run `pod_builder init`\n".red if podbuilder_path.nil?
         | 
| @@ -252,7 +254,11 @@ module PodBuilder | |
| 252 254 | 
             
                        Configuration.development_team = value
         | 
| 253 255 | 
             
                      end
         | 
| 254 256 | 
             
                    end
         | 
| 255 | 
            -
             | 
| 257 | 
            +
                    if value = json["development_language"]
         | 
| 258 | 
            +
                      if value.is_a?(String) && value.length > 0
         | 
| 259 | 
            +
                        Configuration.development_language = value
         | 
| 260 | 
            +
                      end
         | 
| 261 | 
            +
                    end
         | 
| 256 262 | 
             
                    Configuration.build_settings.freeze
         | 
| 257 263 |  | 
| 258 264 | 
             
                    sanity_check()
         | 
| @@ -297,6 +303,7 @@ module PodBuilder | |
| 297 303 | 
             
                  config["build_using_repo_paths"] = Configuration.build_using_repo_paths
         | 
| 298 304 | 
             
                  config["react_native_project"] = Configuration.react_native_project
         | 
| 299 305 | 
             
                  config["development_team"] = Configuration.development_team
         | 
| 306 | 
            +
                  config["development_language"] = Configuration.development_language || "en"
         | 
| 300 307 |  | 
| 301 308 | 
             
                  File.write(config_path, JSON.pretty_generate(config))
         | 
| 302 309 | 
             
                end
         | 
    
        data/lib/pod_builder/install.rb
    CHANGED
    
    | @@ -426,3 +426,18 @@ module PodBuilder | |
| 426 426 | 
             
                end
         | 
| 427 427 | 
             
              end
         | 
| 428 428 | 
             
            end
         | 
| 429 | 
            +
             | 
| 430 | 
            +
            # CocoaPods seems to hard code the development language to english
         | 
| 431 | 
            +
            # By monkey patching the project save we make sure that the to manually rewrite the 
         | 
| 432 | 
            +
            # development language if it has been manually specified in PodBuilder's configuration
         | 
| 433 | 
            +
            class Xcodeproj::Project
         | 
| 434 | 
            +
              alias_method :swz_save, :save
         | 
| 435 | 
            +
              
         | 
| 436 | 
            +
              def save(save_path = nil)
         | 
| 437 | 
            +
                if development_language = PodBuilder::Configuration.development_language
         | 
| 438 | 
            +
                  root_object.development_region = development_language
         | 
| 439 | 
            +
                end
         | 
| 440 | 
            +
             | 
| 441 | 
            +
                swz_save(save_path)
         | 
| 442 | 
            +
              end
         | 
| 443 | 
            +
            end 
         | 
| @@ -381,7 +381,7 @@ Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_conte | |
| 381 381 | 
             
                  # There seems to be a potential bug in CocoaPods-Core (https://github.com/CocoaPods/Core/issues/730)
         | 
| 382 382 | 
             
                  if spec.nil?
         | 
| 383 383 | 
             
                    # Given the above issue when all specs of a pod are subspecs (e.g. specs contains Pod1/Subspec1, Pod1/Subspec2, ...) we'll fail getting the correct specification by relying on module name
         | 
| 384 | 
            -
                    spec = specs.detect { |t| t.name.split("/").first == module_name }
         | 
| 384 | 
            +
                    spec = specs.detect { |t| t.name.split("/").first == module_name } || specs.detect { |t| t.parent&.module_name == module_name }
         | 
| 385 385 | 
             
                  end
         | 
| 386 386 |  | 
| 387 387 | 
             
                  next if spec.nil?
         | 
    
        data/lib/pod_builder/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: pod-builder
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 5. | 
| 4 | 
            +
              version: 5.1.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Tomas Camin
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2022- | 
| 11 | 
            +
            date: 2022-12-20 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 235 235 | 
             
                - !ruby/object:Gem::Version
         | 
| 236 236 | 
             
                  version: '0'
         | 
| 237 237 | 
             
            requirements: []
         | 
| 238 | 
            -
            rubygems_version: 3. | 
| 238 | 
            +
            rubygems_version: 3.3.7
         | 
| 239 239 | 
             
            signing_key:
         | 
| 240 240 | 
             
            specification_version: 4
         | 
| 241 241 | 
             
            summary: Prebuild CocoaPods pods
         |