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

[photos] Update up to beta 2 #2290

Merged
merged 4 commits into from
Jul 13, 2017
Merged

Conversation

spouliot
Copy link
Contributor

@spouliot spouliot commented Jul 4, 2017

No description provided.

ImageAnimated = 2,
LivePhoto = 3,
Video = 4,
VideoLooping = 5
Copy link
Member

Choose a reason for hiding this comment

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

Minor: missing comma at the end.

src/photos.cs Outdated
[Mac (10,13, onlyOn64 : true)]
[NoiOS][NoTV]
[BaseType (typeof (PHAssetCollection))]
interface PHProject {
Copy link
Member

Choose a reason for hiding this comment

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

Minor: Tab instead of space after type name.

Copy link
Member

@dalexsoto dalexsoto left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Just two small things

@@ -274,4 +275,52 @@ public enum PHLivePhotoFrameType : nint {
Photo,
Video
}

[TV (11,0), iOS (11,0)]
Copy link
Member

Choose a reason for hiding this comment

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

Is this also new on mac?

src/photos.cs Outdated
@@ -702,11 +722,18 @@ interface PHContentEditingOutput : NSCoding, NSSecureCoding {

[Export ("renderedContentURL", ArgumentSemantic.Copy)]
NSUrl RenderedContentUrl { get; }

#if false
Copy link
Member

Choose a reason for hiding this comment

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

Should we file a bug?? Or add a TODO: here so we do not forget

Copy link
Contributor Author

Choose a reason for hiding this comment

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

upon verification it was added in the wrong type - that's what happen when you're half blind :|

@monojenkins
Copy link
Collaborator

Build failure

@spouliot spouliot requested review from timrisi and chamons July 4, 2017 20:04
@spouliot
Copy link
Contributor Author

spouliot commented Jul 4, 2017

@timrisi @chamons there's quite a bunch of macOS only API added. I don't have 10.13 to ensure intro is fine so please check this and (once merged) keep an eye on possible failures. thanks!

@monojenkins
Copy link
Collaborator

Build failure

src/photos.cs Outdated
NSData ProjectExtensionData { get; }

[Field ("PHProjectTypeUndefined")]
NSString TypeUndefined { get; }
Copy link
Contributor

@timrisi timrisi Jul 5, 2017

Choose a reason for hiding this comment

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

Looking at the swift definition for this:

static let undefined: PHProjectType

Where PHProjectType is an NSString typedef. I wonder if this should be in a separate PHProjectType class, to be PHProjectType.Undefined instead of PHProject.TypeUndefined. Seems like something they may add more options to down the line, and could possibly end up as a smart enum

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point on the type.

It looks like an extensible name (undefined is unlikely the only valid name) which makes it a bad candidate for a smart enum (even more as it's exposed as a property).

src/photos.cs Outdated
interface PHProjectTypeDescription : NSSecureCoding {

[Export ("projectType")]
string ProjectType { get; }
Copy link
Contributor

@timrisi timrisi Jul 5, 2017

Choose a reason for hiding this comment

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

Wonder if this uses the aforementioned PHProjectTypeUndefined (it also uses the PHProjectType typedef in the header)

src/photos.cs Outdated
PHProjectCreationSource CreationSource { get; }

[Export ("projectType")]
string ProjectType { get; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question

@timrisi
Copy link
Contributor

timrisi commented Jul 5, 2017

Not seeing any test failures on 10.13

Copy link
Contributor

@chamons chamons left a comment

Choose a reason for hiding this comment

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

LGTM assuming 10.13 intro passes as you say.

…uldRenderAtPlaybackTime (the later needs more work)
src/photos.cs Outdated
@@ -1108,10 +1150,22 @@ interface PHLivePhotoEditingContext {
[Export ("prepareLivePhotoForPlaybackWithTargetSize:options:completionHandler:")]
void PrepareLivePhotoForPlayback (CGSize targetSize, [NullAllowed] NSDictionary<NSString, NSObject> options, Action<PHLivePhoto, NSError> handler);

#if false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dalexsoto are we dealt with this case yet ? i.e. creating a strong dict based on the generic nsdictionary

Copy link
Member

Choose a reason for hiding this comment

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

Nope, first timer

#if false
[iOS (10,0)]
[TV (10,0)]
#if XAMCORE_2_0 // fails to build with mac/classic
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dalexsoto I recall we discussed that a while ago, was a bug filled ? (could not find it)

@monojenkins
Copy link
Collaborator

Build failure

@spouliot
Copy link
Contributor Author

@timrisi your concerns have been addressed.

@monojenkins
Copy link
Collaborator

Build failure

@spouliot
Copy link
Contributor Author

failure is a known issue -> https://bugzilla.xamarin.com/show_bug.cgi?id=57762

@spouliot spouliot merged commit cedb13a into xamarin:xcode9 Jul 13, 2017
@spouliot spouliot deleted the xcode9-photos-b2 branch July 13, 2017 18:07
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.

7 participants