diff --git a/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj b/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj index 7782e48b4..88ee6576f 100755 --- a/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj +++ b/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj @@ -509,10 +509,10 @@ 1FB4327D1290295C002D63E8 /* Localizable.strings */ = { isa = PBXVariantGroup; children = ( + 1FF80CDB12A3AB1B00FE297C /* fr */, 1FB4327E1290295C002D63E8 /* de */, 1FB4328E12902968002D63E8 /* en */, 1FB4329512902973002D63E8 /* sv */, - 1FF80CDB12A3AB1B00FE297C /* fr */, ); name = Localizable.strings; sourceTree = ""; @@ -551,6 +551,7 @@ GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = Barcodes_Prefix.pch; + GCC_VERSION = 4.2; INFOPLIST_FILE = "Barcodes-Info.plist"; OTHER_LDFLAGS = ( "-all_load", @@ -567,6 +568,7 @@ COPY_PHASE_STRIP = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = Barcodes_Prefix.pch; + GCC_VERSION = 4.2; INFOPLIST_FILE = "Barcodes-Info.plist"; PRODUCT_NAME = Barcodes; VALIDATE_PRODUCT = YES; @@ -584,8 +586,8 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ( - "../ZXingWidget/Classes/**", ../../cpp/core/src, + "../ZXingWidget/Classes/**", ); IPHONEOS_DEPLOYMENT_TARGET = 4.1; PREBINDING = NO; @@ -602,6 +604,11 @@ GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = ( + ../../cpp/core/src, + "../ZXingWidget/Classes/**", + ); + IPHONEOS_DEPLOYMENT_TARGET = 4.1; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; PREBINDING = NO; SDKROOT = iphoneos; diff --git a/iphone/Barcodes/Classes/Database.m b/iphone/Barcodes/Classes/Database.m index 1c86c8368..05c692d4e 100644 --- a/iphone/Barcodes/Classes/Database.m +++ b/iphone/Barcodes/Classes/Database.m @@ -90,9 +90,9 @@ static Database *sharedDatabase = nil; sqlite3_bind_double(insertStatement, 3, timeStamp); sqlite3_step(insertStatement); sqlite3_reset(insertStatement); - NSDate* theDate = [NSDate dateWithTimeIntervalSince1970:timeStamp]; + NSDate* theDate = [[NSDate alloc] initWithTimeIntervalSince1970:timeStamp]; Scan *scan = [[[Scan alloc] initWithIdent:nextScanIdent text:text stamp:theDate] autorelease]; - + [theDate release]; return scan; } @@ -100,9 +100,11 @@ static Database *sharedDatabase = nil; NSMutableArray *scans = [NSMutableArray array]; while (SQLITE_ROW == sqlite3_step(selectAllStatement)) { int ident = sqlite3_column_int(selectAllStatement, 0); - NSString *text = [NSString stringWithUTF8String:(char *)sqlite3_column_text(selectAllStatement, 1)]; - NSDate *stamp = [NSDate dateWithTimeIntervalSince1970:sqlite3_column_double(selectAllStatement, 2)]; + NSString *text = [[NSString alloc] initWithUTF8String:(char *)sqlite3_column_text(selectAllStatement, 1)]; + NSDate *stamp = [[NSDate alloc] initWithTimeIntervalSince1970:sqlite3_column_double(selectAllStatement, 2)]; Scan *scan = [[Scan alloc] initWithIdent:ident text:text stamp:stamp]; + [text release]; + [stamp release]; [scans addObject:scan]; [scan release]; } diff --git a/iphone/Barcodes/Classes/Scan.m b/iphone/Barcodes/Classes/Scan.m index 6d7b29bf4..cb2f91787 100644 --- a/iphone/Barcodes/Classes/Scan.m +++ b/iphone/Barcodes/Classes/Scan.m @@ -37,4 +37,10 @@ return self; } +- (void)dealloc { + [stamp release]; + [text release]; + [super dealloc]; +} + @end diff --git a/iphone/Barcodes/Classes/ZXMainViewController.h b/iphone/Barcodes/Classes/ZXMainViewController.h index 43b80417c..310f29e0f 100644 --- a/iphone/Barcodes/Classes/ZXMainViewController.h +++ b/iphone/Barcodes/Classes/ZXMainViewController.h @@ -19,24 +19,16 @@ @interface ZXMainViewController : UIViewController { NSArray *actions; ParsedResult *result; - IBOutlet UITextView *resultView; - IBOutlet UIButton *lastActionButton; } @property (nonatomic,assign) NSArray *actions; @property (nonatomic,assign) ParsedResult *result; -@property (nonatomic,retain) IBOutlet UITextView *resultView; -@property (nonatomic,retain) IBOutlet UIButton *lastActionButton; - (IBAction)scan:(id)sender; -- (IBAction)info:(id)sender; -- (IBAction)showArchive:(id)sender; -- (IBAction)lastResultAction:(id)sender; - (void)zxingController:(ZXingWidgetController*)controller didScanResult:(NSString *)result; - (void)zxingControllerDidCancel:(ZXingWidgetController*)controller; - (void)performResultAction; -- (void)setResultViewWithText:(NSString*)theResult; diff --git a/iphone/Barcodes/Classes/ZXMainViewController.mm b/iphone/Barcodes/Classes/ZXMainViewController.mm index f54e4c104..96917dc20 100644 --- a/iphone/Barcodes/Classes/ZXMainViewController.mm +++ b/iphone/Barcodes/Classes/ZXMainViewController.mm @@ -18,8 +18,6 @@ @implementation ZXMainViewController @synthesize actions; @synthesize result; -@synthesize resultView; -@synthesize lastActionButton; // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. /* @@ -37,10 +35,6 @@ - (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.title = @"Barcodes"; - NSString *rawLatestResult = [[NSUserDefaults standardUserDefaults] objectForKey:@"lastScan"]; - if (!rawLatestResult) rawLatestResult = NSLocalizedString(@"Latest result will appear here once you have scanned a barcode at least once",@"Latest result will appear here once you have scanned a barcode at least once"); - [self setResultViewWithText:rawLatestResult]; - } @@ -80,28 +74,6 @@ [messageController release]; } -- (IBAction)info:(id)sender { - MessageViewController *aboutController = - [[MessageViewController alloc] initWithMessageFilename:@"About"]; - aboutController.delegate = self; - //TODO: change this - [self.navigationController pushViewController:aboutController animated:YES]; - [aboutController release]; -} - -- (IBAction)showArchive:(id)sender { - ArchiveController *archiveController = [[ArchiveController alloc] init]; - archiveController.delegate = self; - //TODO: change this - [self.navigationController pushViewController:archiveController animated:YES]; - [archiveController release]; -} - -- (IBAction)lastResultAction:(id)sender { - [self performResultAction]; -} - - - (void)performAction:(ResultAction *)action { [action performActionWithController:self shouldConfirm:NO]; } @@ -124,52 +96,24 @@ - (void)dealloc { - [resultView release]; - [lastActionButton release]; actions = nil; result = nil; [super dealloc]; } -- (void)setResultViewWithText:(NSString*)theResult { - ParsedResult *parsedResult = [[UniversalResultParser parsedResultForString:theResult] retain]; - NSString *displayString = [parsedResult stringForDisplay]; - self.resultView.text = displayString; - self.result = [parsedResult retain]; - self.actions = [[parsedResult actions] retain]; - NSString *buttonTitle; - if ([self.actions count] == 1) { - ResultAction *theAction = [self.actions objectAtIndex:0]; - buttonTitle = [theAction title]; - lastActionButton.userInteractionEnabled = YES; - } else if ([self.actions count] == 0) { - lastActionButton.userInteractionEnabled = NO; - buttonTitle = NSLocalizedString(@"No Actions",@"No Actions"); - } else { - - lastActionButton.userInteractionEnabled = YES; - buttonTitle = NSLocalizedString(@"Actions ...",@"Actions ..."); - } - [lastActionButton setTitle:buttonTitle forState: UIControlStateNormal]; -} - #pragma mark - #pragma mark ZXingDelegateMethods - (void)zxingController:(ZXingWidgetController*)controller didScanResult:(NSString *)resultString { [self dismissModalViewControllerAnimated:YES]; - //ParsedResult *theResult = [UniversalResultParser parsedResultForString:resultString]; - //self.result = [theResult retain]; - //self.actions = [self.result.actions retain]; - [self setResultViewWithText:resultString]; #ifdef DEBUG NSLog(@"result has %d actions", actions ? 0 : actions.count); #endif Scan * scan = [[Database sharedDatabase] addScanWithText:resultString]; [[NSUserDefaults standardUserDefaults] setObject:resultString forKey:@"lastScan"]; - - //TODO: toggle view into result view that needs to be done. ParsedResult *parsedResult = [[UniversalResultParser parsedResultForString:resultString] retain]; + self.result = [parsedResult retain]; + self.actions = [self.result.actions retain]; ScanViewController *scanViewController = [[ScanViewController alloc] initWithResult:parsedResult forScan:scan]; [self.navigationController pushViewController:scanViewController animated:NO]; [scanViewController release]; diff --git a/iphone/Barcodes/images/Default.png b/iphone/Barcodes/images/Default.png index ea992027e..2740b6ce1 100644 Binary files a/iphone/Barcodes/images/Default.png and b/iphone/Barcodes/images/Default.png differ diff --git a/iphone/Barcodes/images/Default@2x.png b/iphone/Barcodes/images/Default@2x.png index 1e30b754a..505c4a40a 100644 Binary files a/iphone/Barcodes/images/Default@2x.png and b/iphone/Barcodes/images/Default@2x.png differ diff --git a/iphone/ZXingWidget/Classes/Decoder.mm b/iphone/ZXingWidget/Classes/Decoder.mm index 75105881f..16df0f5fd 100644 --- a/iphone/ZXingWidget/Classes/Decoder.mm +++ b/iphone/ZXingWidget/Classes/Decoder.mm @@ -160,7 +160,7 @@ public: - (BOOL)decode { NSAutoreleasePool* mainpool = [[NSAutoreleasePool alloc] init]; TwoDDecoderResult *decoderResult = nil; - + BOOL returnCode = NO; { //NSSet *formatReaders = [FormatReader formatReaders]; NSSet *formatReaders = self.readers; @@ -205,10 +205,13 @@ public: [points addObject:[NSValue valueWithCGPoint:p]]; } - NSString *resultString = [NSString stringWithCString:cString - encoding:NSUTF8StringEncoding]; - - decoderResult = [[TwoDDecoderResult resultWithText:resultString points:points] retain]; + //NSString *resultString = [NSString stringWithCString:cString + // encoding:NSUTF8StringEncoding]; + NSString *resultString = [[NSString alloc] initWithCString:cString encoding:NSUTF8StringEncoding]; + //decoderResult = [[TwoDDecoderResult resultWithText:resultString points:points] retain]; + if (decoderResult) [decoderResult release]; + decoderResult = [[TwoDDecoderResult alloc] initWithText:resultString points:points]; + [resultString release]; [points release]; } catch (ReaderException &rex) { NSLog(@"failed to decode, caught ReaderException '%s'", @@ -245,8 +248,10 @@ public: if (decoderResult) { [self performSelectorOnMainThread:@selector(didDecodeImage:) - withObject:decoderResult + withObject:[decoderResult copy] waitUntilDone:NO]; + [decoderResult release]; + returnCode = YES; } else { [self performSelectorOnMainThread:@selector(failedToDecodeImage:) withObject:NSLocalizedString(@"Decoder BarcodeDetectionFailure", @"No barcode detected.") @@ -260,7 +265,7 @@ public: #endif [mainpool release]; - return decoderResult == nil ? NO : YES; + return returnCode; } - (BOOL) decodeImage:(UIImage *)i { diff --git a/iphone/ZXingWidget/Classes/OverlayView.h b/iphone/ZXingWidget/Classes/OverlayView.h index e77d13189..641211b9a 100755 --- a/iphone/ZXingWidget/Classes/OverlayView.h +++ b/iphone/ZXingWidget/Classes/OverlayView.h @@ -22,9 +22,10 @@ UIImageView *imageView; NSMutableArray *_points; UIButton *cancelButton; + UILabel *instructionsLabel; id delegate; BOOL oneDMode; - CGRect cropRect; + CGRect cropRect; } @property (nonatomic, retain) NSMutableArray* points; diff --git a/iphone/ZXingWidget/Classes/OverlayView.m b/iphone/ZXingWidget/Classes/OverlayView.m index a3d1bd6b7..627a1b2a7 100755 --- a/iphone/ZXingWidget/Classes/OverlayView.m +++ b/iphone/ZXingWidget/Classes/OverlayView.m @@ -20,6 +20,7 @@ static const CGFloat kPadding = 10; @interface OverlayView() @property (nonatomic,assign) UIButton *cancelButton; +@property (nonatomic,retain) UILabel *instructionsLabel; @end @@ -29,6 +30,7 @@ static const CGFloat kPadding = 10; @synthesize points = _points; @synthesize cancelButton; @synthesize cropRect; +@synthesize instructionsLabel; //////////////////////////////////////////////////////////////////////////////////////////////////// - (id) initWithFrame:(CGRect)theFrame cancelEnabled:(BOOL)isCancelEnabled oneDMode:(BOOL)isOneDModeEnabled { @@ -61,6 +63,7 @@ static const CGFloat kPadding = 10; [self addSubview:cancelButton]; [self addSubview:imageView]; } + } return self; } @@ -76,6 +79,7 @@ static const CGFloat kPadding = 10; - (void) dealloc { [imageView release]; [_points release]; + [instructionsLabel release]; [super dealloc]; } diff --git a/iphone/ZXingWidget/Classes/TwoDDecoderResult.h b/iphone/ZXingWidget/Classes/TwoDDecoderResult.h index 62263eae1..66e9eca44 100644 --- a/iphone/ZXingWidget/Classes/TwoDDecoderResult.h +++ b/iphone/ZXingWidget/Classes/TwoDDecoderResult.h @@ -21,7 +21,7 @@ #import -@interface TwoDDecoderResult : NSObject { +@interface TwoDDecoderResult : NSObject { NSString *text; NSArray *points; } @@ -31,5 +31,7 @@ + (id)resultWithText:(NSString *)text points:(NSArray *)points; - (id)initWithText:(NSString *)text points:(NSArray *)points; +- (id)copyWithZone:(NSZone *)zone; +- (id)copy; @end diff --git a/iphone/ZXingWidget/Classes/TwoDDecoderResult.m b/iphone/ZXingWidget/Classes/TwoDDecoderResult.m index d83f66bd5..66bb11d3c 100644 --- a/iphone/ZXingWidget/Classes/TwoDDecoderResult.m +++ b/iphone/ZXingWidget/Classes/TwoDDecoderResult.m @@ -39,6 +39,15 @@ return self; } +- (id)copyWithZone:(NSZone *)zone { + TwoDDecoderResult *theCopy = [[TwoDDecoderResult allocWithZone:zone] initWithText:[text copyWithZone:zone] points:[points copyWithZone:zone]]; + return theCopy; +} + +- (id)copy { + return [self copyWithZone:nil]; +} + - (void)dealloc { [text release]; [points release]; diff --git a/iphone/ZXingWidget/Classes/ZXingWidgetController.m b/iphone/ZXingWidget/Classes/ZXingWidgetController.m index 1a17f755a..e73ff7bb2 100755 --- a/iphone/ZXingWidget/Classes/ZXingWidgetController.m +++ b/iphone/ZXingWidget/Classes/ZXingWidgetController.m @@ -20,6 +20,7 @@ #import "ResultParser.h" #import "ParsedResult.h" #import "ResultAction.h" +#import "TwoDDecoderResult.h" #include #include @@ -239,11 +240,13 @@ #endif } -- (void)presentResultPoints:(NSMutableArray *)resultPoints +- (void)presentResultPoints:(NSArray *)resultPoints forImage:(UIImage *)image usingSubset:(UIImage *)subset { // simply add the points to the image view - [overlayView setPoints:resultPoints]; + NSMutableArray *mutableArray = [[NSMutableArray alloc] initWithArray:resultPoints]; + [overlayView setPoints:mutableArray]; + [mutableArray release]; } - (void)decoder:(Decoder *)decoder didDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset withResult:(TwoDDecoderResult *)twoDResult { diff --git a/iphone/ZXingWidget/Classes/actions/AddContactAction.h b/iphone/ZXingWidget/Classes/actions/AddContactAction.h index dd29145d2..3a1fce6d7 100644 --- a/iphone/ZXingWidget/Classes/actions/AddContactAction.h +++ b/iphone/ZXingWidget/Classes/actions/AddContactAction.h @@ -31,6 +31,7 @@ NSString *urlString; NSString *address; NSString *organization; + NSString *jobTitle; UIViewController *viewController; } @@ -42,6 +43,7 @@ @property (nonatomic, copy) NSString *urlString; @property (nonatomic, copy) NSString *address; @property (nonatomic, copy) NSString *organization; +@property (nonatomic, copy) NSString *jobTitle; + (id)actionWithName:(NSString *)n phoneNumbers:(NSArray *)nums @@ -49,6 +51,7 @@ url:(NSString *)us address:(NSString *)ad note:(NSString *)nt - organization:(NSString *)org; + organization:(NSString *)org + jobTitle:(NSString *)title; @end diff --git a/iphone/ZXingWidget/Classes/actions/AddContactAction.m b/iphone/ZXingWidget/Classes/actions/AddContactAction.m index fa976df0a..16d3486de 100644 --- a/iphone/ZXingWidget/Classes/actions/AddContactAction.m +++ b/iphone/ZXingWidget/Classes/actions/AddContactAction.m @@ -32,6 +32,7 @@ @synthesize urlString; @synthesize address; @synthesize organization; +@synthesize jobTitle; + (id)actionWithName:(NSString *)n phoneNumbers:(NSArray *)nums @@ -39,7 +40,8 @@ url:(NSString *)us address:(NSString *)ad note:(NSString *)nt - organization:(NSString *)org { + organization:(NSString *)org + jobTitle:(NSString *)title { AddContactAction *aca = [[[self alloc] init] autorelease]; aca.name = n; aca.phoneNumbers = nums; @@ -48,6 +50,7 @@ aca.address = ad; aca.note = nt; aca.organization = org; + aca.jobTitle = title; return aca; } @@ -96,6 +99,10 @@ ABRecordSetValue(person, kABPersonOrganizationProperty, (CFStringRef)self.organization, error); } + if (self.jobTitle) { + ABRecordSetValue(person, kABPersonJobTitleProperty, (CFStringRef)self.jobTitle, error); + } + if (self.phoneNumbers && self.phoneNumbers.count > 0) { // multi-values: nultiple phone numbers ABMutableMultiValueRef phoneNumberMultiValue = diff --git a/iphone/ZXingWidget/Classes/parsedResults/BusinessCardParsedResult.h b/iphone/ZXingWidget/Classes/parsedResults/BusinessCardParsedResult.h index 781b0203e..6ba1bff3b 100644 --- a/iphone/ZXingWidget/Classes/parsedResults/BusinessCardParsedResult.h +++ b/iphone/ZXingWidget/Classes/parsedResults/BusinessCardParsedResult.h @@ -30,6 +30,7 @@ NSString *urlString; NSString *address; NSString *organization; + NSString *jobTitle; } @property (nonatomic, copy) NSString *name; @@ -39,5 +40,6 @@ @property (nonatomic, copy) NSString *urlString; @property (nonatomic, copy) NSString *address; @property (nonatomic, copy) NSString *organization; +@property (nonatomic, copy) NSString *jobTitle; @end diff --git a/iphone/ZXingWidget/Classes/parsedResults/BusinessCardParsedResult.m b/iphone/ZXingWidget/Classes/parsedResults/BusinessCardParsedResult.m index 9d91ddb2f..ff8334b9f 100644 --- a/iphone/ZXingWidget/Classes/parsedResults/BusinessCardParsedResult.m +++ b/iphone/ZXingWidget/Classes/parsedResults/BusinessCardParsedResult.m @@ -31,6 +31,7 @@ @synthesize urlString; @synthesize address; @synthesize organization; +@synthesize jobTitle; - (NSString *)stringForDisplay { NSMutableString *result = [NSMutableString stringWithString:self.name]; @@ -63,7 +64,8 @@ url:self.urlString address:self.address note:self.note - organization:self.organization]]; + organization:self.organization + jobTitle:self.jobTitle]]; } - (void) dealloc { @@ -74,6 +76,7 @@ [address release]; [note release]; [organization release]; + [jobTitle release]; [super dealloc]; } diff --git a/iphone/ZXingWidget/Classes/resultParsers/DoCoMoResultParser.m b/iphone/ZXingWidget/Classes/resultParsers/DoCoMoResultParser.m index d29e095e4..b25a8510d 100644 --- a/iphone/ZXingWidget/Classes/resultParsers/DoCoMoResultParser.m +++ b/iphone/ZXingWidget/Classes/resultParsers/DoCoMoResultParser.m @@ -58,6 +58,7 @@ int max = [self length]; NSRange searchRange; NSRange foundRange; + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; while (i < max) { searchRange = NSMakeRange(i, max - i); foundRange = [self rangeOfString:prefix options:0 range:searchRange]; @@ -78,18 +79,20 @@ } else { NSString *substring = [self substringWithRange:NSMakeRange(start, termRange.location - start)]; NSString *unescaped = [substring backslashUnescaped]; + NSString *toBeInArray = [[NSString alloc] initWithString:unescaped]; if (result == nil) { - result = [NSMutableArray arrayWithObject:unescaped]; - } else { - [result addObject:unescaped]; + result = [[NSMutableArray alloc] initWithCapacity:1]; } + [result addObject:toBeInArray]; + [toBeInArray release]; i = termRange.location + termRange.length; done = true; } } } + [pool release]; - return result; + return [result autorelease]; } - (NSString *)fieldWithPrefix:(NSString *)prefix { diff --git a/iphone/ZXingWidget/Classes/resultParsers/MeCardParser.m b/iphone/ZXingWidget/Classes/resultParsers/MeCardParser.m index f93e29590..d23f85145 100644 --- a/iphone/ZXingWidget/Classes/resultParsers/MeCardParser.m +++ b/iphone/ZXingWidget/Classes/resultParsers/MeCardParser.m @@ -46,7 +46,11 @@ result.note = [s fieldWithPrefix:@"NOTE:"]; result.urlString = [s fieldWithPrefix:@"URL:"]; result.address = [s fieldWithPrefix:@"ADR:"]; + + //The following tags are not stricty parot of MECARD spec, but as their are standard in + //vcard, we honor them result.organization = [s fieldWithPrefix:@"ORG:"]; + result.jobTitle = [s fieldWithPrefix:@"TITLE:"]; return [result autorelease]; } diff --git a/iphone/ZXingWidget/ZXingWidget.xcodeproj/project.pbxproj b/iphone/ZXingWidget/ZXingWidget.xcodeproj/project.pbxproj index 80f77c1ea..10d158064 100644 --- a/iphone/ZXingWidget/ZXingWidget.xcodeproj/project.pbxproj +++ b/iphone/ZXingWidget/ZXingWidget.xcodeproj/project.pbxproj @@ -1169,6 +1169,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = ZXingWidget_Prefix.pch; GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_VERSION = 4.2; HEADER_SEARCH_PATHS = ../../cpp/core/src; INSTALL_PATH = /usr/local/lib; LD_GENERATE_MAP_FILE = YES; @@ -1193,6 +1194,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = ZXingWidget_Prefix.pch; GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_VERSION = 4.2; HEADER_SEARCH_PATHS = ../../cpp/core/src; INSTALL_PATH = /usr/local/lib; PRODUCT_NAME = ZXingWidget; @@ -1205,7 +1207,7 @@ ARCHS = "$(ARCHS_STANDARD_32_BIT)"; GCC_C_LANGUAGE_STANDARD = c99; GCC_OPTIMIZATION_LEVEL = 0; - GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_VERSION = 4.2; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ../../cpp/core/src; diff --git a/iphone/legacy/Barcodes_original/ZXing.xcodeproj/project.pbxproj b/iphone/legacy/Barcodes_original/ZXing.xcodeproj/project.pbxproj index 86b1e592b..08e57d344 100755 --- a/iphone/legacy/Barcodes_original/ZXing.xcodeproj/project.pbxproj +++ b/iphone/legacy/Barcodes_original/ZXing.xcodeproj/project.pbxproj @@ -1517,7 +1517,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = ZXing_Prefix.pch; GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1"; - HEADER_SEARCH_PATHS = ../../cpp/core/src; + HEADER_SEARCH_PATHS = ../../../cpp/core/src; INFOPLIST_FILE = Info.plist; PRODUCT_NAME = Barcodes; }; @@ -2005,7 +2005,7 @@ HEADER_SEARCH_PATHS = ../../../cpp/core/src; ONLY_ACTIVE_ARCH = YES; PREBINDING = NO; - SDKROOT = iphoneos4.2; + SDKROOT = iphoneos; }; name = Debug; };