Commit Graph

744 Commits

Author SHA1 Message Date
Yonas Kolb 956edd3350 upgrade to xcodeproj 0.1.2 2017-09-14 21:28:09 +02:00
Palmero, Antonio 62f72d39bc Filter out NSNull elements from the json dictionary.
This change allows us to override default BuildSettings.
For example:

If I want to keep the attribute SWIFT_OBJC_INTERFACE_HEADER_NAME empty,
(by default it contains some value). I just need to override this value
in the settings spec.

Before If I keep property empty, then in the generated settings the value
appear as <null>.

The method implemented recursively loop through the json dictionary
looking for NSNull objects and replace them by an empty string.

Filter out NSNull elements from the json dictionary.

This change allows us to override default BuildSettings.
For example:

If I want to keep the attribute SWIFT_OBJC_INTERFACE_HEADER_NAME empty,
(by default it contains some value). I just need to override this value
in the settings spec.

Before If I keep property empty, then in the generated settings the value
appear as <null>.

The method implemented recursively loop through the json dictionary
looking for NSNull objects and replace them by an empty string.
2017-09-13 13:58:32 +02:00
Palmero, Antonio 09ef25bd0d Add support to C and C++ files in ‘Compile sources’
Previously the Compile Sources section was empty because it was not able
to recognize the file extension.
2017-09-08 17:21:33 +02:00
Yonas Kolb ffd07ac5aa Merge pull request #45 from yonaskolb/project_attributes
Project attributes
2017-08-30 17:23:20 +02:00
Yonas Kolb 86b3e1334e load setting preset for combination of product and platform 2017-08-30 17:19:53 +02:00
Yonas Kolb ea41e6bbc6 set project attributes 2017-08-30 17:06:41 +02:00
Yonas Kolb 183630159e don't bother linking target dependencies 2017-08-30 16:46:31 +02:00
Yonas Kolb 6774934a1b support include array in spec that merges other specs 2017-08-30 12:58:10 +02:00
Yonas Kolb 6bfb0eade6 fix "" not escaping in build scripts 2017-08-28 17:44:42 +02:00
Yonas Kolb 4bf00f42d5 fix embedded framework dependencies 2017-08-28 14:19:00 +02:00
Yonas Kolb 67c9626d98 add "$(inherited)" when setting automatic carthage FRAMEWORK_SEARCH_PATHS 2017-08-27 12:31:45 +02:00
Yonas Kolb 59d289f6db automatically find Info.plist 2017-08-27 12:28:18 +02:00
Yonas Kolb cb3232df9f add dependency embed settings 2017-08-27 11:55:44 +02:00
Yonas Kolb 1ef53e39f0 change Target.Dependency to a struct with embed 2017-08-27 11:53:16 +02:00
Yonas Kolb d830c3c1e4 automatically generate carthage framework search paths 2017-08-26 23:43:41 +02:00
Yonas Kolb 0adce9371c generate carthage group in Frameworks 2017-08-26 22:15:41 +02:00
Yonas Kolb d8ffafe4cf rename setting presets to setting groups 2017-08-26 18:38:39 +02:00
Yonas Kolb 6f9f194863 rename RunScript to BuildScript 2017-08-26 15:01:09 +02:00
Yonas Kolb 5126b0cb7a fixed localized files not being added to build phase of targets 2017-08-26 15:01:09 +02:00
Yonas Kolb 3cfd3ce816 swiftformat 2017-08-25 19:18:02 +02:00
Yonas Kolb 6c7cca1092 add option for carthageBuildPath 2017-08-25 16:22:40 +02:00
Yonas Kolb e77faeddf3 upgrade to xcodeproj 0.1.1 2017-08-25 15:31:50 +02:00
Yonas Kolb fc72702e33 update to xcodeproj 0.1.0 2017-08-25 15:05:31 +02:00
Yonas Kolb 91f8582d17 remove shell script escaping, as now escaped in xcodeproj 2017-08-25 11:39:17 +02:00
Yonas Kolb edca4390e4 add BuildScript.runOnlyWhenInstalling 2017-08-24 17:02:27 +02:00
Yonas Kolb f75e7f8140 remove com.apple.product-type. from product type settings 2017-08-24 11:41:14 +02:00
Yonas Kolb 6bc2ebef8e fix SettingPreset path 2017-08-24 11:23:26 +02:00
Yonas Kolb 5730417b61 read resources from share 2017-08-24 01:23:07 +02:00
Yonas Kolb 4dcfd68356 log missing SettingPreset files 2017-08-24 00:47:19 +02:00
Yonas Kolb 5f999a2ab1 fix xcodeproj 0.0.9 module changes 2017-08-04 08:52:30 +02:00
Yonas Kolb 823eceba75 add unit tests to target schemes 2017-08-04 00:23:52 +02:00
Yonas Kolb 1d0e310e3d dont't write PBXBuildFile settings if empty 2017-08-03 22:02:58 +02:00
Yonas Kolb 92dcc3739a only generate copy build phases when needed 2017-08-03 22:02:58 +02:00
Yonas Kolb 7dda61318d copy carthage dependencies in watch and message apps 2017-08-03 22:02:58 +02:00
Yonas Kolb 038ee6fde1 extension dependencies 2017-08-03 22:02:58 +02:00
Yonas Kolb 7a390bb31a change scheme build targets schema 2017-08-03 22:02:49 +02:00
Yonas Kolb 52fd803386 add target name to all child pbx objects when generating uuid 2017-08-02 21:25:50 +02:00
Yonas Kolb 3d42c95e18 add spec validation for missing target config files 2017-08-02 21:15:19 +02:00
Yonas Kolb b71eb02496 fix duplicate uuids 2017-08-02 13:29:45 +02:00
Yonas Kolb 63d98adb65 user PathKit for resolving absolute paths 2017-08-02 12:54:07 +02:00
Yonas Kolb 9cc1e50824 add run script support 2017-08-01 18:40:40 +02:00
Yonas Kolb 03b212c517 support absolute paths 2017-08-01 18:08:43 +02:00
Yonas Kolb 560cec746a add format code script 2017-07-31 12:32:50 +02:00
Yonas Kolb 4614073cfa rename Spec to ProjectSpec and moved into its own module 2017-07-28 16:32:35 +02:00
Yonas Kolb be6f25d2fd deterministic UUIDS 2017-07-28 00:20:38 +02:00
Yonas Kolb 28e12e5464 tweak Settings description 2017-07-27 15:00:54 +02:00
Yonas Kolb 2357146b06 overhaul build settings 2017-07-27 14:41:18 +02:00
Yonas Kolb fd011213bb reorder build setting merging 2017-07-27 12:10:43 +02:00
Yonas Kolb 9d5342d301 buildPresets 2017-07-26 23:18:45 +02:00
Yonas Kolb 4e35dc6b02 remove Spec.configVariants and move to Target.generateSchemes 2017-07-26 19:58:34 +02:00