Skip to content

Commit

Permalink
Merge pull request #489 from 4brunu/feature/swift-package-manager-int…
Browse files Browse the repository at this point in the history
…egration

Add Swift Package Manager integration
  • Loading branch information
benjohnde authored Oct 15, 2019
2 parents 11b199d + b11e6cf commit a2dbc8b
Show file tree
Hide file tree
Showing 227 changed files with 351 additions and 0 deletions.
71 changes: 71 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// 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"),
]
)
]
)
2 changes: 2 additions & 0 deletions ZXingObjC/aztec/detector/ZXAztecDetector.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@interface ZXAztecPoint : NSObject

@property (nonatomic, assign, readonly) int x;
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/aztec/encoder/ZXAztecCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXBitMatrix;

/**
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/aztec/encoder/ZXAztecHighLevelEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

extern NSArray *ZX_AZTEC_MODE_NAMES;

extern const int ZX_AZTEC_MODE_UPPER;
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/aztec/encoder/ZXAztecToken.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXBitArray, ZXByteArray;

@interface ZXAztecToken : NSObject
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/client/ZXCGImageLuminanceSourceInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

typedef enum {
ZXCGImageLuminanceSourceNormal = 0,
ZXCGImageLuminanceSourceLuma,
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/client/result/ZXResultParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXParsedResult, ZXResult;

/**
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/ZXBitArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXByteArray, ZXIntArray;

/**
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/ZXBitMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXBitArray, ZXIntArray;

/**
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/ZXBitSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXByteArray;

/**
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/ZXBoolArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@interface ZXBoolArray : NSObject

@property (nonatomic, assign, readonly) BOOL *array;
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/ZXByteArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@interface ZXByteArray : NSObject

@property (nonatomic, assign, readonly) int8_t *array;
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/ZXCharacterSetECI.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

/**
* Encapsulates a Character Set ECI, according to "Extended Channel Interpretations" 5.3.1.1
* of ISO 18004.
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/ZXDecimal.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

/**
* Drop-in replacement for `NSDecimalNumber`.
* @see ZXPDF417DecodedBitStreamParser.m#L696
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/ZXIntArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@interface ZXIntArray : NSObject <NSCopying>

@property (nonatomic, assign, readonly) int32_t *array;
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/ZXPerspectiveTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

/**
* This class implements a perspective transform in two dimensions. Given four source and four
* destination points, it will compute the transformation implied between them. The code is based
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/detector/ZXMathUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@interface ZXMathUtils : NSObject

/**
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/common/reedsolomon/ZXGenericGF.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXGenericGFPoly;

/**
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/core/ZXBinaryBitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXBinarizer, ZXBitArray, ZXBitMatrix;

/**
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/core/ZXByteMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@interface ZXByteMatrix : NSObject

@property (nonatomic, assign, readonly) int8_t **array;
Expand Down
1 change: 1 addition & 0 deletions ZXingObjC/core/ZXDecodeHints.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>
#import "ZXBarcodeFormat.h"

@protocol ZXResultPointCallback;
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/core/ZXDimension.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

/**
* Simply encapsulates a width and height.
*/
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/core/ZXEncodeHints.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

/**
* Enumeration for DataMatrix symbol shape hint. It can be used to force square or rectangular
* symbols.
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/core/ZXErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

#define ZXErrorDomain @"ZXErrorDomain"

enum {
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/core/ZXResultPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

/**
* Encapsulates a point of interest in an image containing a barcode. Typically, this
* would be the location of a finder pattern or the corner of the barcode, for example.
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/datamatrix/decoder/ZXDataMatrixVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

/**
* Encapsulates a set of error-correction blocks in one symbol version. Most versions will
* use blocks of differing sizes within one version, so, this encapsulates the parameters for
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/datamatrix/detector/ZXDataMatrixDetector.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXBitMatrix, ZXDetectorResult, ZXWhiteRectangleDetector;

/**
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/datamatrix/encoder/ZXDataMatrixDefaultPlacement.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

/**
* Symbol Character Placement Program. Adapted from Annex M.1 in ISO/IEC 16022:2000(E).
*/
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/datamatrix/encoder/ZXDataMatrixEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXDataMatrixEncoderContext;

@protocol ZXDataMatrixEncoder <NSObject>
Expand Down
2 changes: 2 additions & 0 deletions ZXingObjC/datamatrix/encoder/ZXDataMatrixErrorCorrection.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#import <Foundation/Foundation.h>

@class ZXDataMatrixSymbolInfo;

/**
Expand Down
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAbstractDoCoMoResultParser.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAbstractExpandedDecoder.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAbstractRSSReader.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAddressBookAUResultParser.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAddressBookParsedResult.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAztecCode.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAztecDecoder.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAztecDetector.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAztecDetectorResult.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAztecEncoder.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAztecHighLevelEncoder.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAztecReader.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXAztecWriter.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXBarcodeFormat.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXBinarizer.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXBinaryBitmap.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXBitArray.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXBitMatrix.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXBitSource.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXBizcardResultParser.h
1 change: 1 addition & 0 deletions ZXingObjC/include/ZXingObjC/ZXBookmarkDoCoMoResultParser.h
Loading

0 comments on commit a2dbc8b

Please sign in to comment.