From a140fca158cc715df8e379b75304d8c81ad9ebfb Mon Sep 17 00:00:00 2001 From: Chase Holland Date: Mon, 18 May 2015 20:27:25 -0500 Subject: [PATCH 1/4] updating afnetworking spec --- Example/IOSLinkedInAPI-Example/Podfile | 2 +- .../IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile | 2 +- IOSLinkedInAPI.podspec | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Example/IOSLinkedInAPI-Example/Podfile b/Example/IOSLinkedInAPI-Example/Podfile index c2cf3c6..bbfa0f8 100644 --- a/Example/IOSLinkedInAPI-Example/Podfile +++ b/Example/IOSLinkedInAPI-Example/Podfile @@ -1,2 +1,2 @@ platform :ios, '6.0' -pod 'AFNetworking', '~> 2.0.3' +pod 'AFNetworking', '~> 2.5.4' diff --git a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile index a098a69..51dea9f 100644 --- a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile +++ b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile @@ -1,5 +1,5 @@ platform :ios, "6.1" -pod 'IOSLinkedInAPI', :git => 'https://github.com/jeyben/IOSLinkedInAPI', :commit => '7b777b16867c713ed660c1d3711f83b76388ea99' +pod 'IOSLinkedInAPI', :git => 'https://github.com/chaseholland/IOSLinkedInAPI.git' diff --git a/IOSLinkedInAPI.podspec b/IOSLinkedInAPI.podspec index e4f1a75..b69da73 100644 --- a/IOSLinkedInAPI.podspec +++ b/IOSLinkedInAPI.podspec @@ -11,6 +11,6 @@ Pod::Spec.new do |s| s.platform = :ios, '6.0' - s.dependency 'AFNetworking', '>= 2.0.0' + s.dependency 'AFNetworking', '>= 2.5.4' end From 4320bd24f296221864a1c2f374af340bea13311f Mon Sep 17 00:00:00 2001 From: Chase Holland Date: Thu, 21 May 2015 17:56:16 -0500 Subject: [PATCH 2/4] updating afnetworking and moving example redirect to a variable to be set in the example credentials header --- .../project.pbxproj | 30 +++++++++----- .../LIAViewController.m | 2 +- .../IOSLinkedInAPI-Podexample/Podfile.lock | 41 +++++++++++-------- 3 files changed, 45 insertions(+), 28 deletions(-) diff --git a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample.xcodeproj/project.pbxproj b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample.xcodeproj/project.pbxproj index 66344b0..913d1c0 100644 --- a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample.xcodeproj/project.pbxproj +++ b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample.xcodeproj/project.pbxproj @@ -57,8 +57,9 @@ 33AE65A7185FA2E500981915 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 33AE65A9185FA2E500981915 /* IOSLinkedInAPI_PodexampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = IOSLinkedInAPI_PodexampleTests.m; sourceTree = ""; }; 35282DA869D54E88A071E44A /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 8B150E210F374D749A42FD73 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = ""; }; - E0CD15D06FF04FF5977479E5 /* Pods-IOSLinkedInAPI-Podexample.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IOSLinkedInAPI-Podexample.xcconfig"; path = "Pods/Pods-IOSLinkedInAPI-Podexample.xcconfig"; sourceTree = ""; }; + 36C61A70062DCDB6C0D91608 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; }; + 68F80C48A6B8DD8FB6323B0D /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; }; + AB9993AF1B0E95F60077D772 /* LIALinkedInClientExampleCredentials.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LIALinkedInClientExampleCredentials.h; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -93,8 +94,7 @@ 33AE65A3185FA2E500981915 /* IOSLinkedInAPI-PodexampleTests */, 33AE657A185FA2E400981915 /* Frameworks */, 33AE6579185FA2E400981915 /* Products */, - E0CD15D06FF04FF5977479E5 /* Pods-IOSLinkedInAPI-Podexample.xcconfig */, - 8B150E210F374D749A42FD73 /* Pods.xcconfig */, + 9C76CC298EBBAE58FDE8ECCC /* Pods */, ); sourceTree = ""; }; @@ -128,6 +128,7 @@ 33AE6590185FA2E400981915 /* Main_iPad.storyboard */, 33AE6593185FA2E400981915 /* LIAViewController.h */, 33AE6594185FA2E400981915 /* LIAViewController.m */, + AB9993AF1B0E95F60077D772 /* LIALinkedInClientExampleCredentials.h */, 33AE6596185FA2E400981915 /* Images.xcassets */, 33AE6582185FA2E400981915 /* Supporting Files */, ); @@ -163,6 +164,15 @@ name = "Supporting Files"; sourceTree = ""; }; + 9C76CC298EBBAE58FDE8ECCC /* Pods */ = { + isa = PBXGroup; + children = ( + 36C61A70062DCDB6C0D91608 /* Pods.debug.xcconfig */, + 68F80C48A6B8DD8FB6323B0D /* Pods.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -214,7 +224,7 @@ ORGANIZATIONNAME = "Eyben Consult ApS"; TargetAttributes = { 33AE659B185FA2E400981915 = { - TestTargetID = 33AE6577185FA2E400981915 /* IOSLinkedInAPI-Podexample */; + TestTargetID = 33AE6577185FA2E400981915; }; }; }; @@ -229,8 +239,6 @@ mainGroup = 33AE656F185FA2E400981915; productRefGroup = 33AE6579185FA2E400981915 /* Products */; projectDirPath = ""; - projectReferences = ( - ); projectRoot = ""; targets = ( 33AE6577185FA2E400981915 /* IOSLinkedInAPI-Podexample */, @@ -289,7 +297,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n"; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ @@ -435,7 +443,7 @@ }; 33AE65AE185FA2E500981915 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8B150E210F374D749A42FD73 /* Pods.xcconfig */; + baseConfigurationReference = 36C61A70062DCDB6C0D91608 /* Pods.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; @@ -449,7 +457,7 @@ }; 33AE65AF185FA2E500981915 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8B150E210F374D749A42FD73 /* Pods.xcconfig */; + baseConfigurationReference = 68F80C48A6B8DD8FB6323B0D /* Pods.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; @@ -522,6 +530,7 @@ 33AE65AF185FA2E500981915 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 33AE65B0185FA2E500981915 /* Build configuration list for PBXNativeTarget "IOSLinkedInAPI-PodexampleTests" */ = { isa = XCConfigurationList; @@ -530,6 +539,7 @@ 33AE65B2185FA2E500981915 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/LIAViewController.m b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/LIAViewController.m index 30612eb..e220b6c 100644 --- a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/LIAViewController.m +++ b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/LIAViewController.m @@ -51,7 +51,7 @@ - (void)requestMeWithToken:(NSString *)accessToken { } - (LIALinkedInHttpClient *)client { - LIALinkedInApplication *application = [LIALinkedInApplication applicationWithRedirectURL:@"http://www.ancientprogramming.com/liaexample" + LIALinkedInApplication *application = [LIALinkedInApplication applicationWithRedirectURL:LINKEDIN_REDIRECT_URL clientId:LINKEDIN_CLIENT_ID clientSecret:LINKEDIN_CLIENT_SECRET state:@"DCEEFWF45453sdffef424" diff --git a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile.lock b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile.lock index 648a771..4033483 100644 --- a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile.lock +++ b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile.lock @@ -1,35 +1,42 @@ PODS: - - AFNetworking (2.1.0): - - AFNetworking/NSURLConnection - - AFNetworking/NSURLSession + - AFNetworking (2.5.4): + - AFNetworking/NSURLConnection (= 2.5.4) + - AFNetworking/NSURLSession (= 2.5.4) + - AFNetworking/Reachability (= 2.5.4) + - AFNetworking/Security (= 2.5.4) + - AFNetworking/Serialization (= 2.5.4) + - AFNetworking/UIKit (= 2.5.4) + - AFNetworking/NSURLConnection (2.5.4): - AFNetworking/Reachability - AFNetworking/Security - AFNetworking/Serialization - - AFNetworking/UIKit - - AFNetworking/NSURLConnection (2.1.0): + - AFNetworking/NSURLSession (2.5.4): - AFNetworking/Reachability - AFNetworking/Security - AFNetworking/Serialization - - AFNetworking/NSURLSession (2.1.0): - - AFNetworking/NSURLConnection - - AFNetworking/Reachability (2.1.0) - - AFNetworking/Security (2.1.0) - - AFNetworking/Serialization (2.1.0) - - AFNetworking/UIKit (2.1.0): + - AFNetworking/Reachability (2.5.4) + - AFNetworking/Security (2.5.4) + - AFNetworking/Serialization (2.5.4) + - AFNetworking/UIKit (2.5.4): - AFNetworking/NSURLConnection + - AFNetworking/NSURLSession - IOSLinkedInAPI (2.0.0): - AFNetworking (>= 2.0.0) DEPENDENCIES: - - IOSLinkedInAPI (from `https://github.com/jeyben/IOSLinkedInAPI`, commit `7b777b16867c713ed660c1d3711f83b76388ea99`) + - IOSLinkedInAPI (from `https://github.com/chaseholland/IOSLinkedInAPI.git`) EXTERNAL SOURCES: IOSLinkedInAPI: - :commit: 7b777b16867c713ed660c1d3711f83b76388ea99 - :git: https://github.com/jeyben/IOSLinkedInAPI + :git: https://github.com/chaseholland/IOSLinkedInAPI.git + +CHECKOUT OPTIONS: + IOSLinkedInAPI: + :commit: 6221cbed9949e090d64732350061c03a7a9c80e5 + :git: https://github.com/chaseholland/IOSLinkedInAPI.git SPEC CHECKSUMS: - AFNetworking: c7d7901a83f631414c7eda1737261f696101a5cd - IOSLinkedInAPI: 1c1b1bc3fcf21607225d2b9cd704bffab0abfbe1 + AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e + IOSLinkedInAPI: d0adc664472d471b0df9b2aad92a2d82de926c40 -COCOAPODS: 0.27.1 +COCOAPODS: 0.37.1 From 40512e3022064a7e101c93227d32247a2bc1ac61 Mon Sep 17 00:00:00 2001 From: Chase Holland Date: Thu, 21 May 2015 18:08:48 -0500 Subject: [PATCH 3/4] removing permissions that you can t get without being a linkedin partner from example app --- .../IOSLinkedInAPI-Podexample/LIAViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/LIAViewController.m b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/LIAViewController.m index e220b6c..6a2a6b1 100644 --- a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/LIAViewController.m +++ b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/LIAViewController.m @@ -55,7 +55,7 @@ - (LIALinkedInHttpClient *)client { clientId:LINKEDIN_CLIENT_ID clientSecret:LINKEDIN_CLIENT_SECRET state:@"DCEEFWF45453sdffef424" - grantedAccess:@[@"r_fullprofile", @"r_network"]]; + grantedAccess:@[]]; return [LIALinkedInHttpClient clientForApplication:application presentingViewController:nil]; } From 4785c1b66531b16b69ebdf13b405abce175ae589 Mon Sep 17 00:00:00 2001 From: Chase Holland Date: Thu, 21 May 2015 18:11:38 -0500 Subject: [PATCH 4/4] removing reference to my copy of IOSLinkedinAPI --- .../IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile index 51dea9f..55d17f9 100644 --- a/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile +++ b/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/Podfile @@ -1,5 +1,5 @@ platform :ios, "6.1" -pod 'IOSLinkedInAPI', :git => 'https://github.com/chaseholland/IOSLinkedInAPI.git' +pod 'IOSLinkedInAPI', :git => 'https://github.com/jeyben/IOSLinkedInAPI.git'