mmine 0.10.0 → 0.11.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/bin/mmine +4 -1
- data/lib/mmine/notification_extension_integrator.rb +5 -2
- data/lib/mmine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2df763dc9da60a896e89d1a9e53a0f66c2d60850516a6a911410f317ea9132f
|
4
|
+
data.tar.gz: 8af6b1c3b0c93e6e3ff3480ce19264578ac940a9eb2266459dd597b75bac7dfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7357b67048f8ae3411b99e07642835574d5c75343258ea2671b5c0dd9d30d042b3575d436f0adfba7b5fd7dd41e7c7d2c3673ad05a151daf2d37db18808912f1
|
7
|
+
data.tar.gz: 31ca531428c2f79f1e47826d6f199e013027e70837cb97791db75f07523a3e805408d1dd909c32c7fc86882f1df0f226d9e92dc19f06807e5651f9f0c0225651
|
data/bin/mmine
CHANGED
@@ -38,6 +38,9 @@ integrate_parse = OptionParser.new do |opts|
|
|
38
38
|
opts.on("-sl", "--static-linkage", "If cocoapods static linkage used for MobileMessaging pods") do |static_linkage|
|
39
39
|
options[:"static-linkage"] = static_linkage
|
40
40
|
end
|
41
|
+
opts.on("-rn", "--react-native", "Provide React-Native specific settings") do |react_native|
|
42
|
+
options[:"react-native"] = react_native
|
43
|
+
end
|
41
44
|
opts.on("-h", "--help", "Prints this help") do
|
42
45
|
puts opts
|
43
46
|
exit
|
@@ -53,7 +56,7 @@ when "integrate"
|
|
53
56
|
unless missing.empty?
|
54
57
|
raise OptionParser::MissingArgument.new(missing.join(', '))
|
55
58
|
end
|
56
|
-
integrator = NotificationExtensionIntegrator.new(options[:"application-code"], options[:project], options[:"app-group"], options[:target], options[:cordova] || false, options[:xcframework] || false, options[:"swift-version"] || "5", options[:"override-signing"] || false, options[:"static-linkage"] || false)
|
59
|
+
integrator = NotificationExtensionIntegrator.new(options[:"application-code"], options[:project], options[:"app-group"], options[:target], options[:cordova] || false, options[:xcframework] || false, options[:"swift-version"] || "5", options[:"override-signing"] || false, options[:"static-linkage"] || false, options[:"react-native"] || false)
|
57
60
|
integrator.logger = Logger.new(STDOUT)
|
58
61
|
integrator.logger.formatter = proc do |severity, datetime, progname, msg|
|
59
62
|
"#{severity}: #{msg}\n"
|
@@ -14,7 +14,7 @@ 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, xcframework = false, swift_ver, override_signing, static_linkage)
|
17
|
+
def initialize(application_code, project_file_path, app_group, main_target_name, cordova = false, xcframework = false, swift_ver, override_signing, static_linkage, react_native)
|
18
18
|
@project_file_path = project_file_path
|
19
19
|
@app_group = app_group
|
20
20
|
@main_target_name = main_target_name
|
@@ -25,6 +25,7 @@ class NotificationExtensionIntegrator
|
|
25
25
|
@application_code = application_code
|
26
26
|
@override_signing = override_signing
|
27
27
|
@static_linkage = static_linkage
|
28
|
+
@react_native = react_native
|
28
29
|
|
29
30
|
@project_dir = Pathname.new(@project_file_path).parent.to_s
|
30
31
|
@project = Xcodeproj::Project.open(@project_file_path)
|
@@ -103,7 +104,9 @@ class NotificationExtensionIntegrator
|
|
103
104
|
|
104
105
|
if @static_linkage
|
105
106
|
setup_extension_lib_link('libMobileMessaging.a')
|
106
|
-
|
107
|
+
unless @react_native
|
108
|
+
setup_extension_lib_link('libCocoaLumberjack.a')
|
109
|
+
end
|
107
110
|
setup_library_search_paths
|
108
111
|
end
|
109
112
|
|
data/lib/mmine/version.rb
CHANGED