longbow 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/longbow/commands/shoot.rb +7 -2
- data/lib/longbow/images.rb +8 -6
- data/lib/longbow/targets.rb +6 -5
- data/lib/longbow/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31be1109d53d7b72bf2a1ba1b9a2b55a347a311d
|
4
|
+
data.tar.gz: fde00c27dc74a8c35820b943a8a2bd4ee0600fb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1e165b78f93fe10edde027571cb26069b44e222bb6bb1851c7797e8118477774001309a5791c1c784507bdfc1cc2d1396db2e53ee8a38d6dfb98ae89f11bc74
|
7
|
+
data.tar.gz: 30a67a9b68c9b76d8e8654c4a22adaf0fcb5a31d9bceedef429b5620ec02f83e8cefaf3177d164551d27e4f964befa60265191c341fa60ced6eb7688d42ae4a6
|
@@ -14,6 +14,7 @@ command :shoot do |c|
|
|
14
14
|
c.option '-d', '--directory DIRECTORY', 'Path where the .xcodeproj or .xcworkspace file && the longbow.json file live.'
|
15
15
|
c.option '-u', '--url URL', 'URL of a longbow formatted JSON file.'
|
16
16
|
c.option '-i', '--images', 'Set this flag to not recreate images in the longbow file.'
|
17
|
+
c.option '-l', '--launchscreenimages', 'Set this flag to create launch screen images.'
|
17
18
|
|
18
19
|
c.action do |args, options|
|
19
20
|
# Check for newer version
|
@@ -23,6 +24,7 @@ command :shoot do |c|
|
|
23
24
|
@target_name = options.name ? options.name : nil
|
24
25
|
@directory = options.directory ? options.directory : Dir.pwd
|
25
26
|
@noimages = options.images ? true : false
|
27
|
+
@lsimages = options.launchscreenimages ? true : false
|
26
28
|
@url = options.url ? options.url : nil
|
27
29
|
@targets = []
|
28
30
|
|
@@ -57,9 +59,12 @@ command :shoot do |c|
|
|
57
59
|
# Begin
|
58
60
|
@targets.each do |t|
|
59
61
|
icon = t['icon_url'] || t['icon_path']
|
60
|
-
launch =
|
62
|
+
launch = nil
|
63
|
+
if @lsimages
|
64
|
+
launch = t['launch_phone_p_url'] || t['launch_phone_p_path'] || t['launch_phone_l_url'] || t['launch_phone_l_path'] || t['launch_tablet_p_url'] || t['launch_tablet_p_path'] || t['launch_tablet_l_url'] || t['launch_tablet_l_path']
|
65
|
+
end
|
61
66
|
Longbow::update_target @directory, t['name'], obj['global_info_keys'], t['info_plist'], icon, launch
|
62
|
-
Longbow::create_images(@directory, t, obj) unless @noimages
|
67
|
+
Longbow::create_images(@directory, t, obj, @lsimages) unless @noimages
|
63
68
|
Longbow::green " Finished: #{t['name']}\n" unless $nolog
|
64
69
|
end
|
65
70
|
end
|
data/lib/longbow/images.rb
CHANGED
@@ -10,7 +10,7 @@ require 'utilities'
|
|
10
10
|
module Longbow
|
11
11
|
|
12
12
|
# Images
|
13
|
-
def self.create_images directory, t, obj
|
13
|
+
def self.create_images directory, t, obj, lsimages
|
14
14
|
# Bad Params
|
15
15
|
if !directory || !t || !obj
|
16
16
|
return false
|
@@ -23,14 +23,16 @@ module Longbow
|
|
23
23
|
# Resize Icons
|
24
24
|
resize_icons directory, t, iPhone, iPad
|
25
25
|
|
26
|
-
# Resize Launch Images
|
27
|
-
resize_launch_images directory, t
|
28
|
-
|
29
26
|
# Write JSON for Icon Assets
|
30
27
|
write_json_for_icons directory, t, iPhone, iPad
|
31
28
|
|
32
|
-
|
33
|
-
|
29
|
+
if lsimages
|
30
|
+
# Resize Launch Images
|
31
|
+
resize_launch_images directory, t
|
32
|
+
|
33
|
+
# Write JSON for Launch Assets
|
34
|
+
write_json_for_launch_images directory, t
|
35
|
+
end
|
34
36
|
|
35
37
|
end
|
36
38
|
|
data/lib/longbow/targets.rb
CHANGED
@@ -68,10 +68,11 @@ module Longbow
|
|
68
68
|
settings['ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME'] = Longbow::stripped_text(target) if launch
|
69
69
|
settings['SKIP_INSTALL'] = 'NO'
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
71
|
+
|
72
|
+
#if File.exists? directory + '/Pods'
|
73
|
+
# b.base_configuration_reference = base_config
|
74
|
+
# settings['PODS_ROOT'] = '${inherited}'
|
75
|
+
#end
|
75
76
|
end
|
76
77
|
|
77
78
|
# Save The Project
|
@@ -115,4 +116,4 @@ module Longbow
|
|
115
116
|
return new_target
|
116
117
|
end
|
117
118
|
|
118
|
-
end
|
119
|
+
end
|
data/lib/longbow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: longbow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Intermark Interactive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.
|
75
|
+
version: 2.16.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
82
|
+
version: 2.16.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: xcodeproj
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,21 +132,21 @@ extensions: []
|
|
132
132
|
extra_rdoc_files: []
|
133
133
|
files:
|
134
134
|
- ./Gemfile
|
135
|
-
- ./LICENSE.txt
|
136
|
-
- ./README.md
|
137
|
-
- ./Rakefile
|
138
|
-
- ./lib/longbow.rb
|
139
135
|
- ./lib/longbow/colors.rb
|
140
|
-
- ./lib/longbow/commands.rb
|
141
136
|
- ./lib/longbow/commands/aim.rb
|
142
137
|
- ./lib/longbow/commands/install.rb
|
143
138
|
- ./lib/longbow/commands/shoot.rb
|
139
|
+
- ./lib/longbow/commands.rb
|
144
140
|
- ./lib/longbow/images.rb
|
145
141
|
- ./lib/longbow/json.rb
|
146
142
|
- ./lib/longbow/plist.rb
|
147
143
|
- ./lib/longbow/targets.rb
|
148
144
|
- ./lib/longbow/utilities.rb
|
149
145
|
- ./lib/longbow/version.rb
|
146
|
+
- ./lib/longbow.rb
|
147
|
+
- ./LICENSE.txt
|
148
|
+
- ./Rakefile
|
149
|
+
- ./README.md
|
150
150
|
- ./resources/aim.sh
|
151
151
|
- ./resources/banner.png
|
152
152
|
- ./resources/capture.js
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
176
|
rubyforge_project:
|
177
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.0.14.1
|
178
178
|
signing_key:
|
179
179
|
specification_version: 4
|
180
180
|
summary: Better target creation for one iOS codebase.
|