Skip to content

Commit

Permalink
refactor(ios): remove Ti.Media.cameraAuthorizationStatus
Browse files Browse the repository at this point in the history
BREAKING CHANGES: removes deprecated Ti.Media.cameraAuthorizationStatus property
  • Loading branch information
sgtcoolguy committed Dec 9, 2019
1 parent cdd5a44 commit cbf994e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion iphone/Classes/MediaModule.h
Expand Up @@ -82,7 +82,6 @@
@property (nonatomic, readonly) NSDictionary *currentRoute;
@property (nonatomic, readonly) NSNumber *audioPlaying;
@property (nonatomic, readonly) NSNumber *isCameraSupported;
@property (nonatomic, readonly) NSNumber *cameraAuthorizationStatus;
@property (nonatomic, assign) NSNumber *audioSessionMode;
@property (nonatomic, assign) NSString *audioSessionCategory;

Expand Down
8 changes: 1 addition & 7 deletions iphone/Classes/MediaModule.m
Expand Up @@ -592,13 +592,7 @@ - (NSNumber *)isCameraSupported
}
#endif

#if defined(USE_TI_MEDIACAMERAAUTHORIZATION) || defined(USE_TI_MEDIACAMERAAUTHORIZATIONSTATUS)
- (NSNumber *)cameraAuthorizationStatus
{
DEPRECATED_REPLACED(@"Media.cameraAuthorizationStatus", @"5.2.0", @"Media.cameraAuthorization");
return [self cameraAuthorization];
}

#if defined(USE_TI_MEDIACAMERAAUTHORIZATION)
- (NSNumber *)cameraAuthorization
{
return NUMINTEGER([AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]);
Expand Down
1 change: 0 additions & 1 deletion iphone/Classes/defines.h
Expand Up @@ -178,7 +178,6 @@
#define USE_TI_MEDIAAVAILABLEPHOTOGALLERYMEDIATYPES
#define USE_TI_MEDIAAVAILABLECAMERAS
#define USE_TI_MEDIACAMERAAUTHORIZATION
#define USE_TI_MEDIACAMERAAUTHORIZATIONSTATUS
#define USE_TI_MEDIAVOLUME
#define USE_TI_MEDIAAUDIOPLAYING
#define USE_TI_MEDIACURRENTROUTE
Expand Down

0 comments on commit cbf994e

Please sign in to comment.