Zev Eisenberg
3ba243e241
Update SwiftLint to 0.51.0.
2024-03-15 08:58:42 -04:00
David Jennes
17f16dbb6d
Reimplement comments parser
2022-08-02 21:17:56 +02:00
David Jennes
0eb0dec554
Switch to Stencil's LazyValueWrapper
2022-07-31 16:26:14 +02:00
David Jennes
4d1d3591c7
Bump year
2022-07-30 20:47:39 +02:00
David Jennes
492bfa34f9
XCAssets: deprecate resourceCount in context
2022-07-30 04:48:02 +02:00
David Jennes
31ed50836c
Parse derived attr. info from model
2022-07-26 02:57:57 +02:00
David Jennes
cb2a69d77f
Fix issues in codebase
2022-07-26 02:46:37 +02:00
David Jennes
f7b4593e48
Don't ignore fonts if the UTI-check fails in sandbox env.
2022-07-25 18:27:06 +02:00
Craig Siemens
9cff102102
Added parsing to try and parse the comment from the strings file.
2022-07-23 15:21:35 +02:00
David Jennes
c9fcc4a321
Typo
2021-04-12 04:58:11 +02:00
David Jennes
e7c4cf6560
Merge branch 'develop' into feature/file-resources
...
# Conflicts:
# .swiftpm/xcode/xcshareddata/xcschemes/swiftgen.xcscheme
# Sources/SwiftGenCLI/templates/files/flat-swift4.stencil
# Sources/SwiftGenCLI/templates/files/flat-swift5.stencil
# Sources/SwiftGenCLI/templates/files/structured-swift4.stencil
# Sources/SwiftGenCLI/templates/files/structured-swift5.stencil
# Sources/TestUtils/TestsHelper+Context.swift
# SwiftGen.xcodeproj/project.pbxproj
# Tests/TemplatesTests/TestsHelper.swift
2021-04-12 04:50:18 +02:00
David Jennes
dbc7218135
Update SwiftLint
2021-04-11 23:51:17 +02:00
Michael Gray
7da0c7b14a
Merge branch 'develop' into feature/file-resources
2020-12-17 09:24:31 -05:00
David Jennes
9d5a5d4240
Try to resolve color aliases
2020-10-22 18:25:06 +02:00
David Jennes
32498f6832
Parse the color format option during init
2020-10-19 21:21:19 +02:00
David Jennes
79126d9d28
Rework parser to generate groups, drop the custom options
2020-10-18 01:26:09 +02:00
David Jennes
9e8942138c
Rework filter to accept some options (to for example skip dirs)
2020-10-17 23:28:28 +02:00
David Jennes
36be7ae3d7
Merge branch 'develop' into feature/file-resources
...
# Conflicts:
# CHANGELOG.md
2020-10-17 17:42:54 +02:00
David Jennes
47506411fd
Parser: process symbol sets
2020-10-07 22:38:37 +02:00
David Jennes
fb0b2ee762
Add some code comments/docs
2020-10-06 18:54:05 +02:00
David Jennes
b12aaa3da4
Apply NSNumber inspection to arrays
2020-10-05 22:06:44 +02:00
David Jennes
da0d5b3782
Apply same logic to Yams NSNumber representer
2020-10-05 20:08:38 +02:00
David Jennes
238841664f
Ensure we generate correct metadata for NSNumber types
2020-10-05 20:08:38 +02:00
David Jennes
4c885db621
Update SwiftLint to 0.40.3
2020-10-02 18:59:03 +02:00
Olivier Halligon
bd3644d5bd
Small improvements in AnyCodable implementation
...
\cc @iankeen
2020-09-28 16:08:13 +02:00
Olivier Halligon
5c317a250e
Update Credits
...
Also took the occasion to update all mentions of me in CHANGELOG from my github handle to my real name, for consistency
2020-09-28 15:58:01 +02:00
Olivier Halligon
4586061d88
Switch to using PropertyListDecoder and AnyCodable
2020-09-27 21:06:53 +02:00
Olivier Halligon
fa60043f53
[Plist Context] Round-trip to and from YAML
...
To ensure NSCFBoolean and similar are parsed correctly
2020-09-27 18:32:05 +02:00
David Jennes
7388ed4b28
Merge branch 'develop' into feature/colors-xml-argb
2020-09-12 22:04:21 +02:00
Mike Gray
06d0693eb3
Add parser options relativeTo and compact
...
- `relativeTo` allows explicitly specifying a directory parsed files should be in relation to
- `compact` eliminates nested common ancestors where the directory only contains another directory
2020-08-30 16:48:24 -04:00
Mike Gray
a6f5713279
Rename dirs to directories. Add more context to README
2020-08-30 08:53:22 -04:00
Mike Gray
08304d71ed
Lowercased string comparisons
2020-08-30 08:45:50 -04:00
Craig Siemens
9d2e2c78a9
Added comments for the return type of Parser.subpaths
2020-08-29 18:25:48 -06:00
Craig Siemens
2c52b0194d
Moved the generate-xcfilelists command to be a subcommand of config.
2020-08-29 17:52:02 -06:00
Mike Gray
239350884e
Remove structured option in favor of template manipulation
...
- Don't use a parser option to affect the output of the context
- Only output structured data in the context
- Handle context manipulation in the template, i.e. flattening the hierarchy
2020-08-29 16:59:34 -04:00
Mike Gray
d8599eb2bd
Rename file to match convention
2020-08-29 15:27:40 -04:00
Mike Gray
2888a1cdfa
Add structured directory context and template
2020-08-29 13:33:55 -04:00
Mike Gray
ffff9dddb0
Change path string to components array. Drop parent directory
2020-08-29 11:05:58 -04:00
Mike Gray
92ae0a50f3
Merge remote-tracking branch 'SwiftGen/develop' into feature/file-resources
2020-08-29 08:26:52 -04:00
Kevin Haitsma
1467110b85
Add support for colorFormat option
2020-08-20 15:17:45 +02:00
Kevin Haitsma
ddde7183e3
Add support for ARGB format for Android colors xml parser
2020-08-18 15:40:45 +02:00
Mike Gray
a8da9e67b7
[WIP] Renamed Resources to Files
...
- Add `path` and `mimeType` to `File` type
- Recursively parse files
- Start writing tests for parser
2020-07-31 18:37:42 -04:00
Mike Gray
b819b8a3db
Merge branch 'develop' into feature/file-resources
2020-07-31 10:43:11 -04:00
Olivier Halligon
79442f8950
Fix typo in error message
...
Co-authored-by: Thi Doãn <t@thi.im >
2020-07-31 13:24:29 +02:00
Olivier Halligon
7ea6404ff5
Typo in comment
...
Co-authored-by: David Jennes <djbe@users.noreply.github.com >
2020-07-31 09:18:27 +02:00
Olivier Halligon
6743ed55dc
Replace recursive impl with iterative one
2020-07-19 01:24:25 +02:00
Olivier Halligon
0a6ae87e22
Name cleanup
2020-07-19 01:23:18 +02:00
Olivier Halligon
d2efb2a0fc
Fix typo
...
thx @chosa91
2020-07-18 16:44:06 +02:00
Olivier Halligon
1a576133a8
Avoid optional return, cleanup capture groups
2020-07-18 16:37:45 +02:00
Olivier Halligon
e7590e47fc
Fix parsing logic to make tests green
2020-07-18 16:29:57 +02:00