unigunkan 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -25,7 +25,18 @@ To disable Retina 4 inch devices support,
25
25
  Add folder references,
26
26
 
27
27
  $ unigunkan /path/to/project/Unity-iPhone.xcodeproj --folder-refs=../../assetbundles
28
+
29
+ #### TestFlight SDK Integration
30
+
31
+ 1. Download the latest TestFlightSDK.
32
+ 2. Get the application token
33
+ 3. Add --integrate-testflight-sdk option.
28
34
 
35
+ ````
36
+ $ unigunkan /path/to/project/Unity-iPhone.xcodeproj --integrate-testflight-sdk\
37
+ --testflight-sdk ~/Downloads/testflight --testflight-application-token 12345-abc-123
38
+ ````
39
+
29
40
  ## Contributing
30
41
 
31
42
  1. Fork it
data/bin/unigunkan CHANGED
@@ -12,6 +12,7 @@ opt.on('--folder-refs VAL') {|v| OPTS[:folder_refs] = v}
12
12
  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
+ opt.on('--testflight-enable-remote-logging') {|v| OPTS[:testflight_enable_remote_logging] = v}
15
16
  opt.parse!(ARGV)
16
17
 
17
18
  input = ARGV[0]
@@ -54,7 +55,7 @@ processor.disable_retina_4inch_support if disable_retina_4inch_support
54
55
  processor.add_folder_refs
55
56
 
56
57
  if OPTS[:integrate_testflight_sdk] == true
57
- processor.integrate_testflight_sdk OPTS[:testflight_sdk], OPTS[:testflight_application_token]
58
+ processor.integrate_testflight_sdk OPTS[:testflight_sdk], OPTS[:testflight_application_token], OPTS[:testflight_enable_remote_logging]
58
59
  end
59
60
 
60
61
  processor.delete_original_project_file
@@ -129,7 +129,7 @@ class Unigunkan::Processor
129
129
  @src = Modifier.add_file_to_tree(@src, fileref.key + ",")
130
130
  end
131
131
 
132
- def integrate_testflight_sdk(sdk_path, token)
132
+ def integrate_testflight_sdk(sdk_path, token, enable_remote_logging = false)
133
133
  puts "Integrate TestFlight SDK #{sdk_path}, #{token}"
134
134
  link_library "libz.dylib", "usr/lib/libz.dylib"
135
135
  link_library "libTestFlight.a", sdk_path
@@ -138,7 +138,9 @@ class Unigunkan::Processor
138
138
  # Import TestFlight.h in the precompiled header
139
139
  pch_file = File.expand_path(@proj_file + "/../../Classes/iPhone_target_Prefix.pch")
140
140
  pch = File.read(pch_file)
141
- pch.gsub!("#ifdef __OBJC__","#ifdef __OBJC__\n#import \"TestFlight.h\"")
141
+ header_to_import = "#ifdef __OBJC__\n#import \"TestFlight.h\""
142
+ header_to_import += "\n#define NSLog TFLog" if enable_remote_logging
143
+ pch.gsub!("#ifdef __OBJC__", header_to_import)
142
144
  File.write(pch_file, pch)
143
145
 
144
146
  # Insert some codes in AppController
@@ -1,3 +1,3 @@
1
1
  module Unigunkan
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
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.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-14 00:00:00.000000000 Z
12
+ date: 2013-01-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Designed for Unity based projects.
15
15
  email: