Merge lp:~rockstar/ubuntuone-ios-music/project-settings into lp:ubuntuone-ios-music
- project-settings
- Merge into trunk
Proposed by
Paul Hummer
Status: | Merged |
---|---|
Approved by: | Paul Hummer |
Approved revision: | 238 |
Merged at revision: | 228 |
Proposed branch: | lp:~rockstar/ubuntuone-ios-music/project-settings |
Merge into: | lp:ubuntuone-ios-music |
Diff against target: |
307 lines (+41/-34) 13 files modified
Dependencies/JSONKit/JSONKit.m (+18/-18) Dependencies/oauthconsumer/OAMutableURLRequest.m (+1/-1) Dependencies/oauthconsumer/OATokenManager.m (+1/-1) SynthesizeSingleton.h (+1/-1) U1Music.xcodeproj/project.pbxproj (+5/-3) categories/UIImage+Resize.m (+4/-0) utilities/AudioStreamer.h (+2/-2) utilities/AudioStreamer.m (+3/-3) utilities/Reachability.h (+1/-0) utilities/U1SocketListener.h (+1/-1) utilities/U1StreamWriter.h (+2/-2) utilities/operations/Downloader.m (+1/-1) utilities/operations/U1ChunkDownloadOperation.m (+1/-1) |
To merge this branch: | bzr merge lp:~rockstar/ubuntuone-ios-music/project-settings |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zachery Bir | Approve | ||
Review via email: mp+120020@code.launchpad.net |
Commit message
Update u1music project settings
Description of the change
Update the u1music project settings, kill most of the warnings.
The only warnings I didn't kill were the Categories re-implementing methods. It's encouraged that we use inheritance for that (and rightly so). However, that means refactoring, which I don't think we want to do right now.
This branch was SUPER educational.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'Dependencies/JSONKit/JSONKit.m' | |||
2 | --- Dependencies/JSONKit/JSONKit.m 2011-07-10 22:17:52 +0000 | |||
3 | +++ Dependencies/JSONKit/JSONKit.m 2012-08-16 21:23:21 +0000 | |||
4 | @@ -742,14 +742,14 @@ | |||
5 | 742 | - (void)getObjects:(id *)objectsPtr range:(NSRange)range | 742 | - (void)getObjects:(id *)objectsPtr range:(NSRange)range |
6 | 743 | { | 743 | { |
7 | 744 | NSParameterAssert((objects != NULL) && (count <= capacity)); | 744 | NSParameterAssert((objects != NULL) && (count <= capacity)); |
10 | 745 | if((objectsPtr == NULL) && (NSMaxRange(range) > 0UL)) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: pointer to objects array is NULL but range length is %lu", NSStringFromClass([self class]), NSStringFromSelector(_cmd), NSMaxRange(range)]; } | 745 | if((objectsPtr == NULL) && (NSMaxRange(range) > 0UL)) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: pointer to objects array is NULL but range length is %u", NSStringFromClass([self class]), NSStringFromSelector(_cmd), NSMaxRange(range)]; } |
11 | 746 | if((range.location > count) || (NSMaxRange(range) > count)) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), NSMaxRange(range), count]; } | 746 | if((range.location > count) || (NSMaxRange(range) > count)) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%u)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), NSMaxRange(range), count]; } |
12 | 747 | memcpy(objectsPtr, objects + range.location, range.length * sizeof(id)); | 747 | memcpy(objectsPtr, objects + range.location, range.length * sizeof(id)); |
13 | 748 | } | 748 | } |
14 | 749 | 749 | ||
15 | 750 | - (id)objectAtIndex:(NSUInteger)objectIndex | 750 | - (id)objectAtIndex:(NSUInteger)objectIndex |
16 | 751 | { | 751 | { |
18 | 752 | if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; } | 752 | if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%u)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; } |
19 | 753 | NSParameterAssert((objects != NULL) && (count <= capacity) && (objects[objectIndex] != NULL)); | 753 | NSParameterAssert((objects != NULL) && (count <= capacity) && (objects[objectIndex] != NULL)); |
20 | 754 | return(objects[objectIndex]); | 754 | return(objects[objectIndex]); |
21 | 755 | } | 755 | } |
22 | @@ -770,7 +770,7 @@ | |||
23 | 770 | { | 770 | { |
24 | 771 | if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } | 771 | if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } |
25 | 772 | if(anObject == NULL) { [NSException raise:NSInvalidArgumentException format:@"*** -[%@ %@]: attempt to insert nil", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } | 772 | if(anObject == NULL) { [NSException raise:NSInvalidArgumentException format:@"*** -[%@ %@]: attempt to insert nil", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } |
27 | 773 | if(objectIndex > count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count + 1UL]; } | 773 | if(objectIndex > count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count + 1UL]; } |
28 | 774 | #ifdef __clang_analyzer__ | 774 | #ifdef __clang_analyzer__ |
29 | 775 | [anObject retain]; // Stupid clang analyzer... Issue #19. | 775 | [anObject retain]; // Stupid clang analyzer... Issue #19. |
30 | 776 | #else | 776 | #else |
31 | @@ -783,7 +783,7 @@ | |||
32 | 783 | - (void)removeObjectAtIndex:(NSUInteger)objectIndex | 783 | - (void)removeObjectAtIndex:(NSUInteger)objectIndex |
33 | 784 | { | 784 | { |
34 | 785 | if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } | 785 | if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } |
36 | 786 | if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; } | 786 | if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%u)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; } |
37 | 787 | _JKArrayRemoveObjectAtIndex(self, objectIndex); | 787 | _JKArrayRemoveObjectAtIndex(self, objectIndex); |
38 | 788 | mutations = (mutations == NSUIntegerMax) ? 1UL : mutations + 1UL; | 788 | mutations = (mutations == NSUIntegerMax) ? 1UL : mutations + 1UL; |
39 | 789 | } | 789 | } |
40 | @@ -792,7 +792,7 @@ | |||
41 | 792 | { | 792 | { |
42 | 793 | if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } | 793 | if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } |
43 | 794 | if(anObject == NULL) { [NSException raise:NSInvalidArgumentException format:@"*** -[%@ %@]: attempt to insert nil", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } | 794 | if(anObject == NULL) { [NSException raise:NSInvalidArgumentException format:@"*** -[%@ %@]: attempt to insert nil", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; } |
45 | 795 | if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; } | 795 | if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%u)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; } |
46 | 796 | #ifdef __clang_analyzer__ | 796 | #ifdef __clang_analyzer__ |
47 | 797 | [anObject retain]; // Stupid clang analyzer... Issue #19. | 797 | [anObject retain]; // Stupid clang analyzer... Issue #19. |
48 | 798 | #else | 798 | #else |
49 | @@ -2559,17 +2559,17 @@ | |||
50 | 2559 | // supported classes, we fail the second type (i.e., double fault error). | 2559 | // supported classes, we fail the second type (i.e., double fault error). |
51 | 2560 | BOOL rerunningAfterClassFormatter = NO; | 2560 | BOOL rerunningAfterClassFormatter = NO; |
52 | 2561 | rerunAfterClassFormatter: | 2561 | rerunAfterClassFormatter: |
58 | 2562 | if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.stringClass)) { isClass = JKClassString; } | 2562 | if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.stringClass)) { isClass = JKClassString; } |
59 | 2563 | else if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.numberClass)) { isClass = JKClassNumber; } | 2563 | else if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.numberClass)) { isClass = JKClassNumber; } |
60 | 2564 | else if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.dictionaryClass)) { isClass = JKClassDictionary; } | 2564 | else if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.dictionaryClass)) { isClass = JKClassDictionary; } |
61 | 2565 | else if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.arrayClass)) { isClass = JKClassArray; } | 2565 | else if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.arrayClass)) { isClass = JKClassArray; } |
62 | 2566 | else if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.nullClass)) { isClass = JKClassNull; } | 2566 | else if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.nullClass)) { isClass = JKClassNull; } |
63 | 2567 | else { | 2567 | else { |
69 | 2568 | if(JK_EXPECT_T([object isKindOfClass:[NSString class]])) { encodeState->fastClassLookup.stringClass = object->isa; isClass = JKClassString; } | 2568 | if(JK_EXPECT_T([object isKindOfClass:[NSString class]])) { encodeState->fastClassLookup.stringClass = object_getClass(object); isClass = JKClassString; } |
70 | 2569 | else if(JK_EXPECT_T([object isKindOfClass:[NSNumber class]])) { encodeState->fastClassLookup.numberClass = object->isa; isClass = JKClassNumber; } | 2569 | else if(JK_EXPECT_T([object isKindOfClass:[NSNumber class]])) { encodeState->fastClassLookup.numberClass = object_getClass(object); isClass = JKClassNumber; } |
71 | 2570 | else if(JK_EXPECT_T([object isKindOfClass:[NSDictionary class]])) { encodeState->fastClassLookup.dictionaryClass = object->isa; isClass = JKClassDictionary; } | 2570 | else if(JK_EXPECT_T([object isKindOfClass:[NSDictionary class]])) { encodeState->fastClassLookup.dictionaryClass = object_getClass(object); isClass = JKClassDictionary; } |
72 | 2571 | else if(JK_EXPECT_T([object isKindOfClass:[NSArray class]])) { encodeState->fastClassLookup.arrayClass = object->isa; isClass = JKClassArray; } | 2571 | else if(JK_EXPECT_T([object isKindOfClass:[NSArray class]])) { encodeState->fastClassLookup.arrayClass = object_getClass(object); isClass = JKClassArray; } |
73 | 2572 | else if(JK_EXPECT_T([object isKindOfClass:[NSNull class]])) { encodeState->fastClassLookup.nullClass = object->isa; isClass = JKClassNull; } | 2572 | else if(JK_EXPECT_T([object isKindOfClass:[NSNull class]])) { encodeState->fastClassLookup.nullClass = object_getClass(object); isClass = JKClassNull; } |
74 | 2573 | else { | 2573 | else { |
75 | 2574 | if((rerunningAfterClassFormatter == NO) && ( | 2574 | if((rerunningAfterClassFormatter == NO) && ( |
76 | 2575 | #ifdef __BLOCKS__ | 2575 | #ifdef __BLOCKS__ |
77 | @@ -2751,7 +2751,7 @@ | |||
78 | 2751 | for(id keyObject in enumerateObject) { | 2751 | for(id keyObject in enumerateObject) { |
79 | 2752 | if(JK_EXPECT_T(printComma)) { if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ","))) { return(1); } } | 2752 | if(JK_EXPECT_T(printComma)) { if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ","))) { return(1); } } |
80 | 2753 | printComma = 1; | 2753 | printComma = 1; |
82 | 2754 | if(JK_EXPECT_F((keyObject->isa != encodeState->fastClassLookup.stringClass)) && JK_EXPECT_F(([keyObject isKindOfClass:[NSString class]] == NO))) { jk_encode_error(encodeState, @"Key must be a string object."); return(1); } | 2754 | if(JK_EXPECT_F((object_getClass(keyObject) != encodeState->fastClassLookup.stringClass)) && JK_EXPECT_F(([keyObject isKindOfClass:[NSString class]] == NO))) { jk_encode_error(encodeState, @"Key must be a string object."); return(1); } |
83 | 2755 | if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, keyObject))) { return(1); } | 2755 | if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, keyObject))) { return(1); } |
84 | 2756 | if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ":"))) { return(1); } | 2756 | if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ":"))) { return(1); } |
85 | 2757 | if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, (void *)CFDictionaryGetValue((CFDictionaryRef)object, keyObject)))) { return(1); } | 2757 | if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, (void *)CFDictionaryGetValue((CFDictionaryRef)object, keyObject)))) { return(1); } |
86 | @@ -2762,7 +2762,7 @@ | |||
87 | 2762 | for(idx = 0L; idx < dictionaryCount; idx++) { | 2762 | for(idx = 0L; idx < dictionaryCount; idx++) { |
88 | 2763 | if(JK_EXPECT_T(printComma)) { if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ","))) { return(1); } } | 2763 | if(JK_EXPECT_T(printComma)) { if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ","))) { return(1); } } |
89 | 2764 | printComma = 1; | 2764 | printComma = 1; |
91 | 2765 | if(JK_EXPECT_F(((id)keys[idx])->isa != encodeState->fastClassLookup.stringClass) && JK_EXPECT_F([(id)keys[idx] isKindOfClass:[NSString class]] == NO)) { jk_encode_error(encodeState, @"Key must be a string object."); return(1); } | 2765 | if(JK_EXPECT_F((object_getClass((id)keys[idx])) != encodeState->fastClassLookup.stringClass) && JK_EXPECT_F([(id)keys[idx] isKindOfClass:[NSString class]] == NO)) { jk_encode_error(encodeState, @"Key must be a string object."); return(1); } |
92 | 2766 | if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, keys[idx]))) { return(1); } | 2766 | if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, keys[idx]))) { return(1); } |
93 | 2767 | if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ":"))) { return(1); } | 2767 | if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ":"))) { return(1); } |
94 | 2768 | if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, objects[idx]))) { return(1); } | 2768 | if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, objects[idx]))) { return(1); } |
95 | 2769 | 2769 | ||
96 | === modified file 'Dependencies/oauthconsumer/OAMutableURLRequest.m' | |||
97 | --- Dependencies/oauthconsumer/OAMutableURLRequest.m 2011-07-10 22:17:52 +0000 | |||
98 | +++ Dependencies/oauthconsumer/OAMutableURLRequest.m 2012-08-16 21:23:21 +0000 | |||
99 | @@ -129,7 +129,7 @@ | |||
100 | 129 | 129 | ||
101 | 130 | - (void)_generateTimestamp { | 130 | - (void)_generateTimestamp { |
102 | 131 | [timestamp release]; | 131 | [timestamp release]; |
104 | 132 | timestamp = [[NSString alloc]initWithFormat:@"%d", time(NULL)]; | 132 | timestamp = [[NSString alloc]initWithFormat:@"%ld", time(NULL)]; |
105 | 133 | } | 133 | } |
106 | 134 | 134 | ||
107 | 135 | - (void)_generateNonce { | 135 | - (void)_generateNonce { |
108 | 136 | 136 | ||
109 | === modified file 'Dependencies/oauthconsumer/OATokenManager.m' | |||
110 | --- Dependencies/oauthconsumer/OATokenManager.m 2011-07-10 22:17:52 +0000 | |||
111 | +++ Dependencies/oauthconsumer/OATokenManager.m 2012-08-16 21:23:21 +0000 | |||
112 | @@ -93,7 +93,7 @@ | |||
113 | 93 | [self exchangeToken]; | 93 | [self exchangeToken]; |
114 | 94 | } else { | 94 | } else { |
115 | 95 | [authorizedTokenKey release]; | 95 | [authorizedTokenKey release]; |
117 | 96 | authorizedTokenKey = [aKey retain]; | 96 | authorizedTokenKey = [aKey copy]; |
118 | 97 | } | 97 | } |
119 | 98 | } | 98 | } |
120 | 99 | 99 | ||
121 | 100 | 100 | ||
122 | === modified file 'SynthesizeSingleton.h' | |||
123 | --- SynthesizeSingleton.h 2010-09-24 05:34:15 +0000 | |||
124 | +++ SynthesizeSingleton.h 2012-08-16 21:23:21 +0000 | |||
125 | @@ -58,7 +58,7 @@ | |||
126 | 58 | return NSUIntegerMax; \ | 58 | return NSUIntegerMax; \ |
127 | 59 | } \ | 59 | } \ |
128 | 60 | \ | 60 | \ |
130 | 61 | - (void)release \ | 61 | - (oneway void)release \ |
131 | 62 | { \ | 62 | { \ |
132 | 63 | } \ | 63 | } \ |
133 | 64 | \ | 64 | \ |
134 | 65 | 65 | ||
135 | === modified file 'U1Music.xcodeproj/project.pbxproj' | |||
136 | --- U1Music.xcodeproj/project.pbxproj 2012-08-13 16:35:03 +0000 | |||
137 | +++ U1Music.xcodeproj/project.pbxproj 2012-08-16 21:23:21 +0000 | |||
138 | @@ -1216,7 +1216,7 @@ | |||
139 | 1216 | 29B97313FDCFA39411CA2CEA /* Project object */ = { | 1216 | 29B97313FDCFA39411CA2CEA /* Project object */ = { |
140 | 1217 | isa = PBXProject; | 1217 | isa = PBXProject; |
141 | 1218 | attributes = { | 1218 | attributes = { |
143 | 1219 | LastUpgradeCheck = 0420; | 1219 | LastUpgradeCheck = 0440; |
144 | 1220 | ORGANIZATIONNAME = Canonical; | 1220 | ORGANIZATIONNAME = Canonical; |
145 | 1221 | }; | 1221 | }; |
146 | 1222 | buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "U1Music" */; | 1222 | buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "U1Music" */; |
147 | @@ -1497,7 +1497,8 @@ | |||
148 | 1497 | GCC_OPTIMIZATION_LEVEL = 0; | 1497 | GCC_OPTIMIZATION_LEVEL = 0; |
149 | 1498 | GCC_PRECOMPILE_PREFIX_HEADER = YES; | 1498 | GCC_PRECOMPILE_PREFIX_HEADER = YES; |
150 | 1499 | GCC_PREFIX_HEADER = U1Music_Prefix.pch; | 1499 | GCC_PREFIX_HEADER = U1Music_Prefix.pch; |
152 | 1500 | GCC_VERSION = com.apple.compilers.llvmgcc42; | 1500 | GCC_THUMB_SUPPORT = NO; |
153 | 1501 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; | ||
154 | 1501 | INFOPLIST_FILE = "U1Music-Info.plist"; | 1502 | INFOPLIST_FILE = "U1Music-Info.plist"; |
155 | 1502 | LIBRARY_SEARCH_PATHS = ( | 1503 | LIBRARY_SEARCH_PATHS = ( |
156 | 1503 | "$(inherited)", | 1504 | "$(inherited)", |
157 | @@ -1527,7 +1528,8 @@ | |||
158 | 1527 | CURRENT_PROJECT_VERSION = 6; | 1528 | CURRENT_PROJECT_VERSION = 6; |
159 | 1528 | GCC_PRECOMPILE_PREFIX_HEADER = YES; | 1529 | GCC_PRECOMPILE_PREFIX_HEADER = YES; |
160 | 1529 | GCC_PREFIX_HEADER = U1Music_Prefix.pch; | 1530 | GCC_PREFIX_HEADER = U1Music_Prefix.pch; |
162 | 1530 | GCC_VERSION = com.apple.compilers.llvmgcc42; | 1531 | GCC_THUMB_SUPPORT = NO; |
163 | 1532 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; | ||
164 | 1531 | INFOPLIST_FILE = "U1Music-Info.plist"; | 1533 | INFOPLIST_FILE = "U1Music-Info.plist"; |
165 | 1532 | IPHONEOS_DEPLOYMENT_TARGET = 4.0; | 1534 | IPHONEOS_DEPLOYMENT_TARGET = 4.0; |
166 | 1533 | LIBRARY_SEARCH_PATHS = ( | 1535 | LIBRARY_SEARCH_PATHS = ( |
167 | 1534 | 1536 | ||
168 | === modified file 'categories/UIImage+Resize.m' | |||
169 | --- categories/UIImage+Resize.m 2011-05-02 07:33:18 +0000 | |||
170 | +++ categories/UIImage+Resize.m 2012-08-16 21:23:21 +0000 | |||
171 | @@ -189,6 +189,8 @@ | |||
172 | 189 | transform = CGAffineTransformTranslate(transform, 0, newSize.height); | 189 | transform = CGAffineTransformTranslate(transform, 0, newSize.height); |
173 | 190 | transform = CGAffineTransformRotate(transform, -M_PI_2); | 190 | transform = CGAffineTransformRotate(transform, -M_PI_2); |
174 | 191 | break; | 191 | break; |
175 | 192 | default: | ||
176 | 193 | break; | ||
177 | 192 | } | 194 | } |
178 | 193 | 195 | ||
179 | 194 | switch (self.imageOrientation) { | 196 | switch (self.imageOrientation) { |
180 | @@ -203,6 +205,8 @@ | |||
181 | 203 | transform = CGAffineTransformTranslate(transform, newSize.height, 0); | 205 | transform = CGAffineTransformTranslate(transform, newSize.height, 0); |
182 | 204 | transform = CGAffineTransformScale(transform, -1, 1); | 206 | transform = CGAffineTransformScale(transform, -1, 1); |
183 | 205 | break; | 207 | break; |
184 | 208 | default: | ||
185 | 209 | break; | ||
186 | 206 | } | 210 | } |
187 | 207 | 211 | ||
188 | 208 | return transform; | 212 | return transform; |
189 | 209 | 213 | ||
190 | === modified file 'utilities/AudioStreamer.h' | |||
191 | --- utilities/AudioStreamer.h 2012-02-17 20:55:09 +0000 | |||
192 | +++ utilities/AudioStreamer.h 2012-08-16 21:23:21 +0000 | |||
193 | @@ -25,7 +25,7 @@ | |||
194 | 25 | #import <UIKit/UIKit.h> | 25 | #import <UIKit/UIKit.h> |
195 | 26 | #else | 26 | #else |
196 | 27 | #import <Cocoa/Cocoa.h> | 27 | #import <Cocoa/Cocoa.h> |
198 | 28 | #endif TARGET_OS_IPHONE | 28 | #endif // TARGET_OS_IPHONE |
199 | 29 | 29 | ||
200 | 30 | #include <pthread.h> | 30 | #include <pthread.h> |
201 | 31 | #include <AudioToolbox/AudioToolbox.h> | 31 | #include <AudioToolbox/AudioToolbox.h> |
202 | @@ -170,7 +170,7 @@ | |||
203 | 170 | } | 170 | } |
204 | 171 | 171 | ||
205 | 172 | @property AudioStreamerErrorCode errorCode; | 172 | @property AudioStreamerErrorCode errorCode; |
207 | 173 | @property (readonly) AudioStreamerState state; | 173 | @property (nonatomic, readonly) AudioStreamerState state; |
208 | 174 | @property (readonly) AudioStreamerStopReason stopReason; | 174 | @property (readonly) AudioStreamerStopReason stopReason; |
209 | 175 | @property (readonly) double progress; | 175 | @property (readonly) double progress; |
210 | 176 | @property (readonly) double duration; | 176 | @property (readonly) double duration; |
211 | 177 | 177 | ||
212 | === modified file 'utilities/AudioStreamer.m' | |||
213 | --- utilities/AudioStreamer.m 2012-02-17 20:55:09 +0000 | |||
214 | +++ utilities/AudioStreamer.m 2012-08-16 21:23:21 +0000 | |||
215 | @@ -56,7 +56,7 @@ | |||
216 | 56 | NSString * const AS_AUDIO_BUFFER_TOO_SMALL_STRING = @"Audio packets are larger than kAQDefaultBufSize."; | 56 | NSString * const AS_AUDIO_BUFFER_TOO_SMALL_STRING = @"Audio packets are larger than kAQDefaultBufSize."; |
217 | 57 | 57 | ||
218 | 58 | @interface AudioStreamer () <UIAlertViewDelegate> | 58 | @interface AudioStreamer () <UIAlertViewDelegate> |
220 | 59 | @property (readwrite) AudioStreamerState state; | 59 | @property (nonatomic, readwrite) AudioStreamerState state; |
221 | 60 | @property UIBackgroundTaskIdentifier bgTaskId; | 60 | @property UIBackgroundTaskIdentifier bgTaskId; |
222 | 61 | 61 | ||
223 | 62 | - (void)handlePropertyChangeForFileStream:(AudioFileStreamID)inAudioFileStream | 62 | - (void)handlePropertyChangeForFileStream:(AudioFileStreamID)inAudioFileStream |
224 | @@ -649,7 +649,7 @@ | |||
225 | 649 | if (fileLength > 0 && seekByteOffset > 0) | 649 | if (fileLength > 0 && seekByteOffset > 0) |
226 | 650 | { | 650 | { |
227 | 651 | CFHTTPMessageSetHeaderFieldValue(message, CFSTR("Range"), | 651 | CFHTTPMessageSetHeaderFieldValue(message, CFSTR("Range"), |
229 | 652 | (CFStringRef)[NSString stringWithFormat:@"bytes=%ld-%ld", seekByteOffset, fileLength]); | 652 | (CFStringRef)[NSString stringWithFormat:@"bytes=%u-%u", seekByteOffset, fileLength]); |
230 | 653 | discontinuous = YES; | 653 | discontinuous = YES; |
231 | 654 | } | 654 | } |
232 | 655 | 655 | ||
233 | @@ -765,7 +765,7 @@ | |||
234 | 765 | if (state != AS_STOPPING && | 765 | if (state != AS_STOPPING && |
235 | 766 | state != AS_STOPPED) | 766 | state != AS_STOPPED) |
236 | 767 | { | 767 | { |
238 | 768 | NSLog(@"### Not starting audio thread. State code is: %ld", state); | 768 | NSLog(@"### Not starting audio thread. State code is: %u", state); |
239 | 769 | } | 769 | } |
240 | 770 | self.state = AS_INITIALIZED; | 770 | self.state = AS_INITIALIZED; |
241 | 771 | [pool release]; | 771 | [pool release]; |
242 | 772 | 772 | ||
243 | === modified file 'utilities/Reachability.h' | |||
244 | --- utilities/Reachability.h 2010-09-20 20:32:15 +0000 | |||
245 | +++ utilities/Reachability.h 2012-08-16 21:23:21 +0000 | |||
246 | @@ -48,6 +48,7 @@ | |||
247 | 48 | 48 | ||
248 | 49 | #import <Foundation/Foundation.h> | 49 | #import <Foundation/Foundation.h> |
249 | 50 | #import <SystemConfiguration/SystemConfiguration.h> | 50 | #import <SystemConfiguration/SystemConfiguration.h> |
250 | 51 | #import <netinet/in.h> | ||
251 | 51 | 52 | ||
252 | 52 | typedef enum { | 53 | typedef enum { |
253 | 53 | NotReachable = 0, | 54 | NotReachable = 0, |
254 | 54 | 55 | ||
255 | === modified file 'utilities/U1SocketListener.h' | |||
256 | --- utilities/U1SocketListener.h 2012-02-07 23:01:23 +0000 | |||
257 | +++ utilities/U1SocketListener.h 2012-08-16 21:23:21 +0000 | |||
258 | @@ -23,7 +23,7 @@ | |||
259 | 23 | 23 | ||
260 | 24 | @interface U1SocketListener : NSObject | 24 | @interface U1SocketListener : NSObject |
261 | 25 | 25 | ||
263 | 26 | @property (copy) U1SocketListenerAcceptHandler acceptHandler; | 26 | @property (nonatomic, copy) U1SocketListenerAcceptHandler acceptHandler; |
264 | 27 | 27 | ||
265 | 28 | + (U1SocketListener*)localListenerWithPort:(NSUInteger)port error:(NSError **)error; | 28 | + (U1SocketListener*)localListenerWithPort:(NSUInteger)port error:(NSError **)error; |
266 | 29 | 29 | ||
267 | 30 | 30 | ||
268 | === modified file 'utilities/U1StreamWriter.h' | |||
269 | --- utilities/U1StreamWriter.h 2012-02-15 22:15:38 +0000 | |||
270 | +++ utilities/U1StreamWriter.h 2012-08-16 21:23:21 +0000 | |||
271 | @@ -25,8 +25,8 @@ | |||
272 | 25 | 25 | ||
273 | 26 | @interface U1StreamWriter : NSObject | 26 | @interface U1StreamWriter : NSObject |
274 | 27 | 27 | ||
277 | 28 | @property (copy) U1StreamWriterErrorHandler errorHandler; | 28 | @property (nonatomic, copy) U1StreamWriterErrorHandler errorHandler; |
278 | 29 | @property (copy) void(^completionHandler)(); | 29 | @property (nonatomic, copy) void(^completionHandler)(); |
279 | 30 | @property (assign) id<U1StreamWriterDelegate> delegate; | 30 | @property (assign) id<U1StreamWriterDelegate> delegate; |
280 | 31 | 31 | ||
281 | 32 | - (id)initWithDescriptor:(U1Descriptor*)aSocket; | 32 | - (id)initWithDescriptor:(U1Descriptor*)aSocket; |
282 | 33 | 33 | ||
283 | === modified file 'utilities/operations/Downloader.m' | |||
284 | --- utilities/operations/Downloader.m 2012-02-17 19:45:46 +0000 | |||
285 | +++ utilities/operations/Downloader.m 2012-08-16 21:23:21 +0000 | |||
286 | @@ -172,7 +172,7 @@ | |||
287 | 172 | [chunkRanges enumerateObjectsUsingBlock:^(id rangeValue, NSUInteger idx, BOOL *stop) { | 172 | [chunkRanges enumerateObjectsUsingBlock:^(id rangeValue, NSUInteger idx, BOOL *stop) { |
288 | 173 | NSRange range = [rangeValue rangeValue]; | 173 | NSRange range = [rangeValue rangeValue]; |
289 | 174 | 174 | ||
291 | 175 | NSString *path = [[tmpDir path] stringByAppendingPathComponent:[NSString stringWithFormat:@"%lu.chunk", idx]]; | 175 | NSString *path = [[tmpDir path] stringByAppendingPathComponent:[NSString stringWithFormat:@"%u.chunk", idx]]; |
292 | 176 | 176 | ||
293 | 177 | U1ChunkDownloadOperation *chunk = [[U1ChunkDownloadOperation alloc] initWithUrl:url path:path andRange:range]; | 177 | U1ChunkDownloadOperation *chunk = [[U1ChunkDownloadOperation alloc] initWithUrl:url path:path andRange:range]; |
294 | 178 | 178 | ||
295 | 179 | 179 | ||
296 | === modified file 'utilities/operations/U1ChunkDownloadOperation.m' | |||
297 | --- utilities/operations/U1ChunkDownloadOperation.m 2012-02-08 23:56:03 +0000 | |||
298 | +++ utilities/operations/U1ChunkDownloadOperation.m 2012-08-16 21:23:21 +0000 | |||
299 | @@ -22,7 +22,7 @@ | |||
300 | 22 | - (id)initWithUrl:(NSURL *)url path:(NSString *)aPath andRange:(NSRange)aRange; | 22 | - (id)initWithUrl:(NSURL *)url path:(NSString *)aPath andRange:(NSRange)aRange; |
301 | 23 | { | 23 | { |
302 | 24 | NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url]; | 24 | NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url]; |
304 | 25 | NSString *requestRange = [NSString stringWithFormat:@"bytes=%lu-%lu", aRange.location, NSMaxRange(aRange) - 1]; | 25 | NSString *requestRange = [NSString stringWithFormat:@"bytes=%u-%u", aRange.location, NSMaxRange(aRange) - 1]; |
305 | 26 | [request setValue:requestRange forHTTPHeaderField:@"Range"]; | 26 | [request setValue:requestRange forHTTPHeaderField:@"Range"]; |
306 | 27 | 27 | ||
307 | 28 | self = [super initWithRequest:request]; | 28 | self = [super initWithRequest:request]; |
Looks good, land it!