Skip to content

Commit

Permalink
fix(ios): remove deprecated contacts methods
Browse files Browse the repository at this point in the history
BREAKING CHANGES: removes Ti.Contacts requestAuthorization method (in favor of requestContactsPermissions)
  • Loading branch information
sgtcoolguy committed Dec 16, 2019
1 parent 7e0a46a commit 207b4ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion iphone/Classes/ContactsModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
- (NSArray *)getAllPeople:(id)unused;
- (TiContactsPerson *)createPerson:(id)arg;
- (void)removePerson:(id)arg;
- (void)requestAuthorization:(id)args;
- (void)requestContactsPermissions:(id)args;

@property (nonatomic, readonly) NSNumber *contactsAuthorization;
Expand Down
6 changes: 0 additions & 6 deletions iphone/Classes/ContactsModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ - (NSNumber *)hasContactsPermissions:(id)unused
return @([CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts] == CNAuthorizationStatusAuthorized);
}

- (void)requestAuthorization:(id)args
{
DEPRECATED_REPLACED(@"Contacts.requestAuthorization()", @"5.1.0", @"Contacts.requestContactsPermissions()");
[self requestContactsPermissions:args];
}

- (void)requestContactsPermissions:(id)args
{
ENSURE_SINGLE_ARG(args, KrollCallback);
Expand Down

0 comments on commit 207b4ab

Please sign in to comment.