mmine 0.8.5 → 0.9.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d831e227381c0553f8076f67e559c13ce527e04a835daf7e42a5298c6a0eb035
4
- data.tar.gz: b41cac15e88fb761f0e6f3fecd501e4861469323c354248bba40b0111db74f15
3
+ metadata.gz: d609adc78a177fa25a48883c02d26b81b7f5e0703725250008d2199761b840b4
4
+ data.tar.gz: b15df15a4eb2a097d4c582288408dc10d065de4a0355212001208c6224e8b045
5
5
  SHA512:
6
- metadata.gz: 8fb2ba2cd21322d8355f04d653c35ae456763413095805154ba0b938c2943b7c3c858fa75dbfe08521b75f938c87437add4c07912946f396655cd71270f39e16
7
- data.tar.gz: 19fd795a943a41d9cefe0afc7b05858ccd99e0826b497ff26a3a96c11272b2286b2c6f0f686e361078ad1c542b8785df1b681155b1f4707642d6c348b84ebd8a
6
+ metadata.gz: 698105deceffeb1ea265690f870b89d71ed1ffeb7bbd7db888b81bceaeb1d4ce09cb9057a507574ef37da3fa7b4b50ec31c944cb8814eb40e3973633f372bad6
7
+ data.tar.gz: c621720f32496e9b96215b86a2f61fba6205da7f51ea96ae9f2204c49406316df4d983c182a12c25a3c9af4d45b22d043032aa4ef86e9361475dd9970ca1b229
data/bin/mmine CHANGED
@@ -23,10 +23,13 @@ integrate_parse = OptionParser.new do |opts|
23
23
  opts.on("-v", "--verbose", "Make verbose logs visible") do |verbose|
24
24
  options[:verbose] = verbose
25
25
  end
26
- opts.on("-c", "--cordova", "Provide Cordova project specific settings.") do |verbose|
27
- options[:cordova] = verbose
26
+ opts.on("-c", "--cordova", "Provide Cordova project specific settings.") do |cordova|
27
+ options[:cordova] = cordova
28
28
  end
29
- opts.on("--swift-version", "--swift-version SWIFT_VER", "Provide Swift Language version for notification extension (by default 4.2)") do |ver|
29
+ opts.on("-x", "--xcframework", "Should Cordova project use xcframework or framework.") do |xcframework|
30
+ options[:xcframework] = xcframework
31
+ end
32
+ opts.on("--swift-version", "--swift-version SWIFT_VER", "Provide Swift Language version for notification extension (by default 5)") do |ver|
30
33
  options[:"swift-version"] = ver
31
34
  end
32
35
  opts.on("-h", "--help", "Prints this help") do
@@ -44,7 +47,7 @@ when "integrate"
44
47
  unless missing.empty?
45
48
  raise OptionParser::MissingArgument.new(missing.join(', '))
46
49
  end
47
- integrator = NotificationExtensionIntegrator.new(options[:"application-code"], options[:project], options[:"app-group"], options[:target], options[:cordova] || false, options[:"swift-version"] || "4.2")
50
+ integrator = NotificationExtensionIntegrator.new(options[:"application-code"], options[:project], options[:"app-group"], options[:target], options[:cordova] || false, options[:xcframework] || false, options[:"swift-version"] || "5")
48
51
  integrator.logger = Logger.new(STDOUT)
49
52
  integrator.logger.formatter = proc do |severity, datetime, progname, msg|
50
53
  "#{severity}: #{msg}\n"
@@ -14,12 +14,13 @@ module Mmine
14
14
  end
15
15
 
16
16
  class NotificationExtensionIntegrator
17
- def initialize(application_code, project_file_path, app_group, main_target_name, cordova = false, swift_ver)
17
+ def initialize(application_code, project_file_path, app_group, main_target_name, cordova = false, xcframework = false, swift_ver)
18
18
  @project_file_path = project_file_path
19
19
  @app_group = app_group
20
20
  @main_target_name = main_target_name
21
21
  @logger = nil
22
22
  @cordova = cordova
23
+ @xcframework = xcframework
23
24
  @swift_version = swift_ver
24
25
  @application_code = application_code
25
26
 
@@ -66,10 +67,7 @@ class NotificationExtensionIntegrator
66
67
  setup_swift_version
67
68
  setup_product_name
68
69
  setup_extension_build_number
69
-
70
- setup_framework_search_paths
71
70
  setup_run_path_search_paths
72
- setup_copy_framework_script
73
71
 
74
72
  if @cordova
75
73
  setup_entitlements(resolve_absolute_paths(["$(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-Debug.plist"]),
@@ -78,6 +76,10 @@ class NotificationExtensionIntegrator
78
76
  @main_build_settings_debug,
79
77
  @main_build_settings_release)
80
78
  setup_extension_lib_cordova_link
79
+ setup_framework_search_paths
80
+ unless @xcframework
81
+ setup_copy_framework_script
82
+ end
81
83
  else
82
84
  setup_entitlements(@main_build_configurations_debug.map { |config| config.resolve_build_setting('CODE_SIGN_ENTITLEMENTS') },
83
85
  @main_build_configurations_release.map { |config| config.resolve_build_setting('CODE_SIGN_ENTITLEMENTS') },
data/lib/mmine/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mmine
2
- VERSION = "0.8.5"
2
+ VERSION = "0.9.4"
3
3
  end
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.8.5
4
+ version: 0.9.4
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.6.0
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.6.0
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.2
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)!!!