unigunkan 0.0.9 → 0.0.10
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/README.md +11 -0
- data/bin/unigunkan +2 -1
- data/lib/unigunkan/processor.rb +4 -2
- data/lib/unigunkan/version.rb +1 -1
- metadata +2 -2
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
|
data/lib/unigunkan/processor.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/unigunkan/version.rb
CHANGED
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.
|
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:
|
12
|
+
date: 2013-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Designed for Unity based projects.
|
15
15
|
email:
|