Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Number of small changes/optimisations #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aranjan
Copy link

@aranjan aranjan commented May 9, 2017

  1. Fix issue with Example app not reloading the table view first time with Contacts access permission is not given to the app.
  2. Added +new function as NS_UNAVAILABLE in OHABAddressBookContactsDataProvider and OHCNContactsDataProvider
  3. Removed compiler warning in OHSMSPicker
  4. Removed unwanted _Nonnull in extern declarations as the header function already declares NS_ASSUME_NONNULL_BEGIN/NS_ASSUME_NONNULL_END

1. Fix issue with Example app not reloading the table view first time with Contacts access permission is not given to the app.
2. Added `+new` function as NS_UNAVAILABLE in OHABAddressBookContactsDataProvider and OHCNContactsDataProvider
3. Removed compiler warning in OHSMSPicker
4. Removed unwanted _Nonnull in extern declarations as the header function already declares NS_ASSUME_NONNULL_BEGIN/NS_ASSUME_NONNULL_END
@CLAassistant
Copy link

CLAassistant commented May 9, 2017

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@@ -49,6 +49,8 @@ NS_ASSUME_NONNULL_BEGIN

- (instancetype)init NS_UNAVAILABLE;

+ (OHABAddressBookContactsDataProvider *)new NS_UNAVAILABLE;
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like a good idea, but should be done to all or none of the classes with unavailable inits. Let's make this change a separate PR since it spans a large number of files (I see 12 from a quick search). Also for consistency we should probably make it + (instancetype)new NS_UNAVAILABLE;.

Choose a reason for hiding this comment

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

Sure @NickEntin, I'll create new PR for adding + (instancetype)new NS_UNAVAILABLE;

Copy link
Author

Choose a reason for hiding this comment

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

#50

1. Move reloadData inside dispatch_async block to ensure the UI is updated every time user grants permission to access contacts
2. Remove +new as its part of other PR (uber-archive#50)
3. Remove unwanted inclusion of #import <OCMock/OCMock.h> from test classes
4. Remove unused setup functions from test class
@aranjan aranjan changed the title Following Changes: Number of small changes/optimisations May 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants