Skip to content

Commit

Permalink
try to update Linkedin
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyli508 committed Jul 31, 2020
1 parent 4d11aa6 commit 8649cf6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 62 deletions.
61 changes: 7 additions & 54 deletions LinkedinSwift/LinkedinSwift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@
10F97B1E1BFBA10500C420E4 /* Frameworks */,
10F97B1F1BFBA10500C420E4 /* Headers */,
10F97B201BFBA10500C420E4 /* Resources */,
21399E5BEDDE1E93D66FBEF1 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand All @@ -265,8 +264,6 @@
10F97B281BFBA10500C420E4 /* Sources */,
10F97B291BFBA10500C420E4 /* Frameworks */,
10F97B2A1BFBA10500C420E4 /* Resources */,
3FC39B87AF103AC1F2AF841B /* [CP] Embed Pods Frameworks */,
67E262E27E6290D0F7E02CD8 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -300,6 +297,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = 10F97B181BFBA10500C420E4;
Expand Down Expand Up @@ -331,36 +329,6 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
21399E5BEDDE1E93D66FBEF1 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LinkedinSwift/Pods-LinkedinSwift-resources.sh\"\n";
showEnvVarsInLog = 0;
};
3FC39B87AF103AC1F2AF841B /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LinkedinSwiftTests/Pods-LinkedinSwiftTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
431C31E17579AECB0F784A3C /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -397,21 +365,6 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
67E262E27E6290D0F7E02CD8 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LinkedinSwiftTests/Pods-LinkedinSwiftTests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -499,7 +452,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -550,7 +503,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down Expand Up @@ -587,14 +540,14 @@
);
INFOPLIST_FILE = LinkedinSwift/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-l\"AFNetworking\"",
"-l\"IOSLinkedInAPIFix\"",
"-l\"IOSLinkedInAPIFix1\"",
"-framework",
"\"CoreGraphics\"",
"-framework",
Expand Down Expand Up @@ -639,14 +592,14 @@
);
INFOPLIST_FILE = LinkedinSwift/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-l\"AFNetworking\"",
"-l\"IOSLinkedInAPIFix\"",
"-l\"IOSLinkedInAPIFix1\"",
"-framework",
"\"CoreGraphics\"",
"-framework",
Expand Down
6 changes: 3 additions & 3 deletions LinkedinSwift/LinkedinSwift/sources/LinkedinOAuthWebClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#import "LinkedinOAuthWebClient.h"

#import <IOSLinkedInAPIFix/LIALinkedInApplication.h>
#import <IOSLinkedInAPIFix/LIALinkedInHttpClient.h>
#import <IOSLinkedInAPIFix1/LIALinkedInApplication.h>
#import <IOSLinkedInAPIFix1/LIALinkedInHttpClient.h>

@implementation LinkedinOAuthWebClient

Expand Down Expand Up @@ -56,7 +56,7 @@ - (void)authorizeSuccess:(__nullable LinkedinSwiftAuthRequestSuccessCallback)suc
- (void)requestURL:(NSString* _Nonnull)url requestType:(LinkedinSwiftRequestType* _Nonnull)requestType token:(LSLinkedinToken * _Nonnull)token success:(__nullable LinkedinSwiftRequestSuccessCallback)successCallback error:(__nullable LinkedinSwiftRequestErrorCallback)errorCallback {

#ifdef isSessionManager
[httpClient GET:url parameters:@{@"oauth2_access_token": token.accessToken} progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
[httpClient GET:url parameters:@{@"oauth2_access_token": token.accessToken} headers:nil progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
successCallback([[LSResponse alloc] initWithDictionary:responseObject statusCode:200]);
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
errorCallback(error);
Expand Down
10 changes: 5 additions & 5 deletions LinkedinSwift/Podfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
platform :ios, '9.0'
# Uncomment this line if you're using Swift
# use_frameworks!

target 'LinkedinSwift' do
pod 'AFNetworking', '>=3.2.0'
pod 'IOSLinkedInAPIFix', '>= 2.0.4'
pod 'AFNetworking', '>=3.5.0'
pod 'IOSLinkedInAPIFix1', '>= 2.0.6'
end

target 'LinkedinSwiftTests' do
pod 'AFNetworking', '>=3.2.0'
pod 'IOSLinkedInAPIFix', '>= 2.0.4'
pod 'AFNetworking', '>=3.5.0'
pod 'IOSLinkedInAPIFix1', '>= 2.0.6'
end

0 comments on commit 8649cf6

Please sign in to comment.