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 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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Unigunkan
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unigunkan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: