-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This diff modernizes the `FBSDKLoginKit` to support modern Objective-C syntax to increase type safety with both ObjC and Swift. **General Changes** * Removed Deprecated Methods, Classes, Properties * Typedefs for all Objective-C blocks * Used `instancetype` for inits * Updated Xcode Projects/Schemes via. "Validate Project" option in Xcode * Made `init`/`new` unavailable where/when possible * Confirm `NSError **` throws on Swift * Used `NS_SWIFT_UNAVAILABLE` where makes sense * Ensured `NS_DESIGNATED_INITIALIZER` is used * Added `NS_TYPED_EXTENSIBLE_ENUM` where made sense **Updated Properties** * Changed getter methods to `readonly` properties * Changed getter/setter methods to `readwrite` properties * Changed singletons to class properties * Used dot notation for access to properties * Added `getter=` for certain properties (e.g. `BOOL`) **Added Nullability Annotations** * Used `NS_ASSUME_NONNULL_BEGIN` & `NS_ASSUME_NONNULL_END` for files * Used `_Nullable` for typedef blocks * Used `nullable` & `null_resettable` * Collections/Dictionaries `nonnull` when at all possible **Added Generics** * `NSArray` & `NSMutableArray` * `NSSet` & `NSMutableSet` * `NSDictionary` & `NSMutableDictionary` **Added `NS_SWIFT_NAME`** * Removed prefixes in favor of Swift namespaces * `FB` prefix for UI elements * Added Dot notation where makes sense * Swift init for class method creation methods Reviewed By: jingping2015 Differential Revision: D9883550 fbshipit-source-id: 2fb40d44b66b033bb998bf9ae57d71a0c9d339d7
- Loading branch information
1 parent
9b682bb
commit 5eae2d7
Showing
18 changed files
with
159 additions
and
123 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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
Oops, something went wrong.