Skip to content
This repository was archived by the owner on Oct 25, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
14 changes: 14 additions & 0 deletions BRLMPrinterKit.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Pod::Spec.new do |s|
s.name = "BRLMPrinterKit"
s.version = "4.3.1"
s.summary = "Brother Print SDK for iPhone/iPad"
s.description = "For sample projects and more detailed product page, check out: http://www.brother.com/product/dev/mobile/ios/"
s.homepage = "http://www.brother.com/product/dev/mobile/ios/"
s.license = { :type => "CUSTOM" }
s.author = "Brother Industries, Ltd."
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/lipka/BRLMPrinterKit.git", :tag => s.version }
s.ios.vendored_frameworks = 'Frameworks/BRLMPrinterKit.xcframework'
s.frameworks = "SystemConfiguration", "UIKit", "CoreBluetooth", "ExternalAccessory", "BRLMPrinterKit"
s.library = "c++", "z"
end
14 changes: 7 additions & 7 deletions BRPtouchPrinterKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Pod::Spec.new do |s|
# summary should be tweet-length, and the description more in depth.
#

s.name = "BRPtouchPrinterKit"
s.version = "3.1.9"
s.name = "BRLMPrinterKit"
s.version = "4.3.1"
s.summary = "Brother Print SDK for iPhone/iPad."

s.description = <<-DESC
Expand Down Expand Up @@ -60,7 +60,7 @@ Pod::Spec.new do |s|
#

# s.platform = :ios
s.platform = :ios, "6.0"
s.platform = :ios, "10.0"

# When using multiple platforms
# s.ios.deployment_target = "5.0"
Expand All @@ -73,7 +73,7 @@ Pod::Spec.new do |s|
# Supports git, hg, bzr, svn and HTTP.
#

s.source = { :git => "https://github.com/envoy/BRPtouchPrinterKit.git", :tag => "3.1.9" }
s.source = { :git => "https://github.com/envoy/BRPtouchPrinterKit.git", :tag => s.version }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand All @@ -84,7 +84,7 @@ Pod::Spec.new do |s|
# Not including the public_header_files will make all headers public.
#

s.ios.vendored_frameworks = 'Frameworks/BRPtouchPrinterKit.framework'
s.ios.vendored_frameworks = 'Frameworks/BRLMPrinterKit.xcframework'

# s.public_header_files = "Classes/**/*.h"

Expand All @@ -110,8 +110,8 @@ Pod::Spec.new do |s|
#

# s.framework = "SomeFramework"
s.frameworks = "SystemConfiguration", "CFNetwork", "UIKit", "Foundation", "CoreGraphics", "ExternalAccessory", "BRPtouchPrinterKit"

s.frameworks = "SystemConfiguration", "UIKit", "CoreBluetooth", "ExternalAccessory", "BRLMPrinterKit"
s.library = "c++", "z"
# s.library = "iconv"
# s.libraries = "iconv", "xml2"

Expand Down
42 changes: 42 additions & 0 deletions Frameworks/BRLMPrinterKit.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>BRLMPrinterKit.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>BRLMPrinterKit.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
//
// BMSPrinterKit.h
// BMSPrinterKit
//
// Created by BMS on 9/6/12.
// Copyright (c) 2012 Brother Mobile Solutions. All rights reserved.
//


#ifndef REMOVE_BRPTOUCH_SDK
#import "BRPtouchPrinterKit.h"
#endif

#import "BMSPrinterDriver.h"

#import "PrintSettings.h"
#import "GenericPocketJetPrintSettings.h"
#import "PJ673PrintSettings.h"
#import "PJ763MFiPrintSettings.h"
#import "PJ773PrintSettings.h"
#import "GenericMobileLabelModelPrintSettings.h"
#import "RJ4030AiPrintSettings.h"
#import "RJ4040PrintSettings.h"
#import "RJ4230BPrintSettings.h"
#import "RJ4250WBPrintSettings.h"
#import "RJ3050PrintSettings.h"
#import "RJ3050AiPrintSettings.h"
#import "RJ3150PrintSettings.h"
#import "RJ3150AiPrintSettings.h"
#import "TD2120NPrintSettings.h"
#import "TD2130NPrintSettings.h"
#import "RJ2050PrintSettings.h"
#import "RJ2140PrintSettings.h"
#import "RJ2150PrintSettings.h"
#import "TD4550DNWBPrintSettings.h"

#import "PrintSettingsViewController.h"
#import "GenericPocketJetPrintSettingsViewController.h"
#import "PJ673PrintSettingsViewController.h"
#import "PJ763MFiPrintSettingsViewController.h"
#import "PJ773PrintSettingsViewController.h"
#import "GenericMobileLabelModelPrintSettingsViewController.h"
#import "RJ4030AiPrintSettingsViewController.h"
#import "RJ4040PrintSettingsViewController.h"
#import "RJ4230BPrintSettingsViewController.h"
#import "RJ4250WBPrintSettingsViewController.h"
#import "RJ3050PrintSettingsViewController.h"
#import "RJ3050AiPrintSettingsViewController.h"
#import "RJ3150PrintSettingsViewController.h"
#import "RJ3150AiPrintSettingsViewController.h"
#import "TD2120NPrintSettingsViewController.h"
#import "TD2130NPrintSettingsViewController.h"
#import "RJ2050PrintSettingsViewController.h"
#import "RJ2140PrintSettingsViewController.h"
#import "RJ2150PrintSettingsViewController.h"
#import "TD4550DNWBPrintSettingsViewController.h"

@interface BMSPrinterKit : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
//
// BRCustomPaperInfoCommand.h
// BRPtouchPrinterKit
//
// Copyright (c) 2018 Brother Industries, Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BRCustomPaperInfoCommand : NSObject

typedef enum {
Inch = 1,
Mm = 2
}UnitOfLengthParameter;

typedef enum {
Roll = 1,
DieCut = 2,
MarkRoll = 3
}PaperKindParameter;

typedef enum {
InternalError = -1,
NoErrorParameters = 0,
// Basic
TapeWidth = 1,
TapeLength = 2,
RightMargin = 3,
LeftMargin = 4,
TopMargin = 5,
BottomMargin = 6,
LabelPitch = 7,
MarkPosition = 8,
MarkHeight = 9,
DisplayName = 10,
}ErrorParameterName;

typedef enum {
NoError = 0,
ExceptionError = 1,
OverTheUpperLimit = 2,
BelowTheLowerLimit = 3,
FailToCreateCommand = 4,
FailToReadPTDFile = 5,
}ErrorParameterDetail;


// Basic Settings (readonly)
@property(nonatomic, strong, readonly) NSString *printerName_;
@property(readonly) float tapeWidth_;
@property(readonly) float tapeLength_;
@property(readonly) float rightMargin_;
@property(readonly) float leftMagin_;
@property(readonly) float topMargin_;
@property(readonly) float bottomMargin_;
@property(readonly) float labelPitch_;
@property(readonly) float markPosition_;
@property(readonly) float markHeight_;
@property(readonly) UnitOfLengthParameter unitOfLengthParameter_;
@property(readonly) PaperKindParameter paperKindParameter_;

// Advance Settings
@property(nonatomic, strong) NSString *displayName;
@property(readwrite) int energyRank;
@property(readwrite) float dieStartRevPlus;
@property(readwrite) float dieStartFwdPlus;
@property(readwrite) float afterFeedPlus;
@property(readwrite) float mediaSensorSensitivity;
@property(readwrite) float mediaSensorIntensity;

- (id) initWithPrinterNameForRoll: (NSString *) printerName
tapeWidth: (float) tapeWidth
rightMargin: (float) rightMargin
leftMagin: (float) leftMagin
topMargin: (float) topMargin
unitOfLength: (UnitOfLengthParameter) unitOfLengthParameter;

- (id) initWithPrinterNameForDieCut: (NSString *) printerName
tapeWidth: (float) tapeWidth
tapeLength: (float) tapeLength
rightMargin: (float) rightMargin
leftMagin: (float) leftMagin
topMargin: (float) topMargin
bottomMargin: (float) bottomMargin
labelPitch: (float) labelPitch
unitOfLength: (UnitOfLengthParameter) unitOfLengthParameter;

- (id) initWithPrinterNameForMarkRoll: (NSString *) printerName
tapeWidth: (float) tapeWidth
tapeLength: (float) tapeLength
rightMargin: (float) rightMargin
leftMagin: (float) leftMagin
topMargin: (float) topMargin
bottomMargin: (float) bottomMargin
markPosition: (float) markPosition
markHeight: (float) markHeight
unitOfLength: (UnitOfLengthParameter) unitOfLengthParameter;

- (NSData *) getCustomPaperInfoCommandData: (NSMutableArray **)errorArr;

- (NSString *) valueOfErrorParameter:(ErrorParameterName)errorParameterName;
- (NSString *) valueOfErrorParameterDetail:(ErrorParameterDetail)errorParameterDetail;

@end


Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// BRLMPrinterAddress.h
// BRLMPrinterKit
//
// Copyright © 2020 Brother Industries, Ltd. All rights reserved.
//

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

// Set the "serialNumber" that can be getting from EAAccessory.
// Or set the "Bluetooth Address" that can be getting from your printer (*by self-printing and so on).
// Please note that it is NOT the serial number of your Printer.
typedef NSString BRLMExternalAccessorySerialNumber;


NS_ASSUME_NONNULL_BEGIN

@interface BRLMChannel : NSObject

@property (nonatomic, readonly) BRLMChannelType channelType;
@property (nonatomic, readonly) NSString *channelInfo;

- (instancetype)initWithWifiIPAddress:(NSString *)ipAddress;
- (instancetype)initWithBluetoothSerialNumber:(BRLMExternalAccessorySerialNumber *)serialNumber;
- (instancetype)initWithBLELocalName:(NSString *)localName;

- (instancetype)init __unavailable;
- (instancetype)copy __unavailable;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
//
// BRLMCustomPaperSize.h
// BRLMPrinterKit
//
// Copyright © 2020 Brother Industries, Ltd. All rights reserved.
//

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

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, BRLMCustomPaperSizeLengthUnit) {
BRLMCustomPaperSizeLengthUnitInch,
BRLMCustomPaperSizeLengthUnitMm,
// BRLMCustomPaperSizeLengthUnitDot,
};

typedef NS_ENUM(NSInteger, BRLMCustomPaperSizePaperKind) {
BRLMCustomPaperSizePaperKindRoll,
BRLMCustomPaperSizePaperKindDieCut,
BRLMCustomPaperSizePaperKindMarkRoll,
BRLMCustomPaperSizePaperKindByFile,
};

typedef struct
{
CGFloat top;
CGFloat left;
CGFloat bottom;
CGFloat right;
} BRLMCustomPaperSizeMargins;
BRLMCustomPaperSizeMargins BRLMCustomPaperSizeMarginsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right);

/// immutable
@interface BRLMCustomPaperSize : NSObject <NSCoding>

- (instancetype) initRollWithTapeWidth:(CGFloat) tapeWidth
margins:(BRLMCustomPaperSizeMargins)margins // disable bottomMargin
unitOfLength:(BRLMCustomPaperSizeLengthUnit) unit;

- (instancetype) initDieCutWithTapeWidth:(CGFloat) tapeWidth
tapeLength:(CGFloat) tapeLength
margins:(BRLMCustomPaperSizeMargins)margins
gapLength:(CGFloat) gapLength
unitOfLength:(BRLMCustomPaperSizeLengthUnit) unit;

- (instancetype) initMarkRollWithTapeWidth:(CGFloat) tapeWidth
tapeLength:(CGFloat) tapeLength
margins:(BRLMCustomPaperSizeMargins)margins
markPosition:(CGFloat) markVerticalOffset
markHeight:(CGFloat) markLength
unitOfLength:(BRLMCustomPaperSizeLengthUnit) unit;

- (instancetype) initWithFile:(NSURL*)filePath;

@property (nonatomic, readonly) BRLMCustomPaperSizePaperKind paperKind;
@property (nonatomic, nullable, readonly) NSURL *paperBinFilePath;
@property (nonatomic, readonly) CGFloat tapeWidth;
@property (nonatomic, readonly) CGFloat tapeLength;
@property (nonatomic, readonly) BRLMCustomPaperSizeMargins margins;
@property (nonatomic, readonly) CGFloat gapLength;
@property (nonatomic, readonly) CGFloat markVerticalOffset;
@property (nonatomic, readonly) CGFloat markLength;
@property (nonatomic, readonly) BRLMCustomPaperSizeLengthUnit unit;

@end

NS_ASSUME_NONNULL_END
Loading