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

Fixes Example #133

Closed
wants to merge 13 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
00B5D1ABE4A6431E804EB5DA /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E241EBDBBDCF4E3393680DED /* libPods.a */; };
62DB9DC6FE73D58C41DB57D5 /* libPods-AppClientExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 081ECCB5093BF5EA249E3DF9 /* libPods-AppClientExample.a */; };
9330594416F92D6B00868C9C /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9330594316F92D6B00868C9C /* UIKit.framework */; };
9330594616F92D6B00868C9C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9330594516F92D6B00868C9C /* Foundation.framework */; };
9330594816F92D6B00868C9C /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9330594716F92D6B00868C9C /* CoreGraphics.framework */; };
Expand All @@ -22,7 +22,9 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
081ECCB5093BF5EA249E3DF9 /* libPods-AppClientExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AppClientExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
86EFED2E98293EED7501CFB5 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
8D22401278BF22DBBEFA9323 /* Pods-AppClientExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppClientExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-AppClientExample/Pods-AppClientExample.release.xcconfig"; sourceTree = "<group>"; };
9330594016F92D6B00868C9C /* AppClientExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AppClientExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
9330594316F92D6B00868C9C /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
9330594516F92D6B00868C9C /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
Expand All @@ -39,6 +41,7 @@
9330596016F92DA000868C9C /* TMAppClientExampleController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TMAppClientExampleController.h; sourceTree = "<group>"; };
9330596116F92DA000868C9C /* TMAppClientExampleController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TMAppClientExampleController.m; sourceTree = "<group>"; };
9330596316F930CB00868C9C /* tumblr.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tumblr.png; sourceTree = "<group>"; };
9553335344D46A5856131B86 /* Pods-AppClientExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppClientExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AppClientExample/Pods-AppClientExample.debug.xcconfig"; sourceTree = "<group>"; };
E241EBDBBDCF4E3393680DED /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
F7D2F48E989E7862098B14AB /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -51,7 +54,7 @@
9330594416F92D6B00868C9C /* UIKit.framework in Frameworks */,
9330594616F92D6B00868C9C /* Foundation.framework in Frameworks */,
9330594816F92D6B00868C9C /* CoreGraphics.framework in Frameworks */,
00B5D1ABE4A6431E804EB5DA /* libPods.a in Frameworks */,
62DB9DC6FE73D58C41DB57D5 /* libPods-AppClientExample.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -83,6 +86,7 @@
9330594516F92D6B00868C9C /* Foundation.framework */,
9330594716F92D6B00868C9C /* CoreGraphics.framework */,
E241EBDBBDCF4E3393680DED /* libPods.a */,
081ECCB5093BF5EA249E3DF9 /* libPods-AppClientExample.a */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -119,6 +123,8 @@
children = (
86EFED2E98293EED7501CFB5 /* Pods.debug.xcconfig */,
F7D2F48E989E7862098B14AB /* Pods.release.xcconfig */,
9553335344D46A5856131B86 /* Pods-AppClientExample.debug.xcconfig */,
8D22401278BF22DBBEFA9323 /* Pods-AppClientExample.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
Expand All @@ -130,10 +136,12 @@
isa = PBXNativeTarget;
buildConfigurationList = 9330595D16F92D6B00868C9C /* Build configuration list for PBXNativeTarget "AppClientExample" */;
buildPhases = (
56CEBD4B6B45E4B652B7EB98 /* [CP] Check Pods Manifest.lock */,
9330593C16F92D6B00868C9C /* Sources */,
9330593D16F92D6B00868C9C /* Frameworks */,
9330593E16F92D6B00868C9C /* Resources */,
C05FF4C5F704428AA6529B95 /* Copy Pods Resources */,
C05FF4C5F704428AA6529B95 /* [CP] Copy Pods Resources */,
A75750A438D3014DFB3EC95A /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -187,19 +195,49 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
C05FF4C5F704428AA6529B95 /* Copy Pods Resources */ = {
56CEBD4B6B45E4B652B7EB98 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Copy Pods Resources";
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
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";
showEnvVarsInLog = 0;
};
A75750A438D3014DFB3EC95A /* [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-AppClientExample/Pods-AppClientExample-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
C05FF4C5F704428AA6529B95 /* [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-AppClientExample/Pods-AppClientExample-resources.sh\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -286,7 +324,7 @@
};
9330595E16F92D6B00868C9C /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 86EFED2E98293EED7501CFB5 /* Pods.debug.xcconfig */;
baseConfigurationReference = 9553335344D46A5856131B86 /* Pods-AppClientExample.debug.xcconfig */;
buildSettings = {
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "AppClientExample/AppClientExample-Prefix.pch";
Expand All @@ -298,7 +336,7 @@
};
9330595F16F92D6B00868C9C /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = F7D2F48E989E7862098B14AB /* Pods.release.xcconfig */;
baseConfigurationReference = 8D22401278BF22DBBEFA9323 /* Pods-AppClientExample.release.xcconfig */;
buildSettings = {
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "AppClientExample/AppClientExample-Prefix.pch";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand All @@ -37,6 +29,18 @@
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>tumblr</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down
4 changes: 3 additions & 1 deletion Examples/AppClientExample/Podfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
platform :ios, '5.0'

pod 'TMTumblrSDK/AppClient', :local => '../..'
target 'AppClientExample' do
pod 'TMTumblrSDK/AppClient', :path => '../..'
end
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
9379E32117496C4300998F0C /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 9379E32017496C4300998F0C /* [email protected] */; };
9379E32917496C6400998F0C /* TMPhotoPostController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9379E32817496C6400998F0C /* TMPhotoPostController.m */; };
9379E32B17496CF700998F0C /* blue.png in Resources */ = {isa = PBXBuildFile; fileRef = 9379E32A17496CF700998F0C /* blue.png */; };
BDC17B63FEDE443FA3BCACC7 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 89AC8A9EE01E437BB669FB46 /* libPods.a */; };
AA81B9E9B3478BFAAF8ED830 /* libPods-PhotoPostExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F975E8F71A331D3138DC9E59 /* libPods-PhotoPostExample.a */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
2E49474A41D2A02B1E127BFD /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
618DF6CDE4B7B60312CF0D9D /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
62BBAF696902435E7A49CF46 /* Pods-PhotoPostExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PhotoPostExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-PhotoPostExample/Pods-PhotoPostExample.release.xcconfig"; sourceTree = "<group>"; };
89AC8A9EE01E437BB669FB46 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
9379E30717496C4300998F0C /* PhotoPostExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PhotoPostExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
9379E30A17496C4300998F0C /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
Expand All @@ -41,6 +42,8 @@
9379E32717496C6400998F0C /* TMPhotoPostController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TMPhotoPostController.h; sourceTree = "<group>"; };
9379E32817496C6400998F0C /* TMPhotoPostController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TMPhotoPostController.m; sourceTree = "<group>"; };
9379E32A17496CF700998F0C /* blue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = blue.png; sourceTree = "<group>"; };
A37AC9E7D93CA3E198D194BE /* Pods-PhotoPostExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PhotoPostExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PhotoPostExample/Pods-PhotoPostExample.debug.xcconfig"; sourceTree = "<group>"; };
F975E8F71A331D3138DC9E59 /* libPods-PhotoPostExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-PhotoPostExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -51,7 +54,7 @@
9379E30B17496C4300998F0C /* UIKit.framework in Frameworks */,
9379E30D17496C4300998F0C /* Foundation.framework in Frameworks */,
9379E30F17496C4300998F0C /* CoreGraphics.framework in Frameworks */,
BDC17B63FEDE443FA3BCACC7 /* libPods.a in Frameworks */,
AA81B9E9B3478BFAAF8ED830 /* libPods-PhotoPostExample.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -83,6 +86,7 @@
9379E30C17496C4300998F0C /* Foundation.framework */,
9379E30E17496C4300998F0C /* CoreGraphics.framework */,
89AC8A9EE01E437BB669FB46 /* libPods.a */,
F975E8F71A331D3138DC9E59 /* libPods-PhotoPostExample.a */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -119,6 +123,8 @@
children = (
618DF6CDE4B7B60312CF0D9D /* Pods.debug.xcconfig */,
2E49474A41D2A02B1E127BFD /* Pods.release.xcconfig */,
A37AC9E7D93CA3E198D194BE /* Pods-PhotoPostExample.debug.xcconfig */,
62BBAF696902435E7A49CF46 /* Pods-PhotoPostExample.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
Expand All @@ -130,11 +136,12 @@
isa = PBXNativeTarget;
buildConfigurationList = 9379E32417496C4300998F0C /* Build configuration list for PBXNativeTarget "PhotoPostExample" */;
buildPhases = (
AD905AC7A4C643AEB9B8A657 /* Check Pods Manifest.lock */,
AD905AC7A4C643AEB9B8A657 /* [CP] Check Pods Manifest.lock */,
9379E30317496C4200998F0C /* Sources */,
9379E30417496C4200998F0C /* Frameworks */,
9379E30517496C4200998F0C /* Resources */,
F1BC47DF41B74E268B400A1C /* Copy Pods Resources */,
F1BC47DF41B74E268B400A1C /* [CP] Copy Pods Resources */,
490248F73D65A2FDA43F60DB /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -188,33 +195,48 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
AD905AC7A4C643AEB9B8A657 /* Check Pods Manifest.lock */ = {
490248F73D65A2FDA43F60DB /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Check Pods Manifest.lock";
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sanbox is not in sync with the Podfile.lock. Run 'pod install'.\nEOM\n exit 1\nfi\n";
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PhotoPostExample/Pods-PhotoPostExample-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
F1BC47DF41B74E268B400A1C /* Copy Pods Resources */ = {
AD905AC7A4C643AEB9B8A657 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Copy Pods Resources";
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
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";
};
F1BC47DF41B74E268B400A1C /* [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-PhotoPostExample/Pods-PhotoPostExample-resources.sh\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -301,7 +323,7 @@
};
9379E32517496C4300998F0C /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 618DF6CDE4B7B60312CF0D9D /* Pods.debug.xcconfig */;
baseConfigurationReference = A37AC9E7D93CA3E198D194BE /* Pods-PhotoPostExample.debug.xcconfig */;
buildSettings = {
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PhotoPostExample/PhotoPostExample-Prefix.pch";
Expand All @@ -313,7 +335,7 @@
};
9379E32617496C4300998F0C /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 2E49474A41D2A02B1E127BFD /* Pods.release.xcconfig */;
baseConfigurationReference = 62BBAF696902435E7A49CF46 /* Pods-PhotoPostExample.release.xcconfig */;
buildSettings = {
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PhotoPostExample/PhotoPostExample-Prefix.pch";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>PhotoPostExample</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
7 changes: 7 additions & 0 deletions Examples/PhotoPostExample/PhotoPostExample/TMAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import "TMAppDelegate.h"

#import "TMPhotoPostController.h"
#import "TMAPIClient.h"

@implementation TMAppDelegate

Expand All @@ -21,4 +22,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
return YES;
}

#pragma mark - URL Scheme

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
return [[TMAPIClient sharedInstance] handleOpenURL:url];
}

@end
Loading