xcode-utils 1.0.4 → 1.0.5
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.
- checksums.yaml +4 -4
- data/lib/xcutils/uitest.rb +13 -13
- data/lib/xcutils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae6a88462f11625079d48f69db98fc5300fbdf733598fa2b2bfef97946d628e2
|
4
|
+
data.tar.gz: cf5857085391c9b590ea301f5bb63d9e9feeed83f35d99c40d0c32ca7f058dc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 804232e58a8061b39d83f1db06a7afa9d8b73ce0d576d8991e45c7f3abd8fb9df9e75661425f5358907dc95f5d34e88b52bfe6eae8810db5508c1f28c144f3da
|
7
|
+
data.tar.gz: b268b7a14c2d79eb96fd923e91bf1888b241c1d706b023397b66452b92a0d65be4a10cdfda36785f32a67a13b0a5ccdf1a799664ca1bf8f21cae578e1ccb5472
|
data/lib/xcutils/uitest.rb
CHANGED
@@ -77,7 +77,7 @@ module XcodeUtils
|
|
77
77
|
return
|
78
78
|
end
|
79
79
|
|
80
|
-
configuration = project.new(Xcodeproj::Project::Object::XCBuildConfiguration)
|
80
|
+
configuration = @project.new(Xcodeproj::Project::Object::XCBuildConfiguration)
|
81
81
|
configuration.name = @uitest_name
|
82
82
|
configuration.build_settings = configuration_list.build_settings(@taget_config)
|
83
83
|
configuration_list.build_configurations << configuration
|
@@ -122,9 +122,9 @@ module XcodeUtils
|
|
122
122
|
|
123
123
|
if test_config.nil?
|
124
124
|
puts "Generating build configuration #{@uitest_name} into #{target.name}"
|
125
|
-
new_config = project.new(Xcodeproj::Project::Object::XCBuildConfiguration)
|
125
|
+
new_config = @project.new(Xcodeproj::Project::Object::XCBuildConfiguration)
|
126
126
|
new_config.name = @uitest_name
|
127
|
-
new_config.
|
127
|
+
new_config.base_configuration_reference = target_config.base_configuration_reference
|
128
128
|
target.build_configurations << new_config
|
129
129
|
else
|
130
130
|
puts "Configure build configuration #{@uitest_name} in #{target.name}"
|
@@ -155,19 +155,19 @@ module XcodeUtils
|
|
155
155
|
end
|
156
156
|
|
157
157
|
def copy_template_files
|
158
|
-
template_path = "./#{@project_name}/#{@uitest_name}"
|
159
|
-
|
160
|
-
if !Dir.exist?(template_path)
|
161
|
-
puts "Copying template files into project #{@project_name}"
|
162
|
-
path = File.expand_path('../../../templates', __FILE__)
|
163
|
-
FileUtils.copy_entry path, "./#{@project_name}"
|
164
|
-
else
|
165
|
-
puts "Skip to copy template files. Files are already exsit".gray
|
166
|
-
end
|
167
|
-
|
168
158
|
puts "Adding references for files and resources into project #{@project_name}"
|
169
159
|
|
170
160
|
@project.targets.each { |target|
|
161
|
+
template_path = "./#{target.name}/#{@uitest_name}"
|
162
|
+
|
163
|
+
if !Dir.exist?(template_path)
|
164
|
+
puts "Copying template files into target #{target.name}"
|
165
|
+
path = File.expand_path('../../../templates', __FILE__)
|
166
|
+
FileUtils.copy_entry path, "./#{target.name}"
|
167
|
+
else
|
168
|
+
puts "Skip to copy template files. Files are already exsit".gray
|
169
|
+
end
|
170
|
+
|
171
171
|
target_group = @project.groups.select { |e| e.path == target.name }.first
|
172
172
|
|
173
173
|
if target_group.groups.select { |e| e.path == @uitest_name }.first.nil?
|
data/lib/xcutils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcode-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|