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
David Jennes
7e13d64174
Remove raw strings from swift5 template, restore old string escape logic
2022-08-12 01:50:06 +02:00
David Jennes
e8588c3415
Fix template varargs starting parameter
2022-08-03 17:59:48 +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
3573182256
JSON/Plist/YAML template fixes for booleans
2022-07-31 22:33:57 +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
804b0ef777
XCAssets: deprecate allValues template parameter
2022-07-30 04:51:19 +02:00
David Jennes
03626fd41e
Update templates to fix output (and drop deprecated filter)
2022-07-30 04:41:48 +02:00
David Jennes
e69ec2e0f1
Update templates to provide translation as fallback value
2022-07-27 00:12:04 +02:00
David Jennes
565fcb8a87
Update templates
2022-07-26 02:57:59 +02:00
David Jennes
358684c171
Fix issues in templates
2022-07-26 02:46:47 +02:00
David Jennes
0b4325d3f9
Update templates to show comments (instead of translation) when possible
2022-07-23 15:21:37 +02:00
David Jennes
4dc6aa156c
Update templates to handle nonOptionalInit
2022-07-23 02:13:15 +02:00
David Jennes
28a2a2c007
Use classname for fetched props. instead of entity name
2022-07-22 03:39:33 +02:00
Guilherme Souza
8d1a23ead3
Add final to core data object when not an abstract model
2022-07-21 16:14:08 +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
Marius Rackwitz
12fcfb5f82
Fix multi-line translations in comments
2021-04-12 02:14:27 +02:00
szotp
a5cbadf6ef
#821 use documentation comments for objc-h
2021-04-12 00:45:13 +02:00
David Jennes
0e24df7fc4
Move templates into shared CLI framework
2021-04-11 21:24:46 +02:00