├── .gitignore ├── EAN13BarcodeGenerator.podspec ├── EAN13BarcodeGenerator ├── .gitignore ├── .travis.yml ├── EAN13BarcodeGenerator │ ├── Assets │ │ └── .gitkeep │ └── Classes │ │ ├── .gitkeep │ │ ├── BarCodeEAN13.h │ │ ├── BarCodeEAN13.m │ │ ├── BarCodeView.h │ │ └── BarCodeView.m ├── Example │ ├── EAN13BarcodeGenerator.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── EAN13BarcodeGenerator-Example.xcscheme │ ├── EAN13BarcodeGenerator │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── EAN13AppDelegate.h │ │ ├── EAN13AppDelegate.m │ │ ├── EAN13BarcodeGenerator-Info.plist │ │ ├── EAN13BarcodeGenerator-Prefix.pch │ │ ├── EAN13BarcodeGenerator_Example-Bridging-Header.h │ │ ├── EAN13ViewController.h │ │ ├── EAN13ViewController.m │ │ ├── EAN13ViewControllerSwift.swift │ │ ├── EAN13ViewControllerWithIB.h │ │ ├── EAN13ViewControllerWithIB.m │ │ ├── EAN13ViewControllerWithoutIB.h │ │ ├── EAN13ViewControllerWithoutIB.m │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── UIView+Animation.h │ │ ├── UIView+Animation.m │ │ ├── en.lproj │ │ │ └── InfoPlist.strings │ │ └── main.m │ ├── Podfile │ ├── Podfile.lock │ ├── Pods │ │ ├── Local Podspecs │ │ │ └── EAN13BarcodeGenerator.podspec.json │ │ ├── Manifest.lock │ │ ├── Pods.xcodeproj │ │ │ └── project.pbxproj │ │ └── Target Support Files │ │ │ ├── EAN13BarcodeGenerator │ │ │ ├── EAN13BarcodeGenerator-dummy.m │ │ │ ├── EAN13BarcodeGenerator-prefix.pch │ │ │ ├── EAN13BarcodeGenerator-umbrella.h │ │ │ ├── EAN13BarcodeGenerator.modulemap │ │ │ ├── EAN13BarcodeGenerator.xcconfig │ │ │ └── Info.plist │ │ │ ├── Pods-EAN13BarcodeGenerator_Example │ │ │ ├── Info.plist │ │ │ ├── Pods-EAN13BarcodeGenerator_Example-acknowledgements.markdown │ │ │ ├── Pods-EAN13BarcodeGenerator_Example-acknowledgements.plist │ │ │ ├── Pods-EAN13BarcodeGenerator_Example-dummy.m │ │ │ ├── Pods-EAN13BarcodeGenerator_Example-frameworks.sh │ │ │ ├── Pods-EAN13BarcodeGenerator_Example-resources.sh │ │ │ ├── Pods-EAN13BarcodeGenerator_Example-umbrella.h │ │ │ ├── Pods-EAN13BarcodeGenerator_Example.debug.xcconfig │ │ │ ├── Pods-EAN13BarcodeGenerator_Example.modulemap │ │ │ └── Pods-EAN13BarcodeGenerator_Example.release.xcconfig │ │ │ └── Pods-EAN13BarcodeGenerator_Tests │ │ │ ├── Info.plist │ │ │ ├── Pods-EAN13BarcodeGenerator_Tests-acknowledgements.markdown │ │ │ ├── Pods-EAN13BarcodeGenerator_Tests-acknowledgements.plist │ │ │ ├── Pods-EAN13BarcodeGenerator_Tests-dummy.m │ │ │ ├── Pods-EAN13BarcodeGenerator_Tests-frameworks.sh │ │ │ ├── Pods-EAN13BarcodeGenerator_Tests-resources.sh │ │ │ ├── Pods-EAN13BarcodeGenerator_Tests-umbrella.h │ │ │ ├── Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig │ │ │ ├── Pods-EAN13BarcodeGenerator_Tests.modulemap │ │ │ └── Pods-EAN13BarcodeGenerator_Tests.release.xcconfig │ └── Tests │ │ ├── Tests-Info.plist │ │ ├── Tests-Prefix.pch │ │ ├── Tests.m │ │ └── en.lproj │ │ └── InfoPlist.strings └── _Pods.xcodeproj ├── LICENSE ├── README.md └── Screen.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | *.xcworkspace 13 | !default.xcworkspace 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | DerivedData 18 | .idea/ 19 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint EAN13BarcodeGenerator.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'EAN13BarcodeGenerator' 11 | s.version = '0.2.0' 12 | s.summary = 'The easiest way to generate and show EAN13 barcode' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | Simple and performance solution to generate EAN13 barcode for iOS applications 22 | DESC 23 | 24 | s.homepage = 'https://github.com/astrokin/EAN13BarcodeGenerator' 25 | s.screenshots = 'https://dl.dropboxusercontent.com/s/2jhzwpm8nlz9iyj/Screen.png' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'Alexey Strokin' => 'alex.strok@gmail.com' } 28 | s.source = { :git => 'https://github.com/astrokin/EAN13BarcodeGenerator.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '8.0' 32 | 33 | s.source_files = 'EAN13BarcodeGenerator/EAN13BarcodeGenerator/Classes/**/*' 34 | s.frameworks = 'UIKit' 35 | 36 | # s.resource_bundles = { 37 | # 'EAN13BarcodeGenerator' => ['EAN13BarcodeGenerator/Assets/*.png'] 38 | # } 39 | 40 | # s.public_header_files = 'Pod/Classes/**/*.h' 41 | # s.dependency 'AFNetworking', '~> 2.3' 42 | end 43 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/EAN13BarcodeGenerator.xcworkspace -scheme EAN13BarcodeGenerator-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/EAN13BarcodeGenerator/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astrokin/EAN13BarcodeGenerator/5b8f0828b565810111d347ef7247367e423fdc11/EAN13BarcodeGenerator/EAN13BarcodeGenerator/Assets/.gitkeep -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/EAN13BarcodeGenerator/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astrokin/EAN13BarcodeGenerator/5b8f0828b565810111d347ef7247367e423fdc11/EAN13BarcodeGenerator/EAN13BarcodeGenerator/Classes/.gitkeep -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/EAN13BarcodeGenerator/Classes/BarCodeEAN13.h: -------------------------------------------------------------------------------- 1 | // 2 | // BarCodeEAN13.h 3 | // 4 | // Created by Alexey Strokin on 11/3/14. 5 | // Copyright (c) 2014 Strokin Alexey. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | extern void CalculateBarCodeEAN13(NSString *barCodeString, BOOL *buffer); 11 | extern NSString *GetNewRandomEAN13BarCode(void); 12 | extern BOOL isValidBarCode(NSString* barCode); 13 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/EAN13BarcodeGenerator/Classes/BarCodeEAN13.m: -------------------------------------------------------------------------------- 1 | // 2 | // BarcodeEAN13.m 3 | // 4 | // Created by Strokin Alexey on 8/27/13. Assist Eugene Hermann 5 | // Copyright (c) 2013 Strokin Alexey. All rights reserved. 6 | // 7 | 8 | #import "BarCodeEAN13.h" 9 | 10 | //////////////////////////////////////////////////////////////////////////////// 11 | 12 | enum 13 | { 14 | Odd = 0, 15 | Even = 1 16 | } 17 | typedef Parity; 18 | 19 | 20 | #define ShiftCopyBoolArray(dst, src, size) \ 21 | do\ 22 | {\ 23 | memcpy(dst, src, size);\ 24 | dst += size;\ 25 | } while (0) 26 | 27 | #pragma clang diagnostic push 28 | #pragma clang diagnostic ignored "-Wduplicate-decl-specifier" 29 | 30 | 31 | static const NSUInteger kBarCodeLength = 12; 32 | 33 | static const BOOL const bQuiteZone[] = {0,0,0,0,0,0,0,0,0}; 34 | 35 | static const BOOL const bLeadTrailer[] = {1,0,1}; 36 | 37 | static const BOOL const bSeporator[] = {0,1,0,1,0}; 38 | 39 | static const BOOL const bOddLeft[10][7] = { 40 | {0,0,0,1,1,0,1}, {0,0,1,1,0,0,1}, {0,0,1,0,0,1,1}, {0,1,1,1,1,0,1}, 41 | {0,1,0,0,0,1,1}, {0,1,1,0,0,0,1}, {0,1,0,1,1,1,1}, {0,1,1,1,0,1,1}, 42 | {0,1,1,0,1,1,1}, {0,0,0,1,0,1,1} 43 | }; 44 | 45 | static const BOOL const bEvenLeft[10][7] = { 46 | {0,1,0,0,1,1,1}, {0,1,1,0,0,1,1}, {0,0,1,1,0,1,1}, {0,1,0,0,0,0,1}, 47 | {0,0,1,1,1,0,1}, {0,1,1,1,0,0,1}, {0,0,0,0,1,0,1}, {0,0,1,0,0,0,1}, 48 | {0,0,0,1,0,0,1}, {0,0,1,0,1,1,1} 49 | }; 50 | 51 | static const BOOL const bRight[10][7] = { 52 | {1,1,1,0,0,1,0}, {1,1,0,0,1,1,0}, {1,1,0,1,1,0,0}, {1,0,0,0,0,1,0}, 53 | {1,0,1,1,1,0,0}, {1,0,0,1,1,1,0}, {1,0,1,0,0,0,0}, {1,0,0,0,1,0,0}, 54 | {1,0,0,1,0,0,0}, {1,1,1,0,1,0,0} 55 | }; 56 | 57 | static const BOOL const bParity[10][5] = { 58 | {0,0,0,0,0}, {0,1,0,1,1}, {0,1,1,0,1}, {0,1,1,1,0}, {1,0,0,1,1}, 59 | {1,1,0,0,1}, {1,1,1,0,0}, {1,0,1,0,1}, {1,0,1,1,0}, {1,1,0,1,0} 60 | }; 61 | 62 | #pragma clang diagnostic pop 63 | 64 | 65 | //////////////////////////////////////////////////////////////////////////////// 66 | 67 | 68 | static BOOL* FillManufactureCode(BOOL *dst, NSInteger *code) 69 | { 70 | // DLog(@""); 71 | const NSInteger manufacturePos = 2; 72 | const NSInteger manufactureLen = 5; 73 | NSInteger firstDigit = code[0]; 74 | NSInteger pos = manufacturePos; 75 | for (NSInteger i = 0; i < manufactureLen; i++, pos++) 76 | { 77 | NSInteger num = code[pos]; 78 | Parity parity = (bParity[firstDigit][i] == 0) ? Odd : Even; 79 | BOOL *bin; 80 | if (parity == Odd) 81 | { 82 | bin = (BOOL *)bOddLeft[num]; 83 | } 84 | else 85 | { 86 | bin = (BOOL *)bEvenLeft[num]; 87 | } 88 | ShiftCopyBoolArray(dst, bin, 7); 89 | } 90 | return dst; 91 | } 92 | 93 | static BOOL *FillProductCode(BOOL *dst, NSInteger *barCode) 94 | { 95 | const NSInteger productPos = 7; 96 | const NSInteger productLen = 5; 97 | NSInteger codePos = productPos; 98 | for (NSInteger i = 0; i < productLen; i++, codePos++) 99 | { 100 | NSInteger num = barCode[codePos]; 101 | BOOL *bin = (BOOL *)bRight[num]; 102 | ShiftCopyBoolArray(dst, bin, 7); 103 | } 104 | return dst; 105 | } 106 | 107 | static BOOL *FillCheckSumm(BOOL *dst, NSInteger *barCode) 108 | { 109 | NSInteger sum = 0; 110 | for (NSUInteger pos = 0; pos < kBarCodeLength; pos ++) 111 | { 112 | NSInteger num = barCode[pos]; 113 | NSInteger factor = ((pos % 2 == 0) ? 1 : 3); 114 | sum += num * factor; 115 | } 116 | NSInteger ost = sum % 10; 117 | NSInteger result = (10 - ost) % 10; 118 | BOOL *bin = (BOOL *)bRight[result]; 119 | ShiftCopyBoolArray(dst, bin, 7); 120 | return dst; 121 | } 122 | 123 | static NSInteger* InitializeBarCode(NSString *barCodeString) 124 | { 125 | NSInteger *barCode = calloc(kBarCodeLength, sizeof(NSInteger)); 126 | size_t barLength = barCodeString.length; 127 | barLength = MIN(barLength, kBarCodeLength); 128 | unichar *stringBuf = calloc(barLength, sizeof(unichar)); 129 | NSRange range = {0, barLength}; 130 | [barCodeString getCharacters:stringBuf range:range]; 131 | for (NSUInteger i = 0; i < barLength; i++) 132 | { 133 | barCode[i] = stringBuf[i] - 0x30; 134 | if (barCode[i] < 0 || barCode[i] > 9) 135 | { 136 | barCode[i] = 0; 137 | } 138 | } 139 | free(stringBuf); 140 | return barCode; 141 | } 142 | 143 | 144 | ////////////////////////////////////////////////////////////////////////////////// 145 | 146 | void CalculateBarCodeEAN13(NSString *barCodeString, BOOL *buffer) 147 | { 148 | NSInteger *barCode = InitializeBarCode(barCodeString); 149 | BOOL *bp = buffer; 150 | ShiftCopyBoolArray(bp, bQuiteZone, 9); 151 | ShiftCopyBoolArray(bp, bLeadTrailer, 3); 152 | NSInteger countryCode = barCode[1]; 153 | ShiftCopyBoolArray(bp, bOddLeft[countryCode], 7); 154 | bp = FillManufactureCode(bp, barCode); 155 | ShiftCopyBoolArray(bp, bSeporator, 5); 156 | bp = FillProductCode(bp, barCode); 157 | bp = FillCheckSumm(bp, barCode); 158 | ShiftCopyBoolArray(bp, bLeadTrailer, 3); 159 | ShiftCopyBoolArray(bp, bQuiteZone, 9); 160 | 161 | free(barCode); 162 | } 163 | 164 | NSString *GetNewRandomEAN13BarCode(void) 165 | { 166 | NSString *result = @""; 167 | NSInteger sum = 0; 168 | for (NSInteger i = 12; i >= 1; i--) 169 | { 170 | NSInteger m = (i % 2) == 1 ? 3 : 1; 171 | NSInteger value = arc4random() % 10; 172 | sum += (m*value); 173 | result = [result stringByAppendingFormat:@"%li", (long)value]; 174 | } 175 | NSInteger cs = 10 - (sum % 10); 176 | result = [result stringByAppendingFormat:@"%li", (long)(cs == 10 ? 0 : cs)]; 177 | NSLog(@"Generated barcode: %@", result); 178 | return result; 179 | } 180 | 181 | BOOL isValidBarCode(NSString* barCode) 182 | { 183 | BOOL valid = NO; 184 | NSCharacterSet *alphaNums = [NSCharacterSet decimalDigitCharacterSet]; 185 | NSCharacterSet *inStringSet = [NSCharacterSet characterSetWithCharactersInString:barCode]; 186 | if ([alphaNums isSupersetOfSet:inStringSet] && barCode.length == 13) 187 | { 188 | // checksum validation 189 | NSInteger sum = 0; 190 | for (NSUInteger i = 0; i < 12; i++) 191 | { 192 | NSUInteger m = (i % 2) == 1 ? 3 : 1; 193 | NSUInteger value = [barCode characterAtIndex:i] - 0x30; 194 | sum += (m*value); 195 | } 196 | NSInteger cs = 10 - (sum % 10); 197 | if (cs == 10) cs = 0; 198 | valid = (cs == ([barCode characterAtIndex:12] - 0x30)); 199 | } 200 | return valid; 201 | } 202 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/EAN13BarcodeGenerator/Classes/BarCodeView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BarCodeView.h 3 | // BarcodeEAN13GenDemo 4 | // 5 | // Created by Strokin Alexey on 8/27/13. 6 | // Copyright (c) 2013 Strokin Alexey. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface BarCodeView : UIView 12 | 13 | @property (nonatomic, strong) NSString * barCode; 14 | 15 | @property (nonatomic, strong) UIColor * drawableColor; //default black 16 | @property (nonatomic, strong) UIColor *bgColor; // default white 17 | @property (nonatomic, strong) UIFont *font; // default system 15 18 | //default width / 113 19 | //this coeficient allows you to fit digits into width of your barcode view 20 | @property (nonatomic, assign) CGFloat lettersSpacing; 21 | @property (nonatomic, assign) BOOL shouldShowNumbers; //default YES 22 | 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/EAN13BarcodeGenerator/Classes/BarCodeView.m: -------------------------------------------------------------------------------- 1 | // 2 | // BarCodeView.m 3 | // BarcodeEAN13GenDemo 4 | // 5 | // Created by Strokin Alexey on 8/27/13. 6 | // Copyright (c) 2013 Strokin Alexey. All rights reserved. 7 | // 8 | 9 | #import "BarCodeView.h" 10 | #import "BarCodeEAN13.h" 11 | 12 | static const NSInteger kTotlaBarCodeLength = 113; //never change this 13 | 14 | @interface BarCodeView () { 15 | BOOL binaryCode[kTotlaBarCodeLength]; 16 | BOOL validBarCode; 17 | } 18 | 19 | -(NSString*)firstDigitOfBarCode; 20 | -(NSString*)manufactureCode; 21 | -(NSString*)productCode; 22 | -(NSString *)checkSum; 23 | 24 | @end 25 | 26 | @implementation BarCodeView 27 | 28 | -(id)initWithFrame:(CGRect)frame 29 | { 30 | NSAssert(frame.size.width >= kTotlaBarCodeLength, @"Incorrect BarCodeView frame.size.width!"); 31 | self = [super initWithFrame:frame]; 32 | if (self != nil) 33 | { 34 | [self commonInit]; 35 | } 36 | return self; 37 | } 38 | -(void)awakeFromNib 39 | { 40 | [super awakeFromNib]; 41 | NSAssert(self.frame.size.width >= kTotlaBarCodeLength, @"Incorrect BarCodeView frame.size.width!"); 42 | [self commonInit]; 43 | } 44 | -(void)commonInit 45 | { 46 | self.bgColor = [UIColor whiteColor]; 47 | self.drawableColor = [UIColor blackColor]; 48 | self.font = [UIFont systemFontOfSize:15]; 49 | self.shouldShowNumbers = YES; 50 | self.lettersSpacing = 1; 51 | } 52 | -(void)setBarCode:(NSString *)newbarCode 53 | { 54 | if (newbarCode != _barCode) 55 | { 56 | _barCode = newbarCode; 57 | validBarCode = isValidBarCode(_barCode); 58 | if (validBarCode) 59 | { 60 | CalculateBarCodeEAN13(_barCode, binaryCode); 61 | [self setNeedsDisplay]; 62 | } 63 | } 64 | if (!validBarCode) 65 | { 66 | memset(binaryCode, 0, sizeof(binaryCode)); 67 | [self setNeedsDisplay]; 68 | } 69 | } 70 | -(void)drawRect:(CGRect)rect 71 | { 72 | CGContextRef context = UIGraphicsGetCurrentContext(); 73 | CGContextClearRect(context, rect); 74 | CGContextSetAllowsAntialiasing(context, NO); 75 | if (!validBarCode) 76 | { 77 | // draw error 78 | [self.bgColor set]; 79 | CGContextFillRect(context, rect); 80 | 81 | UIFont* font = [UIFont systemFontOfSize:15]; 82 | UIColor* textColor = [UIColor redColor]; 83 | 84 | NSDictionary* stringAttrs = @{ NSFontAttributeName : font, 85 | NSForegroundColorAttributeName : textColor }; 86 | NSAttributedString* attrStr = [[NSAttributedString alloc] 87 | initWithString:@"Invalid barcode!" attributes:stringAttrs]; 88 | 89 | [attrStr drawAtPoint:CGPointMake(3.f, rect.size.height/2-20)]; 90 | return; 91 | } 92 | 93 | // draw barcode 94 | CGContextBeginPath(context); 95 | CGFloat lineWidth = rect.size.width / kTotlaBarCodeLength; 96 | CGContextSetLineCap(context, kCGLineCapSquare); 97 | CGContextSetLineWidth(context, lineWidth); 98 | for (NSInteger i = 0; i < kTotlaBarCodeLength; i++) 99 | { 100 | [binaryCode[i] ? self.drawableColor : self.bgColor set]; 101 | CGFloat point = i * lineWidth; 102 | 103 | CGContextMoveToPoint(context, point, 0.0f); 104 | CGContextAddLineToPoint(context, point, rect.size.height); 105 | CGContextStrokePath(context); 106 | 107 | // for pixel perfect UI we need to stroke another line no avoid "noise" 108 | if (!binaryCode[i]) { 109 | CGFloat point = i * lineWidth + 0.5f; 110 | CGContextMoveToPoint(context, point, 0.0f); 111 | CGContextAddLineToPoint(context, point, rect.size.height); 112 | CGContextStrokePath(context); 113 | } 114 | } 115 | // stroke the last line 116 | [self.bgColor set]; 117 | CGContextMoveToPoint(context, rect.size.width, 0.0f); 118 | CGContextAddLineToPoint(context, rect.size.width, rect.size.height); 119 | CGContextStrokePath(context); 120 | 121 | // stroke numbers if needed 122 | if (self.shouldShowNumbers) { 123 | NSDictionary *stringAttrs = @{ 124 | NSFontAttributeName : self.font, 125 | NSForegroundColorAttributeName : self.drawableColor, 126 | NSBackgroundColorAttributeName : self.bgColor 127 | }; 128 | NSMutableDictionary *centerAligned = [stringAttrs mutableCopy]; 129 | NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new]; 130 | paragraphStyle.alignment = NSTextAlignmentCenter; 131 | centerAligned[NSParagraphStyleAttributeName] = paragraphStyle; 132 | // magic number needed to have perfect strings drawing 133 | self.lettersSpacing = 2.5; 134 | centerAligned[NSKernAttributeName] = @(self.lettersSpacing); 135 | 136 | NSMutableDictionary *rightAligned = [stringAttrs mutableCopy]; 137 | paragraphStyle = [NSMutableParagraphStyle new]; 138 | paragraphStyle.alignment = NSTextAlignmentRight; 139 | rightAligned[NSParagraphStyleAttributeName] = paragraphStyle; 140 | 141 | CGFloat height = self.font.lineHeight; 142 | CGFloat originY = rect.size.height - height; 143 | 144 | // draw first digit 145 | NSAttributedString *firstDigitOfBarCode = [[NSAttributedString alloc] initWithString:self.firstDigitOfBarCode attributes:rightAligned]; 146 | CGRect firstDigitRect = CGRectMake(0, originY, lineWidth * 8, height); 147 | [self drawFilledBackgroundRect:firstDigitRect inContext:context]; 148 | [self.drawableColor set]; 149 | [firstDigitOfBarCode drawInRect:firstDigitRect]; 150 | // draw manufacture code 151 | NSAttributedString *manufactureCode = [[NSAttributedString alloc] initWithString:self.manufactureCode attributes:centerAligned]; 152 | CGRect manufactureRect = CGRectMake(lineWidth * 4, originY, lineWidth * 60, height); 153 | [self drawFilledBackgroundRect:manufactureRect inContext:context]; 154 | [self.drawableColor set]; 155 | [manufactureCode drawInRect:manufactureRect]; 156 | 157 | // draw product code with checksum 158 | NSAttributedString *productCode = [[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@%@", [self productCode], [self checkSum]] attributes:centerAligned]; 159 | CGRect productCodeRect = CGRectMake(lineWidth * 55, originY, lineWidth * 45, height); 160 | [self drawFilledBackgroundRect:productCodeRect inContext:context]; 161 | [self.drawableColor set]; 162 | [productCode drawInRect:productCodeRect]; 163 | } 164 | } 165 | -(void)drawFilledBackgroundRect:(CGRect)rect inContext:(CGContextRef)context { 166 | const CGFloat *colors = CGColorGetComponents(self.bgColor.CGColor); 167 | CGContextSetRGBFillColor(context, colors[0], colors[1], colors[2], colors[3]); 168 | CGContextSetRGBStrokeColor(context, colors[0], colors[1], colors[2], colors[3]); 169 | CGContextFillRect(context, rect); 170 | } 171 | -(NSString*)firstDigitOfBarCode 172 | { 173 | return [self.barCode substringToIndex:1]; 174 | } 175 | -(NSString*)manufactureCode 176 | { 177 | return [self.barCode substringWithRange:NSMakeRange(1, 6)]; 178 | } 179 | -(NSString*)productCode 180 | { 181 | return [self.barCode substringWithRange:NSMakeRange(7, 5)]; 182 | } 183 | - (NSString *)checkSum 184 | { 185 | return [self.barCode substringWithRange:NSMakeRange(12, 1)]; 186 | } 187 | -(void)setShouldShowNumbers:(BOOL)shouldShowNumbers 188 | { 189 | _shouldShowNumbers = shouldShowNumbers; 190 | [self setNeedsDisplay]; 191 | } 192 | -(void)setFont:(UIFont *)font { 193 | _font = font; 194 | [self setNeedsDisplay]; 195 | } 196 | @end 197 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 4C767AAAE63FC0047508A164 /* Pods_EAN13BarcodeGenerator_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C3261F2E9560939BEDC67DF5 /* Pods_EAN13BarcodeGenerator_Tests.framework */; }; 11 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 12 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 13 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 14 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 15 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; 16 | 6003F59E195388D20070C39A /* EAN13AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* EAN13AppDelegate.m */; }; 17 | 6003F5A7195388D20070C39A /* EAN13ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* EAN13ViewController.m */; }; 18 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 19 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 20 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 21 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 22 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 23 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 24 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; 25 | 8390991F21845EEC00781076 /* EAN13ViewControllerWithoutIB.m in Sources */ = {isa = PBXBuildFile; fileRef = 8390991E21845EEC00781076 /* EAN13ViewControllerWithoutIB.m */; }; 26 | 8390992221845F3A00781076 /* EAN13ViewControllerWithIB.m in Sources */ = {isa = PBXBuildFile; fileRef = 8390992121845F3A00781076 /* EAN13ViewControllerWithIB.m */; }; 27 | 839099252184C56D00781076 /* UIView+Animation.m in Sources */ = {isa = PBXBuildFile; fileRef = 839099242184C56D00781076 /* UIView+Animation.m */; }; 28 | 83A5119F2184D2EE0009461C /* EAN13ViewControllerSwift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83A5119E2184D2EE0009461C /* EAN13ViewControllerSwift.swift */; }; 29 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; 30 | 875B68D1A44D4F96D76854F5 /* Pods_EAN13BarcodeGenerator_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C26753EB22FD51D1A966B7D /* Pods_EAN13BarcodeGenerator_Example.framework */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = 6003F582195388D10070C39A /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = 6003F589195388D20070C39A; 39 | remoteInfo = EAN13BarcodeGenerator; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | 145B0436EF30B5DDF302DB9C /* EAN13BarcodeGenerator.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = EAN13BarcodeGenerator.podspec; path = ../../EAN13BarcodeGenerator.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 45 | 3C26753EB22FD51D1A966B7D /* Pods_EAN13BarcodeGenerator_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_EAN13BarcodeGenerator_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 6003F58A195388D20070C39A /* EAN13BarcodeGenerator_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = EAN13BarcodeGenerator_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 48 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 49 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 50 | 6003F595195388D20070C39A /* EAN13BarcodeGenerator-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "EAN13BarcodeGenerator-Info.plist"; sourceTree = ""; }; 51 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 52 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 53 | 6003F59B195388D20070C39A /* EAN13BarcodeGenerator-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "EAN13BarcodeGenerator-Prefix.pch"; sourceTree = ""; }; 54 | 6003F59C195388D20070C39A /* EAN13AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EAN13AppDelegate.h; sourceTree = ""; }; 55 | 6003F59D195388D20070C39A /* EAN13AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EAN13AppDelegate.m; sourceTree = ""; }; 56 | 6003F5A5195388D20070C39A /* EAN13ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EAN13ViewController.h; sourceTree = ""; }; 57 | 6003F5A6195388D20070C39A /* EAN13ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EAN13ViewController.m; sourceTree = ""; }; 58 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 59 | 6003F5AE195388D20070C39A /* EAN13BarcodeGenerator_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = EAN13BarcodeGenerator_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 61 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 62 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 63 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 64 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 65 | 62651199F225AF2D96A9D2BE /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../../README.md; sourceTree = ""; }; 66 | 637B10B793BC23580464C3DC /* Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig"; sourceTree = ""; }; 67 | 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 68 | 8390991D21845EEC00781076 /* EAN13ViewControllerWithoutIB.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EAN13ViewControllerWithoutIB.h; sourceTree = ""; }; 69 | 8390991E21845EEC00781076 /* EAN13ViewControllerWithoutIB.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EAN13ViewControllerWithoutIB.m; sourceTree = ""; }; 70 | 8390992021845F3A00781076 /* EAN13ViewControllerWithIB.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EAN13ViewControllerWithIB.h; sourceTree = ""; }; 71 | 8390992121845F3A00781076 /* EAN13ViewControllerWithIB.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EAN13ViewControllerWithIB.m; sourceTree = ""; }; 72 | 839099232184C56D00781076 /* UIView+Animation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIView+Animation.h"; sourceTree = ""; }; 73 | 839099242184C56D00781076 /* UIView+Animation.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "UIView+Animation.m"; sourceTree = ""; }; 74 | 83A5119D2184D2ED0009461C /* EAN13BarcodeGenerator_Example-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "EAN13BarcodeGenerator_Example-Bridging-Header.h"; sourceTree = ""; }; 75 | 83A5119E2184D2EE0009461C /* EAN13ViewControllerSwift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EAN13ViewControllerSwift.swift; sourceTree = ""; }; 76 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 77 | C3261F2E9560939BEDC67DF5 /* Pods_EAN13BarcodeGenerator_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_EAN13BarcodeGenerator_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 78 | C7DB594018E3495A28D937D3 /* Pods-EAN13BarcodeGenerator_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-EAN13BarcodeGenerator_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests.release.xcconfig"; sourceTree = ""; }; 79 | D6FD8B57E92437956687278B /* Pods-EAN13BarcodeGenerator_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-EAN13BarcodeGenerator_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example.debug.xcconfig"; sourceTree = ""; }; 80 | F60A2D6D8DAD34A068F6FCFE /* Pods-EAN13BarcodeGenerator_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-EAN13BarcodeGenerator_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example.release.xcconfig"; sourceTree = ""; }; 81 | F831AE15D0FD387908FF87EB /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../../LICENSE; sourceTree = ""; }; 82 | /* End PBXFileReference section */ 83 | 84 | /* Begin PBXFrameworksBuildPhase section */ 85 | 6003F587195388D20070C39A /* Frameworks */ = { 86 | isa = PBXFrameworksBuildPhase; 87 | buildActionMask = 2147483647; 88 | files = ( 89 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 90 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 91 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 92 | 875B68D1A44D4F96D76854F5 /* Pods_EAN13BarcodeGenerator_Example.framework in Frameworks */, 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | 6003F5AB195388D20070C39A /* Frameworks */ = { 97 | isa = PBXFrameworksBuildPhase; 98 | buildActionMask = 2147483647; 99 | files = ( 100 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 101 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 102 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 103 | 4C767AAAE63FC0047508A164 /* Pods_EAN13BarcodeGenerator_Tests.framework in Frameworks */, 104 | ); 105 | runOnlyForDeploymentPostprocessing = 0; 106 | }; 107 | /* End PBXFrameworksBuildPhase section */ 108 | 109 | /* Begin PBXGroup section */ 110 | 6003F581195388D10070C39A = { 111 | isa = PBXGroup; 112 | children = ( 113 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 114 | 6003F593195388D20070C39A /* Example for EAN13BarcodeGenerator */, 115 | 6003F5B5195388D20070C39A /* Tests */, 116 | 6003F58C195388D20070C39A /* Frameworks */, 117 | 6003F58B195388D20070C39A /* Products */, 118 | B87A328964B7B7384514FFDE /* Pods */, 119 | ); 120 | sourceTree = ""; 121 | }; 122 | 6003F58B195388D20070C39A /* Products */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 6003F58A195388D20070C39A /* EAN13BarcodeGenerator_Example.app */, 126 | 6003F5AE195388D20070C39A /* EAN13BarcodeGenerator_Tests.xctest */, 127 | ); 128 | name = Products; 129 | sourceTree = ""; 130 | }; 131 | 6003F58C195388D20070C39A /* Frameworks */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 6003F58D195388D20070C39A /* Foundation.framework */, 135 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 136 | 6003F591195388D20070C39A /* UIKit.framework */, 137 | 6003F5AF195388D20070C39A /* XCTest.framework */, 138 | 3C26753EB22FD51D1A966B7D /* Pods_EAN13BarcodeGenerator_Example.framework */, 139 | C3261F2E9560939BEDC67DF5 /* Pods_EAN13BarcodeGenerator_Tests.framework */, 140 | ); 141 | name = Frameworks; 142 | sourceTree = ""; 143 | }; 144 | 6003F593195388D20070C39A /* Example for EAN13BarcodeGenerator */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 6003F59C195388D20070C39A /* EAN13AppDelegate.h */, 148 | 6003F59D195388D20070C39A /* EAN13AppDelegate.m */, 149 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, 150 | 6003F5A5195388D20070C39A /* EAN13ViewController.h */, 151 | 6003F5A6195388D20070C39A /* EAN13ViewController.m */, 152 | 8390991D21845EEC00781076 /* EAN13ViewControllerWithoutIB.h */, 153 | 8390991E21845EEC00781076 /* EAN13ViewControllerWithoutIB.m */, 154 | 8390992021845F3A00781076 /* EAN13ViewControllerWithIB.h */, 155 | 8390992121845F3A00781076 /* EAN13ViewControllerWithIB.m */, 156 | 83A5119E2184D2EE0009461C /* EAN13ViewControllerSwift.swift */, 157 | 839099232184C56D00781076 /* UIView+Animation.h */, 158 | 839099242184C56D00781076 /* UIView+Animation.m */, 159 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */, 160 | 6003F5A8195388D20070C39A /* Images.xcassets */, 161 | 6003F594195388D20070C39A /* Supporting Files */, 162 | 83A5119D2184D2ED0009461C /* EAN13BarcodeGenerator_Example-Bridging-Header.h */, 163 | ); 164 | name = "Example for EAN13BarcodeGenerator"; 165 | path = EAN13BarcodeGenerator; 166 | sourceTree = ""; 167 | }; 168 | 6003F594195388D20070C39A /* Supporting Files */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 6003F595195388D20070C39A /* EAN13BarcodeGenerator-Info.plist */, 172 | 6003F596195388D20070C39A /* InfoPlist.strings */, 173 | 6003F599195388D20070C39A /* main.m */, 174 | 6003F59B195388D20070C39A /* EAN13BarcodeGenerator-Prefix.pch */, 175 | ); 176 | name = "Supporting Files"; 177 | sourceTree = ""; 178 | }; 179 | 6003F5B5195388D20070C39A /* Tests */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | 6003F5BB195388D20070C39A /* Tests.m */, 183 | 6003F5B6195388D20070C39A /* Supporting Files */, 184 | ); 185 | path = Tests; 186 | sourceTree = ""; 187 | }; 188 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 192 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 193 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 194 | ); 195 | name = "Supporting Files"; 196 | sourceTree = ""; 197 | }; 198 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | 145B0436EF30B5DDF302DB9C /* EAN13BarcodeGenerator.podspec */, 202 | 62651199F225AF2D96A9D2BE /* README.md */, 203 | F831AE15D0FD387908FF87EB /* LICENSE */, 204 | ); 205 | name = "Podspec Metadata"; 206 | sourceTree = ""; 207 | }; 208 | B87A328964B7B7384514FFDE /* Pods */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | D6FD8B57E92437956687278B /* Pods-EAN13BarcodeGenerator_Example.debug.xcconfig */, 212 | F60A2D6D8DAD34A068F6FCFE /* Pods-EAN13BarcodeGenerator_Example.release.xcconfig */, 213 | 637B10B793BC23580464C3DC /* Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig */, 214 | C7DB594018E3495A28D937D3 /* Pods-EAN13BarcodeGenerator_Tests.release.xcconfig */, 215 | ); 216 | name = Pods; 217 | sourceTree = ""; 218 | }; 219 | /* End PBXGroup section */ 220 | 221 | /* Begin PBXNativeTarget section */ 222 | 6003F589195388D20070C39A /* EAN13BarcodeGenerator_Example */ = { 223 | isa = PBXNativeTarget; 224 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "EAN13BarcodeGenerator_Example" */; 225 | buildPhases = ( 226 | 82445E47D7BFE14B8ADF5E5C /* [CP] Check Pods Manifest.lock */, 227 | 6003F586195388D20070C39A /* Sources */, 228 | 6003F587195388D20070C39A /* Frameworks */, 229 | 6003F588195388D20070C39A /* Resources */, 230 | E039052D1CA15A6265EF48B9 /* [CP] Embed Pods Frameworks */, 231 | ); 232 | buildRules = ( 233 | ); 234 | dependencies = ( 235 | ); 236 | name = EAN13BarcodeGenerator_Example; 237 | productName = EAN13BarcodeGenerator; 238 | productReference = 6003F58A195388D20070C39A /* EAN13BarcodeGenerator_Example.app */; 239 | productType = "com.apple.product-type.application"; 240 | }; 241 | 6003F5AD195388D20070C39A /* EAN13BarcodeGenerator_Tests */ = { 242 | isa = PBXNativeTarget; 243 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "EAN13BarcodeGenerator_Tests" */; 244 | buildPhases = ( 245 | A39D4601CD7AB111FE619B2F /* [CP] Check Pods Manifest.lock */, 246 | 6003F5AA195388D20070C39A /* Sources */, 247 | 6003F5AB195388D20070C39A /* Frameworks */, 248 | 6003F5AC195388D20070C39A /* Resources */, 249 | ); 250 | buildRules = ( 251 | ); 252 | dependencies = ( 253 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 254 | ); 255 | name = EAN13BarcodeGenerator_Tests; 256 | productName = EAN13BarcodeGeneratorTests; 257 | productReference = 6003F5AE195388D20070C39A /* EAN13BarcodeGenerator_Tests.xctest */; 258 | productType = "com.apple.product-type.bundle.unit-test"; 259 | }; 260 | /* End PBXNativeTarget section */ 261 | 262 | /* Begin PBXProject section */ 263 | 6003F582195388D10070C39A /* Project object */ = { 264 | isa = PBXProject; 265 | attributes = { 266 | CLASSPREFIX = EAN13; 267 | LastUpgradeCheck = 0720; 268 | ORGANIZATIONNAME = "Alexey Strokin"; 269 | TargetAttributes = { 270 | 6003F589195388D20070C39A = { 271 | LastSwiftMigration = 1000; 272 | }; 273 | 6003F5AD195388D20070C39A = { 274 | TestTargetID = 6003F589195388D20070C39A; 275 | }; 276 | }; 277 | }; 278 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "EAN13BarcodeGenerator" */; 279 | compatibilityVersion = "Xcode 3.2"; 280 | developmentRegion = English; 281 | hasScannedForEncodings = 0; 282 | knownRegions = ( 283 | en, 284 | Base, 285 | ); 286 | mainGroup = 6003F581195388D10070C39A; 287 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 288 | projectDirPath = ""; 289 | projectRoot = ""; 290 | targets = ( 291 | 6003F589195388D20070C39A /* EAN13BarcodeGenerator_Example */, 292 | 6003F5AD195388D20070C39A /* EAN13BarcodeGenerator_Tests */, 293 | ); 294 | }; 295 | /* End PBXProject section */ 296 | 297 | /* Begin PBXResourcesBuildPhase section */ 298 | 6003F588195388D20070C39A /* Resources */ = { 299 | isa = PBXResourcesBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, 303 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */, 304 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 305 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | 6003F5AC195388D20070C39A /* Resources */ = { 310 | isa = PBXResourcesBuildPhase; 311 | buildActionMask = 2147483647; 312 | files = ( 313 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 314 | ); 315 | runOnlyForDeploymentPostprocessing = 0; 316 | }; 317 | /* End PBXResourcesBuildPhase section */ 318 | 319 | /* Begin PBXShellScriptBuildPhase section */ 320 | 82445E47D7BFE14B8ADF5E5C /* [CP] Check Pods Manifest.lock */ = { 321 | isa = PBXShellScriptBuildPhase; 322 | buildActionMask = 2147483647; 323 | files = ( 324 | ); 325 | inputFileListPaths = ( 326 | ); 327 | inputPaths = ( 328 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 329 | "${PODS_ROOT}/Manifest.lock", 330 | ); 331 | name = "[CP] Check Pods Manifest.lock"; 332 | outputFileListPaths = ( 333 | ); 334 | outputPaths = ( 335 | "$(DERIVED_FILE_DIR)/Pods-EAN13BarcodeGenerator_Example-checkManifestLockResult.txt", 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | shellPath = /bin/sh; 339 | 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# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 340 | showEnvVarsInLog = 0; 341 | }; 342 | A39D4601CD7AB111FE619B2F /* [CP] Check Pods Manifest.lock */ = { 343 | isa = PBXShellScriptBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | inputFileListPaths = ( 348 | ); 349 | inputPaths = ( 350 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 351 | "${PODS_ROOT}/Manifest.lock", 352 | ); 353 | name = "[CP] Check Pods Manifest.lock"; 354 | outputFileListPaths = ( 355 | ); 356 | outputPaths = ( 357 | "$(DERIVED_FILE_DIR)/Pods-EAN13BarcodeGenerator_Tests-checkManifestLockResult.txt", 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | shellPath = /bin/sh; 361 | 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# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 362 | showEnvVarsInLog = 0; 363 | }; 364 | E039052D1CA15A6265EF48B9 /* [CP] Embed Pods Frameworks */ = { 365 | isa = PBXShellScriptBuildPhase; 366 | buildActionMask = 2147483647; 367 | files = ( 368 | ); 369 | inputFileListPaths = ( 370 | ); 371 | inputPaths = ( 372 | "${SRCROOT}/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example-frameworks.sh", 373 | "${BUILT_PRODUCTS_DIR}/EAN13BarcodeGenerator/EAN13BarcodeGenerator.framework", 374 | ); 375 | name = "[CP] Embed Pods Frameworks"; 376 | outputFileListPaths = ( 377 | ); 378 | outputPaths = ( 379 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/EAN13BarcodeGenerator.framework", 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | shellPath = /bin/sh; 383 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example-frameworks.sh\"\n"; 384 | showEnvVarsInLog = 0; 385 | }; 386 | /* End PBXShellScriptBuildPhase section */ 387 | 388 | /* Begin PBXSourcesBuildPhase section */ 389 | 6003F586195388D20070C39A /* Sources */ = { 390 | isa = PBXSourcesBuildPhase; 391 | buildActionMask = 2147483647; 392 | files = ( 393 | 6003F59E195388D20070C39A /* EAN13AppDelegate.m in Sources */, 394 | 6003F5A7195388D20070C39A /* EAN13ViewController.m in Sources */, 395 | 6003F59A195388D20070C39A /* main.m in Sources */, 396 | 83A5119F2184D2EE0009461C /* EAN13ViewControllerSwift.swift in Sources */, 397 | 839099252184C56D00781076 /* UIView+Animation.m in Sources */, 398 | 8390991F21845EEC00781076 /* EAN13ViewControllerWithoutIB.m in Sources */, 399 | 8390992221845F3A00781076 /* EAN13ViewControllerWithIB.m in Sources */, 400 | ); 401 | runOnlyForDeploymentPostprocessing = 0; 402 | }; 403 | 6003F5AA195388D20070C39A /* Sources */ = { 404 | isa = PBXSourcesBuildPhase; 405 | buildActionMask = 2147483647; 406 | files = ( 407 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 408 | ); 409 | runOnlyForDeploymentPostprocessing = 0; 410 | }; 411 | /* End PBXSourcesBuildPhase section */ 412 | 413 | /* Begin PBXTargetDependency section */ 414 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 415 | isa = PBXTargetDependency; 416 | target = 6003F589195388D20070C39A /* EAN13BarcodeGenerator_Example */; 417 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 418 | }; 419 | /* End PBXTargetDependency section */ 420 | 421 | /* Begin PBXVariantGroup section */ 422 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 423 | isa = PBXVariantGroup; 424 | children = ( 425 | 6003F597195388D20070C39A /* en */, 426 | ); 427 | name = InfoPlist.strings; 428 | sourceTree = ""; 429 | }; 430 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 431 | isa = PBXVariantGroup; 432 | children = ( 433 | 6003F5B9195388D20070C39A /* en */, 434 | ); 435 | name = InfoPlist.strings; 436 | sourceTree = ""; 437 | }; 438 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = { 439 | isa = PBXVariantGroup; 440 | children = ( 441 | 71719F9E1E33DC2100824A3D /* Base */, 442 | ); 443 | name = LaunchScreen.storyboard; 444 | sourceTree = ""; 445 | }; 446 | /* End PBXVariantGroup section */ 447 | 448 | /* Begin XCBuildConfiguration section */ 449 | 6003F5BD195388D20070C39A /* Debug */ = { 450 | isa = XCBuildConfiguration; 451 | buildSettings = { 452 | ALWAYS_SEARCH_USER_PATHS = NO; 453 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 454 | CLANG_CXX_LIBRARY = "libc++"; 455 | CLANG_ENABLE_MODULES = YES; 456 | CLANG_ENABLE_OBJC_ARC = YES; 457 | CLANG_WARN_BOOL_CONVERSION = YES; 458 | CLANG_WARN_CONSTANT_CONVERSION = YES; 459 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 460 | CLANG_WARN_EMPTY_BODY = YES; 461 | CLANG_WARN_ENUM_CONVERSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 464 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 465 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 466 | COPY_PHASE_STRIP = NO; 467 | ENABLE_TESTABILITY = YES; 468 | GCC_C_LANGUAGE_STANDARD = gnu99; 469 | GCC_DYNAMIC_NO_PIC = NO; 470 | GCC_OPTIMIZATION_LEVEL = 0; 471 | GCC_PREPROCESSOR_DEFINITIONS = ( 472 | "DEBUG=1", 473 | "$(inherited)", 474 | ); 475 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 476 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 477 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 478 | GCC_WARN_UNDECLARED_SELECTOR = YES; 479 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 480 | GCC_WARN_UNUSED_FUNCTION = YES; 481 | GCC_WARN_UNUSED_VARIABLE = YES; 482 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 483 | ONLY_ACTIVE_ARCH = YES; 484 | SDKROOT = iphoneos; 485 | TARGETED_DEVICE_FAMILY = "1,2"; 486 | }; 487 | name = Debug; 488 | }; 489 | 6003F5BE195388D20070C39A /* Release */ = { 490 | isa = XCBuildConfiguration; 491 | buildSettings = { 492 | ALWAYS_SEARCH_USER_PATHS = NO; 493 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 494 | CLANG_CXX_LIBRARY = "libc++"; 495 | CLANG_ENABLE_MODULES = YES; 496 | CLANG_ENABLE_OBJC_ARC = YES; 497 | CLANG_WARN_BOOL_CONVERSION = YES; 498 | CLANG_WARN_CONSTANT_CONVERSION = YES; 499 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 500 | CLANG_WARN_EMPTY_BODY = YES; 501 | CLANG_WARN_ENUM_CONVERSION = YES; 502 | CLANG_WARN_INT_CONVERSION = YES; 503 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 504 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 505 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 506 | COPY_PHASE_STRIP = YES; 507 | ENABLE_NS_ASSERTIONS = NO; 508 | GCC_C_LANGUAGE_STANDARD = gnu99; 509 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 510 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 511 | GCC_WARN_UNDECLARED_SELECTOR = YES; 512 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 513 | GCC_WARN_UNUSED_FUNCTION = YES; 514 | GCC_WARN_UNUSED_VARIABLE = YES; 515 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 516 | SDKROOT = iphoneos; 517 | TARGETED_DEVICE_FAMILY = "1,2"; 518 | VALIDATE_PRODUCT = YES; 519 | }; 520 | name = Release; 521 | }; 522 | 6003F5C0195388D20070C39A /* Debug */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = D6FD8B57E92437956687278B /* Pods-EAN13BarcodeGenerator_Example.debug.xcconfig */; 525 | buildSettings = { 526 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 527 | CLANG_ENABLE_MODULES = YES; 528 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 529 | GCC_PREFIX_HEADER = "EAN13BarcodeGenerator/EAN13BarcodeGenerator-Prefix.pch"; 530 | INFOPLIST_FILE = "EAN13BarcodeGenerator/EAN13BarcodeGenerator-Info.plist"; 531 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 532 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 533 | MODULE_NAME = ExampleApp; 534 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 535 | PRODUCT_NAME = "$(TARGET_NAME)"; 536 | SWIFT_OBJC_BRIDGING_HEADER = "EAN13BarcodeGenerator/EAN13BarcodeGenerator_Example-Bridging-Header.h"; 537 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 538 | SWIFT_VERSION = 4.2; 539 | WRAPPER_EXTENSION = app; 540 | }; 541 | name = Debug; 542 | }; 543 | 6003F5C1195388D20070C39A /* Release */ = { 544 | isa = XCBuildConfiguration; 545 | baseConfigurationReference = F60A2D6D8DAD34A068F6FCFE /* Pods-EAN13BarcodeGenerator_Example.release.xcconfig */; 546 | buildSettings = { 547 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 548 | CLANG_ENABLE_MODULES = YES; 549 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 550 | GCC_PREFIX_HEADER = "EAN13BarcodeGenerator/EAN13BarcodeGenerator-Prefix.pch"; 551 | INFOPLIST_FILE = "EAN13BarcodeGenerator/EAN13BarcodeGenerator-Info.plist"; 552 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 553 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 554 | MODULE_NAME = ExampleApp; 555 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 556 | PRODUCT_NAME = "$(TARGET_NAME)"; 557 | SWIFT_OBJC_BRIDGING_HEADER = "EAN13BarcodeGenerator/EAN13BarcodeGenerator_Example-Bridging-Header.h"; 558 | SWIFT_VERSION = 4.2; 559 | WRAPPER_EXTENSION = app; 560 | }; 561 | name = Release; 562 | }; 563 | 6003F5C3195388D20070C39A /* Debug */ = { 564 | isa = XCBuildConfiguration; 565 | baseConfigurationReference = 637B10B793BC23580464C3DC /* Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig */; 566 | buildSettings = { 567 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 568 | BUNDLE_LOADER = "$(TEST_HOST)"; 569 | FRAMEWORK_SEARCH_PATHS = ( 570 | "$(SDKROOT)/Developer/Library/Frameworks", 571 | "$(inherited)", 572 | "$(DEVELOPER_FRAMEWORKS_DIR)", 573 | ); 574 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 575 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 576 | GCC_PREPROCESSOR_DEFINITIONS = ( 577 | "DEBUG=1", 578 | "$(inherited)", 579 | ); 580 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 581 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 582 | PRODUCT_NAME = "$(TARGET_NAME)"; 583 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/EAN13BarcodeGenerator_Example.app/EAN13BarcodeGenerator_Example"; 584 | WRAPPER_EXTENSION = xctest; 585 | }; 586 | name = Debug; 587 | }; 588 | 6003F5C4195388D20070C39A /* Release */ = { 589 | isa = XCBuildConfiguration; 590 | baseConfigurationReference = C7DB594018E3495A28D937D3 /* Pods-EAN13BarcodeGenerator_Tests.release.xcconfig */; 591 | buildSettings = { 592 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 593 | BUNDLE_LOADER = "$(TEST_HOST)"; 594 | FRAMEWORK_SEARCH_PATHS = ( 595 | "$(SDKROOT)/Developer/Library/Frameworks", 596 | "$(inherited)", 597 | "$(DEVELOPER_FRAMEWORKS_DIR)", 598 | ); 599 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 600 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 601 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 602 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 603 | PRODUCT_NAME = "$(TARGET_NAME)"; 604 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/EAN13BarcodeGenerator_Example.app/EAN13BarcodeGenerator_Example"; 605 | WRAPPER_EXTENSION = xctest; 606 | }; 607 | name = Release; 608 | }; 609 | /* End XCBuildConfiguration section */ 610 | 611 | /* Begin XCConfigurationList section */ 612 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "EAN13BarcodeGenerator" */ = { 613 | isa = XCConfigurationList; 614 | buildConfigurations = ( 615 | 6003F5BD195388D20070C39A /* Debug */, 616 | 6003F5BE195388D20070C39A /* Release */, 617 | ); 618 | defaultConfigurationIsVisible = 0; 619 | defaultConfigurationName = Release; 620 | }; 621 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "EAN13BarcodeGenerator_Example" */ = { 622 | isa = XCConfigurationList; 623 | buildConfigurations = ( 624 | 6003F5C0195388D20070C39A /* Debug */, 625 | 6003F5C1195388D20070C39A /* Release */, 626 | ); 627 | defaultConfigurationIsVisible = 0; 628 | defaultConfigurationName = Release; 629 | }; 630 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "EAN13BarcodeGenerator_Tests" */ = { 631 | isa = XCConfigurationList; 632 | buildConfigurations = ( 633 | 6003F5C3195388D20070C39A /* Debug */, 634 | 6003F5C4195388D20070C39A /* Release */, 635 | ); 636 | defaultConfigurationIsVisible = 0; 637 | defaultConfigurationName = Release; 638 | }; 639 | /* End XCConfigurationList section */ 640 | }; 641 | rootObject = 6003F582195388D10070C39A /* Project object */; 642 | } 643 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator.xcodeproj/xcshareddata/xcschemes/EAN13BarcodeGenerator-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 34 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 126 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13AppDelegate.h 3 | // EAN13BarcodeGenerator 4 | // 5 | // Created by Alexey Strokin on 10/27/2018. 6 | // Copyright (c) 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface EAN13AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13AppDelegate.m 3 | // EAN13BarcodeGenerator 4 | // 5 | // Created by Alexey Strokin on 10/27/2018. 6 | // Copyright (c) 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | #import "EAN13AppDelegate.h" 10 | 11 | @implementation EAN13AppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13BarcodeGenerator-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13BarcodeGenerator-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13BarcodeGenerator_Example-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13ViewController.h 3 | // EAN13BarcodeGenerator 4 | // 5 | // Created by Alexey Strokin on 10/27/2018. 6 | // Copyright (c) 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface EAN13ViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13ViewController.m 3 | // EAN13BarcodeGenerator 4 | // 5 | // Created by Alexey Strokin on 10/27/2018. 6 | // Copyright (c) 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | #import "EAN13ViewController.h" 10 | 11 | @interface EAN13ViewController () 12 | 13 | @end 14 | 15 | @implementation EAN13ViewController 16 | 17 | - (void)viewDidLoad 18 | { 19 | [super viewDidLoad]; 20 | // Do any additional setup after loading the view, typically from a nib. 21 | } 22 | 23 | - (void)didReceiveMemoryWarning 24 | { 25 | [super didReceiveMemoryWarning]; 26 | // Dispose of any resources that can be recreated. 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13ViewControllerSwift.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13ViewControllerSwift.swift 3 | // EAN13BarcodeGenerator_Example 4 | // 5 | // Created by Aliaksei Strokin on 10/27/18. 6 | // Copyright © 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import EAN13BarcodeGenerator 11 | 12 | class EAN13ViewControllerSwift: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | 17 | let barCodeView = BarCodeView(frame: CGRect(x: 103.0, y: 155.0, width: 350.0, height: 100.0)) 18 | view.addSubview(barCodeView) 19 | barCodeView.barCode = GetNewRandomEAN13BarCode() 20 | } 21 | 22 | 23 | /* 24 | // MARK: - Navigation 25 | 26 | // In a storyboard-based application, you will often want to do a little preparation before navigation 27 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 28 | // Get the new view controller using segue.destination. 29 | // Pass the selected object to the new view controller. 30 | } 31 | */ 32 | 33 | } 34 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13ViewControllerWithIB.h: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13ViewControllerWithIB.h 3 | // EAN13BarcodeGenerator_Example 4 | // 5 | // Created by Aliaksei Strokin on 10/27/18. 6 | // Copyright © 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface EAN13ViewControllerWithIB : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13ViewControllerWithIB.m: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13ViewControllerWithIB.m 3 | // EAN13BarcodeGenerator_Example 4 | // 5 | // Created by Aliaksei Strokin on 10/27/18. 6 | // Copyright © 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | #import "EAN13ViewControllerWithIB.h" 10 | #import "UIView+Animation.h" 11 | 12 | @import EAN13BarcodeGenerator; 13 | 14 | @interface EAN13ViewControllerWithIB () 15 | 16 | @property (strong, nonatomic) IBOutlet BarCodeView *barcodeView; 17 | @property (strong, nonatomic) IBOutlet UITextField *textField; 18 | @property (strong, nonatomic) IBOutlet UISlider *sliderForScale; 19 | 20 | 21 | @end 22 | 23 | @implementation EAN13ViewControllerWithIB 24 | 25 | - (IBAction)applyScale:(UISlider *)sender { 26 | _barcodeView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.0f/sender.value, 1.0f/sender.value); 27 | } 28 | - (IBAction)showNumbersValueChanged:(UISwitch *)sender { 29 | _barcodeView.shouldShowNumbers = sender.isOn; 30 | } 31 | 32 | - (IBAction)generateAction:(id)sender { 33 | if (_textField.text.length == 13) 34 | { 35 | [self setNumber:_textField.text]; 36 | return; 37 | } 38 | else if (_textField.text.length > 0) 39 | { 40 | [_textField lockAnimation]; 41 | return; 42 | } 43 | [self setNumber:GetNewRandomEAN13BarCode()]; 44 | } 45 | - (void)setNumber:(NSString*)newNum 46 | { 47 | [_barcodeView setBarCode:newNum]; 48 | } 49 | - (void)viewDidLoad 50 | { 51 | [super viewDidLoad]; 52 | [self generateAction:nil]; 53 | } 54 | #pragma mark - UITextFieldDelegate 55 | - (BOOL)textField:(UITextField *)aTextField shouldChangeCharactersInRange:(NSRange)range 56 | replacementString:(NSString *)string 57 | { 58 | if ([string isEqualToString:@"\u200B"] || [string isEqualToString:@""]) 59 | { 60 | return YES; // detect backspase/delete 61 | } 62 | 63 | NSCharacterSet *set = [NSCharacterSet decimalDigitCharacterSet]; 64 | if ([string rangeOfCharacterFromSet:set].location == NSNotFound) return NO; //disallow any other except digits 65 | 66 | NSString *result = [aTextField.text stringByAppendingString:string]; 67 | return result.length <= 13; 68 | } 69 | @end 70 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13ViewControllerWithoutIB.h: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13ViewControllerWithoutIB.h 3 | // EAN13BarcodeGenerator_Example 4 | // 5 | // Created by Aliaksei Strokin on 10/27/18. 6 | // Copyright © 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface EAN13ViewControllerWithoutIB : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/EAN13ViewControllerWithoutIB.m: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13ViewControllerWithoutIB.m 3 | // EAN13BarcodeGenerator_Example 4 | // 5 | // Created by Aliaksei Strokin on 10/27/18. 6 | // Copyright © 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | #import "EAN13ViewControllerWithoutIB.h" 10 | #import "UIView+Animation.h" 11 | 12 | @import EAN13BarcodeGenerator; 13 | 14 | static const CGRect kLabelFrame = {{0.0, 120.0},{320.0, 30.0}}; 15 | static const CGRect kBarCodeFrame = {{103.0, 155.0},{250.0, 100.0}}; 16 | static const CGRect kButtonFrame = {{85.0, 320.0},{150.0, 30.0}}; 17 | static const CGRect kTextFieldFrame = {{60.0, 270.0},{200.0, 30.0}}; 18 | 19 | @interface EAN13ViewControllerWithoutIB () 20 | { 21 | BarCodeView *barCodeView; 22 | UIButton *button; 23 | UITextField *textField; 24 | } 25 | @end 26 | 27 | @implementation EAN13ViewControllerWithoutIB 28 | 29 | -(void)loadView 30 | { 31 | CGFloat h = [UIApplication sharedApplication].statusBarHidden ? 0 : 32 | [UIApplication sharedApplication].statusBarFrame.size.height; 33 | UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, h, 34 | [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height - h)]; 35 | view.backgroundColor = [UIColor lightGrayColor]; 36 | 37 | barCodeView = [[BarCodeView alloc] initWithFrame:kBarCodeFrame]; 38 | [view addSubview:barCodeView]; 39 | 40 | button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 41 | button.frame = kButtonFrame; 42 | [button addTarget:self action:@selector(generate) 43 | forControlEvents:UIControlEventTouchUpInside]; 44 | [button setTitle:@"Generate" forState:UIControlStateNormal]; 45 | [view addSubview:button]; 46 | 47 | textField = [[UITextField alloc] initWithFrame:kTextFieldFrame]; 48 | textField.keyboardType = UIKeyboardTypeDecimalPad; 49 | textField.clearButtonMode = UITextFieldViewModeWhileEditing; 50 | textField.borderStyle = UITextBorderStyleRoundedRect; 51 | textField.delegate = self; 52 | [view addSubview:textField]; 53 | 54 | UILabel *label = [[UILabel alloc] initWithFrame:kLabelFrame]; 55 | label.backgroundColor = [UIColor clearColor]; 56 | label.textColor = [UIColor blackColor]; 57 | label.textAlignment = NSTextAlignmentCenter; 58 | label.font = [UIFont systemFontOfSize:20.0f]; 59 | label.text = @"EAN-13"; 60 | [view addSubview:label]; 61 | 62 | self.view = view; 63 | } 64 | 65 | - (void)viewDidLoad 66 | { 67 | [super viewDidLoad]; 68 | [self generate]; 69 | } 70 | 71 | - (void)setNumber:(NSString*)newNum 72 | { 73 | [barCodeView setBarCode:newNum]; 74 | } 75 | 76 | - (void)generate 77 | { 78 | if (textField.text.length == 13) 79 | { 80 | [self setNumber:textField.text]; 81 | return; 82 | } 83 | else if (textField.text.length > 0) 84 | { 85 | [textField lockAnimation]; 86 | return; 87 | } 88 | [self setNumber:GetNewRandomEAN13BarCode()]; 89 | } 90 | 91 | #pragma mark - UITextFieldDelegate 92 | - (BOOL)textField:(UITextField *)aTextField shouldChangeCharactersInRange:(NSRange)range 93 | replacementString:(NSString *)string 94 | { 95 | if ([string isEqualToString:@"\u200B"] || [string isEqualToString:@""]) 96 | { 97 | return YES; // detect backspase/delete 98 | } 99 | 100 | NSCharacterSet *set = [NSCharacterSet decimalDigitCharacterSet]; 101 | if ([string rangeOfCharacterFromSet:set].location == NSNotFound) return NO; //disallow any other except digits 102 | 103 | NSString *result = [aTextField.text stringByAppendingString:string]; 104 | return result.length <= 13; 105 | } 106 | 107 | @end 108 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/UIView+Animation.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+Animation.h 3 | // EAN13BarcodeGenerator_Example 4 | // 5 | // Created by Aliaksei Strokin on 10/27/18. 6 | // Copyright © 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface UIView (Animation) 14 | 15 | -(void)lockAnimation; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/UIView+Animation.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+Animation.m 3 | // EAN13BarcodeGenerator_Example 4 | // 5 | // Created by Aliaksei Strokin on 10/27/18. 6 | // Copyright © 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | #import "UIView+Animation.h" 10 | 11 | @implementation UIView (Animation) 12 | 13 | -(void)lockAnimation { 14 | CALayer *lbl = [self layer]; 15 | CGPoint posLbl = [lbl position]; 16 | CGPoint y = CGPointMake(posLbl.x-10, posLbl.y); 17 | CGPoint x = CGPointMake(posLbl.x+10, posLbl.y); 18 | CABasicAnimation * animation = [CABasicAnimation animationWithKeyPath:@"position"]; 19 | [animation setTimingFunction:[CAMediaTimingFunction 20 | functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; 21 | [animation setFromValue:[NSValue valueWithCGPoint:x]]; 22 | [animation setToValue:[NSValue valueWithCGPoint:y]]; 23 | [animation setAutoreverses:YES]; 24 | [animation setDuration:0.08]; 25 | [animation setRepeatCount:3]; 26 | [lbl addAnimation:animation forKey:nil]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/EAN13BarcodeGenerator/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // EAN13BarcodeGenerator 4 | // 5 | // Created by Alexey Strokin on 10/27/2018. 6 | // Copyright (c) 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "EAN13AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([EAN13AppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'EAN13BarcodeGenerator_Example' do 4 | pod 'EAN13BarcodeGenerator', :path => '../' 5 | 6 | target 'EAN13BarcodeGenerator_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - EAN13BarcodeGenerator (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - EAN13BarcodeGenerator (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | EAN13BarcodeGenerator: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | EAN13BarcodeGenerator: 9a3d58ba58306d789561c66248f51cdedfcfd50d 13 | 14 | PODFILE CHECKSUM: 06e5c6ebb96a1e578115aedae22bc32666a49660 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Local Podspecs/EAN13BarcodeGenerator.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "EAN13BarcodeGenerator", 3 | "version": "0.1.0", 4 | "summary": "Simple and performance solution to generate EAN13 barcode for iOS applications", 5 | "description": "Simple and performance solution to generate EAN13 barcode for iOS applications", 6 | "homepage": "https://github.com/astrokin/EAN13BarcodeGenerator", 7 | "screenshots": "https://dl.dropboxusercontent.com/s/2jhzwpm8nlz9iyj/Screen.png", 8 | "license": { 9 | "type": "MIT", 10 | "file": "LICENSE" 11 | }, 12 | "authors": { 13 | "Alexey Strokin": "alex.strok@gmail.com" 14 | }, 15 | "source": { 16 | "git": "https://github.com/astrokin/EAN13BarcodeGenerator.git", 17 | "tag": "0.1.0" 18 | }, 19 | "platforms": { 20 | "ios": "8.0" 21 | }, 22 | "source_files": "EAN13BarcodeGenerator/Classes/**/*", 23 | "frameworks": "UIKit" 24 | } 25 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - EAN13BarcodeGenerator (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - EAN13BarcodeGenerator (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | EAN13BarcodeGenerator: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | EAN13BarcodeGenerator: 9a3d58ba58306d789561c66248f51cdedfcfd50d 13 | 14 | PODFILE CHECKSUM: 06e5c6ebb96a1e578115aedae22bc32666a49660 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 095699E806C501A17EAA4661874E483F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 908E902E026C5C22904CF9014A5604AD /* Foundation.framework */; }; 11 | 0BBDE7B34AFAB491FE8BFBE496F643B0 /* Pods-EAN13BarcodeGenerator_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = AC007575497C31693468EACCA2A271A3 /* Pods-EAN13BarcodeGenerator_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 0D598233B72D1746AFB20A4EC9AB2239 /* Pods-EAN13BarcodeGenerator_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 46461294BFE40022269D48F7875EDD31 /* Pods-EAN13BarcodeGenerator_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 10C84BCC539136629E442029B255C413 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 908E902E026C5C22904CF9014A5604AD /* Foundation.framework */; }; 14 | 559691D72ADD57757860E7E7946BAA57 /* BarCodeEAN13.m in Sources */ = {isa = PBXBuildFile; fileRef = E3D611E1DC53131AB19E12B036F0319C /* BarCodeEAN13.m */; }; 15 | 5B09D2F5ADF6527285799825D3435262 /* Pods-EAN13BarcodeGenerator_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7967FA29D7BED897B6B7BF8685B5FF59 /* Pods-EAN13BarcodeGenerator_Tests-dummy.m */; }; 16 | 7C04F03AAE56C23EBF1230FA1CE8011D /* BarCodeEAN13.h in Headers */ = {isa = PBXBuildFile; fileRef = 4986AD620AF790BFDA76B0C6608B445E /* BarCodeEAN13.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | 8E2C28F0467288F7BD4EFB1FF5BAB6F2 /* BarCodeView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7A9ECB15CA294C6627F400CCE0422ADF /* BarCodeView.m */; }; 18 | AEF11E401A694B34EFCC6D115976EBE5 /* EAN13BarcodeGenerator-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = BC8D15C6ED8D6D66585B3B8F33E10EB7 /* EAN13BarcodeGenerator-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | B152341CAFA056F4007EB1BA7E4A4EF2 /* BarCodeView.h in Headers */ = {isa = PBXBuildFile; fileRef = 7FAB5ABD13C303996598F95FB8EED42F /* BarCodeView.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | B967AA4DB9606ACE44DEF0247341EECA /* Pods-EAN13BarcodeGenerator_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1B8C62212D122317B8416956F617779C /* Pods-EAN13BarcodeGenerator_Example-dummy.m */; }; 21 | D5AEED518B16DA96B926FC126DAA8E9B /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC2C02191C153C1554B35DEE8B2D09D4 /* UIKit.framework */; }; 22 | DB6696C692F9E86DB24B499B81570637 /* EAN13BarcodeGenerator-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 66BC10F34E9291F0016F1CC84BF1DC56 /* EAN13BarcodeGenerator-dummy.m */; }; 23 | EE859EAB453F8FAD5827002AD7A0D4B4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 908E902E026C5C22904CF9014A5604AD /* Foundation.framework */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | 29C91FC3AF550AF7DF44EFCF05A9E793 /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 0F145E8510D4305D84ACD9EE21B786F9; 32 | remoteInfo = EAN13BarcodeGenerator; 33 | }; 34 | F508ADF7B5B0DE41DF5DA9F4C273AD4B /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = C14B826917964871B00D575C7FE91E1D; 39 | remoteInfo = "Pods-EAN13BarcodeGenerator_Example"; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | 04B7C5C15886A075ADBF7446F77664A2 /* Pods-EAN13BarcodeGenerator_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-EAN13BarcodeGenerator_Tests-resources.sh"; sourceTree = ""; }; 45 | 1B8C62212D122317B8416956F617779C /* Pods-EAN13BarcodeGenerator_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-EAN13BarcodeGenerator_Example-dummy.m"; sourceTree = ""; }; 46 | 1E5DF731B7E45C67BB6FA2D10EDEB87B /* Pods_EAN13BarcodeGenerator_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_EAN13BarcodeGenerator_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 22E139B3EDBD4792F6DDC85EDE7C7D3F /* Pods-EAN13BarcodeGenerator_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-EAN13BarcodeGenerator_Example-frameworks.sh"; sourceTree = ""; }; 48 | 231908D268051D0BA75487CE1FBDA604 /* Pods-EAN13BarcodeGenerator_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-EAN13BarcodeGenerator_Tests-acknowledgements.markdown"; sourceTree = ""; }; 49 | 352B9BB729A8DA2694AC153CE9FD3D00 /* Pods-EAN13BarcodeGenerator_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-EAN13BarcodeGenerator_Tests-frameworks.sh"; sourceTree = ""; }; 50 | 391FFBC7CE972A113ED0DA27D6CC6E3E /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | 3BFCAC4E9BDFE5B8AFD0B0596102398B /* Pods-EAN13BarcodeGenerator_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-EAN13BarcodeGenerator_Tests.modulemap"; sourceTree = ""; }; 52 | 46461294BFE40022269D48F7875EDD31 /* Pods-EAN13BarcodeGenerator_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-EAN13BarcodeGenerator_Example-umbrella.h"; sourceTree = ""; }; 53 | 483437F7DE4E58CC52EC5F31DD2228A5 /* Pods-EAN13BarcodeGenerator_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-EAN13BarcodeGenerator_Example.modulemap"; sourceTree = ""; }; 54 | 4986AD620AF790BFDA76B0C6608B445E /* BarCodeEAN13.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = BarCodeEAN13.h; path = EAN13BarcodeGenerator/Classes/BarCodeEAN13.h; sourceTree = ""; }; 55 | 4F6A6E749406A2253B47F7A4AC6F6D26 /* EAN13BarcodeGenerator-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EAN13BarcodeGenerator-prefix.pch"; sourceTree = ""; }; 56 | 53657FDC5221982D83A0B1E2AC1951EB /* Pods-EAN13BarcodeGenerator_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-EAN13BarcodeGenerator_Tests-acknowledgements.plist"; sourceTree = ""; }; 57 | 5640917E16A4B4B7DFE66B89242609FF /* EAN13BarcodeGenerator.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EAN13BarcodeGenerator.xcconfig; sourceTree = ""; }; 58 | 5DF68AB795B641674229B32A7A19A0F1 /* Pods-EAN13BarcodeGenerator_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-EAN13BarcodeGenerator_Example-acknowledgements.plist"; sourceTree = ""; }; 59 | 6502E9ACD7935BAFE34C6B2A40E4FE5B /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | 66BC10F34E9291F0016F1CC84BF1DC56 /* EAN13BarcodeGenerator-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EAN13BarcodeGenerator-dummy.m"; sourceTree = ""; }; 61 | 6AF8309D9BF55BA4CE7E3F572F90BD1B /* Pods-EAN13BarcodeGenerator_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-EAN13BarcodeGenerator_Example-acknowledgements.markdown"; sourceTree = ""; }; 62 | 78944063FD8FB554B0438923FE18E711 /* EAN13BarcodeGenerator.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = EAN13BarcodeGenerator.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | 7967FA29D7BED897B6B7BF8685B5FF59 /* Pods-EAN13BarcodeGenerator_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-EAN13BarcodeGenerator_Tests-dummy.m"; sourceTree = ""; }; 64 | 7A9ECB15CA294C6627F400CCE0422ADF /* BarCodeView.m */ = {isa = PBXFileReference; includeInIndex = 1; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; name = BarCodeView.m; path = EAN13BarcodeGenerator/Classes/BarCodeView.m; sourceTree = ""; }; 65 | 7FAB5ABD13C303996598F95FB8EED42F /* BarCodeView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = BarCodeView.h; path = EAN13BarcodeGenerator/Classes/BarCodeView.h; sourceTree = ""; }; 66 | 8F95ED36FB13AADE7EC68853D9AEB284 /* Pods_EAN13BarcodeGenerator_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_EAN13BarcodeGenerator_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | 907FFC8DEF93BD656AD7D6133786069C /* Pods-EAN13BarcodeGenerator_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-EAN13BarcodeGenerator_Tests.release.xcconfig"; sourceTree = ""; }; 68 | 908E902E026C5C22904CF9014A5604AD /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 69 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 70 | A8A834939A2189588550D61696AA9734 /* Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig"; sourceTree = ""; }; 71 | AC007575497C31693468EACCA2A271A3 /* Pods-EAN13BarcodeGenerator_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-EAN13BarcodeGenerator_Tests-umbrella.h"; sourceTree = ""; }; 72 | AD40445B64B725E509A2BD2B3F97FA2F /* Pods-EAN13BarcodeGenerator_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-EAN13BarcodeGenerator_Example.debug.xcconfig"; sourceTree = ""; }; 73 | B3BC438A46F40953C392A7201189A9D5 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 74 | BC2C02191C153C1554B35DEE8B2D09D4 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 75 | BC8D15C6ED8D6D66585B3B8F33E10EB7 /* EAN13BarcodeGenerator-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EAN13BarcodeGenerator-umbrella.h"; sourceTree = ""; }; 76 | D449C502C8633C2F7794D7F18C5B1882 /* Pods-EAN13BarcodeGenerator_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-EAN13BarcodeGenerator_Example-resources.sh"; sourceTree = ""; }; 77 | E3D611E1DC53131AB19E12B036F0319C /* BarCodeEAN13.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = BarCodeEAN13.m; path = EAN13BarcodeGenerator/Classes/BarCodeEAN13.m; sourceTree = ""; }; 78 | E945C0BE636C8B82DEECEF2EA9B5B6C3 /* Pods-EAN13BarcodeGenerator_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-EAN13BarcodeGenerator_Example.release.xcconfig"; sourceTree = ""; }; 79 | F368B437F02AC43E895A771D669BEA2B /* EAN13BarcodeGenerator.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = EAN13BarcodeGenerator.modulemap; sourceTree = ""; }; 80 | /* End PBXFileReference section */ 81 | 82 | /* Begin PBXFrameworksBuildPhase section */ 83 | 1D5FC9808BC1CC9E65BA0FE04F0CEF46 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | 10C84BCC539136629E442029B255C413 /* Foundation.framework in Frameworks */, 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | 4BBB58E66F3BB2A9AEEC5A89160E7086 /* Frameworks */ = { 92 | isa = PBXFrameworksBuildPhase; 93 | buildActionMask = 2147483647; 94 | files = ( 95 | 095699E806C501A17EAA4661874E483F /* Foundation.framework in Frameworks */, 96 | D5AEED518B16DA96B926FC126DAA8E9B /* UIKit.framework in Frameworks */, 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | 684480680AF525D768B7EA517995FEDA /* Frameworks */ = { 101 | isa = PBXFrameworksBuildPhase; 102 | buildActionMask = 2147483647; 103 | files = ( 104 | EE859EAB453F8FAD5827002AD7A0D4B4 /* Foundation.framework in Frameworks */, 105 | ); 106 | runOnlyForDeploymentPostprocessing = 0; 107 | }; 108 | /* End PBXFrameworksBuildPhase section */ 109 | 110 | /* Begin PBXGroup section */ 111 | 10DEDCB394BAA0C7FEDEBE330207B074 /* iOS */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 908E902E026C5C22904CF9014A5604AD /* Foundation.framework */, 115 | BC2C02191C153C1554B35DEE8B2D09D4 /* UIKit.framework */, 116 | ); 117 | name = iOS; 118 | sourceTree = ""; 119 | }; 120 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 10DEDCB394BAA0C7FEDEBE330207B074 /* iOS */, 124 | ); 125 | name = Frameworks; 126 | sourceTree = ""; 127 | }; 128 | 715BDBE5AA33422CDCBF0F097A7E2D30 /* Development Pods */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | E88AB05960526A8CF677F45C785E13A1 /* EAN13BarcodeGenerator */, 132 | ); 133 | name = "Development Pods"; 134 | sourceTree = ""; 135 | }; 136 | 7DB346D0F39D3F0E887471402A8071AB = { 137 | isa = PBXGroup; 138 | children = ( 139 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 140 | 715BDBE5AA33422CDCBF0F097A7E2D30 /* Development Pods */, 141 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */, 142 | DD16CB0E911667D13D1A67F8E822185F /* Products */, 143 | F14257D38AF3EE4B586D37FF09D43087 /* Targets Support Files */, 144 | ); 145 | sourceTree = ""; 146 | }; 147 | DBE22BBD20E8393C23F8E37A6FF5F810 /* Support Files */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | F368B437F02AC43E895A771D669BEA2B /* EAN13BarcodeGenerator.modulemap */, 151 | 5640917E16A4B4B7DFE66B89242609FF /* EAN13BarcodeGenerator.xcconfig */, 152 | 66BC10F34E9291F0016F1CC84BF1DC56 /* EAN13BarcodeGenerator-dummy.m */, 153 | 4F6A6E749406A2253B47F7A4AC6F6D26 /* EAN13BarcodeGenerator-prefix.pch */, 154 | BC8D15C6ED8D6D66585B3B8F33E10EB7 /* EAN13BarcodeGenerator-umbrella.h */, 155 | B3BC438A46F40953C392A7201189A9D5 /* Info.plist */, 156 | ); 157 | name = "Support Files"; 158 | path = "Example/Pods/Target Support Files/EAN13BarcodeGenerator"; 159 | sourceTree = ""; 160 | }; 161 | DD16CB0E911667D13D1A67F8E822185F /* Products */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 78944063FD8FB554B0438923FE18E711 /* EAN13BarcodeGenerator.framework */, 165 | 1E5DF731B7E45C67BB6FA2D10EDEB87B /* Pods_EAN13BarcodeGenerator_Example.framework */, 166 | 8F95ED36FB13AADE7EC68853D9AEB284 /* Pods_EAN13BarcodeGenerator_Tests.framework */, 167 | ); 168 | name = Products; 169 | sourceTree = ""; 170 | }; 171 | E20BA222F56D423E76E023428509FC0D /* Pods-EAN13BarcodeGenerator_Tests */ = { 172 | isa = PBXGroup; 173 | children = ( 174 | 391FFBC7CE972A113ED0DA27D6CC6E3E /* Info.plist */, 175 | 3BFCAC4E9BDFE5B8AFD0B0596102398B /* Pods-EAN13BarcodeGenerator_Tests.modulemap */, 176 | 231908D268051D0BA75487CE1FBDA604 /* Pods-EAN13BarcodeGenerator_Tests-acknowledgements.markdown */, 177 | 53657FDC5221982D83A0B1E2AC1951EB /* Pods-EAN13BarcodeGenerator_Tests-acknowledgements.plist */, 178 | 7967FA29D7BED897B6B7BF8685B5FF59 /* Pods-EAN13BarcodeGenerator_Tests-dummy.m */, 179 | 352B9BB729A8DA2694AC153CE9FD3D00 /* Pods-EAN13BarcodeGenerator_Tests-frameworks.sh */, 180 | 04B7C5C15886A075ADBF7446F77664A2 /* Pods-EAN13BarcodeGenerator_Tests-resources.sh */, 181 | AC007575497C31693468EACCA2A271A3 /* Pods-EAN13BarcodeGenerator_Tests-umbrella.h */, 182 | A8A834939A2189588550D61696AA9734 /* Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig */, 183 | 907FFC8DEF93BD656AD7D6133786069C /* Pods-EAN13BarcodeGenerator_Tests.release.xcconfig */, 184 | ); 185 | name = "Pods-EAN13BarcodeGenerator_Tests"; 186 | path = "Target Support Files/Pods-EAN13BarcodeGenerator_Tests"; 187 | sourceTree = ""; 188 | }; 189 | E88AB05960526A8CF677F45C785E13A1 /* EAN13BarcodeGenerator */ = { 190 | isa = PBXGroup; 191 | children = ( 192 | 4986AD620AF790BFDA76B0C6608B445E /* BarCodeEAN13.h */, 193 | E3D611E1DC53131AB19E12B036F0319C /* BarCodeEAN13.m */, 194 | 7FAB5ABD13C303996598F95FB8EED42F /* BarCodeView.h */, 195 | 7A9ECB15CA294C6627F400CCE0422ADF /* BarCodeView.m */, 196 | DBE22BBD20E8393C23F8E37A6FF5F810 /* Support Files */, 197 | ); 198 | name = EAN13BarcodeGenerator; 199 | path = ../..; 200 | sourceTree = ""; 201 | }; 202 | F14257D38AF3EE4B586D37FF09D43087 /* Targets Support Files */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | FF7413732562EAC143351A572787ECDD /* Pods-EAN13BarcodeGenerator_Example */, 206 | E20BA222F56D423E76E023428509FC0D /* Pods-EAN13BarcodeGenerator_Tests */, 207 | ); 208 | name = "Targets Support Files"; 209 | sourceTree = ""; 210 | }; 211 | FF7413732562EAC143351A572787ECDD /* Pods-EAN13BarcodeGenerator_Example */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | 6502E9ACD7935BAFE34C6B2A40E4FE5B /* Info.plist */, 215 | 483437F7DE4E58CC52EC5F31DD2228A5 /* Pods-EAN13BarcodeGenerator_Example.modulemap */, 216 | 6AF8309D9BF55BA4CE7E3F572F90BD1B /* Pods-EAN13BarcodeGenerator_Example-acknowledgements.markdown */, 217 | 5DF68AB795B641674229B32A7A19A0F1 /* Pods-EAN13BarcodeGenerator_Example-acknowledgements.plist */, 218 | 1B8C62212D122317B8416956F617779C /* Pods-EAN13BarcodeGenerator_Example-dummy.m */, 219 | 22E139B3EDBD4792F6DDC85EDE7C7D3F /* Pods-EAN13BarcodeGenerator_Example-frameworks.sh */, 220 | D449C502C8633C2F7794D7F18C5B1882 /* Pods-EAN13BarcodeGenerator_Example-resources.sh */, 221 | 46461294BFE40022269D48F7875EDD31 /* Pods-EAN13BarcodeGenerator_Example-umbrella.h */, 222 | AD40445B64B725E509A2BD2B3F97FA2F /* Pods-EAN13BarcodeGenerator_Example.debug.xcconfig */, 223 | E945C0BE636C8B82DEECEF2EA9B5B6C3 /* Pods-EAN13BarcodeGenerator_Example.release.xcconfig */, 224 | ); 225 | name = "Pods-EAN13BarcodeGenerator_Example"; 226 | path = "Target Support Files/Pods-EAN13BarcodeGenerator_Example"; 227 | sourceTree = ""; 228 | }; 229 | /* End PBXGroup section */ 230 | 231 | /* Begin PBXHeadersBuildPhase section */ 232 | 1560F47709081D97DE4B7867FE98D06E /* Headers */ = { 233 | isa = PBXHeadersBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | 0BBDE7B34AFAB491FE8BFBE496F643B0 /* Pods-EAN13BarcodeGenerator_Tests-umbrella.h in Headers */, 237 | ); 238 | runOnlyForDeploymentPostprocessing = 0; 239 | }; 240 | 30A7C10F86C2100AA93A5987DCB929F0 /* Headers */ = { 241 | isa = PBXHeadersBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | 0D598233B72D1746AFB20A4EC9AB2239 /* Pods-EAN13BarcodeGenerator_Example-umbrella.h in Headers */, 245 | ); 246 | runOnlyForDeploymentPostprocessing = 0; 247 | }; 248 | 70E6740109311FB31BC237F8EAF38F15 /* Headers */ = { 249 | isa = PBXHeadersBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | 7C04F03AAE56C23EBF1230FA1CE8011D /* BarCodeEAN13.h in Headers */, 253 | B152341CAFA056F4007EB1BA7E4A4EF2 /* BarCodeView.h in Headers */, 254 | AEF11E401A694B34EFCC6D115976EBE5 /* EAN13BarcodeGenerator-umbrella.h in Headers */, 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | }; 258 | /* End PBXHeadersBuildPhase section */ 259 | 260 | /* Begin PBXNativeTarget section */ 261 | 0F145E8510D4305D84ACD9EE21B786F9 /* EAN13BarcodeGenerator */ = { 262 | isa = PBXNativeTarget; 263 | buildConfigurationList = EB16975B098A856EE61AE732E3B4A2C7 /* Build configuration list for PBXNativeTarget "EAN13BarcodeGenerator" */; 264 | buildPhases = ( 265 | 70E6740109311FB31BC237F8EAF38F15 /* Headers */, 266 | B1A39234BD4DF01265CD9A0A8B77CED8 /* Sources */, 267 | 4BBB58E66F3BB2A9AEEC5A89160E7086 /* Frameworks */, 268 | 36543CE2E3D330F4CAC85E5742220542 /* Resources */, 269 | ); 270 | buildRules = ( 271 | ); 272 | dependencies = ( 273 | ); 274 | name = EAN13BarcodeGenerator; 275 | productName = EAN13BarcodeGenerator; 276 | productReference = 78944063FD8FB554B0438923FE18E711 /* EAN13BarcodeGenerator.framework */; 277 | productType = "com.apple.product-type.framework"; 278 | }; 279 | C14B826917964871B00D575C7FE91E1D /* Pods-EAN13BarcodeGenerator_Example */ = { 280 | isa = PBXNativeTarget; 281 | buildConfigurationList = 406D01510F7DA4633F08B8607508FD77 /* Build configuration list for PBXNativeTarget "Pods-EAN13BarcodeGenerator_Example" */; 282 | buildPhases = ( 283 | 30A7C10F86C2100AA93A5987DCB929F0 /* Headers */, 284 | 444F87E775A9AA97A12B575A54B75F8B /* Sources */, 285 | 1D5FC9808BC1CC9E65BA0FE04F0CEF46 /* Frameworks */, 286 | B923A78648D12A2B6FFE3830E291BCDC /* Resources */, 287 | ); 288 | buildRules = ( 289 | ); 290 | dependencies = ( 291 | DFE9E537B7849C3D7667F86A68F9A77E /* PBXTargetDependency */, 292 | ); 293 | name = "Pods-EAN13BarcodeGenerator_Example"; 294 | productName = "Pods-EAN13BarcodeGenerator_Example"; 295 | productReference = 1E5DF731B7E45C67BB6FA2D10EDEB87B /* Pods_EAN13BarcodeGenerator_Example.framework */; 296 | productType = "com.apple.product-type.framework"; 297 | }; 298 | F60E4AB0F0DFAE58651B2C727562A0D7 /* Pods-EAN13BarcodeGenerator_Tests */ = { 299 | isa = PBXNativeTarget; 300 | buildConfigurationList = 0027F174B8667FFB2131F383276FA767 /* Build configuration list for PBXNativeTarget "Pods-EAN13BarcodeGenerator_Tests" */; 301 | buildPhases = ( 302 | 1560F47709081D97DE4B7867FE98D06E /* Headers */, 303 | 05B943D039B2FA4D7EAB2EA024FB19F4 /* Sources */, 304 | 684480680AF525D768B7EA517995FEDA /* Frameworks */, 305 | 052F0712EAA1ECEBE320D0C73516F114 /* Resources */, 306 | ); 307 | buildRules = ( 308 | ); 309 | dependencies = ( 310 | 2F7656279D8EE104485C158027FF8F6C /* PBXTargetDependency */, 311 | ); 312 | name = "Pods-EAN13BarcodeGenerator_Tests"; 313 | productName = "Pods-EAN13BarcodeGenerator_Tests"; 314 | productReference = 8F95ED36FB13AADE7EC68853D9AEB284 /* Pods_EAN13BarcodeGenerator_Tests.framework */; 315 | productType = "com.apple.product-type.framework"; 316 | }; 317 | /* End PBXNativeTarget section */ 318 | 319 | /* Begin PBXProject section */ 320 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 321 | isa = PBXProject; 322 | attributes = { 323 | LastSwiftUpdateCheck = 0930; 324 | LastUpgradeCheck = 0930; 325 | }; 326 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 327 | compatibilityVersion = "Xcode 3.2"; 328 | developmentRegion = English; 329 | hasScannedForEncodings = 0; 330 | knownRegions = ( 331 | en, 332 | ); 333 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 334 | productRefGroup = DD16CB0E911667D13D1A67F8E822185F /* Products */; 335 | projectDirPath = ""; 336 | projectRoot = ""; 337 | targets = ( 338 | 0F145E8510D4305D84ACD9EE21B786F9 /* EAN13BarcodeGenerator */, 339 | C14B826917964871B00D575C7FE91E1D /* Pods-EAN13BarcodeGenerator_Example */, 340 | F60E4AB0F0DFAE58651B2C727562A0D7 /* Pods-EAN13BarcodeGenerator_Tests */, 341 | ); 342 | }; 343 | /* End PBXProject section */ 344 | 345 | /* Begin PBXResourcesBuildPhase section */ 346 | 052F0712EAA1ECEBE320D0C73516F114 /* Resources */ = { 347 | isa = PBXResourcesBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | }; 353 | 36543CE2E3D330F4CAC85E5742220542 /* Resources */ = { 354 | isa = PBXResourcesBuildPhase; 355 | buildActionMask = 2147483647; 356 | files = ( 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | B923A78648D12A2B6FFE3830E291BCDC /* Resources */ = { 361 | isa = PBXResourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | /* End PBXResourcesBuildPhase section */ 368 | 369 | /* Begin PBXSourcesBuildPhase section */ 370 | 05B943D039B2FA4D7EAB2EA024FB19F4 /* Sources */ = { 371 | isa = PBXSourcesBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | 5B09D2F5ADF6527285799825D3435262 /* Pods-EAN13BarcodeGenerator_Tests-dummy.m in Sources */, 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | }; 378 | 444F87E775A9AA97A12B575A54B75F8B /* Sources */ = { 379 | isa = PBXSourcesBuildPhase; 380 | buildActionMask = 2147483647; 381 | files = ( 382 | B967AA4DB9606ACE44DEF0247341EECA /* Pods-EAN13BarcodeGenerator_Example-dummy.m in Sources */, 383 | ); 384 | runOnlyForDeploymentPostprocessing = 0; 385 | }; 386 | B1A39234BD4DF01265CD9A0A8B77CED8 /* Sources */ = { 387 | isa = PBXSourcesBuildPhase; 388 | buildActionMask = 2147483647; 389 | files = ( 390 | 559691D72ADD57757860E7E7946BAA57 /* BarCodeEAN13.m in Sources */, 391 | 8E2C28F0467288F7BD4EFB1FF5BAB6F2 /* BarCodeView.m in Sources */, 392 | DB6696C692F9E86DB24B499B81570637 /* EAN13BarcodeGenerator-dummy.m in Sources */, 393 | ); 394 | runOnlyForDeploymentPostprocessing = 0; 395 | }; 396 | /* End PBXSourcesBuildPhase section */ 397 | 398 | /* Begin PBXTargetDependency section */ 399 | 2F7656279D8EE104485C158027FF8F6C /* PBXTargetDependency */ = { 400 | isa = PBXTargetDependency; 401 | name = "Pods-EAN13BarcodeGenerator_Example"; 402 | target = C14B826917964871B00D575C7FE91E1D /* Pods-EAN13BarcodeGenerator_Example */; 403 | targetProxy = F508ADF7B5B0DE41DF5DA9F4C273AD4B /* PBXContainerItemProxy */; 404 | }; 405 | DFE9E537B7849C3D7667F86A68F9A77E /* PBXTargetDependency */ = { 406 | isa = PBXTargetDependency; 407 | name = EAN13BarcodeGenerator; 408 | target = 0F145E8510D4305D84ACD9EE21B786F9 /* EAN13BarcodeGenerator */; 409 | targetProxy = 29C91FC3AF550AF7DF44EFCF05A9E793 /* PBXContainerItemProxy */; 410 | }; 411 | /* End PBXTargetDependency section */ 412 | 413 | /* Begin XCBuildConfiguration section */ 414 | 1F63993F742DCFB25D6935EA0EA4CC13 /* Release */ = { 415 | isa = XCBuildConfiguration; 416 | baseConfigurationReference = 5640917E16A4B4B7DFE66B89242609FF /* EAN13BarcodeGenerator.xcconfig */; 417 | buildSettings = { 418 | CODE_SIGN_IDENTITY = ""; 419 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 420 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 421 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 422 | CURRENT_PROJECT_VERSION = 1; 423 | DEFINES_MODULE = YES; 424 | DYLIB_COMPATIBILITY_VERSION = 1; 425 | DYLIB_CURRENT_VERSION = 1; 426 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 427 | GCC_PREFIX_HEADER = "Target Support Files/EAN13BarcodeGenerator/EAN13BarcodeGenerator-prefix.pch"; 428 | INFOPLIST_FILE = "Target Support Files/EAN13BarcodeGenerator/Info.plist"; 429 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 431 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 432 | MODULEMAP_FILE = "Target Support Files/EAN13BarcodeGenerator/EAN13BarcodeGenerator.modulemap"; 433 | PRODUCT_MODULE_NAME = EAN13BarcodeGenerator; 434 | PRODUCT_NAME = EAN13BarcodeGenerator; 435 | SDKROOT = iphoneos; 436 | SKIP_INSTALL = YES; 437 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 438 | TARGETED_DEVICE_FAMILY = "1,2"; 439 | VALIDATE_PRODUCT = YES; 440 | VERSIONING_SYSTEM = "apple-generic"; 441 | VERSION_INFO_PREFIX = ""; 442 | }; 443 | name = Release; 444 | }; 445 | 60518B7F33D686C1003483AA48337DFD /* Debug */ = { 446 | isa = XCBuildConfiguration; 447 | baseConfigurationReference = 5640917E16A4B4B7DFE66B89242609FF /* EAN13BarcodeGenerator.xcconfig */; 448 | buildSettings = { 449 | CODE_SIGN_IDENTITY = ""; 450 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 451 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 452 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 453 | CURRENT_PROJECT_VERSION = 1; 454 | DEFINES_MODULE = YES; 455 | DYLIB_COMPATIBILITY_VERSION = 1; 456 | DYLIB_CURRENT_VERSION = 1; 457 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 458 | GCC_PREFIX_HEADER = "Target Support Files/EAN13BarcodeGenerator/EAN13BarcodeGenerator-prefix.pch"; 459 | INFOPLIST_FILE = "Target Support Files/EAN13BarcodeGenerator/Info.plist"; 460 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 461 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 462 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 463 | MODULEMAP_FILE = "Target Support Files/EAN13BarcodeGenerator/EAN13BarcodeGenerator.modulemap"; 464 | PRODUCT_MODULE_NAME = EAN13BarcodeGenerator; 465 | PRODUCT_NAME = EAN13BarcodeGenerator; 466 | SDKROOT = iphoneos; 467 | SKIP_INSTALL = YES; 468 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 469 | TARGETED_DEVICE_FAMILY = "1,2"; 470 | VERSIONING_SYSTEM = "apple-generic"; 471 | VERSION_INFO_PREFIX = ""; 472 | }; 473 | name = Debug; 474 | }; 475 | 8C2535FD6B25B40F9935FF61BB2400FE /* Debug */ = { 476 | isa = XCBuildConfiguration; 477 | baseConfigurationReference = AD40445B64B725E509A2BD2B3F97FA2F /* Pods-EAN13BarcodeGenerator_Example.debug.xcconfig */; 478 | buildSettings = { 479 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 480 | CODE_SIGN_IDENTITY = ""; 481 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 482 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 483 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 484 | CURRENT_PROJECT_VERSION = 1; 485 | DEFINES_MODULE = YES; 486 | DYLIB_COMPATIBILITY_VERSION = 1; 487 | DYLIB_CURRENT_VERSION = 1; 488 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 489 | INFOPLIST_FILE = "Target Support Files/Pods-EAN13BarcodeGenerator_Example/Info.plist"; 490 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 491 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 492 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 493 | MACH_O_TYPE = staticlib; 494 | MODULEMAP_FILE = "Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example.modulemap"; 495 | OTHER_LDFLAGS = ""; 496 | OTHER_LIBTOOLFLAGS = ""; 497 | PODS_ROOT = "$(SRCROOT)"; 498 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 499 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 500 | SDKROOT = iphoneos; 501 | SKIP_INSTALL = YES; 502 | TARGETED_DEVICE_FAMILY = "1,2"; 503 | VERSIONING_SYSTEM = "apple-generic"; 504 | VERSION_INFO_PREFIX = ""; 505 | }; 506 | name = Debug; 507 | }; 508 | 96434B6C8FF320C976A10DAD7174A4BB /* Release */ = { 509 | isa = XCBuildConfiguration; 510 | buildSettings = { 511 | ALWAYS_SEARCH_USER_PATHS = NO; 512 | CLANG_ANALYZER_NONNULL = YES; 513 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 514 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 515 | CLANG_CXX_LIBRARY = "libc++"; 516 | CLANG_ENABLE_MODULES = YES; 517 | CLANG_ENABLE_OBJC_ARC = YES; 518 | CLANG_ENABLE_OBJC_WEAK = YES; 519 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 520 | CLANG_WARN_BOOL_CONVERSION = YES; 521 | CLANG_WARN_COMMA = YES; 522 | CLANG_WARN_CONSTANT_CONVERSION = YES; 523 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 524 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 525 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 526 | CLANG_WARN_EMPTY_BODY = YES; 527 | CLANG_WARN_ENUM_CONVERSION = YES; 528 | CLANG_WARN_INFINITE_RECURSION = YES; 529 | CLANG_WARN_INT_CONVERSION = YES; 530 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 531 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 532 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 533 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 534 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 535 | CLANG_WARN_STRICT_PROTOTYPES = YES; 536 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 537 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 538 | CLANG_WARN_UNREACHABLE_CODE = YES; 539 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 540 | CODE_SIGNING_ALLOWED = NO; 541 | CODE_SIGNING_REQUIRED = NO; 542 | COPY_PHASE_STRIP = NO; 543 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 544 | ENABLE_NS_ASSERTIONS = NO; 545 | ENABLE_STRICT_OBJC_MSGSEND = YES; 546 | GCC_C_LANGUAGE_STANDARD = gnu11; 547 | GCC_NO_COMMON_BLOCKS = YES; 548 | GCC_PREPROCESSOR_DEFINITIONS = ( 549 | "POD_CONFIGURATION_RELEASE=1", 550 | "$(inherited)", 551 | ); 552 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 553 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 554 | GCC_WARN_UNDECLARED_SELECTOR = YES; 555 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 556 | GCC_WARN_UNUSED_FUNCTION = YES; 557 | GCC_WARN_UNUSED_VARIABLE = YES; 558 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 559 | MTL_ENABLE_DEBUG_INFO = NO; 560 | MTL_FAST_MATH = YES; 561 | PRODUCT_NAME = "$(TARGET_NAME)"; 562 | STRIP_INSTALLED_PRODUCT = NO; 563 | SYMROOT = "${SRCROOT}/../build"; 564 | }; 565 | name = Release; 566 | }; 567 | A7B68E78C69F73DFD07100EBC911E5B3 /* Debug */ = { 568 | isa = XCBuildConfiguration; 569 | baseConfigurationReference = A8A834939A2189588550D61696AA9734 /* Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig */; 570 | buildSettings = { 571 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 572 | CODE_SIGN_IDENTITY = ""; 573 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 574 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 575 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 576 | CURRENT_PROJECT_VERSION = 1; 577 | DEFINES_MODULE = YES; 578 | DYLIB_COMPATIBILITY_VERSION = 1; 579 | DYLIB_CURRENT_VERSION = 1; 580 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 581 | INFOPLIST_FILE = "Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Info.plist"; 582 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 583 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 584 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 585 | MACH_O_TYPE = staticlib; 586 | MODULEMAP_FILE = "Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests.modulemap"; 587 | OTHER_LDFLAGS = ""; 588 | OTHER_LIBTOOLFLAGS = ""; 589 | PODS_ROOT = "$(SRCROOT)"; 590 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 591 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 592 | SDKROOT = iphoneos; 593 | SKIP_INSTALL = YES; 594 | TARGETED_DEVICE_FAMILY = "1,2"; 595 | VERSIONING_SYSTEM = "apple-generic"; 596 | VERSION_INFO_PREFIX = ""; 597 | }; 598 | name = Debug; 599 | }; 600 | D11C82AF2204B41B80412B8DC9C1D652 /* Debug */ = { 601 | isa = XCBuildConfiguration; 602 | buildSettings = { 603 | ALWAYS_SEARCH_USER_PATHS = NO; 604 | CLANG_ANALYZER_NONNULL = YES; 605 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 606 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 607 | CLANG_CXX_LIBRARY = "libc++"; 608 | CLANG_ENABLE_MODULES = YES; 609 | CLANG_ENABLE_OBJC_ARC = YES; 610 | CLANG_ENABLE_OBJC_WEAK = YES; 611 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 612 | CLANG_WARN_BOOL_CONVERSION = YES; 613 | CLANG_WARN_COMMA = YES; 614 | CLANG_WARN_CONSTANT_CONVERSION = YES; 615 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 616 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 617 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 618 | CLANG_WARN_EMPTY_BODY = YES; 619 | CLANG_WARN_ENUM_CONVERSION = YES; 620 | CLANG_WARN_INFINITE_RECURSION = YES; 621 | CLANG_WARN_INT_CONVERSION = YES; 622 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 623 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 624 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 625 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 626 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 627 | CLANG_WARN_STRICT_PROTOTYPES = YES; 628 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 629 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 630 | CLANG_WARN_UNREACHABLE_CODE = YES; 631 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 632 | CODE_SIGNING_ALLOWED = NO; 633 | CODE_SIGNING_REQUIRED = NO; 634 | COPY_PHASE_STRIP = NO; 635 | DEBUG_INFORMATION_FORMAT = dwarf; 636 | ENABLE_STRICT_OBJC_MSGSEND = YES; 637 | ENABLE_TESTABILITY = YES; 638 | GCC_C_LANGUAGE_STANDARD = gnu11; 639 | GCC_DYNAMIC_NO_PIC = NO; 640 | GCC_NO_COMMON_BLOCKS = YES; 641 | GCC_OPTIMIZATION_LEVEL = 0; 642 | GCC_PREPROCESSOR_DEFINITIONS = ( 643 | "POD_CONFIGURATION_DEBUG=1", 644 | "DEBUG=1", 645 | "$(inherited)", 646 | ); 647 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 648 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 649 | GCC_WARN_UNDECLARED_SELECTOR = YES; 650 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 651 | GCC_WARN_UNUSED_FUNCTION = YES; 652 | GCC_WARN_UNUSED_VARIABLE = YES; 653 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 654 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 655 | MTL_FAST_MATH = YES; 656 | ONLY_ACTIVE_ARCH = YES; 657 | PRODUCT_NAME = "$(TARGET_NAME)"; 658 | STRIP_INSTALLED_PRODUCT = NO; 659 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 660 | SYMROOT = "${SRCROOT}/../build"; 661 | }; 662 | name = Debug; 663 | }; 664 | D8A1AA0C0D54B32D272476490F275802 /* Release */ = { 665 | isa = XCBuildConfiguration; 666 | baseConfigurationReference = 907FFC8DEF93BD656AD7D6133786069C /* Pods-EAN13BarcodeGenerator_Tests.release.xcconfig */; 667 | buildSettings = { 668 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 669 | CODE_SIGN_IDENTITY = ""; 670 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 671 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 672 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 673 | CURRENT_PROJECT_VERSION = 1; 674 | DEFINES_MODULE = YES; 675 | DYLIB_COMPATIBILITY_VERSION = 1; 676 | DYLIB_CURRENT_VERSION = 1; 677 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 678 | INFOPLIST_FILE = "Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Info.plist"; 679 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 680 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 681 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 682 | MACH_O_TYPE = staticlib; 683 | MODULEMAP_FILE = "Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests.modulemap"; 684 | OTHER_LDFLAGS = ""; 685 | OTHER_LIBTOOLFLAGS = ""; 686 | PODS_ROOT = "$(SRCROOT)"; 687 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 688 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 689 | SDKROOT = iphoneos; 690 | SKIP_INSTALL = YES; 691 | TARGETED_DEVICE_FAMILY = "1,2"; 692 | VALIDATE_PRODUCT = YES; 693 | VERSIONING_SYSTEM = "apple-generic"; 694 | VERSION_INFO_PREFIX = ""; 695 | }; 696 | name = Release; 697 | }; 698 | DAA5B6693B2ACA3FF9CF1796C10F6291 /* Release */ = { 699 | isa = XCBuildConfiguration; 700 | baseConfigurationReference = E945C0BE636C8B82DEECEF2EA9B5B6C3 /* Pods-EAN13BarcodeGenerator_Example.release.xcconfig */; 701 | buildSettings = { 702 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 703 | CODE_SIGN_IDENTITY = ""; 704 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 705 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 706 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 707 | CURRENT_PROJECT_VERSION = 1; 708 | DEFINES_MODULE = YES; 709 | DYLIB_COMPATIBILITY_VERSION = 1; 710 | DYLIB_CURRENT_VERSION = 1; 711 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 712 | INFOPLIST_FILE = "Target Support Files/Pods-EAN13BarcodeGenerator_Example/Info.plist"; 713 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 714 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 715 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 716 | MACH_O_TYPE = staticlib; 717 | MODULEMAP_FILE = "Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example.modulemap"; 718 | OTHER_LDFLAGS = ""; 719 | OTHER_LIBTOOLFLAGS = ""; 720 | PODS_ROOT = "$(SRCROOT)"; 721 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 722 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 723 | SDKROOT = iphoneos; 724 | SKIP_INSTALL = YES; 725 | TARGETED_DEVICE_FAMILY = "1,2"; 726 | VALIDATE_PRODUCT = YES; 727 | VERSIONING_SYSTEM = "apple-generic"; 728 | VERSION_INFO_PREFIX = ""; 729 | }; 730 | name = Release; 731 | }; 732 | /* End XCBuildConfiguration section */ 733 | 734 | /* Begin XCConfigurationList section */ 735 | 0027F174B8667FFB2131F383276FA767 /* Build configuration list for PBXNativeTarget "Pods-EAN13BarcodeGenerator_Tests" */ = { 736 | isa = XCConfigurationList; 737 | buildConfigurations = ( 738 | A7B68E78C69F73DFD07100EBC911E5B3 /* Debug */, 739 | D8A1AA0C0D54B32D272476490F275802 /* Release */, 740 | ); 741 | defaultConfigurationIsVisible = 0; 742 | defaultConfigurationName = Release; 743 | }; 744 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 745 | isa = XCConfigurationList; 746 | buildConfigurations = ( 747 | D11C82AF2204B41B80412B8DC9C1D652 /* Debug */, 748 | 96434B6C8FF320C976A10DAD7174A4BB /* Release */, 749 | ); 750 | defaultConfigurationIsVisible = 0; 751 | defaultConfigurationName = Release; 752 | }; 753 | 406D01510F7DA4633F08B8607508FD77 /* Build configuration list for PBXNativeTarget "Pods-EAN13BarcodeGenerator_Example" */ = { 754 | isa = XCConfigurationList; 755 | buildConfigurations = ( 756 | 8C2535FD6B25B40F9935FF61BB2400FE /* Debug */, 757 | DAA5B6693B2ACA3FF9CF1796C10F6291 /* Release */, 758 | ); 759 | defaultConfigurationIsVisible = 0; 760 | defaultConfigurationName = Release; 761 | }; 762 | EB16975B098A856EE61AE732E3B4A2C7 /* Build configuration list for PBXNativeTarget "EAN13BarcodeGenerator" */ = { 763 | isa = XCConfigurationList; 764 | buildConfigurations = ( 765 | 60518B7F33D686C1003483AA48337DFD /* Debug */, 766 | 1F63993F742DCFB25D6935EA0EA4CC13 /* Release */, 767 | ); 768 | defaultConfigurationIsVisible = 0; 769 | defaultConfigurationName = Release; 770 | }; 771 | /* End XCConfigurationList section */ 772 | }; 773 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 774 | } 775 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/EAN13BarcodeGenerator/EAN13BarcodeGenerator-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_EAN13BarcodeGenerator : NSObject 3 | @end 4 | @implementation PodsDummy_EAN13BarcodeGenerator 5 | @end 6 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/EAN13BarcodeGenerator/EAN13BarcodeGenerator-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/EAN13BarcodeGenerator/EAN13BarcodeGenerator-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "BarCodeEAN13.h" 14 | #import "BarCodeView.h" 15 | 16 | FOUNDATION_EXPORT double EAN13BarcodeGeneratorVersionNumber; 17 | FOUNDATION_EXPORT const unsigned char EAN13BarcodeGeneratorVersionString[]; 18 | 19 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/EAN13BarcodeGenerator/EAN13BarcodeGenerator.modulemap: -------------------------------------------------------------------------------- 1 | framework module EAN13BarcodeGenerator { 2 | umbrella header "EAN13BarcodeGenerator-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/EAN13BarcodeGenerator/EAN13BarcodeGenerator.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/EAN13BarcodeGenerator 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "UIKit" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/EAN13BarcodeGenerator/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## EAN13BarcodeGenerator 5 | 6 | Copyright (c) 2018 Alexey Strokin 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2018 Alexey Strokin <alex.strok@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | EAN13BarcodeGenerator 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_EAN13BarcodeGenerator_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_EAN13BarcodeGenerator_Example 5 | @end 6 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/EAN13BarcodeGenerator/EAN13BarcodeGenerator.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/EAN13BarcodeGenerator/EAN13BarcodeGenerator.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_EAN13BarcodeGenerator_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_EAN13BarcodeGenerator_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/EAN13BarcodeGenerator" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/EAN13BarcodeGenerator/EAN13BarcodeGenerator.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "EAN13BarcodeGenerator" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_EAN13BarcodeGenerator_Example { 2 | umbrella header "Pods-EAN13BarcodeGenerator_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Example/Pods-EAN13BarcodeGenerator_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/EAN13BarcodeGenerator" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/EAN13BarcodeGenerator/EAN13BarcodeGenerator.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "EAN13BarcodeGenerator" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_EAN13BarcodeGenerator_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_EAN13BarcodeGenerator_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 145 | wait 146 | fi 147 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_EAN13BarcodeGenerator_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_EAN13BarcodeGenerator_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/EAN13BarcodeGenerator" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/EAN13BarcodeGenerator/EAN13BarcodeGenerator.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_EAN13BarcodeGenerator_Tests { 2 | umbrella header "Pods-EAN13BarcodeGenerator_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Pods/Target Support Files/Pods-EAN13BarcodeGenerator_Tests/Pods-EAN13BarcodeGenerator_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/EAN13BarcodeGenerator" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/EAN13BarcodeGenerator/EAN13BarcodeGenerator.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // EAN13BarcodeGeneratorTests.m 3 | // EAN13BarcodeGeneratorTests 4 | // 5 | // Created by Alexey Strokin on 10/27/2018. 6 | // Copyright (c) 2018 Alexey Strokin. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /EAN13BarcodeGenerator/_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 Alexey Strokin 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # EAN13BarcodeGenerator 2 | 3 | [![CI Status](https://img.shields.io/travis/astrokin/EAN13BarcodeGenerator.svg?style=flat)](https://travis-ci.org/astrokin/EAN13BarcodeGenerator) 4 | [![Version](https://img.shields.io/cocoapods/v/EAN13BarcodeGenerator.svg?style=flat)](https://cocoapods.org/pods/EAN13BarcodeGenerator) 5 | [![License](https://img.shields.io/cocoapods/l/EAN13BarcodeGenerator.svg?style=flat)](https://cocoapods.org/pods/EAN13BarcodeGenerator) 6 | [![Platform](https://img.shields.io/cocoapods/p/EAN13BarcodeGenerator.svg?style=flat)](https://cocoapods.org/pods/EAN13BarcodeGenerator) 7 | 8 | Simple and performance solution to generate EAN13 barcode for iOS applications 9 | 10 | ![alt tag](Screen.png) 11 | 12 | ## Example 13 | 14 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 15 | 16 | ```Objective-C 17 | #import "BarCodeView.h" 18 | #import "BarCodeEAN13.h" 19 | 20 | BarCodeView *barCodeView = [[BarCodeView alloc] initWithFrame:kBarCodeFrame]; 21 | [self.view addSubview:barCodeView]; 22 | [barCodeView setBarCode:GetNewRandomEAN13BarCode()]; 23 | 24 | ``` 25 | 26 | ```Swift 27 | import EAN13BarcodeGenerator 28 | 29 | let barCodeView = BarCodeView(frame: CGRect(x: 103.0, y: 155.0, width: 113.0, height: 100.0)) 30 | view.addSubview(barCodeView) 31 | barCodeView.barCode = GetNewRandomEAN13BarCode() 32 | ``` 33 | 34 | If you need any additional functionality please contact me. 35 | 36 | If you have any questions don't hesitate to contact me. 37 | 38 | Have a nice day! =) 39 | 40 | 41 | ## Requirements 42 | 43 | iOS 8+ 44 | 45 | ## Installation 46 | 47 | EAN13BarcodeGenerator is available through [CocoaPods](https://cocoapods.org). To install 48 | it, simply add the following line to your Podfile: 49 | 50 | ```ruby 51 | pod 'EAN13BarcodeGenerator' 52 | ``` 53 | 54 | ## Author 55 | 56 | Alexey Strokin, alex.strok@gmail.com 57 | 58 | ## License 59 | 60 | EAN13BarcodeGenerator is available under the MIT license. See the LICENSE file for more info. 61 | -------------------------------------------------------------------------------- /Screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astrokin/EAN13BarcodeGenerator/5b8f0828b565810111d347ef7247367e423fdc11/Screen.png --------------------------------------------------------------------------------