Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-23925] iOS: Wrap platform-API's in precompile-macros #8456

Merged
merged 10 commits into from Oct 4, 2016

Conversation

hansemannn
Copy link
Collaborator

@hansemannn hansemannn added this to the 6.0.0 milestone Oct 1, 2016
@@ -205,7 +214,8 @@ -(NSString*)apiName
MAKE_SYSTEM_PROP_DEPRECATED_REPLACED_REMOVED(audioLineType,-10,@"Media.audioLineType",@"3.4.2",@"3.6.0",@"Media.currentRoute");

//Constants for currentRoute
MAKE_SYSTEM_STR(AUDIO_SESSION_PORT_LINEIN,AVAudioSessionPortLineIn)
#ifdef USE_TI_MEDIAAUDIOPLAYER
MAKE_SYSTEM_STR(text,AVAudioSessionPortLineIn)
Copy link
Contributor

Choose a reason for hiding this comment

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

I maybe wrong, but this can't be text right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch! Addressed.


#import "TiMediaAudioPlayerProxy.h"
#import "TiUtils.h"
#ifdef USE_TI_MEDIAAUDIOSESSION
Copy link
Contributor

Choose a reason for hiding this comment

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

Using KitchenSink, the build fails because of this. Apparently, USE_TI_MEDIAAUDIOSESSION will not be generated in defines.h when building to device. commenting this out makes it build normally.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed.

#define USE_TI_MEDIAISMEDIATYPESUPPORTED
#define USE_TI_MEDIASAVETOGALLERY
#define USE_TI_MEDIASTARTVIDEOEDITING
#define USE_TI_MEDIAAUDIOSESSION
Copy link
Contributor

Choose a reason for hiding this comment

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

Based on testing on device using KitchenSInk, This define is not necessary since it doesn't get generated when building to device, even when the app manages audio player.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed.

@cheekiatng
Copy link
Contributor

KitchenSink builds and Media-related code runs fine after these issues were addressed.

@cheekiatng
Copy link
Contributor

CR and FT passed!

@cheekiatng cheekiatng merged commit 4f79e2f into tidev:master Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants