74 Commits

Author SHA1 Message Date
Yonas Kolb 0004cdd333 Update to 1.4.0 2017-11-16 11:49:30 +01:00
ryohey 3fb7a15c74 Fix option parsing 2017-11-16 01:45:28 +09:00
Yonas Kolb cf426ba5eb add ProjectSpec.options.developmentLanguage 2017-11-15 12:13:32 +01:00
Yonas Kolb 034eb4a448 tweaked format of generated references
- more characters
- underscore after type name
- remove duplication count unless greater than 1
2017-11-15 11:29:10 +01:00
Yonas Kolb ce0f3b5665 add folder reference support 2017-11-15 01:22:02 +01:00
Yonas Kolb 2c1789f717 add duplicate name test 2017-11-14 20:27:46 +01:00
Yonas Kolb e8188ad9f8 swiftformat 2017-11-13 21:33:59 +01:00
Yonas Kolb bf6d8aa464 fix cyclical target dependencies 2017-11-12 20:43:07 +01:00
Yonas Kolb 63c2d08977 add TargetSource.name for renaming sources (#146) 2017-11-12 20:26:36 +01:00
Yonas Kolb a2c41917e5 Fix groups (#144)
* failing createIntermediateDirectories test

* refactor sources

* add reference generator tests
2017-11-12 18:52:11 +01:00
Yonas Kolb 975cc8b98e fix merge conflict 2017-11-11 00:25:10 +01:00
Peyman Khanjan 91729a9694 Add support for simple files excludes from sources #5. (#135)
* Add support for simple files excludes from sources #5.

* Add pattern matching for Source excludes #5.

* Simplify getting Source.excludes from jsonDictionary.

* Remove recursive pattern matching and formatting.
2017-11-11 00:22:07 +01:00
Yonas Kolb 94a449c647 Merge pull request #139 from bkase/xcassets-as-files
Support paths directly to xcassets
2017-11-10 23:31:53 +01:00
Yonas Kolb 7cdc496f45 test refactoring 2017-11-10 23:28:16 +01:00
Yonas Kolb be4767be36 add failing test for shared sources 2017-11-09 22:47:53 +01:00
Brandon Kase 496a7cc4b0 Support paths directly to xcassets
Pretend xcassets are files to allow top-level xcassets in the spec.
2017-11-08 11:10:21 -08:00
rmalik 91056efc8a Load json files directly with NSJSONSerialization if the spec path extension is
`json`
2017-11-03 12:10:00 -07:00
Brandon Kase 6b17b76435 Support CompilerFlags in Sources
Added support for compilerFlags in source list. If any source file
metadata (like compilerFlags) is attached to a directory the metadata
propagates downwards to all children recursively until the files are
reached.

Files are now processed in the same way as directories in `getSources`
this depends on #108 to not over-eagerly cache groups. The `source` is
propagated as metadata down all the way (thanks @yonaskolb)

Fixtures and unit tests are updated as well.
2017-11-02 13:47:26 -07:00
Yonas Kolb 01e29e690e add source generator tests 2017-11-02 18:03:12 +01:00
Yonas Kolb 698d8d85b4 change target source from String to Source struct 2017-10-31 17:22:14 +01:00
Yonas Kolb 17b32e6a1a refactored TestProject Fixture
- renamed things
- made framework multiplatform
- integrate carthage
2017-10-29 23:17:16 +01:00
Yonas Kolb 43bacd4626 don't run later fixture tests if changed, so it's clearer in logs what happened 2017-10-29 23:17:16 +01:00
Yonas Kolb 92c2e5c5b5 run format-code.sh 2017-10-29 22:27:05 +01:00
Yonas Kolb f8b4b5792e move and rename files 2017-10-29 22:15:02 +01:00
Yonas Kolb 4fe9a06148 add spec validation tests 2017-10-29 20:45:17 +01:00
Yonas Kolb e14a85fd69 Merge pull request #113 from yonaskolb/xcproj_1.2
Update to xcproj 1.2
2017-10-28 20:11:18 +02:00
Yonas Kolb a4471e839e update to xcproj 1.2 2017-10-28 20:01:01 +02:00
Yonas Kolb 08079c914e make Settings.configs case insensitive 2017-10-26 21:53:16 +02:00
Yonas Kolb 11abfb0ae2 apply partial matching to Settings.configs 2017-10-26 21:50:45 +02:00
Yonas Kolb 779397ec8d move basePath into ProjectSpec 2017-10-24 21:30:06 +02:00
Yonas Kolb 0204f27c82 rename Options.applySettingPresets to Options.settingPresets 2017-10-22 20:37:03 +01:00
Yonas Kolb 20f7797df7 add applySettingPresets option 2017-10-22 19:41:54 +01:00
Yonas Kolb 6a9de2208a don't apply base project settings if config doesn't have a type 2017-10-20 12:24:52 +01:00
Keith Smiley 894f00428a Add tests for PBXProductType booleans 2017-10-18 08:50:55 -07:00
ryohey bc9c007c53 add test for variant groups 2017-10-16 11:51:28 +09:00
Yonas Kolb 836fa4d3fd update xcodeproj to xcproj in tests 2017-10-01 11:43:27 +02:00
Yonas Kolb 8a7bfa12fc format code 2017-09-26 14:22:15 +02:00
Yonas Kolb f3a60d5358 Merge pull request #68 from yonaskolb/include_replace
Add replace syntax for Include
2017-09-25 17:33:20 +02:00
Yonas Kolb 658c3f8477 Merge pull request #67 from yonaskolb/bundleIdPrefix
Add bundleIdPrefix
2017-09-25 17:26:44 +02:00
Yonas Kolb b1888dc62f fail fixture test if project has changed 2017-09-25 16:12:33 +02:00
Yonas Kolb d20d6b56bf add bundleIdPrefix tests 2017-09-25 15:30:28 +02:00
Yonas Kolb c9e8e68bc5 move bundleIdPrefix to options 2017-09-25 15:30:15 +02:00
Yonas Kolb c9c589c5ee add optional replace syntax when merging includes 2017-09-25 13:34:11 +02:00
Yonas Kolb 061bddd18b ability to override target name 2017-09-14 21:04:33 +02:00
Yonas Kolb d5204199f3 add target modification in include test 2017-09-14 21:00:52 +02:00
Yonas Kolb 38bc3be64b change yaml targets from list to map 2017-09-14 20:53:34 +02:00
Yonas Kolb 86b3e1334e load setting preset for combination of product and platform 2017-08-30 17:19:53 +02:00
Yonas Kolb 6774934a1b support include array in spec that merges other specs 2017-08-30 12:58:10 +02:00
Yonas Kolb cb3232df9f add dependency embed settings 2017-08-27 11:55:44 +02:00
Yonas Kolb d8ffafe4cf rename setting presets to setting groups 2017-08-26 18:38:39 +02:00