Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.svn
._*
.DS_Store
*xcworkspace*
*xcuserdata*
Binary file removed Classes/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
7E16FC2816EF1F3900031889 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E16FC2716EF1F3900031889 /* Foundation.framework */; };
7E16FC3A16EF1F5A00031889 /* NSString+MD5Addition.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E16FC3716EF1F5A00031889 /* NSString+MD5Addition.m */; };
7E16FC3B16EF1F5A00031889 /* UIDevice+IdentifierAddition.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7E16FC3916EF1F5A00031889 /* UIDevice+IdentifierAddition.mm */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
7E16FC2216EF1F3900031889 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "include/${PRODUCT_NAME}";
dstSubfolderSpec = 16;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
7E16FC2416EF1F3900031889 /* libDeviceUniqueIdentifier.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libDeviceUniqueIdentifier.a; sourceTree = BUILT_PRODUCTS_DIR; };
7E16FC2716EF1F3900031889 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
7E16FC2B16EF1F3900031889 /* DeviceUniqueIdentifier-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DeviceUniqueIdentifier-Prefix.pch"; sourceTree = "<group>"; };
7E16FC3616EF1F5A00031889 /* NSString+MD5Addition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+MD5Addition.h"; sourceTree = "<group>"; };
7E16FC3716EF1F5A00031889 /* NSString+MD5Addition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+MD5Addition.m"; sourceTree = "<group>"; };
7E16FC3816EF1F5A00031889 /* UIDevice+IdentifierAddition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIDevice+IdentifierAddition.h"; sourceTree = "<group>"; };
7E16FC3916EF1F5A00031889 /* UIDevice+IdentifierAddition.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = "UIDevice+IdentifierAddition.mm"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
7E16FC2116EF1F3900031889 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
7E16FC2816EF1F3900031889 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
7E16FC1B16EF1F3900031889 = {
isa = PBXGroup;
children = (
7E16FC3516EF1F5A00031889 /* UIDevice-with-UniqueIdentifier-for-iOS-5 */,
7E16FC2916EF1F3900031889 /* DeviceUniqueIdentifier */,
7E16FC2616EF1F3900031889 /* Frameworks */,
7E16FC2516EF1F3900031889 /* Products */,
);
sourceTree = "<group>";
};
7E16FC2516EF1F3900031889 /* Products */ = {
isa = PBXGroup;
children = (
7E16FC2416EF1F3900031889 /* libDeviceUniqueIdentifier.a */,
);
name = Products;
sourceTree = "<group>";
};
7E16FC2616EF1F3900031889 /* Frameworks */ = {
isa = PBXGroup;
children = (
7E16FC2716EF1F3900031889 /* Foundation.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
7E16FC2916EF1F3900031889 /* DeviceUniqueIdentifier */ = {
isa = PBXGroup;
children = (
7E16FC2A16EF1F3900031889 /* Supporting Files */,
);
path = DeviceUniqueIdentifier;
sourceTree = "<group>";
};
7E16FC2A16EF1F3900031889 /* Supporting Files */ = {
isa = PBXGroup;
children = (
7E16FC2B16EF1F3900031889 /* DeviceUniqueIdentifier-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
7E16FC3516EF1F5A00031889 /* UIDevice-with-UniqueIdentifier-for-iOS-5 */ = {
isa = PBXGroup;
children = (
7E16FC3616EF1F5A00031889 /* NSString+MD5Addition.h */,
7E16FC3716EF1F5A00031889 /* NSString+MD5Addition.m */,
7E16FC3816EF1F5A00031889 /* UIDevice+IdentifierAddition.h */,
7E16FC3916EF1F5A00031889 /* UIDevice+IdentifierAddition.mm */,
);
name = "UIDevice-with-UniqueIdentifier-for-iOS-5";
path = "../UIDevice-with-UniqueIdentifier-for-iOS-5";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
7E16FC2316EF1F3900031889 /* DeviceUniqueIdentifier */ = {
isa = PBXNativeTarget;
buildConfigurationList = 7E16FC3216EF1F3900031889 /* Build configuration list for PBXNativeTarget "DeviceUniqueIdentifier" */;
buildPhases = (
7E16FC2016EF1F3900031889 /* Sources */,
7E16FC2116EF1F3900031889 /* Frameworks */,
7E16FC2216EF1F3900031889 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = DeviceUniqueIdentifier;
productName = DeviceUniqueIdentifier;
productReference = 7E16FC2416EF1F3900031889 /* libDeviceUniqueIdentifier.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
7E16FC1C16EF1F3900031889 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0460;
ORGANIZATIONNAME = EmbeddedSources;
};
buildConfigurationList = 7E16FC1F16EF1F3900031889 /* Build configuration list for PBXProject "DeviceUniqueIdentifier" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 7E16FC1B16EF1F3900031889;
productRefGroup = 7E16FC2516EF1F3900031889 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
7E16FC2316EF1F3900031889 /* DeviceUniqueIdentifier */,
);
};
/* End PBXProject section */

/* Begin PBXSourcesBuildPhase section */
7E16FC2016EF1F3900031889 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
7E16FC3A16EF1F5A00031889 /* NSString+MD5Addition.m in Sources */,
7E16FC3B16EF1F5A00031889 /* UIDevice+IdentifierAddition.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
7E16FC3016EF1F3900031889 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES;
CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES;
CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_CXX0X_EXTENSIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = NO;
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_SIGN_COMPARE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = ..;
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"-all_load",
"-ObjC",
);
SDKROOT = iphoneos;
};
name = Debug;
};
7E16FC3116EF1F3900031889 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES;
CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES;
CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_CXX0X_EXTENSIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = NO;
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_SIGN_COMPARE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = ..;
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
OTHER_LDFLAGS = (
"-all_load",
"-ObjC",
);
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
7E16FC3316EF1F3900031889 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
DSTROOT = /tmp/DeviceUniqueIdentifier.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DeviceUniqueIdentifier/DeviceUniqueIdentifier-Prefix.pch";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Debug;
};
7E16FC3416EF1F3900031889 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
DSTROOT = /tmp/DeviceUniqueIdentifier.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DeviceUniqueIdentifier/DeviceUniqueIdentifier-Prefix.pch";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
7E16FC1F16EF1F3900031889 /* Build configuration list for PBXProject "DeviceUniqueIdentifier" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7E16FC3016EF1F3900031889 /* Debug */,
7E16FC3116EF1F3900031889 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
7E16FC3216EF1F3900031889 /* Build configuration list for PBXNativeTarget "DeviceUniqueIdentifier" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7E16FC3316EF1F3900031889 /* Debug */,
7E16FC3416EF1F3900031889 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 7E16FC1C16EF1F3900031889 /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
@implementation NSString(MD5Addition)

- (NSString *) stringFromMD5{

if(self == nil || [self length] == 0)
return nil;

const char *value = [self UTF8String];

unsigned char outputBuffer[CC_MD5_DIGEST_LENGTH];
CC_MD5(value, strlen(value), outputBuffer);
NSMutableString *outputString = [[NSMutableString alloc] initWithCapacity:CC_MD5_DIGEST_LENGTH * 2];

NSMutableString *outputString = [ NSMutableString stringWithCapacity:CC_MD5_DIGEST_LENGTH * 2 ];
for(NSInteger count = 0; count < CC_MD5_DIGEST_LENGTH; count++){
[outputString appendFormat:@"%02x",outputBuffer[count]];
}
return [outputString autorelease];

return outputString;
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright 2011 Aurora Apps. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>


Expand Down
Loading