Skip to content

Conversation

@alexiscreuzot
Copy link

Summary

Here's an implementation of a possible improvement linked to issue #273.
Please do review it carefully as Ruby isn't my strong suit.

Feature

You can now optionally specify an array of suffixes that need to be processed by liftoff as resource (ie not be added to the Compile Sources phase), using the key additional_resource_suffixes.

Example

additional_resource_suffixes:
 - txt
 - yaml
 - ttf

Test

See https://github.com/kirualex/liftoff/blob/feature/%23273/spec/project_configuration_spec.rb#L76-L84


config = Liftoff::ProjectConfiguration.new({:additional_resource_suffixes => additional_resource_suffixes})

expect(config.additional_resource_suffixes).to eq(['foo', 'bar'])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@gfontenot gfontenot changed the base branch from master to main June 27, 2020 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants