Commit graph

15 commits

Author SHA1 Message Date
Tim Oliver
f92b9339ee Standarize the copyright notice in all source files
Summary:
The standardized Meta copyright notice is "Copyright (c) Meta Platforms, Inc. and affiliates." and not "Copyright (c) Meta Platforms, Inc. and its affiliates." (Dropping the "its")

This diff updates the copyright notice in each source file to the correct this.

Reviewed By: willbailey

Differential Revision: D44737667

fbshipit-source-id: 643bf36df76723e70d9d826c53cf8f29b8a0c8cc
2023-04-06 02:44:16 -07:00
Tim Oliver
a1b9c2ddb3 Updated corporate branding in IGListKit source files
Summary:
A quick push to fix something I noticed while studying how IGListKit works. This simply replaces "Facebook, Inc" with "Meta Platforms, Inc" in all of the source files where the company copyright notice is posted. This should help bring our external facing projects more in line with our new corporate branding.

There's still a lot more references to "Facebook" as a company in the library (especially around linking to other Meta sponsored open source libraries), but this might need additional scrutiny and review on a case-by-case basis, so let's handle those ones separately.

Reviewed By: lorixx

Differential Revision: D41207363

fbshipit-source-id: 57cdbf5eb1023b41a5f32c0c05e01628686a19fe
2022-11-15 21:47:29 -08:00
Jian Chen
c7c8f38638 Add <IGListDiffable> to isEqualToDiffableObject method argument type
Summary:
This method generated using the remodel generation script does not match with the header file.

 The method declared in .h file is:
    - (BOOL)isEqualToDiffableObject:(nullable id<IGListDiffable>)object;

But implementation generated in .m file is:
    - (BOOL)isEqualToDiffableObject:(nullable id)object
    {
        return [self isEqual:object];
    }

This fix is to generate the implementation as:
    - (BOOL)isEqualToDiffableObject:(nullable id<IGListDiffable>)object
    {
        return [self isEqual:object];
    }

Reviewed By: natestedman

Differential Revision: D27146804

fbshipit-source-id: f7d0d598e97e0ef47948b973ff38d9a319cd4b0d
2021-03-18 02:20:45 -07:00
Markus Emrich
3deecff55a Update remodel iglistdiffable plugin to the latest
Summary:
Remodel changed quite a bit, this updates the plugin to work correctly with the latest state.
It also includes other recent Remodel changes like e.g. autoformatting of the codebase.

Resolves #1353

Reviewed By: natestedman

Differential Revision: D16794236

fbshipit-source-id: f543d0e3e5656f540accd5e359bbaf0acc8071fc
2019-08-14 12:23:59 -07:00
Jeremy Lawrence
c7caa4f166 Add copyright statement to remodel feature file
Summary: Add copyright statement to the `iglistdiffable.feature` file.

Reviewed By: calimarkus

Differential Revision: D15768452

fbshipit-source-id: 67bd21b7fbd9e13712b00f529ae4ce9ea118b341
2019-06-12 08:49:58 -07:00
Ryan Nystrom
0915a50ce0 Update outdated javascript headers #trivial (#1281)
Summary:
Leftovers from MIT migration and one file missing license.
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1281

Differential Revision: D13198570

Pulled By: rnystrom

fbshipit-source-id: dd55209d54344fa3252c9efc8ca47dd0b6c1832f
2018-11-26 11:11:25 -08:00
Ryan Nystrom
8d8a632b67 Update MIT license language (#1272)
Summary:
Updating license language to meet FB open source standards.
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1272

Differential Revision: D12844366

Pulled By: rnystrom

fbshipit-source-id: 27ae49ae00d963c5c012c79c5738365c232a5773
2018-11-01 10:58:46 -07:00
Chris McGrath
0efb259e86 Optimize IGListDiffable for common diffIdentifier types
Summary: Let's use simple NSNumber wrapping to make diffable objects for most primitive types. This should be faster than building strings.

Reviewed By: calimarkus

Differential Revision: D10416548

fbshipit-source-id: af5b0a5afc6cd2c45c7e0bf2aa872864c12cbd98
2018-10-23 16:49:02 -07:00
Chris McGrath
2b4ee9bd36 Add support for fallback object value of nil
Summary: This lets callers provide a fallback object value (e.g. `[NSNull null]`) for safety when the returned object is required to be non-null.

Reviewed By: natestedman

Differential Revision: D10504059

fbshipit-source-id: 1217755e84a927fe8cfbd0e944af55613f1f7c75
2018-10-23 16:49:02 -07:00
Chris McGrath
a30e87f5b0 Share common IGListDiffable plugin methods
Summary: This will enable future reuse.

Reviewed By: calimarkus

Differential Revision: D10370258

fbshipit-source-id: 20a7569dc2b8b5222edbd29d2773a088c06b7622
2018-10-22 18:39:16 -07:00
Chris McGrath
c907d22acd Update acceptance test for the IGListKit internal version of the iglistdiffable plugin
Summary: Fix acceptance test for IGListDiffable remodel plugin to match recent remodel changes.

Reviewed By: calimarkus

Differential Revision: D10408993

fbshipit-source-id: 224808b47d17d83e86a42073a4dbf031b0e1ffed
2018-10-22 18:39:16 -07:00
Markus Emrich
853b0377fc Update the iglistdiffable remodel plugin to the latest open source changes
Reviewed By: tommycrush

Differential Revision: D9790337

fbshipit-source-id: e841c30f647dbb67e77bcba39906f7cf0f41907f
2018-09-12 13:17:44 -07:00
Jordan Morgan
d7e8ad4459 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
2018-05-30 12:36:43 -07:00
Markus Emrich
6fa9be5d9f Update remodel plugin to latest openSource changes
Summary: This ensures we stay compatible with the current open source state of remodel.

Reviewed By: ColinCampbell

Differential Revision: D7082447

fbshipit-source-id: 3fa23b903760d36029141b5adc441ae57ea5caab
2018-02-26 23:09:03 -08:00
Markus Emrich
e02dd0e7ed Add IGListDiffable remodel plugin source + documentation (a new guide)
Summary:
Adds the source for a remodel plugin to autogenerate models conforming to `IGListDIffable`.

- [x] All tests pass. Demo project builds and runs. (source untouched, purely additive)
- [x] I added remodel plugin tests + and a new guide explaining the installation + usage
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/1083

Reviewed By: rnystrom

Differential Revision: D6937925

Pulled By: calimarkus

fbshipit-source-id: 54228cddf387cf20ceceec1732e439ab6fd4b984
2018-02-09 10:18:18 -08:00