mmine 0.8.1 → 0.9.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/lib/mmine/notification_extension_integrator.rb +12 -4
- data/lib/mmine/version.rb +1 -1
- metadata +7 -7
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 781adbe9a771bec3601a4ba251a1c6fdb4a6a03f27f00f267cc082e2b956d4b4
         | 
| 4 | 
            +
              data.tar.gz: 965d2a89451b945f9990054a06858e59dd74b00dba76ebef91d740c13ff74d73
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: dac5767cabf6763bb47154e2d84776a0a80bf3e89fd8466b273734c606e0d4415f898c68986770e320ce4015dd00a42282ab300138112ba4677f0ae2acd81a51
         | 
| 7 | 
            +
              data.tar.gz: 90bb04f0aed7148c82be951e4787359df29128da26155fae6930fbfe9973bb9318273a82832bd0d0bf063e78e5071193cff7eda7ebe9d587479856206d2b4079
         | 
| @@ -46,6 +46,7 @@ class NotificationExtensionIntegrator | |
| 46 46 | 
             
              def setup_notification_extension
         | 
| 47 47 | 
             
                puts "🏎  Integration starting... ver. #{Mmine::VERSION}"
         | 
| 48 48 | 
             
                @logger.debug("\n@main_target_build_configurations_debug #{@main_build_configurations_debug}\n@main_target_build_configurations_release #{@main_build_configurations_release}")
         | 
| 49 | 
            +
                @logger.debug("\n@main_target_build_configurations_debug #{JSON.pretty_generate(@main_build_settings_debug)}\n@main_target_build_configurations_release #{JSON.pretty_generate(@main_build_settings_release)}")
         | 
| 49 50 | 
             
                create_notification_extension_target
         | 
| 50 51 | 
             
                create_notification_extension_dir
         | 
| 51 52 | 
             
                add_notification_extension_source_code
         | 
| @@ -65,6 +66,7 @@ class NotificationExtensionIntegrator | |
| 65 66 | 
             
                setup_swift_version
         | 
| 66 67 | 
             
                setup_product_name
         | 
| 67 68 | 
             
                setup_extension_build_number
         | 
| 69 | 
            +
                setup_run_path_search_paths
         | 
| 68 70 |  | 
| 69 71 | 
             
                if @cordova
         | 
| 70 72 | 
             
                  setup_entitlements(resolve_absolute_paths(["$(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-Debug.plist"]),
         | 
| @@ -72,9 +74,8 @@ class NotificationExtensionIntegrator | |
| 72 74 | 
             
                                     nil,
         | 
| 73 75 | 
             
                                     @main_build_settings_debug,
         | 
| 74 76 | 
             
                                     @main_build_settings_release)
         | 
| 75 | 
            -
                  setup_framework_search_paths
         | 
| 76 | 
            -
                  setup_run_path_search_paths
         | 
| 77 77 | 
             
                  setup_extension_lib_cordova_link
         | 
| 78 | 
            +
                  setup_framework_search_paths
         | 
| 78 79 | 
             
                  setup_copy_framework_script
         | 
| 79 80 | 
             
                else
         | 
| 80 81 | 
             
                  setup_entitlements(@main_build_configurations_debug.map { |config| config.resolve_build_setting('CODE_SIGN_ENTITLEMENTS') },
         | 
| @@ -121,6 +122,13 @@ class NotificationExtensionIntegrator | |
| 121 122 | 
             
                  @extension_target.frameworks_build_phase.remove_file_reference(ref)
         | 
| 122 123 | 
             
                }
         | 
| 123 124 |  | 
| 125 | 
            +
                unless @main_target.build_configurations.any? { |config| config.name == "Release"}
         | 
| 126 | 
            +
                  @extension_target.build_configuration_list.build_configurations.delete_if { |config| config.name == "Release"}
         | 
| 127 | 
            +
                end
         | 
| 128 | 
            +
                unless @main_target.build_configurations.any? { |config| config.name == "Debug"}
         | 
| 129 | 
            +
                  @extension_target.build_configuration_list.build_configurations.delete_if { |config| config.name == "Debug"}
         | 
| 130 | 
            +
                end
         | 
| 131 | 
            +
             | 
| 124 132 | 
             
                @logger.info("Notification extension target debug build settings:\n#{JSON.pretty_generate(@extension_build_settings_debug)}")
         | 
| 125 133 | 
             
                @logger.info("Notification extension target release build settings:\n#{JSON.pretty_generate(@extension_build_settings_release)}")
         | 
| 126 134 | 
             
              end
         | 
| @@ -183,7 +191,7 @@ class NotificationExtensionIntegrator | |
| 183 191 | 
             
                (@main_build_configurations_release + @main_build_configurations_debug).each do |config|
         | 
| 184 192 | 
             
                  bundleId = config.resolve_build_setting(key)
         | 
| 185 193 | 
             
                  if bundleId == nil
         | 
| 186 | 
            -
                    plist_path = resolve_absolute_paths(config.resolve_build_setting("INFOPLIST_FILE")).first
         | 
| 194 | 
            +
                    plist_path = resolve_absolute_paths([config.resolve_build_setting("INFOPLIST_FILE")]).first
         | 
| 187 195 | 
             
                    bundleId = get_xml_string_value(key, plist_path)
         | 
| 188 196 | 
             
                    @logger.info("Composing #{key} from main target info plist: #{bundleId}.")
         | 
| 189 197 | 
             
                  else
         | 
| @@ -413,7 +421,7 @@ class NotificationExtensionIntegrator | |
| 413 421 | 
             
                return group_reference
         | 
| 414 422 | 
             
              end
         | 
| 415 423 |  | 
| 416 | 
            -
              def resolve_absolute_paths(paths)
         | 
| 424 | 
            +
              def resolve_absolute_paths(paths) 
         | 
| 417 425 | 
             
                paths.map do |path|
         | 
| 418 426 | 
             
                  ret = path
         | 
| 419 427 | 
             
                  ["$(PROJECT_DIR)", "$PROJECT_DIR"].each do |proj_dir|
         | 
    
        data/lib/mmine/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,11 +1,11 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: mmine
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.9.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Andrey Kadochnikov
         | 
| 8 | 
            -
            autorequire: | 
| 8 | 
            +
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 11 | 
             
            date: 2018-10-16 00:00:00.000000000 Z
         | 
| @@ -16,14 +16,14 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - '='
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 1. | 
| 19 | 
            +
                    version: 1.10.0
         | 
| 20 20 | 
             
              type: :runtime
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 24 | 
             
                - - '='
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version: 1. | 
| 26 | 
            +
                    version: 1.10.0
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: nokogiri
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -58,7 +58,7 @@ licenses: | |
| 58 58 | 
             
            - MIT
         | 
| 59 59 | 
             
            metadata:
         | 
| 60 60 | 
             
              source_code_url: https://github.com/infobip/mobile-messaging-mmine
         | 
| 61 | 
            -
            post_install_message: | 
| 61 | 
            +
            post_install_message:
         | 
| 62 62 | 
             
            rdoc_options: []
         | 
| 63 63 | 
             
            require_paths:
         | 
| 64 64 | 
             
            - lib
         | 
| @@ -73,8 +73,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 73 73 | 
             
                - !ruby/object:Gem::Version
         | 
| 74 74 | 
             
                  version: '0'
         | 
| 75 75 | 
             
            requirements: []
         | 
| 76 | 
            -
            rubygems_version: 3.0. | 
| 77 | 
            -
            signing_key: | 
| 76 | 
            +
            rubygems_version: 3.0.9
         | 
| 77 | 
            +
            signing_key:
         | 
| 78 78 | 
             
            specification_version: 4
         | 
| 79 79 | 
             
            summary: Mobile Messaging iOS Notification Extension Integration Tool made at Infobip
         | 
| 80 80 | 
             
              (https://www.infobip.com)!!!
         |