353 Commits

Author SHA1 Message Date
yonaskolb ce787d9e40 use mxcl/Version to fix parsing 2020-02-07 10:49:28 +11:00
Liam Nichols d69b028294 Update SpecValidation to validate TargetReference definitions in the Scheme.Test action. Add additional coverate to ProjectSpectTests 2020-02-06 10:45:21 +00:00
Evan Coleman 6bfd620549 Support external target dependencies via subprojects (#701)
* Allow external target dependencies via subprojects

* Update CHANGELOG

* Update ProjectSpec

* Fix test

* Use existing fixture for test

* Sort subprojects by name

* Throw subproject generation error instead of crashing

* Cleanup target dependency generation

* Update test fixture project

* Combine extentions in Linkage

* Update XcodeProj to 7.7.0

* Update CHANGELOG.md

* Update ProjectSpec.md

Co-authored-by: Yonas Kolb <yonaskolb@users.noreply.github.com>
2020-02-02 09:44:56 +11:00
Yonas Kolb 6b7b7e6134 Update and lock XcodeProj to 7.7.0 (#767) 2020-02-02 09:35:45 +11:00
Yonas Kolb 49ed1503ef Add pre and post-gen commands (#759)
* add pre and post-gen commands

* update changelog

* run gen scripts in project directory
2020-01-27 22:22:35 +11:00
Bas van Kuijck f544dd36e6 Added a simulateLocation option in scheme specs (#756)
* Added a simulateLocation option in scheme specs

* Updated fixtures for simulateLocation

* Use fileGroups instead of sources
2020-01-23 09:12:06 -06:00
sipao 3a9131a21a Add support On Demand Resources (#753)
* added on-demand-resources setting to project.yml

* update documents

* Apply suggestions from code review

fixed docs

Co-Authored-By: Yonas Kolb <yonaskolb@users.noreply.github.com>

* Make it possible to resourceTags convert to json

* Use sorted() instead of Array initializer

* Avoid merge assetTags if it is empty

* Changed access to resourceTags to inline

* Don't add resourceTags other than chosenBuildPhase is .resources

* update CHANGELOG.md

* update spec loading test

* add a new "generates resource tags" test case

* add resourceTags in Test Fixture and update

Co-authored-by: Yonas Kolb <yonaskolb@users.noreply.github.com>
2020-01-21 08:47:31 +11:00
Bas van Kuijck d10dcc9a0e Validate package version value (#755)
* Validate package version value

* Added CHANGELOG entry

* Improved testcases for package versions
2020-01-15 13:29:24 -06:00
Yuta Saito 2f312361bc Merge remote-tracking branch 'origin/master' into katei/resolve-proj-ref-relative 2020-01-06 20:54:05 +09:00
Yuta Saito 8fe5c0cd16 Validate project reference path 2020-01-06 20:51:58 +09:00
Yonas Kolb 4339007e66 Merge pull request #723 from kateinoigakukun/katei/add-bundle-dependency
Add bundle dependency type
2019-12-12 22:21:23 +11:00
Yuta Saito ce92dd69b4 Replace projectReference.path as relativePath correctly 2019-12-11 20:05:17 +09:00
Franz Busch bedbfef9cd Add support for language and region for targets 2019-12-04 09:35:56 +01:00
Yuta Saito 49f29e9156 Merge branch 'master' into katei/add-bundle-dependency 2019-11-20 19:35:38 -08:00
Steven Roebert 15e615300e Added new group parameter to target sources, allowing to add them to a custom parent group (resolving #478) 2019-11-19 15:56:23 -05:00
Yuta Saito e336f56093 Support .bundle dependency 2019-11-18 18:07:46 +09:00
yonaskolb 0e4e08bfc4 run swift format for Swift 5.1 2019-11-10 11:56:23 +11:00
yonaskolb 44f9ffa51a formatting 2019-11-10 11:38:53 +11:00
yonaskolb 43cd0ec33e add dump command 2019-11-10 11:37:52 +11:00
Kohki Miki 03076f40eb Support Static Frameworks for Carthage dependencies (#688) 2019-11-07 11:03:26 -06:00
Romuald Cari e38360d5e3 Fix crash on empty ${} variable expansion (#706)
This fix got lost in #704 reworks.
2019-11-06 14:12:11 -06:00
wag-miles c5905581d5 Fix header phase for static frameworks (#705) 2019-11-06 14:09:20 -06:00
Romuald Cari 06a6616b88 Improving variable expansion runtime (#704)
* Improving variable expansion runtime

The current implementation of variable expansion is O(n x m) with n being the
number of strings in the project spec and m being the number of project variables.

This implementation is now O(n).

Also, this effectively deprecates the support for $legacy_variables in favor of the
${new_variables} making this whole patch possible.

* Adding option to disable variable expansion

* Adding performance test for spec loading

* Updating changelog
2019-11-06 08:33:54 -06:00
yonaskolb 203d96e343 fix some build errors 2019-10-30 11:40:55 +11:00
yonaskolb 518d8e578b restructure test targets 2019-10-27 23:15:12 +11:00
yonaskolb d0d509c1a5 swiftformat 2019-10-27 22:37:41 +11:00
Yuta Saito f81adfe291 Merge branch 'external-target-ref' into test-coverage 2019-10-27 12:57:23 +09:00
Yuta Saito bbed01d1d6 Cache pbxproj by reference name 2019-10-27 09:23:35 +09:00
Yuta Saito fbc7e9442d Use propery initializer for TestTarget 2019-10-27 09:08:51 +09:00
Yuta Saito 1285a3e25e Rename TargetReference.init label 2019-10-27 09:07:04 +09:00
Yuta Saito c4305dd02e Add validation for project reference 2019-10-27 09:00:21 +09:00
Yuta Saito c432337ef7 Throw error instead of fatalError 2019-10-21 18:32:49 +09:00
Yuta Saito 70cb2df5f7 Minimize protocol conformance declarations 2019-10-21 18:07:47 +09:00
Yuta Saito 7075777f99 Make 'let' properties as 'var' 2019-10-21 18:02:58 +09:00
Yuta Saito 4d8ffe76cb Remove file header 2019-10-21 18:01:05 +09:00
Yuta Saito 1c6409266b Improve TargetReference initializer interface 2019-10-15 15:33:35 +09:00
Yuta Saito e0dfc72f85 Conform TargetReference to CustomStringConvertible 2019-10-15 15:15:25 +09:00
Yuta Saito 55613785da Move TargetReference to it's own file 2019-10-15 15:12:44 +09:00
Yuta Saito d978cf4df2 Rename ExternalProject -> ProjectReference 2019-10-15 15:10:01 +09:00
Yuta Saito 236c7c4f13 Add Hashable conformance for TargetReference 2019-10-10 23:49:41 +09:00
Yuta Saito 0a43435af3 Merge branch 'master' into external-target-ref 2019-10-10 23:38:45 +09:00
Brian Clymer 7152d6aa9f Address CR. 2019-10-06 15:33:27 -05:00
Brian Clymer 6e5766a2bc Ensure that target names can be changed by template attributes. 2019-10-02 10:40:15 -05:00
Brian Clymer 682f188288 Refactor to make scheme and target templates use the same code. 2019-10-02 09:06:15 -05:00
Brian Clymer 30e1a84566 Working support for scheme templates. 2019-10-02 08:52:22 -05:00
Yuta Saito b96d077252 Merge branch 'master' into external-target-ref 2019-09-30 17:09:04 +09:00
yonaskolb 06eed64380 add version and from 2019-09-27 23:00:30 +10:00
yonaskolb 8e48c7b07f put local packages into a Packages group and add options.localPackagesGroup 2019-09-27 22:49:05 +10:00
yonaskolb e9193cfb29 add support for localPackages 2019-09-27 21:36:07 +10:00
yonaskolb fe693c7160 add package validation 2019-09-27 17:10:55 +10:00