Skip to content

Commit a2dbc8b

Browse files
authored
Merge pull request #489 from 4brunu/feature/swift-package-manager-integration
Add Swift Package Manager integration
2 parents 11b199d + b11e6cf commit a2dbc8b

File tree

227 files changed

+351
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+351
-0
lines changed

Package.swift

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// swift-tools-version:5.1
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "ZXingObjC",
8+
products: [
9+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
10+
.library(
11+
name: "ZXingObjC",
12+
targets: ["ZXingObjC"]
13+
),
14+
],
15+
dependencies: [
16+
// Dependencies declare other packages that this package depends on.
17+
],
18+
targets: [
19+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
21+
.target(
22+
name: "ZXingObjC",
23+
dependencies: [],
24+
path: "ZXingObjC",
25+
publicHeadersPath: "include",
26+
cxxSettings: [
27+
.headerSearchPath("aztec"),
28+
.headerSearchPath("aztec/decoder"),
29+
.headerSearchPath("aztec/detector"),
30+
.headerSearchPath("aztec/encoder"),
31+
32+
.headerSearchPath("client"),
33+
.headerSearchPath("client/result"),
34+
35+
.headerSearchPath("common"),
36+
.headerSearchPath("common/detector"),
37+
.headerSearchPath("common/reedsolomon"),
38+
39+
.headerSearchPath("core"),
40+
41+
.headerSearchPath("datamatrix"),
42+
.headerSearchPath("datamatrix/decoder"),
43+
.headerSearchPath("datamatrix/detector"),
44+
.headerSearchPath("datamatrix/encoder"),
45+
46+
.headerSearchPath("maxicode"),
47+
.headerSearchPath("maxicode/decoder"),
48+
49+
.headerSearchPath("multi"),
50+
51+
.headerSearchPath("oned"),
52+
.headerSearchPath("oned/rss"),
53+
.headerSearchPath("oned/rss/expanded"),
54+
.headerSearchPath("oned/rss/expanded/decoders"),
55+
56+
.headerSearchPath("pdf417"),
57+
.headerSearchPath("pdf417/decoder"),
58+
.headerSearchPath("pdf417/decoder/ec"),
59+
.headerSearchPath("pdf417/detector"),
60+
.headerSearchPath("pdf417/encoder"),
61+
62+
.headerSearchPath("qrcode"),
63+
.headerSearchPath("qrcode/decoder"),
64+
.headerSearchPath("qrcode/detector"),
65+
.headerSearchPath("qrcode/encoder"),
66+
.headerSearchPath("qrcode/multi"),
67+
.headerSearchPath("qrcode/multi/detector"),
68+
]
69+
)
70+
]
71+
)

ZXingObjC/aztec/detector/ZXAztecDetector.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@interface ZXAztecPoint : NSObject
1820

1921
@property (nonatomic, assign, readonly) int x;

ZXingObjC/aztec/encoder/ZXAztecCode.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXBitMatrix;
1820

1921
/**

ZXingObjC/aztec/encoder/ZXAztecHighLevelEncoder.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
extern NSArray *ZX_AZTEC_MODE_NAMES;
1820

1921
extern const int ZX_AZTEC_MODE_UPPER;

ZXingObjC/aztec/encoder/ZXAztecToken.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXBitArray, ZXByteArray;
1820

1921
@interface ZXAztecToken : NSObject

ZXingObjC/client/ZXCGImageLuminanceSourceInfo.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
typedef enum {
1820
ZXCGImageLuminanceSourceNormal = 0,
1921
ZXCGImageLuminanceSourceLuma,

ZXingObjC/client/result/ZXResultParser.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXParsedResult, ZXResult;
1820

1921
/**

ZXingObjC/common/ZXBitArray.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXByteArray, ZXIntArray;
1820

1921
/**

ZXingObjC/common/ZXBitMatrix.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXBitArray, ZXIntArray;
1820

1921
/**

ZXingObjC/common/ZXBitSource.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXByteArray;
1820

1921
/**

ZXingObjC/common/ZXBoolArray.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@interface ZXBoolArray : NSObject
1820

1921
@property (nonatomic, assign, readonly) BOOL *array;

ZXingObjC/common/ZXByteArray.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@interface ZXByteArray : NSObject
1820

1921
@property (nonatomic, assign, readonly) int8_t *array;

ZXingObjC/common/ZXCharacterSetECI.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
/**
1820
* Encapsulates a Character Set ECI, according to "Extended Channel Interpretations" 5.3.1.1
1921
* of ISO 18004.

ZXingObjC/common/ZXDecimal.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
/**
1820
* Drop-in replacement for `NSDecimalNumber`.
1921
* @see ZXPDF417DecodedBitStreamParser.m#L696

ZXingObjC/common/ZXIntArray.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@interface ZXIntArray : NSObject <NSCopying>
1820

1921
@property (nonatomic, assign, readonly) int32_t *array;

ZXingObjC/common/ZXPerspectiveTransform.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
/**
1820
* This class implements a perspective transform in two dimensions. Given four source and four
1921
* destination points, it will compute the transformation implied between them. The code is based

ZXingObjC/common/detector/ZXMathUtils.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@interface ZXMathUtils : NSObject
1820

1921
/**

ZXingObjC/common/reedsolomon/ZXGenericGF.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXGenericGFPoly;
1820

1921
/**

ZXingObjC/core/ZXBinaryBitmap.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXBinarizer, ZXBitArray, ZXBitMatrix;
1820

1921
/**

ZXingObjC/core/ZXByteMatrix.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@interface ZXByteMatrix : NSObject
1820

1921
@property (nonatomic, assign, readonly) int8_t **array;

ZXingObjC/core/ZXDecodeHints.h

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
1718
#import "ZXBarcodeFormat.h"
1819

1920
@protocol ZXResultPointCallback;

ZXingObjC/core/ZXDimension.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
/**
1820
* Simply encapsulates a width and height.
1921
*/

ZXingObjC/core/ZXEncodeHints.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
/**
1820
* Enumeration for DataMatrix symbol shape hint. It can be used to force square or rectangular
1921
* symbols.

ZXingObjC/core/ZXErrors.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
#define ZXErrorDomain @"ZXErrorDomain"
1820

1921
enum {

ZXingObjC/core/ZXResultPoint.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
/**
1820
* Encapsulates a point of interest in an image containing a barcode. Typically, this
1921
* would be the location of a finder pattern or the corner of the barcode, for example.

ZXingObjC/datamatrix/decoder/ZXDataMatrixVersion.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
/**
1820
* Encapsulates a set of error-correction blocks in one symbol version. Most versions will
1921
* use blocks of differing sizes within one version, so, this encapsulates the parameters for

ZXingObjC/datamatrix/detector/ZXDataMatrixDetector.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXBitMatrix, ZXDetectorResult, ZXWhiteRectangleDetector;
1820

1921
/**

ZXingObjC/datamatrix/encoder/ZXDataMatrixDefaultPlacement.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
/**
1820
* Symbol Character Placement Program. Adapted from Annex M.1 in ISO/IEC 16022:2000(E).
1921
*/

ZXingObjC/datamatrix/encoder/ZXDataMatrixEncoder.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXDataMatrixEncoderContext;
1820

1921
@protocol ZXDataMatrixEncoder <NSObject>

ZXingObjC/datamatrix/encoder/ZXDataMatrixErrorCorrection.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#import <Foundation/Foundation.h>
18+
1719
@class ZXDataMatrixSymbolInfo;
1820

1921
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../client/result/ZXAbstractDoCoMoResultParser.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../oned/rss/expanded/decoders/ZXAbstractExpandedDecoder.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../oned/rss/ZXAbstractRSSReader.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../client/result/ZXAddressBookAUResultParser.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../client/result/ZXAddressBookDoCoMoResultParser.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../client/result/ZXAddressBookParsedResult.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../aztec/encoder/ZXAztecCode.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../aztec/decoder/ZXAztecDecoder.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../aztec/detector/ZXAztecDetector.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../aztec/ZXAztecDetectorResult.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../aztec/encoder/ZXAztecEncoder.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../aztec/encoder/ZXAztecHighLevelEncoder.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../aztec/ZXAztecReader.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../aztec/ZXAztecWriter.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../core/ZXBarcodeFormat.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../core/ZXBinarizer.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../core/ZXBinaryBitmap.h
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../common/ZXBitArray.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../common/ZXBitMatrix.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../common/ZXBitSource.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../client/result/ZXBizcardResultParser.h
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../client/result/ZXBookmarkDoCoMoResultParser.h

0 commit comments

Comments
 (0)