Skip to content

Commit

Permalink
Released version 5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GetSocial committed Dec 5, 2016
1 parent f939567 commit 18017ee
Show file tree
Hide file tree
Showing 67 changed files with 4,263 additions and 23 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,13 @@

## Version History

### v5.2.0

+ ADDED KakaoTalk invite plugin
+ ADDED Social graph

---

### v5.1.9

+ FIXED issue with landscape mode on iOS7
Expand Down
Binary file not shown.
Expand Up @@ -78,6 +78,11 @@
*/
@property(nonatomic, readonly) NSString *sdkVersion;

/**
* Gets Version of the GetSocial API
*/
@property(nonatomic, readonly) NSString *apiVersion;

/**
* Gets if the GetSocial SDK was already initialized
*/
Expand Down Expand Up @@ -311,7 +316,17 @@
*
* @return An instance of GetSocialUserListViewBuilder
*/
- (GetSocialUserListViewBuilder *)createUserListViewWithDismissHandler:(void (^)(GetSocialUser *user, BOOL didCancel))handler;
- (GetSocialUserListViewBuilder *)createUserListViewWithDismissHandler:(void (^)(GetSocialUser *user, BOOL didCancel))handler __attribute__((deprecated("Please use `createUserListViewWithType:andDismissHandler` instead.")));

/**
* Creates user list view builder used to open the User List.
*
* @param type Type of the list to be shown
* @param handler Block to be called when User List is closed or an User was selected
*
* @return An instance of GetSocialUserListViewBuilder
*/
- (GetSocialUserListViewBuilder *)createUserListViewWithType:(GetSocialUserListType)type dismissHandler:(void (^)(GetSocialUser *user, BOOL didCancel))handler;

#pragma mark - Extra UI
/** @name Extra UI */
Expand Down
Expand Up @@ -92,6 +92,14 @@ typedef NS_ENUM(NSInteger, GetSocialContentSource) {
GetSocialContentSourcePublicChatMessage = 4
};

/** Constants for UserListView type */
typedef NS_ENUM(NSInteger, GetSocialUserListType) {
/**List with all following users */
GetSocialUserListFollowingType = 1,
/**List with all followers */
GetSocialUserListFollowersType = 2
};

typedef NSString *GetSocialProvider;

/**
Expand Down
Expand Up @@ -80,4 +80,74 @@
*/
- (void)resetWithSuccess:(GetSocialSuccessCallback)success failure:(GetSocialFailureCallback)failure;

/**
* Adds specified user to list of users who the current user is following
*
* @param user User to follow
* @param success Block called if the user is followed
* @param failure Block called if operation was not completed
*/
- (void)followUser:(GetSocialUser *)userToFollow success:(void (^)())success failure:(GetSocialFailureCallback)failure;

/**
* Adds user with specified userId and provider to list of users who the current user is following
*
* @param provider Provider
* @param userId Id of user on the specified provider
* @param success Block called if the user is followed
* @param failure Block called if operation was not completed
*/
- (void)followUserWithProvider:(GetSocialProvider)provider
userId:(NSString *)userId
success:(GetSocialSuccessCallback)success
failure:(GetSocialFailureCallback)failure;

/**
* Removes specified user from list of users who the current user is following
*
* @param user User to unfollow
* @param success Block called if the user is not followed
* @param failure Block called if operation was not completed
*/
- (void)unfollowUser:(GetSocialUser *)userToUnfollow success:(void (^)())success failure:(GetSocialFailureCallback)failure;

/**
* Removes user with specified userId and provider from list of users who the current user is following
*
* @param provider Provider
* @param userId Id of user on the specified provider
* @param success Block called if the user is not followed
* @param failure Block called if operation was not completed
*/
- (void)unfollowUserWithProvider:(GetSocialProvider)provider
userId:(NSString *)userId
success:(GetSocialSuccessCallback)success
failure:(GetSocialFailureCallback)failure;

/**
* Returns the list of followers for the current user
*
* @param offset Offset from which users will be retrieved
* @param count Count of users. Could be less than expected if there are less users
* @param success Block called if the list is retrieved
* @param failure Block called if operation was not completed
*/
- (void)followersWithOffset:(NSInteger)offset
count:(NSInteger)count
success:(void (^)(NSArray<GetSocialUser *> *))success
failure:(GetSocialFailureCallback)failure;

/**
* Returns the list of users who the current user is following
*
* @param offset Offset from which users will be retrieved
* @param count Count of users. Could be less than expected if there are less users
* @param success Block called if the list is retrieved
* @param failure Block called if operation was not completed
*/
- (void)followingWithOffset:(NSInteger)offset
count:(NSInteger)count
success:(void (^)(NSArray<GetSocialUser *> *))success
failure:(GetSocialFailureCallback)failure;

@end
2 changes: 1 addition & 1 deletion bin/GetSocial.embeddedframework/GetSocial.framework/readme
@@ -1 +1 @@
GetSocial v5.1.9
GetSocial v5.2.0
Binary file not shown.
Expand Up @@ -92,6 +92,14 @@ typedef NS_ENUM(NSInteger, GetSocialContentSource) {
GetSocialContentSourcePublicChatMessage = 4
};

/** Constants for UserListView type */
typedef NS_ENUM(NSInteger, GetSocialUserListType) {
/**List with all following users */
GetSocialUserListFollowingType = 1,
/**List with all followers */
GetSocialUserListFollowersType = 2
};

typedef NSString *GetSocialProvider;

/**
Expand Down
@@ -1 +1 @@
GetSocial v5.1.9
GetSocial v5.2.0
28 changes: 24 additions & 4 deletions example/GetSocialTestApp.xcodeproj/project.pbxproj
Expand Up @@ -7,6 +7,9 @@
objects = {

/* Begin PBXBuildFile section */
56551EE11DB8F61700A93DC0 /* GetSocialKakaoTalkInvitePlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 56551EE01DB8F61700A93DC0 /* GetSocialKakaoTalkInvitePlugin.m */; };
566E8A121DC21DE400FE3338 /* FBSDKMessengerShareKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 566E8A111DC21DE400FE3338 /* FBSDKMessengerShareKit.framework */; };
5699EC321DB7BB1C00E0A693 /* KakaoOpenSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5699EC311DB7BB1C00E0A693 /* KakaoOpenSDK.framework */; };
56B2BF701CAAC5710020B6FC /* Reachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 56B2BF6F1CAAC5710020B6FC /* Reachability.m */; };
7A42534B1D5DDF35007B9B47 /* getSocialLogoFullColorBlackBgIOS.png in Resources */ = {isa = PBXBuildFile; fileRef = 7A4253491D5DDF35007B9B47 /* getSocialLogoFullColorBlackBgIOS.png */; };
7A42534C1D5DDF35007B9B47 /* splashscreenBg.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 7A42534A1D5DDF35007B9B47 /* splashscreenBg.jpg */; };
Expand Down Expand Up @@ -50,7 +53,6 @@
99ABE3CC1BCEBC8600296F50 /* GetSocialTestApp.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = 99ABE3C81BCE8EA000296F50 /* GetSocialTestApp.entitlements */; };
99B68F171BB18FC500E1F252 /* UserIdentityViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 99B68F141BB18FC500E1F252 /* UserIdentityViewController.m */; };
99C086991BB92F4200C706DD /* defaultAvatar.png in Resources */ = {isa = PBXBuildFile; fileRef = 99C086961BB92F4200C706DD /* defaultAvatar.png */; };
99DDAF1B1D78688F009D9AED /* FBSDKMessengerShareKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99DDAF1A1D78688F009D9AED /* FBSDKMessengerShareKit.framework */; };
99DDAF1D1D78699F009D9AED /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 99DDAF1C1D78699F009D9AED /* libc++.tbd */; };
99EB88001AB7611600357E60 /* activityImageWithButton.png in Resources */ = {isa = PBXBuildFile; fileRef = 99EB87FD1AB7611600357E60 /* activityImageWithButton.png */; };
99F26AEB19A65BE5006D3B1A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 995D99B217EB064500F65204 /* AppDelegate.m */; };
Expand All @@ -69,6 +71,10 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
56551EDF1DB8F61700A93DC0 /* GetSocialKakaoTalkInvitePlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GetSocialKakaoTalkInvitePlugin.h; path = Plugins/GetSocialKakaoTalkInvitePlugin.h; sourceTree = "<group>"; };
56551EE01DB8F61700A93DC0 /* GetSocialKakaoTalkInvitePlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GetSocialKakaoTalkInvitePlugin.m; path = Plugins/GetSocialKakaoTalkInvitePlugin.m; sourceTree = "<group>"; };
566E8A111DC21DE400FE3338 /* FBSDKMessengerShareKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FBSDKMessengerShareKit.framework; path = GetSocialTestApp/Vendor/FBSDKMessengerShareKit.framework; sourceTree = "<group>"; };
5699EC311DB7BB1C00E0A693 /* KakaoOpenSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = KakaoOpenSDK.framework; path = GetSocialTestApp/Vendor/KakaoOpenSDK.framework; sourceTree = "<group>"; };
56B2BF6E1CAAC5710020B6FC /* Reachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Reachability.h; sourceTree = "<group>"; };
56B2BF6F1CAAC5710020B6FC /* Reachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Reachability.m; sourceTree = "<group>"; };
7A4253491D5DDF35007B9B47 /* getSocialLogoFullColorBlackBgIOS.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = getSocialLogoFullColorBlackBgIOS.png; path = Resources/getSocialLogoFullColorBlackBgIOS.png; sourceTree = "<group>"; };
Expand Down Expand Up @@ -132,7 +138,6 @@
99BF2FC118129DCC00B9A6B5 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
99C086941BB92EE500C706DD /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
99C086961BB92F4200C706DD /* defaultAvatar.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = defaultAvatar.png; path = Resources/defaultAvatar.png; sourceTree = "<group>"; };
99DDAF1A1D78688F009D9AED /* FBSDKMessengerShareKit.framework */ = {isa = PBXFileReference; path = FBSDKMessengerShareKit.framework; sourceTree = FacebookSDK; };
99DDAF1C1D78699F009D9AED /* libc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; };
99EB87FD1AB7611600357E60 /* activityImageWithButton.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = activityImageWithButton.png; path = Resources/activityImageWithButton.png; sourceTree = "<group>"; };
99F26B2519A65BE5006D3B1A /* GetSocialTestApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GetSocialTestApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -158,8 +163,10 @@
99DDAF1D1D78699F009D9AED /* libc++.tbd in Frameworks */,
99A42E131C904FCD0041DDE3 /* QuartzCore.framework in Frameworks */,
99A42E111C904F9A0041DDE3 /* CoreText.framework in Frameworks */,
5699EC321DB7BB1C00E0A693 /* KakaoOpenSDK.framework in Frameworks */,
99A42E0F1C904F8F0041DDE3 /* CoreImage.framework in Frameworks */,
99A42E0D1C904F830041DDE3 /* CoreGraphics.framework in Frameworks */,
566E8A121DC21DE400FE3338 /* FBSDKMessengerShareKit.framework in Frameworks */,
99A42E0B1C904F680041DDE3 /* CFNetwork.framework in Frameworks */,
99A42E071C904F300041DDE3 /* Security.framework in Frameworks */,
99A42E061C904CD50041DDE3 /* Accelerate.framework in Frameworks */,
Expand All @@ -172,7 +179,6 @@
998B71F01BB95CB800325DAF /* FBSDKShareKit.framework in Frameworks */,
990CFDEA1BAA173E008872CA /* CoreTelephony.framework in Frameworks */,
998B71EF1BB95CB800325DAF /* FBSDKLoginKit.framework in Frameworks */,
99DDAF1B1D78688F009D9AED /* FBSDKMessengerShareKit.framework in Frameworks */,
990CFDEE1BAA173E008872CA /* AVFoundation.framework in Frameworks */,
990CFDF01BAA173E008872CA /* AdSupport.framework in Frameworks */,
990CFDF21BAA173E008872CA /* UIKit.framework in Frameworks */,
Expand Down Expand Up @@ -201,6 +207,15 @@
name = Resources;
sourceTree = "<group>";
};
56551EDE1DB8F60100A93DC0 /* KakaoTalk */ = {
isa = PBXGroup;
children = (
56551EDF1DB8F61700A93DC0 /* GetSocialKakaoTalkInvitePlugin.h */,
56551EE01DB8F61700A93DC0 /* GetSocialKakaoTalkInvitePlugin.m */,
);
name = KakaoTalk;
sourceTree = "<group>";
};
994F498B1B15F057007B4494 /* Utils */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -235,6 +250,7 @@
isa = PBXGroup;
children = (
99DDAF1C1D78699F009D9AED /* libc++.tbd */,
5699EC311DB7BB1C00E0A693 /* KakaoOpenSDK.framework */,
990CFD731BA9C350008872CA /* Accelerate.framework */,
990BC5B71AF265D6003A0B96 /* AdSupport.framework */,
9908FAA91A9B4C7800F39657 /* AVFoundation.framework */,
Expand All @@ -246,7 +262,7 @@
99A42E101C904F9A0041DDE3 /* CoreText.framework */,
998B71EB1BB95CB800325DAF /* FBSDKCoreKit.framework */,
998B71EC1BB95CB800325DAF /* FBSDKLoginKit.framework */,
99DDAF1A1D78688F009D9AED /* FBSDKMessengerShareKit.framework */,
566E8A111DC21DE400FE3338 /* FBSDKMessengerShareKit.framework */,
998B71ED1BB95CB800325DAF /* FBSDKShareKit.framework */,
995D99A217EB064500F65204 /* Foundation.framework */,
9916C6A51BE7BF0B00ABBCF0 /* libicucore.tbd */,
Expand All @@ -268,6 +284,7 @@
99ABE3C81BCE8EA000296F50 /* GetSocialTestApp.entitlements */,
99F772E51BBAA96A00A4CD69 /* LICENSE */,
998B74C11BBA8C7900325DAF /* GetSocial */,
56551EDE1DB8F60100A93DC0 /* KakaoTalk */,
99FE1A821BB2B2FF00EF576A /* Facebook */,
995D99B117EB064500F65204 /* AppDelegate.h */,
995D99B217EB064500F65204 /* AppDelegate.m */,
Expand Down Expand Up @@ -467,6 +484,7 @@
files = (
995AC1E61BB1568E006424DF /* MenuTableViewController.m in Sources */,
99FE1A801BB2A82100EF576A /* ConsoleViewController.m in Sources */,
56551EE11DB8F61700A93DC0 /* GetSocialKakaoTalkInvitePlugin.m in Sources */,
99205C751A1AA237003DB88F /* GetSocialFacebookInvitePlugin.m in Sources */,
BC012E181CA29AFF00D68064 /* GetSocialFBMessengerInvitePlugin.m in Sources */,
99F26AEB19A65BE5006D3B1A /* AppDelegate.m in Sources */,
Expand Down Expand Up @@ -546,6 +564,7 @@
"$(SRCROOT)/GetSocialTestApp/Vendor/**",
"$(inherited)",
"$(SRCROOT)/../bin/**",
"$(PROJECT_DIR)/GetSocialTestApp/Vendor",
);
GCC_OPTIMIZATION_LEVEL = s;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand All @@ -562,6 +581,7 @@
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-all_load",
);
PRODUCT_BUNDLE_IDENTIFIER = im.getsocial.testapp;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
1 change: 1 addition & 0 deletions example/GetSocialTestApp/GetSocialTestApp.entitlements
Expand Up @@ -5,6 +5,7 @@
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:sm.getsocial.im</string>
<string>applinks:sm-alt.getsocial.im</string>
</array>
</dict>
</plist>

0 comments on commit 18017ee

Please sign in to comment.