Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit ba8584d

Browse files
committed
Initial commit
0 parents  commit ba8584d

File tree

18 files changed

+514
-0
lines changed

18 files changed

+514
-0
lines changed

.circleci/config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Ruby CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/ruby:2.4.2
11+
12+
working_directory: ~/repo
13+
14+
steps:
15+
- checkout
16+
17+
# Download and cache dependencies
18+
- restore_cache:
19+
keys:
20+
- v1-dependencies-{{ checksum "Gemfile" }}
21+
# fallback to using the latest cache if no exact match is found
22+
- v1-dependencies-
23+
24+
- run:
25+
name: install dependencies
26+
command: bundle check || bundle install --jobs=4 --retry=3 --path vendor/bundle
27+
28+
- save_cache:
29+
paths:
30+
- ./vendor
31+
key: v1-dependencies-{{ checksum "Gemfile" }}
32+
33+
# run tests!
34+
- run:
35+
name: run tests
36+
command: bundle exec rake
37+
38+
# collect reports
39+
- store_test_results:
40+
path: ~/repo/test-results
41+
- store_artifacts:
42+
path: ~/repo/test-results
43+
destination: test-results

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.gem
2+
Gemfile.lock
3+
4+
## Documentation cache and generated files:
5+
/.yardoc/
6+
/_yardoc/
7+
/doc/
8+
/rdoc/
9+
fastlane/README.md
10+
fastlane/report.xml
11+
coverage
12+
test-results

.rspec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--require spec_helper
2+
--color
3+
--format d
4+
--format RspecJunitFormatter
5+
--out test-results/rspec/rspec.xml

.rubocop.yml

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
---
2+
Style/MultipleComparison:
3+
Enabled: false
4+
Style/PercentLiteralDelimiters:
5+
Enabled: false
6+
Style/ClassCheck:
7+
EnforcedStyle: kind_of?
8+
Style/FrozenStringLiteralComment:
9+
Enabled: false
10+
Style/SafeNavigation:
11+
Enabled: false
12+
Performance/RegexpMatch:
13+
Enabled: false
14+
Performance/StringReplacement:
15+
Enabled: false
16+
Style/NumericPredicate:
17+
Enabled: false
18+
Metrics/BlockLength:
19+
Enabled: false
20+
Metrics/ModuleLength:
21+
Enabled: false
22+
Style/VariableNumber:
23+
Enabled: false
24+
Style/MethodMissing:
25+
Enabled: false
26+
MultilineBlockChain:
27+
Enabled: false
28+
Style/NumericLiteralPrefix:
29+
Enabled: false
30+
Style/TernaryParentheses:
31+
Enabled: false
32+
Style/EmptyMethod:
33+
Enabled: false
34+
Style/BracesAroundHashParameters:
35+
Enabled: false
36+
Lint/UselessAssignment:
37+
Exclude:
38+
- "**/spec/**/*"
39+
Require/MissingRequireStatement:
40+
Exclude:
41+
- "**/spec/**/*.rb"
42+
- "**/spec_helper.rb"
43+
- spaceship/lib/spaceship/babosa_fix.rb
44+
- "**/Fastfile"
45+
- "**/*.gemspec"
46+
- rakelib/**/*
47+
- "**/*.rake"
48+
- "**/Rakefile"
49+
- fastlane/**/*
50+
- supply/**/*
51+
Layout/IndentHash:
52+
Enabled: false
53+
Layout/AlignHash:
54+
Enabled: false
55+
Layout/DotPosition:
56+
Enabled: false
57+
Style/DoubleNegation:
58+
Enabled: false
59+
Style/SymbolArray:
60+
Enabled: false
61+
Layout/IndentHeredoc:
62+
Enabled: false
63+
Style/MixinGrouping:
64+
Exclude:
65+
- "**/spec/**/*"
66+
Lint/HandleExceptions:
67+
Enabled: false
68+
Lint/UnusedBlockArgument:
69+
Enabled: false
70+
Lint/AmbiguousBlockAssociation:
71+
Enabled: false
72+
Style/GlobalVars:
73+
Enabled: false
74+
Style/ClassAndModuleChildren:
75+
Enabled: false
76+
Style/SpecialGlobalVars:
77+
Enabled: false
78+
Metrics/AbcSize:
79+
Enabled: false
80+
Metrics/MethodLength:
81+
Enabled: false
82+
Metrics/CyclomaticComplexity:
83+
Enabled: false
84+
Style/WordArray:
85+
MinSize: 19
86+
Style/SignalException:
87+
Enabled: false
88+
Style/RedundantReturn:
89+
Enabled: false
90+
Style/IfUnlessModifier:
91+
Enabled: false
92+
Style/AndOr:
93+
Enabled: true
94+
EnforcedStyle: conditionals
95+
Metrics/ClassLength:
96+
Max: 320
97+
Metrics/LineLength:
98+
Max: 370
99+
Metrics/ParameterLists:
100+
Max: 17
101+
Metrics/PerceivedComplexity:
102+
Max: 18
103+
Style/GuardClause:
104+
Enabled: false
105+
Style/StringLiterals:
106+
Enabled: false
107+
Style/ConditionalAssignment:
108+
Enabled: false
109+
Style/RedundantSelf:
110+
Enabled: false
111+
Lint/UnusedMethodArgument:
112+
Enabled: false
113+
Lint/ParenthesesAsGroupedExpression:
114+
Exclude:
115+
- "**/spec/**/*"
116+
Style/PredicateName:
117+
Enabled: false
118+
Style/PerlBackrefs:
119+
Enabled: false
120+
Layout/SpaceAroundOperators:
121+
Exclude:
122+
- "**/spec/actions_specs/xcodebuild_spec.rb"
123+
AllCops:
124+
TargetRubyVersion: 2.0
125+
Include:
126+
- "*/lib/assets/*Template"
127+
- "*/lib/assets/*TemplateAndroid"
128+
Exclude:
129+
- "**/lib/assets/custom_action_template.rb"
130+
- "./vendor/**/*"
131+
- "**/lib/assets/DefaultFastfileTemplate"
132+
Style/FileName:
133+
Exclude:
134+
- "**/Dangerfile"
135+
- "**/Brewfile"
136+
- "**/Gemfile"
137+
- "**/Podfile"
138+
- "**/Rakefile"
139+
- "**/Fastfile"
140+
- "**/Deliverfile"
141+
- "**/Snapfile"
142+
- "**/*.gemspec"
143+
Style/Documentation:
144+
Enabled: false
145+
Style/MutableConstant:
146+
Enabled: false
147+
Style/ZeroLengthPredicate:
148+
Enabled: false
149+
Style/IfInsideElse:
150+
Enabled: false
151+
Style/CollectionMethods:
152+
Enabled: false
153+
CrossPlatform/ForkUsage:
154+
Exclude:
155+
- "**/plugins/template/**/*"
156+
Style/MethodCallWithArgsParentheses:
157+
Enabled: true
158+
IgnoredMethods:
159+
- require
160+
- require_relative
161+
- gem
162+
- program
163+
- command
164+
- raise
165+
- attr_accessor
166+
- attr_reader
167+
- desc
168+
- lane
169+
- private_lane
170+
- platform
171+
- to
172+
- describe
173+
- it
174+
- be
175+
- context
176+
- before
177+
- after

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# os: osx # enable this if you need macOS support
2+
language: ruby
3+
rvm:
4+
- 2.2.4

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source('https://rubygems.org')
2+
3+
gemspec
4+
5+
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
6+
eval_gemfile(plugins_path) if File.exist?(plugins_path)

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 NovaTec Consulting GmbH <[email protected]>
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.

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# xcodegen plugin
2+
3+
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-xcodegen)
4+
5+
## Getting Started
6+
7+
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-xcodegen`, add it to your project by running:
8+
9+
```bash
10+
fastlane add_plugin xcodegen
11+
```
12+
13+
## About xcodegen
14+
15+
Generates the Xcode-Project as specified in the YAML or JSON format.
16+
More Information on [_XcodeGen_](https://github.com/yonaskolb/XcodeGen)
17+
18+
19+
## Example
20+
21+
```ruby
22+
xcodegen(
23+
spec: "PATH/project.yml",
24+
project: "PATH/Project.xcodeproj"
25+
)
26+
```
27+
28+
## Run tests for this plugin
29+
30+
To run both the tests, and code style validation, run
31+
32+
```
33+
rake
34+
```
35+
36+
To automatically fix many of the styling issues, use
37+
```
38+
rubocop -a
39+
```
40+
41+
## Issues and Feedback
42+
43+
For any other issues and feedback about this plugin, please submit it to this repository.
44+
45+
## Troubleshooting
46+
47+
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
48+
49+
## Using _fastlane_ Plugins
50+
51+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
52+
53+
## About _fastlane_
54+
55+
_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).

Rakefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require 'bundler/gem_tasks'
2+
3+
require 'rspec/core/rake_task'
4+
RSpec::Core::RakeTask.new
5+
6+
require 'rubocop/rake_task'
7+
RuboCop::RakeTask.new(:rubocop)
8+
9+
task(default: [:spec, :rubocop])

fastlane-plugin-xcodegen.gemspec

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# coding: utf-8
2+
3+
lib = File.expand_path("../lib", __FILE__)
4+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5+
require 'fastlane/plugin/xcodegen/version'
6+
7+
Gem::Specification.new do |spec|
8+
spec.name = 'fastlane-plugin-xcodegen'
9+
spec.version = Fastlane::Xcodegen::VERSION
10+
spec.author = 'Michael Ruhl'
11+
spec.email = '[email protected]'
12+
13+
spec.summary = 'Run xcodegen for the project'
14+
spec.homepage = "https://github.com/NovaTecConsulting/fastlane-plugin-xcodegen"
15+
spec.license = "MIT"
16+
17+
spec.files = Dir["lib/**/*"] + %w(README.md LICENSE)
18+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19+
spec.require_paths = ['lib']
20+
21+
# Don't add a dependency to fastlane or fastlane_re
22+
# since this would cause a circular dependency
23+
24+
spec.add_dependency('fastlane-plugin-brew', '~> 0.1.1')
25+
26+
spec.add_development_dependency('pry')
27+
spec.add_development_dependency('bundler')
28+
spec.add_development_dependency('rspec')
29+
spec.add_development_dependency('rspec_junit_formatter')
30+
spec.add_development_dependency('rake')
31+
spec.add_development_dependency('rubocop', '0.49.1')
32+
spec.add_development_dependency('rubocop-require_tools')
33+
spec.add_development_dependency('simplecov')
34+
spec.add_development_dependency('fastlane', '>= 2.93.1')
35+
end

0 commit comments

Comments
 (0)