Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
400 commits
Select commit Hold shift + click to select a range
fa5dd2b
Added pure mode testing
benjohnde Sep 23, 2018
9d7b2d0
Fixed datamatrix tests
benjohnde Sep 23, 2018
62312c8
Added Maxicode in README
benjohnde Sep 23, 2018
891e86f
Fixed maxicode implementation, closes #414
benjohnde Sep 23, 2018
2a41e28
Merge pull request #416 from TheLevelUp/maxicode-fix
benjohnde Sep 23, 2018
10bd7a0
Added alpha correction for pixels which should indicate white area
benjohnde Sep 23, 2018
e94d4d3
Alpha is inverse here
benjohnde Sep 23, 2018
ebc1155
Merge pull request #417 from TheLevelUp/transparentpngsfix
benjohnde Sep 23, 2018
03b5bf1
A little more coverage for PDF417 writer and multi QR code
benjohnde Sep 24, 2018
4a3588d
Fixed bug in ZXPDF417Writer in bitMatrixFromBitArray
benjohnde Sep 24, 2018
6dd30bb
New test for multiple barcode detection
benjohnde Sep 24, 2018
c74793c
Removed empty line
benjohnde Sep 24, 2018
7a7792e
Added more tests for Code93 and Code39 Writer
benjohnde Sep 24, 2018
d428300
Fixed bug in writer port
benjohnde Sep 24, 2018
9fcf872
Appended linebreak
benjohnde Sep 24, 2018
162fa62
Fixed Code93 writer impl
benjohnde Sep 24, 2018
c75ba4b
Merge pull request #418 from TheLevelUp/zxing-ports
benjohnde Sep 24, 2018
b2819c2
Updated README, feature parity with ZXing 3.3.0
benjohnde Sep 24, 2018
2cdf4a3
Updated lax fix for qr code
benjohnde Sep 24, 2018
f3ccf10
Ported correct checksum treatment for UPC-A/E EAN-8/13
benjohnde Sep 24, 2018
bf63fbc
Added UPCEWriter test case
benjohnde Sep 24, 2018
b9dde6f
UPC/EAN min quiet zone is 9 modules for encoding, corrected margin an…
benjohnde Sep 24, 2018
24e4b34
convert UPC-E to A before getting check digit
benjohnde Sep 24, 2018
f2132c0
fix UPC-E encoding with system 1
benjohnde Sep 24, 2018
2ee0dba
Correct size of array in ITFWriter
benjohnde Sep 24, 2018
ed16024
Fixed a bug regarding RGBLuminanceSource cropping
benjohnde Sep 24, 2018
20437de
Moved UPCEWriterTestCase to correct position in project view
benjohnde Sep 24, 2018
1b529dd
Added ZXITFWriterTestCase
benjohnde Sep 24, 2018
88a28e4
Minor performance improvements to ZXHybridBinarizer
benjohnde Sep 24, 2018
0d9cc07
Minor improvement
benjohnde Sep 24, 2018
24116f5
bad encodation switch in non-ASCII DataMatrix encodation
benjohnde Sep 24, 2018
6213701
Merge pull request #419 from TheLevelUp/zxing-ports
benjohnde Sep 24, 2018
e8910d5
asterisk isn't a valid character and should not be encoded as content…
benjohnde Sep 24, 2018
3d18eb1
Fix extended mode decoding code39
benjohnde Sep 24, 2018
223808a
Adjusted test cases for Code39 extended mode
benjohnde Sep 24, 2018
8d69f49
Added conversion to extended mode
benjohnde Sep 24, 2018
5fd8328
Fixed a bug regarding character readout and added test case
benjohnde Sep 24, 2018
1963282
Fixed Asteriks bug
benjohnde Sep 24, 2018
ff28fd5
Merge pull request #420 from TheLevelUp/zxing-ports
benjohnde Sep 24, 2018
8763c4d
Added more tests for Code128 Codeset A (was partially implemented tho…
benjohnde Sep 24, 2018
9646fae
Remove unused cross-check-diagonal logic
benjohnde Sep 24, 2018
66343aa
Merge branch 'master' into zxing-ports
benjohnde Sep 24, 2018
893ba04
Merge pull request #421 from TheLevelUp/zxing-ports
benjohnde Sep 24, 2018
e0d3ac0
Updated README -> Feature parity with ZXing 3.3.2
benjohnde Sep 24, 2018
a54f2a3
Add QRCode lenient diagonal check
benjohnde Sep 25, 2018
c7fc239
Fixes issue zxing/zxing#908
benjohnde Sep 25, 2018
d932016
Closes zxing/zxing#912
benjohnde Sep 25, 2018
3381478
Closes zxing/zxing#909
benjohnde Sep 25, 2018
757aaaa
increase heuristic to allow version 11-20 in non-try-harder mode
benjohnde Sep 25, 2018
3ea62ee
Merge pull request #424 from TheLevelUp/qrcode-diagonal-check
benjohnde Sep 25, 2018
9a63558
Merge pull request #423 from TheLevelUp/zxing-fixes
benjohnde Sep 25, 2018
6d79d3b
Revert "Merge pull request #390 from benjohnde/barcode-location"
benjohnde Sep 25, 2018
eb3c742
Added gs1 encoding
benjohnde Sep 25, 2018
269a844
Readded pureBarcode scanning for black box tests
benjohnde Sep 25, 2018
57e4ec9
Fixed generic multiple barcode reader test
benjohnde Sep 25, 2018
9a5c425
Merge pull request #425 from TheLevelUp/gs1-encoding
benjohnde Sep 25, 2018
55d2baa
height and width parameters ignored when barcode_format is DATA_MATRIX
benjohnde Sep 25, 2018
0a636ec
Bumped framework version within xcode project file
benjohnde Sep 25, 2018
6ebd0c3
Fixed wrong barcode creation for text with leading asterisk
benjohnde Sep 25, 2018
e0b54d3
copy result metadata (like EAN extension) even when return EAN-13 as …
benjohnde Sep 25, 2018
a74c184
Bumped framework version and adjusted README
benjohnde Sep 25, 2018
d824531
Removed QrCodeTest example
benjohnde Sep 25, 2018
2690eea
Removed BarcodeScannerOSX example
benjohnde Sep 25, 2018
9f809bc
Added support for Macro PDF417
benjohnde Sep 25, 2018
607a0ec
Added new pdf417 tests
benjohnde Sep 25, 2018
4efaa2f
Corrected tests
benjohnde Sep 25, 2018
f8c4d9d
Added test for PDF417 decoder and fixed some brainbug
benjohnde Sep 25, 2018
26ba0b7
Finished porting tests for PDF417 Macro
benjohnde Sep 25, 2018
896a5cf
Merge pull request #426 from TheLevelUp/zxing-ports
benjohnde Sep 25, 2018
b9e19c5
add to new GenericGFPoly tests
benjohnde Sep 25, 2018
e66a25a
remove spacing from head of polynomial string
benjohnde Sep 25, 2018
52d1292
Fix QR-code hanzi segment decoder
benjohnde Sep 25, 2018
b795c69
Check if characters are digits for EAN_13, EAN_8, ITF and UPC_EAN_EXT…
benjohnde Sep 25, 2018
ecaec4b
fix binary shift cost heuristics
benjohnde Sep 25, 2018
4a9f8de
Replaced unsafer realloc with malloc, memcpy and free, closes #238
benjohnde Sep 25, 2018
7feee97
Zero'd all other bits, could have used calloc instead.
benjohnde Sep 25, 2018
1ac4b0a
Updated README
benjohnde Sep 25, 2018
39ae845
Bumped framework version in xcode project file as well
benjohnde Sep 25, 2018
b4770fb
Removed unused set of videoGravity
benjohnde Sep 25, 2018
29e053f
Fixed #312.
benjohnde Sep 25, 2018
5e6cab1
bumped podspec version
benjohnde Sep 26, 2018
0f46296
Fixed pod spec lint warnings
benjohnde Sep 26, 2018
1777186
Temporary fix until CocoaPods 1.6.0 is stable
benjohnde Sep 26, 2018
a1ade1c
Merge pull request #428 from TheLevelUp/sessionpreset-fix
benjohnde Sep 26, 2018
a60b781
Merge pull request #429 from TheLevelUp/pods
benjohnde Sep 26, 2018
9dc2244
removed user-defined settings for cocoapods error
benjohnde Sep 26, 2018
addd615
Update README.md
benjohnde Sep 26, 2018
a73a02d
Fixed crash #431
Sep 26, 2018
ab2f8cb
Merge pull request #432 from neacao/master
benjohnde Sep 26, 2018
ae7fb16
Update README with new version
benjohnde Sep 26, 2018
ac2dd59
Update ZXingObjC.podspec
benjohnde Sep 26, 2018
80c057f
stubbed ZXDecimal as NSDecimalNumber replacement
benjohnde Sep 26, 2018
c18af6e
added basic decimal test case
benjohnde Sep 26, 2018
0b00b5e
Fixed #314 cpu high 100% and hot.
Sep 26, 2018
e411e54
Merge pull request #436 from freezy7/master
benjohnde Sep 26, 2018
706ec2e
finished multiply version
benjohnde Sep 26, 2018
5a6fe8b
copied multiply to add
benjohnde Sep 26, 2018
4b2a239
added simple addition
benjohnde Sep 26, 2018
cd34096
Played around with replacing NSDecimalNumber with ZXDecimal
benjohnde Sep 26, 2018
4a784f7
Removed small brainbug
benjohnde Sep 26, 2018
ff5f780
Added test case for #385
benjohnde Sep 26, 2018
37aadb0
Fixed another potential bug
benjohnde Sep 26, 2018
a851bb8
Removed bug in addition and newline in expected text
benjohnde Sep 26, 2018
f8503c1
Added test case for issue
benjohnde Sep 26, 2018
23e38e1
WIP
benjohnde Sep 26, 2018
a63056f
Fixed small character mistake in ZXDataMatrixEncoder
benjohnde Sep 27, 2018
b8d6984
Added test for both, issue #438 and #435
benjohnde Sep 27, 2018
1164003
Merge pull request #440 from TheLevelUp/datamatrix
benjohnde Sep 27, 2018
9fda885
Bumped framework version in xcode project to 3.4.2
benjohnde Sep 27, 2018
c5105e8
Merge branch 'master' of github.com:TheLevelUp/ZXingObjC
benjohnde Sep 27, 2018
ca5ebe0
Update README.md
benjohnde Sep 27, 2018
1a61e56
Bumped version for podspec
benjohnde Sep 27, 2018
2d503fa
Merge branch 'master' of github.com:TheLevelUp/ZXingObjC
benjohnde Sep 27, 2018
020a3a3
Upgraded example to current Xcode version
benjohnde Sep 27, 2018
d3df811
Fixes #378
benjohnde Sep 27, 2018
d8a0286
Merge branch 'master' into decimal-replacement
benjohnde Sep 27, 2018
771201b
Fixed string is smaller than zero.
benjohnde Sep 27, 2018
edb3f97
Use proper string reverse function
benjohnde Sep 27, 2018
75a3c1c
Removed spacing
benjohnde Sep 27, 2018
932d7dc
Moved PDF417BlackBox5TestCase to additional directory
benjohnde Sep 27, 2018
ba54dbb
Bumped framework version in xcode project
benjohnde Sep 27, 2018
0b88afd
Bumped version for podspec
benjohnde Sep 27, 2018
ecb34d3
Bumped version in README for 3.4.3
benjohnde Sep 27, 2018
156356b
Formatting
benjohnde Sep 27, 2018
cebe1cc
Rewrote intArrayFromString
benjohnde Sep 28, 2018
56753e4
Merge pull request #434 from TheLevelUp/decimal-replacement
benjohnde Sep 28, 2018
b796374
Bumped version in podspec to 3.5.0
benjohnde Sep 28, 2018
43434d5
Bumped version in project file to 3.5.0
benjohnde Sep 28, 2018
852cd73
Bumped version in README
benjohnde Sep 28, 2018
cc6f092
Remove redundancy functions & make autolayout for ViewController.xib
neacao Sep 29, 2018
278988a
Convert CGPoint under portrait to correct scan rect of raw image
neacao Sep 29, 2018
ca6fe2e
Add comment for the code
neacao Sep 29, 2018
57691ef
Remove luminance layer
neacao Sep 29, 2018
d2a6e50
Merge pull request #444 from neacao/master
benjohnde Sep 29, 2018
d6c4495
Initial barcode scanner swift
neacao Sep 30, 2018
52747d4
Correct rotation of scan view
neacao Sep 30, 2018
548101b
Remove log & format code
neacao Sep 30, 2018
26985a7
Merge pull request #445 from neacao/master
benjohnde Sep 30, 2018
4d882a0
Small improvements of ZXDecimal tests
benjohnde Sep 30, 2018
5397734
Added test to reflect #443
benjohnde Oct 1, 2018
bef600d
Initial ZXCGImageLuminanceSourceInfo & implement shades formula in Lu…
Oct 2, 2018
329f116
Implement setter of shades mode inside ZXCapture
Oct 2, 2018
1db4e28
Add indexing of zxing files
Oct 2, 2018
186d56f
Add logs to correct some code
Oct 2, 2018
49746ea
Add digital mode for luminance info
Oct 2, 2018
77d9c41
Add more luminance formula to convert grayscale image
Oct 3, 2018
01cfbc2
Add luminanceSourceInfo & shouldRemoveNewline to make test cases for …
Oct 3, 2018
4949e7e
Add resource for new luminance type
Oct 3, 2018
457c1d7
Initial test case for luminance source type
Oct 3, 2018
c481bf4
Rename property for more readable
Oct 3, 2018
b30933c
Add luma formula & fix potential bug
Oct 3, 2018
417515c
Add more test cases to test new formula
Oct 3, 2018
3b2f8cb
Update README.md
benjohnde Oct 3, 2018
8ba84d0
Refactor name & add heuristic strategy to detect bar code by using da…
Oct 3, 2018
382db0e
Merge branch 'master' of github.com:TheLevelUp/ZXingObjC
Oct 3, 2018
3a93b68
modified ZXDataMatrixBlackBox2TestCase
benjohnde Oct 4, 2018
b8f3db9
began with porting ZXDataMatrixDetector
benjohnde Oct 4, 2018
d9cfdda
Finished porting of ZXDataMatrixDetector
benjohnde Oct 4, 2018
e7669e1
Merge pull request #447 from TheLevelUp/rewrite-datamatrix-detector
benjohnde Oct 4, 2018
a035095
Impl'ed long lines drawing, toggleable via ZXEncodeHints
benjohnde Oct 5, 2018
2b7466b
Merge pull request #448 from TheLevelUp/long-lines
benjohnde Oct 5, 2018
3549ef6
Merge branch 'master' into luminance-shades-formula
benjohnde Oct 6, 2018
87c2af4
reindent ZXCGILuminanceSource.m
benjohnde Oct 6, 2018
3adc4fc
fixed small possible nil pointer exception
benjohnde Oct 6, 2018
914d7a7
Merge branch 'master' into luminance-shades-formula
benjohnde Oct 6, 2018
f95d971
reindent ZXCGILuminanceSourceInfo
benjohnde Oct 6, 2018
26798fb
reindent ZXCapture.m and remove whitespace
benjohnde Oct 6, 2018
652e775
reindent ZXAbstractBlackBoxTestCase
benjohnde Oct 6, 2018
89a542f
reindent QRCodeBlackBox TestCases and ZXCapture
benjohnde Oct 6, 2018
e40e554
added comment to heuristic toggle and some smaller code formatting ch…
benjohnde Oct 6, 2018
270ef2d
Merge pull request #446 from neacao/luminance-shades-formula
benjohnde Oct 6, 2018
c1a3dff
Bumped framework version to 3.6.0
benjohnde Oct 6, 2018
dd0c3bc
Bumped podspec version to 3.6.0
benjohnde Oct 6, 2018
fabca19
Merge commit from zxing
neacao Oct 7, 2018
72daf52
Resolved problem of scalling
neacao Oct 9, 2018
fbea979
Resolved problem #449
neacao Oct 9, 2018
01d38f1
Reindent ViewController
neacao Oct 9, 2018
882364a
Merge pull request #450 from neacao/master
benjohnde Oct 9, 2018
e36a9bb
Merge pull request #451 from TheLevelUp/3.6.0
benjohnde Oct 16, 2018
0832e42
Update README.md
benjohnde Oct 16, 2018
9ce64a4
Added a Null check for relative points in ByQuadrantReader
benjohnde Oct 23, 2018
645688c
Added ability to scan inverted barcodes automatically
Oct 31, 2018
5b8253d
Moved ZXCGImageLuminanceSourceInfo.h from project to public level, re…
benjohnde Nov 1, 2018
94472df
Bumped version to 3.6.1 (podspec)
benjohnde Nov 1, 2018
f185eb8
Bumped version to 3.6.1 (xcodeproj)
benjohnde Nov 1, 2018
b3be35a
Changed version in README
benjohnde Nov 1, 2018
e5326ed
Should handle illegal dimensions throw
benjohnde Nov 27, 2018
01e8fcc
Ported 'fix code93 extended character decoder'
benjohnde Nov 30, 2018
ee14967
Ported 'Optimize code width calculation in Code39Writer'
benjohnde Nov 30, 2018
74752e0
Merge pull request #457 from TheLevelUp/port-zxing-1101
benjohnde Nov 30, 2018
be670a7
Merge pull request #458 from TheLevelUp/port-zxing-1103
benjohnde Nov 30, 2018
31e4183
Bumped version to 3.6.2 (xcodeproj)
benjohnde Nov 30, 2018
ef19c19
Bumped version to 3.6.2 (podspec)
benjohnde Nov 30, 2018
47704a8
Bumped version to 3.6.2 (readme)
benjohnde Nov 30, 2018
f7fe106
Also handle negative values cf #272.
benjohnde Dec 4, 2018
fe60674
Bumped version to 3.6.3 (xcodeproj)
benjohnde Dec 4, 2018
7c717c6
Bumped version to 3.6.3 (readme)
benjohnde Dec 4, 2018
3147105
Bumped version to 3.6.3 (podspec)
benjohnde Dec 4, 2018
0b0e98c
Ported Support Full-ASCII in Code93Writer
benjohnde Dec 4, 2018
b4059d6
Ported the test case as well
benjohnde Dec 4, 2018
9782148
Merge pull request #459 from TheLevelUp/port-zxing-1104
benjohnde Dec 4, 2018
cb96a62
Ported Continue in codeset A when character encoded single number or …
benjohnde Dec 4, 2018
f813fac
Ported test case for code128 writer continue code a
benjohnde Dec 4, 2018
27e84dd
Merge pull request #460 from TheLevelUp/port-zxing-1108
benjohnde Dec 4, 2018
95621dd
Fix UPCE checksum calculation
Dec 14, 2018
7b9b078
Merge pull request #461 from marcelofabri/fix-upce-checksum-check
benjohnde Dec 17, 2018
1045d01
Bumped version to 3.6.4 (podspec)
benjohnde Dec 18, 2018
346d6f6
Bumped version to 3.6.4 (xcodeproj)
benjohnde Dec 18, 2018
cac61d5
Bumped version to 3.6.4 (readme)
benjohnde Dec 18, 2018
f461fa0
Update README and podspec
benjohnde Feb 21, 2019
9782b34
Import Foundation
slangy Mar 5, 2019
ca04898
Merge pull request #471 from slangon/foundation-import
benjohnde Mar 5, 2019
6324769
fix swift crash in ZXMultiFormatWriter.m
marioradonic Mar 20, 2019
8a4a6ad
Merge pull request #472 from marioradonic/swift-crash-fix
benjohnde Mar 20, 2019
7edb825
Add delegate to ZXCapture
mrako May 1, 2019
c4a0e81
Start scanning once camera is ready
mrako May 1, 2019
11b199d
Merge pull request #473 from mrako/master
benjohnde May 18, 2019
b11e6cf
Add Swift Package Manager integration
4brunu Oct 15, 2019
a2dbc8b
Merge pull request #489 from 4brunu/feature/swift-package-manager-int…
benjohnde Oct 15, 2019
6fe9370
Fix compilation for Mac Catalyst
chrisballinger Oct 26, 2019
fce3786
Merge pull request #491 from ChatSecure/fix-catalyst
benjohnde Oct 27, 2019
5b8e721
Merge branch 'master' into feature/3.2.2-invert
matteinn Aug 12, 2020
b612c6d
Merge pull request #499 from ios-vidiemme-bucket/feature/3.2.2-invert
benjohnde Sep 21, 2020
5267eb7
Fix wrong calculation of array by using wrong data type (char instead…
benjohnde Sep 21, 2020
8173b84
Fix compilation
marcelofabri Sep 22, 2020
e75eeff
Merge pull request #507 from marcelofabri/marcelo/fix-compilation
benjohnde Sep 23, 2020
88122ad
use constant instead of sizeof(array)
dehnhard Jan 18, 2021
813d353
Fix 05 and 06 macro in ios port
dehnhard Mar 29, 2021
cd5fc1c
Update ZXVINResultParser.m
chetcutisilvan Apr 28, 2021
4f72f1e
Update project.pbxproj
chetcutisilvan Apr 28, 2021
2b9861c
Updating objc-c sample app
May 21, 2021
486c7d4
Fixing applyRectOfInterest method to work with different screen sizes
May 21, 2021
7ee63d7
Marked as allowed to be used in extensions (allow extension safe api …
amichnia Jul 28, 2021
baa1186
Fix Xcode 14.3 which supports only iOS 11.0+
kenstir Apr 8, 2023
57f0bae
Disable bitcode to fix Xcode 14.3 compilation
kenstir Apr 9, 2023
2712dda
Replace deprecated function
kenstir Apr 9, 2023
38563a0
Fix compilation error
kenstir Apr 9, 2023
11170d2
Replace deprecated function AVCaptureDevice devicesWithMediaType:
kenstir Apr 9, 2023
a2aa6bc
Fix macos build
kenstir Aug 1, 2023
dd38f21
Update minimum ios and macos versions
kenstir Sep 12, 2023
7f05df1
Merge pull request #575 from kenstir/kenstir/fix-xcode-14.3
benjohnde Oct 5, 2023
fea9e82
chore: adjust version bump in podspec and README
benjohnde Oct 5, 2023
738027c
Merge pull request #525 from chetcutisilvan/patch-1
benjohnde Oct 6, 2023
ee60348
Merge pull request #528 from GirAppe/master
benjohnde Oct 6, 2023
d8153a3
Merge pull request #524 from dehnhard/master
benjohnde Oct 6, 2023
76c0f82
Merge pull request #517 from dehnhard/sizeof-fix
benjohnde Oct 6, 2023
ba97fab
doc: correct README
benjohnde Oct 6, 2023
aa99fcf
Merge pull request #526 from chetcutisilvan/patch-2
benjohnde Oct 6, 2023
6a6aeda
Merge pull request #527 from sergiofraile/sample_app_fixes
benjohnde Oct 6, 2023
510db5f
chore: adjust README for release
benjohnde Oct 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
74 changes: 74 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "ZXingObjC",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "ZXingObjC",
targets: ["ZXingObjC"]
),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "ZXingObjC",
dependencies: [],
path: "ZXingObjC",
publicHeadersPath: "include",
cxxSettings: [
.headerSearchPath("aztec"),
.headerSearchPath("aztec/decoder"),
.headerSearchPath("aztec/detector"),
.headerSearchPath("aztec/encoder"),

.headerSearchPath("client"),
.headerSearchPath("client/result"),

.headerSearchPath("common"),
.headerSearchPath("common/detector"),
.headerSearchPath("common/reedsolomon"),

.headerSearchPath("core"),

.headerSearchPath("datamatrix"),
.headerSearchPath("datamatrix/decoder"),
.headerSearchPath("datamatrix/detector"),
.headerSearchPath("datamatrix/encoder"),

.headerSearchPath("maxicode"),
.headerSearchPath("maxicode/decoder"),

.headerSearchPath("multi"),

.headerSearchPath("oned"),
.headerSearchPath("oned/rss"),
.headerSearchPath("oned/rss/expanded"),
.headerSearchPath("oned/rss/expanded/decoders"),

.headerSearchPath("pdf417"),
.headerSearchPath("pdf417/decoder"),
.headerSearchPath("pdf417/decoder/ec"),
.headerSearchPath("pdf417/detector"),
.headerSearchPath("pdf417/encoder"),

.headerSearchPath("qrcode"),
.headerSearchPath("qrcode/decoder"),
.headerSearchPath("qrcode/detector"),
.headerSearchPath("qrcode/encoder"),
.headerSearchPath("qrcode/multi"),
.headerSearchPath("qrcode/multi/detector"),
],
linkerSettings: [
.unsafeFlags(["-fprofile-instr-generate"])
]
)
]
)
41 changes: 30 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ZXingObjC
=========
# zxingify-objc

ZXingObjC is a full Objective-C port of [ZXing](https://github.com/zxing/zxing) ("Zebra Crossing"), a Java barcode image processing library. It is designed to be used on both iOS devices and in Mac applications.

Expand All @@ -15,14 +14,15 @@ The following barcodes are currently supported for both encoding and decoding:
* RSS-14 (all variants)
* QR Code
* Data Matrix
* Maxicode
* Aztec ('beta' quality)
* PDF 417 ('alpha' quality)
* PDF 417 ('beta' quality)

ZXingObjC currently has feature parity with ZXing version 3.0.
ZXingObjC currently has feature parity with ZXing version 3.3.3.

## Requirements

ZXingObjC requires Xcode 5, targeting either iOS 6.0 and above, or Mac OS X 10.8 Mountain Lion and above.
ZXingObjC requires Xcode 13.0 and above, targeting either iOS 11.0 and above, or Mac OS X 10.15 Catalina and above.

## Usage

Expand All @@ -37,9 +37,11 @@ ZXBitMatrix* result = [writer encode:@"A string to encode"
height:500
error:&error];
if (result) {
CGImageRef image = [[ZXImage imageWithMatrix:result] cgimage];
CGImageRef image = CGImageRetain([[ZXImage imageWithMatrix:result] cgimage]);

// This CGImageRef image can be placed in a UIImage, NSImage, or written to a file.

CGImageRelease(image);
} else {
NSString *errorMessage = [error localizedDescription];
}
Expand Down Expand Up @@ -78,20 +80,37 @@ if (result) {

## Installation

The recommended way to install ZXingObjC is with [CocoaPods](http://cocoapods.org), a dependency mananger for Objective-C projects. After installing CocoaPods just add ZXingObjC to your Podfile:
We highly recommend Carthage as module manager.

#### Carthage

ZXingObjC can be installed using [Carthage](https://github.com/Carthage/Carthage). After installing Carthage just add ZXingObjC to your Cartfile:

```ogdl
github "zxingify/zxingify-objc" ~> 3.6.9
```

#### CocoaPods

[CocoaPods](http://cocoapods.org) is a dependency manager for Swift and Objective-C Cocoa projects. After installing CocoaPods add ZXingObjC to your Podfile:

```ruby
platform :ios, '7.0'
pod 'ZXingObjC', '~> 3.0'
platform :ios, '11.0'
pod 'ZXingObjC', '~> 3.6.9'
```

## Examples

ZXingObjC includes several example applications found in "examples" folder:

* BarcodeScanner - An iOS application that captures video from the camera, scans for barcodes and displays results on screen.
* BarcodeScannerOSX - An OS X application that captures video from the camera, scans for barcodes and displays results on screen.
* QrCodeTest - A basic QR code generator that accepts input, encodes it as a QR code, and displays it on screen.
* BarcodeScannerSwift - An iOS application that captures video from the camera, scans for barcodes and displays results on screen, completely rewritten in Swift.

## Kudos

- [cwalcott](https://github.com/cwalcott) initial creator of this project
- [neacao](https://github.com/neacao) for his unparalleled support lately
- [claybridges](https://github.com/claybridges) for all the help regarding the project move

## License

Expand Down
14 changes: 8 additions & 6 deletions ZXingObjC.podspec
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Pod::Spec.new do |s|
s.name = 'ZXingObjC'
s.version = '3.1.0'
s.version = '3.6.9'
s.summary = 'An Objective-C Port of the ZXing barcode framework.'
s.homepage = 'https://github.com/TheLevelUp/ZXingObjC'
s.author = 'ZXingObjC team'
s.homepage = 'https://github.com/zxingify/zxingify-objc'
s.author = 'zxingify'
s.license = { :type => 'Apache License 2.0', :file => 'COPYING' }
s.source = { :git => 'https://github.com/TheLevelUp/ZXingObjC.git', :tag => "#{s.version}" }
s.source = { :git => 'https://github.com/zxingify/zxingify-objc.git', :tag => "#{s.version}" }
s.requires_arc = true
s.xcconfig = { "OTHER_LDFLAGS" => "-ObjC" }

s.ios.deployment_target = '6.0'
s.osx.deployment_target = '10.8'
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.15'

s.ios.frameworks = 'AVFoundation', 'CoreGraphics', 'CoreMedia', 'CoreVideo', 'ImageIO', 'QuartzCore'
s.osx.frameworks = 'AVFoundation', 'CoreMedia', 'QuartzCore'
Expand All @@ -19,10 +19,12 @@ Pod::Spec.new do |s|

s.subspec 'All' do |ss|
ss.source_files = 'ZXingObjC/**/*.{h,m}'
ss.exclude_files = 'ZXingObjC/include/**/*.h'
end

s.subspec 'Core' do |ss|
ss.source_files = 'ZXingObjC/*.{h,m}', 'ZXingObjC/client/*.{h,m}', 'ZXingObjC/common/**/*.{h,m}', 'ZXingObjC/core/**/*.{h,m}', 'ZXingObjC/multi/**/*.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS" }
end

s.subspec 'Aztec' do |ss|
Expand Down
Loading