unigunkan 0.0.10 → 0.0.11
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.
- data/bin/unigunkan +2 -0
- data/lib/unigunkan/processor.rb +4 -0
- data/lib/unigunkan/version.rb +1 -1
- metadata +1 -1
data/bin/unigunkan
CHANGED
@@ -13,6 +13,7 @@ opt.on('--integrate-testflight-sdk') {|v| OPTS[:integrate_testflight_sdk] = v}
|
|
13
13
|
opt.on('--testflight-sdk VAL') {|v| OPTS[:testflight_sdk] = v}
|
14
14
|
opt.on('--testflight-application-token VAL') {|v| OPTS[:testflight_application_token] = v}
|
15
15
|
opt.on('--testflight-enable-remote-logging') {|v| OPTS[:testflight_enable_remote_logging] = v}
|
16
|
+
opt.on('--enable-objc-exceptions') {|v| OPTS[:enable_objc_exceptions] = v}
|
16
17
|
opt.parse!(ARGV)
|
17
18
|
|
18
19
|
input = ARGV[0]
|
@@ -52,6 +53,7 @@ end
|
|
52
53
|
processor = Unigunkan::Processor.new(input, OPTS)
|
53
54
|
processor.create_backup
|
54
55
|
processor.disable_retina_4inch_support if disable_retina_4inch_support
|
56
|
+
processor.enable_objc_exceptions if OPTS[:enable_objc_exceptions]
|
55
57
|
processor.add_folder_refs
|
56
58
|
|
57
59
|
if OPTS[:integrate_testflight_sdk] == true
|
data/lib/unigunkan/processor.rb
CHANGED
@@ -152,6 +152,10 @@ class Unigunkan::Processor
|
|
152
152
|
File.write(app_controller_file, app_controller)
|
153
153
|
end
|
154
154
|
|
155
|
+
def enable_objc_exceptions
|
156
|
+
add_block_after "buildSettings = {", "GCC_ENABLE_OBJC_EXCEPTIONS = YES;"
|
157
|
+
end
|
158
|
+
|
155
159
|
def add_block_after(line, block)
|
156
160
|
@src.gsub!(line, line + "\n" + block)
|
157
161
|
end
|
data/lib/unigunkan/version.rb
CHANGED