Add missing preprocessors value

Summary:
If you add the IGListDiffable plugin as is and run `./bin/build` on your Remodel install, it'll err out. It's missing the `preprocessor` values so I've added those in for both the required methods.

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/1170

Differential Revision: D8204511

Pulled By: rnystrom

fbshipit-source-id: 7b03964900c63e1762088e8e47a2a931c9945092
This commit is contained in:
Jordan Morgan 2018-05-30 12:32:36 -07:00 committed by Facebook Github Bot
parent c04fa2fcaa
commit d7e8ad4459

View file

@ -20,6 +20,7 @@ import ObjectSpecCodeUtils = require('../object-spec-code-utils');
function isEqualToDiffableObjectMethod():ObjC.Method {
return {
preprocessors:[],
belongsToProtocol:Maybe.Just<string>('IGListDiffable'),
code: ['return [self isEqual:object];'],
comments:[],
@ -147,6 +148,7 @@ function diffIdentifierMethodImplementation(objectType:ObjectSpec.Type):string[]
function diffIdentifierMethod(objectType:ObjectSpec.Type):ObjC.Method {
return {
preprocessors:[],
belongsToProtocol:Maybe.Just<string>('IGListDiffable'),
code: diffIdentifierMethodImplementation(objectType),
comments:[],