Skip to content
Browse files

Added wrapper version

- to framework info.plist
- to user agent string
- as preprocessor define SCAPI_VERSION like @"2.0b6"
  • Loading branch information...
1 parent 6d8fb3f commit 66154151995154b3f8d12750b7c2bca80a875c53 @stigi stigi committed Nov 8, 2010
View
4 SoundCloudAPI.framework-Info.plist
@@ -13,10 +13,10 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>${SCAPI_VERSION}</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>${SCAPI_VERSION}</string>
</dict>
</plist>
View
4 SoundCloudAPI.xcodeproj/project.pbxproj
@@ -510,10 +510,12 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = "SCAPI_VERSION=\"@\\\"${SCAPI_VERSION}\\\"\"";
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
OTHER_LDFLAGS = "-ObjC";
PREBINDING = NO;
+ SCAPI_VERSION = 2.0b6;
};
name = Debug;
};
@@ -522,10 +524,12 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_PREPROCESSOR_DEFINITIONS = "SCAPI_VERSION=\"@\\\"${SCAPI_VERSION}\\\"\"";
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
OTHER_LDFLAGS = "-ObjC";
PREBINDING = NO;
+ SCAPI_VERSION = 2.0b6;
};
name = Release;
};
View
4 Sources/SoundCloudAPI/SCSoundCloudAPIAuthentication.m
@@ -221,6 +221,10 @@ - (NSString *)userAgentString;
NSString *appVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];
[userAgentString appendFormat:@"%@/%@;", appName, appVersion];
+ NSString *apiWrapperName = @"SCSoundCloudAPI";
+ NSString *apiWrapperVersion = SCAPI_VERSION;
+ [userAgentString appendFormat:@" %@/%@;", apiWrapperName, apiWrapperVersion];
+
NSString *hwModel = nil;
NSString *hwMachine = [self sysctlValueForName:@"hw.machine"];
#if TARGET_OS_IPHONE

0 comments on commit 6615415

Please sign in to comment.
Something went wrong with that request. Please try again.