501 Commits

Author SHA1 Message Date
Zev Eisenberg 3ba243e241 Update SwiftLint to 0.51.0. 2024-03-15 08:58:42 -04:00
Zev Eisenberg 0294afdce9 Update test fixtures. 2024-03-15 08:58:42 -04:00
Zev Eisenberg 0637789e68 Add // swiftlint:disable all to the bottom of all Swift templates. Stops warnings introduced by SwiftLint in https://github.com/realm/SwiftLint/pull/4731, released in SwiftLint 0.51.0. 2024-03-15 08:58:41 -04:00
Liquidsoul f26ae83349 fix: rake output:compile for XCAssets templates by removing lazy vars
The Swift compiler does not allow the use of @available on stored variables
anymore. This means that the `lazy var` used in the templates cannot be made
available only for certain OSes.
I have fixed the issue by removing the `lazy var` altogether. Compared to the
previous implementation, this introduces an overhead on every access to a
color. I could not find a way to keep the lazy var without droping old OSes.
2024-03-08 22:31:18 +01:00
Liquidsoul 6e0562532d Prepare release 6.6.3 2024-03-02 13:37:39 +01:00
John Szumski 47d30ae2a2 Added support for --quiet and --verbose flags to swiftgen run 2022-08-27 13:30:55 -04:00
David Jennes 094d04f921 Prepare release 2022-08-12 02:05:04 +02:00
David Jennes 759cc111df Generate output 2022-08-12 01:50:08 +02:00
David Jennes 7e13d64174 Remove raw strings from swift5 template, restore old string escape logic 2022-08-12 01:50:06 +02:00
David Jennes a1abd52533 Generate output 2022-08-03 18:00:04 +02:00
David Jennes e8588c3415 Fix template varargs starting parameter 2022-08-03 17:59:48 +02:00
David Jennes 109154d074 Generate output 2022-08-02 21:18:01 +02:00
David Jennes cf98363749 Add more test cases 2022-08-02 21:17:59 +02:00
David Jennes 17f16dbb6d Reimplement comments parser 2022-08-02 21:17:56 +02:00
David Jennes cd4adb6302 Generate output 2022-08-01 15:43:54 +02:00
David Jennes c11568b462 Handle tabs in translations 2022-08-01 15:42:03 +02:00
David Jennes e6a5b9f8ca Avoid issues with strings containing "# 2022-08-01 15:42:02 +02:00
David Jennes bfabcab0ee Add test case 2022-08-01 15:41:55 +02:00
David Jennes 1dd3af2710 Prepare release 2022-07-31 23:35:49 +02:00
David Jennes 19e061f0e5 Update stencil to fix lazy bug 2022-07-31 23:11:54 +02:00
David Jennes 3573182256 JSON/Plist/YAML template fixes for booleans 2022-07-31 22:33:57 +02:00
David Jennes b53a15186d Non-mandatory cli options should have an (empty) default value 2022-07-31 22:33:30 +02:00
David Jennes 17e6de83a5 Prepare release 2022-07-31 16:46:15 +02:00
David Jennes 3945867505 Switch to Difference package for nicer testing error output 2022-07-31 16:26:16 +02:00
David Jennes 0eb0dec554 Switch to Stencil's LazyValueWrapper 2022-07-31 16:26:14 +02:00
David Jennes 8937add253 Font getter 2022-07-30 21:15:18 +02:00
David Jennes 937d05fa32 Symbol getter 2022-07-30 21:15:17 +02:00
David Jennes a5d71dbfe4 Image getter 2022-07-30 21:15:15 +02:00
David Jennes fc5511cf8d Color getter 2022-07-30 21:15:13 +02:00
David Jennes 5a0707970f Some missing tweaks for deprecated resourceCount property 2022-07-30 21:15:11 +02:00
David Jennes 4d1d3591c7 Bump year 2022-07-30 20:47:39 +02:00
David Jennes 804b0ef777 XCAssets: deprecate allValues template parameter 2022-07-30 04:51:19 +02:00
David Jennes 492bfa34f9 XCAssets: deprecate resourceCount in context 2022-07-30 04:48:02 +02:00
David Jennes 16f83b793c Tiny output change 2022-07-30 04:41:50 +02:00
David Jennes 03626fd41e Update templates to fix output (and drop deprecated filter) 2022-07-30 04:41:48 +02:00
David Jennes f106ec0c12 Default to modern spacing for built-in templates 2022-07-30 04:41:47 +02:00
David Jennes da4d1b11a9 Add mechanism to switch to new (smart) space trimming 2022-07-30 04:41:45 +02:00
David Jennes 807cfd9ede Update to Stencil 0.15 2022-07-30 04:24:44 +02:00
David Jennes 96c220611a Generate output 2022-07-27 00:12:07 +02:00
David Jennes f3671c479d Update output generation test case 2022-07-27 00:12:06 +02:00
David Jennes cbc0c287aa Extra test case (for quote escape) 2022-07-27 00:12:05 +02:00
David Jennes e69ec2e0f1 Update templates to provide translation as fallback value 2022-07-27 00:12:04 +02:00
David Jennes 7b9e80cf69 Make sure we exit correctly on error 2022-07-26 22:36:04 +02:00
David Jennes 841b03fe40 Replace Commander with Swift's ArgumentParser 2022-07-26 22:36:03 +02:00
David Jennes 8722257649 Regenerate output 2022-07-26 02:58:00 +02:00
David Jennes 565fcb8a87 Update templates 2022-07-26 02:57:59 +02:00
David Jennes 2e0b3f4aa5 Add test cases 2022-07-26 02:57:58 +02:00
David Jennes 31ed50836c Parse derived attr. info from model 2022-07-26 02:57:57 +02:00
David Jennes 071ecc6db3 Regenerate output 2022-07-26 02:46:48 +02:00
David Jennes 358684c171 Fix issues in templates 2022-07-26 02:46:47 +02:00