xcake 0.6.14 → 0.6.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +14 -5
- data/Gemfile.lock +1 -1
- data/fastlane-plugin-xcake/Gemfile +3 -0
- data/fastlane-plugin-xcake/LICENSE +21 -0
- data/fastlane-plugin-xcake/README.md +1 -0
- data/fastlane-plugin-xcake/fastlane-plugin-xcake.gemspec +25 -0
- data/fastlane-plugin-xcake/lib/fastlane/plugin/xcake/actions/xcake_action.rb +34 -0
- data/fastlane-plugin-xcake/lib/fastlane/plugin/xcake/version.rb +5 -0
- data/fastlane-plugin-xcake/lib/fastlane/plugin/xcake.rb +16 -0
- data/fastlane-plugin-xcake/spec/spec_helper.rb +8 -0
- data/lib/xcake/modern_xcodeproj.rb +5 -0
- data/lib/xcake/target.rb +9 -1
- data/lib/xcake/version.rb +1 -1
- data/lib/xcake/xcode/scheme_list.rb +11 -1
- data/lib/xcake.rb +1 -0
- metadata +11 -3
- data/lib/xcake/fastlane/xcake.rb +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be27f0498e64991a600511e87a98210e747a074f
|
4
|
+
data.tar.gz: 647b553096a2aaaa37ec8d99fd4a4090d00f50ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32e122db4447d2f8a7643f7ec258ea128e71ba95c57afe431db5787b8534fdf24d3ab52a40edfb540e4ed4538bb8b20584bd9b617e4c36d44651a4339e5dd0fc
|
7
|
+
data.tar.gz: 3e527920cef6f955c0ab9583c3dc9336eba13fa07fbf3d16ee73c0f2477278a640fd768c1729839db758b40a4dce5ff5ea4a43e8c153a456d84835a5a6b03f8e
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,19 @@
|
|
1
|
+
v0.6.16
|
2
|
+
=======
|
3
|
+
- Fixes issue where Xcodeproj created release configurations which used the
|
4
|
+
developer code signing certificate rather than the distribution certificate.
|
5
|
+
|
6
|
+
v0.6.15
|
7
|
+
=======
|
8
|
+
- Support Xcodeproj 1.0's new Plist module.
|
9
|
+
|
1
10
|
v0.6.14
|
2
11
|
=======
|
3
|
-
- Updates
|
12
|
+
- Updates Claide dependency.
|
4
13
|
|
5
14
|
v0.6.13
|
6
15
|
=======
|
7
|
-
- Updates
|
16
|
+
- Updates Xcodeproj dependency.
|
8
17
|
|
9
18
|
v0.6.12
|
10
19
|
=======
|
@@ -16,7 +25,7 @@ v0.6.11
|
|
16
25
|
|
17
26
|
v0.6.10
|
18
27
|
=======
|
19
|
-
- Fixes race-condition where configurations weren't setup
|
28
|
+
- Fixes race-condition where configurations weren't setup.
|
20
29
|
|
21
30
|
v0.6.9
|
22
31
|
======
|
@@ -119,7 +128,7 @@ v0.4.1
|
|
119
128
|
|
120
129
|
v0.4.0
|
121
130
|
======
|
122
|
-
- Adds ability to
|
131
|
+
- Adds ability to specify preprocessor definitions.
|
123
132
|
- Adds shortcuts for specifying product bundle identifier.
|
124
133
|
|
125
134
|
v0.3.1
|
@@ -163,7 +172,7 @@ v0.1.5
|
|
163
172
|
|
164
173
|
v0.1.4
|
165
174
|
======
|
166
|
-
- Removes references to "build_configurations" to
|
175
|
+
- Removes references to "build_configurations" to "configuration".
|
167
176
|
to make syntax shorter and to reflect the fact it's an abstraction
|
168
177
|
and not directly a Xcode build configuration.
|
169
178
|
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 fastlane
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1 @@
|
|
1
|
+
An experimental fastlane plugin
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'fastlane/plugin/xcake/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'fastlane-plugin-xcake'
|
8
|
+
spec.version = Fastlane::Xcake::VERSION
|
9
|
+
spec.authors = ["James Campbell"]
|
10
|
+
spec.email = ["james@supmenow.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{DSL for Xcode Projects.}
|
13
|
+
spec.description = %q{Create your Xcode projects automatically using a stupid simple DSL.}
|
14
|
+
spec.homepage = "https://github.com/jcampbell05/xcake/"
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.require_paths = ['lib']
|
19
|
+
|
20
|
+
spec.add_dependency 'xcake'
|
21
|
+
|
22
|
+
spec.add_development_dependency 'rspec', '~> 3.4.0'
|
23
|
+
spec.add_development_dependency 'fastlane', '~> 1.89'
|
24
|
+
spec.add_development_dependency 'pry'
|
25
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class XcakeAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
require 'xcake'
|
6
|
+
|
7
|
+
if defined?(::Xcake::Command::Make)
|
8
|
+
# New `xcake make` command
|
9
|
+
::Xcake::Command::Make.run
|
10
|
+
else
|
11
|
+
# Legacy `xcake` command
|
12
|
+
::Xcake::Command.run
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.description
|
17
|
+
"Runs `xcake` for the project"
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.available_options
|
21
|
+
[
|
22
|
+
]
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.is_supported?(platform)
|
26
|
+
[:ios, :mac].include? platform
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.authors
|
30
|
+
["jcampbell05"]
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'fastlane/plugin/xcake/version'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module Xcake
|
5
|
+
# Return all .rb files inside the "actions" and "helper" directory
|
6
|
+
def self.all_classes
|
7
|
+
Dir[File.expand_path('*/{actions,helper}/*.rb', File.dirname(__FILE__))]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# By default we want to import all available actions and helpers
|
13
|
+
# A plugin can contain any number of actions and plugins
|
14
|
+
Fastlane::Xcake.all_classes.each do |current|
|
15
|
+
require current
|
16
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
2
|
+
|
3
|
+
# This module is only used to check the environment is currently a testing env
|
4
|
+
module SpecHelper
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'fastlane' # to import the Action super class
|
8
|
+
require 'fastlane/plugin/xcake' # import the actual plugin
|
data/lib/xcake/target.rb
CHANGED
@@ -232,6 +232,8 @@ module Xcake
|
|
232
232
|
@project
|
233
233
|
end
|
234
234
|
|
235
|
+
# TODO: Move this to a constant, maybe Xcodeproj ones should be brought
|
236
|
+
# into here?
|
235
237
|
def default_settings
|
236
238
|
{
|
237
239
|
"INFOPLIST_FILE" => "#{name}/Supporting Files/Info.plist"
|
@@ -248,12 +250,18 @@ module Xcake
|
|
248
250
|
end
|
249
251
|
|
250
252
|
def default_release_settings
|
253
|
+
release_settings = {
|
254
|
+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" => "iPhone Distribution"
|
255
|
+
}
|
256
|
+
|
251
257
|
Xcodeproj::Project::ProjectHelper.
|
252
258
|
common_build_settings(:release,
|
253
259
|
platform,
|
254
260
|
deployment_target.to_s,
|
255
261
|
type,
|
256
|
-
language).
|
262
|
+
language).
|
263
|
+
merge!(default_settings).
|
264
|
+
merge!(release_settings)
|
257
265
|
end
|
258
266
|
end
|
259
267
|
end
|
data/lib/xcake/version.rb
CHANGED
@@ -109,7 +109,17 @@ module Xcake
|
|
109
109
|
puts "Saving Scheme List..."
|
110
110
|
|
111
111
|
xcschememanagement_path = schemes_dir + 'xcschememanagement.plist'
|
112
|
-
|
112
|
+
write_plist(xcschememanagement_path)
|
113
|
+
end
|
114
|
+
|
115
|
+
private
|
116
|
+
|
117
|
+
def write_plist(xcschememanagement_path)
|
118
|
+
if Xcake.modern_xcodeproj?
|
119
|
+
Xcodeproj::Plist.write_to_path(@xcschememanagement, xcschememanagement_path)
|
120
|
+
else
|
121
|
+
Xcodeproj.write_plist(@xcschememanagement, xcschememanagement_path)
|
122
|
+
end
|
113
123
|
end
|
114
124
|
end
|
115
125
|
end
|
data/lib/xcake.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -220,6 +220,14 @@ files:
|
|
220
220
|
- docs/Getting Started.md
|
221
221
|
- docs/Hooks.md
|
222
222
|
- docs/Xcode Project Support.md
|
223
|
+
- fastlane-plugin-xcake/Gemfile
|
224
|
+
- fastlane-plugin-xcake/LICENSE
|
225
|
+
- fastlane-plugin-xcake/README.md
|
226
|
+
- fastlane-plugin-xcake/fastlane-plugin-xcake.gemspec
|
227
|
+
- fastlane-plugin-xcake/lib/fastlane/plugin/xcake.rb
|
228
|
+
- fastlane-plugin-xcake/lib/fastlane/plugin/xcake/actions/xcake_action.rb
|
229
|
+
- fastlane-plugin-xcake/lib/fastlane/plugin/xcake/version.rb
|
230
|
+
- fastlane-plugin-xcake/spec/spec_helper.rb
|
223
231
|
- lib/xcake.rb
|
224
232
|
- lib/xcake/command.rb
|
225
233
|
- lib/xcake/command/init.rb
|
@@ -233,7 +241,6 @@ files:
|
|
233
241
|
- lib/xcake/core_ext/string.rb
|
234
242
|
- lib/xcake/dependency.rb
|
235
243
|
- lib/xcake/dependency_provider.rb
|
236
|
-
- lib/xcake/fastlane/xcake.rb
|
237
244
|
- lib/xcake/file_reference_installer.rb
|
238
245
|
- lib/xcake/file_reference_installer/compile_source_file_reference_installer.rb
|
239
246
|
- lib/xcake/file_reference_installer/compile_xcdatamodeld_file_reference_installer.rb
|
@@ -256,6 +263,7 @@ files:
|
|
256
263
|
- lib/xcake/generator/target_generator.rb
|
257
264
|
- lib/xcake/generator/target_library_generator.rb
|
258
265
|
- lib/xcake/informative.rb
|
266
|
+
- lib/xcake/modern_xcodeproj.rb
|
259
267
|
- lib/xcake/node.rb
|
260
268
|
- lib/xcake/plugin.rb
|
261
269
|
- lib/xcake/project.rb
|
data/lib/xcake/fastlane/xcake.rb
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
require "fastlane"
|
2
|
-
|
3
|
-
module Xcake
|
4
|
-
module Actions
|
5
|
-
module SharedValues
|
6
|
-
XCAKE_CUSTOM_VALUE = :XCAKE_CUSTOM_VALUE
|
7
|
-
end
|
8
|
-
|
9
|
-
class XcakeAction < Fastlane::Action
|
10
|
-
def self.run(params)
|
11
|
-
Fastlane::Actions.sh("xcake")
|
12
|
-
end
|
13
|
-
|
14
|
-
#####################################################
|
15
|
-
# @!group Documentation
|
16
|
-
#####################################################
|
17
|
-
|
18
|
-
def self.description
|
19
|
-
"Create xcode projects easily with Xcake"
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.details
|
23
|
-
"Runs xcake to generate xcode project's easily"
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.available_options
|
27
|
-
[]
|
28
|
-
end
|
29
|
-
|
30
|
-
def self.output
|
31
|
-
[]
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.return_value
|
35
|
-
end
|
36
|
-
|
37
|
-
def self.authors
|
38
|
-
["@jcampbell_05"]
|
39
|
-
end
|
40
|
-
|
41
|
-
def self.is_supported?(platform)
|
42
|
-
[:ios, :mac, :tvos, :watchos].include?(platform)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|