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-24593] Update Facebook Android SDK + iOS SDK to 4.25.0, support Graph v2.9 + FBSDKPlacesKit API, refactor iOS-project #85

Merged
merged 32 commits into from Sep 7, 2017

Conversation

hansemannn
Copy link
Contributor

@hansemannn hansemannn commented Mar 18, 2017

@hansemannn hansemannn changed the title Update Android Facebook SDK to 4.20.0 Update Android Facebook SDK to 4.20.0, iOS SDK to 4.20.2 Mar 18, 2017
@hansemannn hansemannn changed the title Update Android Facebook SDK to 4.20.0, iOS SDK to 4.20.2 Update Facebook Android SDK + iOS SDK to 4.22.0, support Graph v2.9 Apr 18, 2017
@hansemannn hansemannn changed the title Update Facebook Android SDK + iOS SDK to 4.22.0, support Graph v2.9 [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.22.0, support Graph v2.9 Apr 18, 2017
@hansemannn hansemannn changed the title [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.22.0, support Graph v2.9 [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.22.0, support Graph v2.9 + Places SDK Apr 23, 2017
@hansemannn hansemannn changed the title [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.22.0, support Graph v2.9 + Places SDK [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.22.0, support Graph v2.9 + FBSDKPlacesKit API Apr 23, 2017
@hansemannn hansemannn changed the title [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.22.0, support Graph v2.9 + FBSDKPlacesKit API [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.23.0, support Graph v2.9 + FBSDKPlacesKit API Jun 21, 2017
@hansemannn
Copy link
Contributor Author

@garymathews I finished moving the "old" jar-library to our new AAR-handling and updated to the latest FB-SDK. We would probably need to bump the minimum version of Ti.Facebook to 6.1.0 then, is that okay?

@garymathews
Copy link
Contributor

garymathews commented Jun 21, 2017

@hansemannn Yes, the older module can be used if pre-6.1.0 compatibility is needed 👍

I'll review this very soon.

Copy link
Contributor

@garymathews garymathews left a comment

Choose a reason for hiding this comment

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

CR: PASS


if (description != nil) {
NSLog(@"Ti.Facebook.presentMessengerDialog.description has been deprecated in Ti.Facebook 5.5.0 as of the Graph v2.9 changes.");
content.contentDescription = [params objectForKey:@"description"];
Copy link
Contributor

Choose a reason for hiding this comment

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

As per FBSDKShareLinkContent.h -
@Property (nonatomic, readonly) NSString *contentDescription
DEPRECATED_MSG_ATTRIBUTE("contentDescription is deprecated from Graph API 2.9");

contentDescription has changed to read only, but you are assigning to it. It is giving build error. Please remove it.


if (title != nil) {
NSLog(@"Ti.Facebook.presentMessengerDialog.title has been deprecated in Ti.Facebook 5.5.0 as of the Graph v2.9 changes.");
content.contentTitle = title;
Copy link
Contributor

Choose a reason for hiding this comment

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

@Property (nonatomic, readonly) NSString *contentTitle
DEPRECATED_MSG_ATTRIBUTE("contentTitle is deprecated from Graph API 2.9");

contentTitle has changed to read only, but you are assigning to it. It is giving build error. Please remove it.


if (picture != nil) {
NSLog(@"Ti.Facebook.presentMessengerDialog.picture has been deprecated in Ti.Facebook 5.5.0 as of the Graph v2.9 changes.");
content.imageURL = [NSURL URLWithString:picture];
Copy link
Contributor

Choose a reason for hiding this comment

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

As per FBSDKShareLinkContent.h -

@Property (nonatomic, readonly) NSURL *imageURL
DEPRECATED_MSG_ATTRIBUTE("imageURL is deprecated from Graph API 2.9");
imageURL has changed to read only, but you are assigning to it. It is giving build error. Please remove it.


if (description != nil) {
NSLog(@"Ti.Facebook.presentShareDialog.description has been deprecated in Ti.Facebook 5.5.0 as of the Graph v2.9 changes.");
content.contentDescription = [params objectForKey:@"description"];
Copy link
Contributor

Choose a reason for hiding this comment

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

As per FBSDKShareLinkContent.h -
@Property (nonatomic, readonly) NSString *contentDescription
DEPRECATED_MSG_ATTRIBUTE("contentDescription is deprecated from Graph API 2.9");

contentDescription has changed to read only, but you are assigning to it. It is giving build error. Please remove it.

@hansemannn
Copy link
Contributor Author

@vijaysingh-axway Thanks for the feedback, I've eliminated all of them!

@hansemannn
Copy link
Contributor Author

Hey @vijaysingh-axway, this unintentionally ended in basically rewriting the whole module. This includes:

  • Moved to ARC
  • Exposed public API's to headers
  • Added nullability-specification
  • Rename parameter to human-readable ones

@hansemannn hansemannn changed the title [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.23.0, support Graph v2.9 + FBSDKPlacesKit API [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.24.0, support Graph v2.9 + FBSDKPlacesKit API, refactor iOS-project Jul 23, 2017
Copy link
Contributor

@vijaysingh-axway vijaysingh-axway left a comment

Choose a reason for hiding this comment

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

CR passed.

@hansemannn
Copy link
Contributor Author

@garymathews Double-checking: Can we merge this? iOS is ready, Android seems to be approved by you as well. Thanksss!

Copy link
Contributor

@garymathews garymathews left a comment

Choose a reason for hiding this comment

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

CR: PASS

@hansemannn
Copy link
Contributor Author

hansemannn commented Aug 17, 2017

@ewieberappc Can we do a FT before merging here? I feel we are more save to test the packaged modules before. It's provided above!

@hansemannn hansemannn self-assigned this Aug 21, 2017
@hansemannn
Copy link
Contributor Author

Side-note: CI fails because it tries with master, which requires the V8 upgrade for Android, so not related to this PR.

@hansemannn hansemannn changed the title [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.24.0, support Graph v2.9 + FBSDKPlacesKit API, refactor iOS-project [TIMOB-24593] Update Facebook Android SDK + iOS SDK to 4.25.0, support Graph v2.9 + FBSDKPlacesKit API, refactor iOS-project Aug 21, 2017
@mukherjee2 mukherjee2 self-requested a review August 24, 2017 23:23
Copy link

@mukherjee2 mukherjee2 left a comment

Choose a reason for hiding this comment

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

Node Version: 6.10.3
NPM Version: 3.10.10
Mac OS: 10.12.4
Appc CLI: 6.2.3
Appc CLI NPM: 4.2.9
Titanium SDK version: 6.2.0.v20170823150008
Appcelerator Studio, build: 4.9.1.201707200100
Xcode 8.3.2
Ti Facebook Module 6.3.0 for Android

FR passed for Android. I used the latest module, and was able to use the module with a Facebook app that I created.

@hansemannn hansemannn merged commit 85d2724 into tidev:master Sep 7, 2017
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

4 participants