krzysztofzablocki / Sourcery

Meta-programming for Swift, stop writing boilerplate code.
http://merowing.info
MIT License
7.58k stars 605 forks source link

Adjusted file structure to accommodate two generated files #1299

Closed art-divin closed 3 months ago

art-divin commented 3 months ago

Description

This MR prepares code structure for code generation by altering folder structure and adjusting .sourcery.yml to facilitate platform-specific generated files.

Context

After #1188 , automated code generation in Sourcery does not work, since there are separate files for Linux (named *_Linux.swift) which implement DynamicMemberLookup protocol due to abscence of KVC under non-Darwin platforms, and their counterparts for macOS. Related to #1198 and #1247