xcode-utils 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 824beca6355db2508531a754f7fe96d92afb45d2d280a1090b8a1be4478cdb62
4
- data.tar.gz: ba97f1f06c154c98af3eb78eafbbcb1304dbb51aa1138dfe1a029b338cfa6b76
3
+ metadata.gz: ae6a88462f11625079d48f69db98fc5300fbdf733598fa2b2bfef97946d628e2
4
+ data.tar.gz: cf5857085391c9b590ea301f5bb63d9e9feeed83f35d99c40d0c32ca7f058dc8
5
5
  SHA512:
6
- metadata.gz: 62736a18e603f1dc93ff7b238be891fcb4de37bdcb7ba88cc9df2e8e8c12bc43873e1f188dbdf47b1afc37588160a1dfa65266b002ee041c34f30a45b6980087
7
- data.tar.gz: 86bfd627682e38af122e60cc991aca6100c5cc738d017a788812c88627d2827e07b13d7317c767285aaa8558d1dc844660c5dbfac5bdd4e7d0589ada2972103e
6
+ metadata.gz: 804232e58a8061b39d83f1db06a7afa9d8b73ce0d576d8991e45c7f3abd8fb9df9e75661425f5358907dc95f5d34e88b52bfe6eae8810db5508c1f28c144f3da
7
+ data.tar.gz: b268b7a14c2d79eb96fd923e91bf1888b241c1d706b023397b66452b92a0d65be4a10cdfda36785f32a67a13b0a5ccdf1a799664ca1bf8f21cae578e1ccb5472
@@ -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.target_configuration_reference = target_config.base_configuration_reference
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?
@@ -1,3 +1,3 @@
1
1
  module XcodeUtils
2
- VERSION = '1.0.4'.freeze
2
+ VERSION = '1.0.5'.freeze
3
3
  end
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
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-18 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide