68 Commits

Author SHA1 Message Date
freddi(Yuki Aki) 5bcbf3959d Fix crash bundle (#1448)
* create availableModule to avoid crash on Bundle loading

* remove unnecessary line
2024-02-15 21:31:42 +11:00
freddi(Yuki Aki) 2c1500761d Support Artifact Bundle (#1388)
* support artifact bundle

* update CHANGELOG to exact PR

* build ArtifactBundle only on macOS

* update to copy SettingPresets into bundle

* fix CHANGELOG.md

* load Bundle.module

* update ArtifactBundleGen

* update ArtifactBundleGen to linux issue

* fix unnecessary code

* add lisence to bundle
2024-02-13 20:48:23 +11:00
Giovanni Amati 97d36fd1d2 Support for multiple deployment targets with xcode 14 (#1336)
* platformFilters on Dependecies

* platformFilters on sources

* fixed current unit tests

* renamed enum to SupportedPlatforms

* supportedPlatforms field for target

* errors

* renamed errors

* inferPlatformFiltersByPath flag

* changed priority to generate filter

* fixed parsing

* fixed init

* unit test supportedPlatforms

* unit tests for errors

* fixing build settings and unit tests

* added new settingsPresets

* new check errors and unit tests

* case insensitive match

* fixed skipping cross platform target

* json decode

* unit tests inferPlatformFiltersByPath and platformFilters for sources

* mocked files

* fixing unit tests

* first test on dependecies

* unit tests completed

* fixed unit tests

* changelog

* doc changes

* doc changes

* doc changes

* doc changes

* doc changes

* doc changes

* doc changes

* doc changes

* fixed doc

* fixed unti tests style

* fixed regex

* fixed doc

* addressing comments

* Added TestProject, moved unit tests resources in another folder

* Raising error if platform is an array

* unit test on new error

* fixed error enum

* Integrated in TestProject

* committed TestProject

* unit test error

* fixing spm deps in test project

* pushed testProject

* pushed testProject

* pushed testProject fix

* comment on isResolved property

* renameing supportedPlatforms to supportedDestinations

* renameing supportedPlatforms to supportedDestinations

* renameing test app

* checked out old file

* fixing test app

* working on auto baseSDK

* fixed deploymentTarget

* renamed errors

* fixed presets

* remamed index to priority

* small comments

* removed isResolved in target and fixed error check

* added unit tests

* fixed doc

* fixed doc

* fixed doc

* fixed doc

* fixed test app

* add visionOS and more error check and testing

* fixed supported destinations priority and tests

* fixed doc

* solved conflicts

* fixed conflicts

* renamed everything

---------

Co-authored-by: Giovanni Amati <giovanni.amati@sky.uk>
2023-10-31 20:55:38 +11:00
SofteqDG 435c19443a Extend possible paths for SettingsPresets (#1135)
* Search for presets in Bundle.main.resourcesPath dir (if exists)
2022-10-01 18:23:09 +10:00
JP Simard f65dad7625 Speed up SettingsBuilder (#1221)
* Speed up SettingsBuilder

It's unnecessary to build up a whole grouped dictionary only to check
if all platforms are identical and then immediately discard the
dictionary.

Instead we can check if all targets match the first platform, which
avoids creating a new dictionary but also allows bailing early as soon
as a non-matching platform is found.

Generating a large project (36MB json spec) on an M1 Max machine leads
to a ~6% total speedup: 28.48s vs 30.07s.

* Add changelog entry
2022-06-16 13:54:28 +10:00
Ian Leitch 4ae08453c3 Fix handling of SWIFT_INSTALL_OBJC_HEADER when its value is YES/NO. (#827)
* Fix handling of SWIFT_INSTALL_OBJC_HEADER when its value is YES/NO.

* Update CHANGELOG.md

* Address PR feedback.
2020-04-15 10:55:56 +10:00
yonaskolb 0e4e08bfc4 run swift format for Swift 5.1 2019-11-10 11:56:23 +11:00
yonaskolb 745be5fc1d update import name 2019-06-26 16:49:10 +10:00
yonaskolb 8c441d83e4 extracted CarthageVersionLoader and refactored 2019-03-24 20:23:49 +11:00
Yonas Kolb d0c257e938 don't partial apply exact config matches 2019-01-28 21:53:48 +11:00
Yonas Kolb 0efe954f34 automatically set project SDK root if there is only a single platform 2018-11-02 19:37:45 +11:00
Yonas Kolb e17bf7d0f2 update xcodeproj 2018-10-11 21:15:13 +11:00
Yonas Kolb 39079dd801 Merge origin/master into xcodeproj_5 2018-10-09 23:11:36 +11:00
Yonas Kolb 7db271c525 Merge pull request #416 from yonaskolb/perf-getCombinedBuildSettings
Improve performance of getCombinedBuildSettings
2018-10-08 23:36:32 +11:00
Dave Lee 8acea8341c Cache config/setting file misses too 2018-10-05 15:34:12 -07:00
Dave Lee 2bb4a26661 Improve performance of getCombinedBuildSettings 2018-10-05 10:03:18 -07:00
Yonas Kolb 0116301227 swift_format 2018-10-01 13:19:29 +10:00
Yonas Kolb e97b002655 upgrade to xcodeproj 5 2018-09-25 21:08:11 +10:00
Yonas Kolb 884490f955 add attributes to AggregateTarget 2018-07-24 22:05:29 +10:00
Yonas Kolb ed701a0c82 Update to 1.10.3 2018-07-11 20:21:28 +10:00
Yonas Kolb be5da8c132 fix mint installations 2018-07-11 20:15:39 +10:00
Yonas Kolb e589364ae8 rename ProjectSpec to Project and Project.Options to SpecOptions 2018-04-12 23:13:12 +10:00
Yonas Kolb b97261db36 generate code data models properly 2018-02-26 17:11:25 +11:00
Yonas Kolb 42ca2822d1 fix Mint installation not reading SettingPresets 2018-02-26 12:53:14 +11:00
Yonas Kolb 64d635096b code formater 2017-12-27 19:32:25 +08:00
Yonas Kolb 57e9a1de41 remove wrapping of function declarations 2017-12-27 19:03:22 +08:00
Yonas Kolb 75e0644b99 wrap long lines 2017-12-26 18:47:18 +08:00
Yonas Kolb e3a6739b2a rename deploymentTargets to deploymentTarget 2017-12-26 17:48:01 +08:00
Yonas Kolb cd6d179325 rename platformVersion to deploymentTarget 2017-12-26 17:36:41 +08:00
Yonas Kolb 4a90d33951 Add Version type 2017-12-26 17:36:41 +08:00
Yonas Kolb f0486c644e add options.platformVersions and target.platformVersion 2017-12-26 17:36:22 +08:00
Yonas Kolb 0c1325cc5f remove header comments 2017-11-22 13:01:17 +01:00
Yonas Kolb e8188ad9f8 swiftformat 2017-11-13 21:33:59 +01:00
Yonas Kolb a092dafec1 extract and cache XCConfig loading 2017-11-03 14:58:05 +01:00
Yonas Kolb 050ce8630d refactor config file setting removing 2017-11-03 14:42:51 +01:00
toshi0383 4204c65ee7 Merge remote-tracking branch 'upstream/master' into ts-no-overwriting-xcconfig-value 2017-11-03 22:00:44 +09:00
Yonas Kolb 92c2e5c5b5 run format-code.sh 2017-10-29 22:27:05 +01:00
toshi0383 9c603af5e9 Refactor remove value logic 2017-10-29 08:41:10 +09:00
toshi0383 cd910fe714 remove values before loading buildSettings from user spec 2017-10-29 08:32:28 +09:00
toshi0383 f68f96e249 Remove basePath parameter for spec 2017-10-29 08:27:42 +09:00
toshi0383 28b6e2cfbf Merge remote-tracking branch 'upstream/master' into ts-no-overwriting-xcconfig-value 2017-10-29 07:52:04 +09: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
toshi0383 44b2710846 Move logic into spec.get*BuildSettings 2017-10-23 07:47:30 +09:00
toshi0383 9443dd2686 Merge remote-tracking branch 'upstream/master' into ts-no-overwriting-xcconfig-value 2017-10-23 06:56:59 +09: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
toshi0383 acb8963f72 Apply fix to func getCombinedBuildSettings 2017-10-04 22:21:57 +09:00
Yonas Kolb fec6066d91 updated to xcproj 0.3.0 2017-10-01 11:42:07 +02:00