This repository was archived by the owner on Sep 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Remove context generation parameters #42
Merged
AliSoftware
merged 2 commits into
master
from
feature/breaking/remove-context-parameters
May 27, 2017
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| ## SwiftGenKit 2.0 (SwiftGen 5.0) | ||
|
|
||
| ### For template writers: | ||
|
|
||
| #### Colors | ||
|
|
||
| - `enumName`: has been replaced by `param.enumName`, should provide default value. | ||
| - For each `color`: | ||
| - `rgb` and `rgba`: can be composed from the other components. | ||
|
|
||
| #### Fonts | ||
|
|
||
| - `enumName`: has been replaced by `param.enumName`, should provide default value. | ||
| - For each `font`: | ||
| - `fontName`: has been replaced by the `name` property. | ||
|
|
||
| #### Images | ||
|
|
||
| - `enumName`: has been replaced by `param.enumName`, should provide default value. | ||
| - `images`: just old, `catalogs` contains the structured information. | ||
|
|
||
| #### Storyboards | ||
|
|
||
| - `extraImports`: replaced by `modules` (https://github.com/AliSoftware/SwiftGen/pull/243) | ||
| - `sceneEnumName`: has been replaced by `param.sceneEnumName`, should provide default value. | ||
| - `segueEnumName`: has been replaced by `param.segueEnumName`, should provide default value. | ||
| - For each `scene`: | ||
| - `isBaseViewController`: removed. You can replace it with a test for `baseType == "ViewController"`. | ||
|
|
||
| #### Strings | ||
|
|
||
| - `enumName`: has been replaced by `param.enumName`, should provide default value. | ||
| - `strings` and `structuredStrings`: replaced by `tables` array, where each table has a structured `levels` property. | ||
| - `tableName`: replaced by `tables` array, where each table has a `name` property. | ||
| - for each `level`: | ||
| - `subenums`: renamed to `children`. | ||
| - for each `string`: | ||
| - `keytail`: renamed to `name`. | ||
| - `params` structure with the `names`, `typednames`, `types`, `count` and `declarations` arrays: removed. | ||
| - These have been replaced by `types` which is an array of types. The previous variables | ||
| can now be reconstructed using template tags now that Stencil has become more powerful. | ||
|
|
||
| ### For developers using SwiftGenKit as a dependency: | ||
|
|
||
| Previously the parser context generation method (`stencilContext()`) accepted parameters such as `enumName`, this has been removed in favor of the `--param` system. Templates will automatically receive a `param` object with parameters from the CLI invocation, and should provide default values in case no value was present in the invocation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Resources
updated
27 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That present #42 will have to be merged before #41 I guess, to avoid this hard-coded value here to override the
self.tables.map { … }in #41 right?