Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified Sources/BRLMPrinterKit.xcframework/Info.plist
100755 → 100644
Empty file.
Binary file modified Sources/BRLMPrinterKit.xcframework/_CodeSignature/CodeDirectory
100755 → 100644
Binary file not shown.
Empty file.
Binary file modified Sources/BRLMPrinterKit.xcframework/_CodeSignature/CodeRequirements-1
100755 → 100644
Binary file not shown.
582 changes: 471 additions & 111 deletions Sources/BRLMPrinterKit.xcframework/_CodeSignature/CodeResources
100755 → 100644

Large diffs are not rendered by default.

Binary file modified Sources/BRLMPrinterKit.xcframework/_CodeSignature/CodeSignature
100755 → 100644
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ extern BRLMChannelExtraInfoKey * _Nonnull const BRLMChannelExtraInfoKeySerialNum
extern BRLMChannelExtraInfoKey * _Nonnull const BRLMChannelExtraInfoKeyMacAddress;
extern BRLMChannelExtraInfoKey * _Nonnull const BRLMChannelExtraInfoKeyNodeName;
extern BRLMChannelExtraInfoKey * _Nonnull const BRLMChannelExtraInfoKeyLocation;
extern BRLMChannelExtraInfoKey * _Nonnull const BRLMChannelExtraInfoKeyIsSecureConnectionSupported;
extern BRLMChannelExtraInfoKey * _Nonnull const BRLMChannelExtraInfoKeyIsCommandSecurityEnabled;


NS_ASSUME_NONNULL_BEGIN
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// BRLMChannelCredential.h
// BRLMPrinterKit
//
// Created by debug on 2025/04/03.
// Copyright © 2025 Brother Industries. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, BRLMChannelCredentialType) {
BRLMChannelCredentialTypePrinterAdminPassword
};

@interface BRLMChannelCredential : NSObject

@property (nonatomic, copy, readonly) NSString * _Nullable password;
@property (nonatomic, readonly) BRLMChannelCredentialType type;

- (instancetype)initWithPrinterAdminPassword:(NSString *)password;

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

@end

NS_ASSUME_NONNULL_END
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
13 changes: 13 additions & 0 deletions ...BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Headers/BRLMPrinterDefine.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,18 @@ typedef NS_ENUM(NSInteger, BRLMPrinterModel) {
BRLMPrinterModelTD_2350DFSA_203,
BRLMPrinterModelTD_2350DFSA_300,
BRLMPrinterModelPT_P300BTz,
BRLMPrinterModelTD_4415D,
BRLMPrinterModelTD_4425DN,
BRLMPrinterModelTD_4525DN,
BRLMPrinterModelTD_4455DNWB,
BRLMPrinterModelTD_4555DNWB,
BRLMPrinterModelTD_4425DNF,
BRLMPrinterModelTD_4555DNWBF,
BRLMPrinterModelRJ_3235B,
BRLMPrinterModelRJ_3255WB,
BRLMPrinterModelRJ_4235B,
BRLMPrinterModelRJ_4255WB,
BRLMPrinterModelPT_E720BT,
BRLMPrinterModelPT_E920BT,
BRLMPrinterModelUnknown,
};
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ typedef _Nullable CGImageRef (^BRLMPrinterDriverPrintImageClosure)(void) NS_REFI
- (BRLMTransferResult<NSURL*> *)transferDatabaseFiles:(nonnull NSArray<NSURL *> *)urls progress:(nullable void (^)(NSURL* current, int progress))progress;
- (BRLMTransferResult<NSURL*> *)transferBinaryFiles:(nonnull NSArray<NSURL *> *)urls progress:(nullable void (^)(NSURL* current, int progress))progress;
- (BRLMTransferResult<NSNumber*> *)transferBinaryData:(nonnull NSArray<NSData *> *)data progress:(nullable void (^)(NSNumber* index, int progress))progress;
- (BRLMTransferResult<NSNumber*> *)transferPrinterConfigurationFiles:(nonnull NSArray<NSURL *> *)urls progress:(nullable void (^)(NSURL* current, int progress))progress;

- (void)cancelPrinting;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#import <BRLMPrinterKit/BRLMPrinterDriver.h>
#import <BRLMPrinterKit/BRLMChannel.h>
#import <BRLMPrinterKit/BRLMOpenChannelError.h>
#import <BRLMPrinterKit/BRLMChannelCredential.h>

NS_ASSUME_NONNULL_BEGIN

Expand All @@ -28,6 +29,7 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)copy __unavailable;

+ (BRLMPrinterDriverGenerateResult *)openChannel:(BRLMChannel *)channel;
+ (BRLMPrinterDriverGenerateResult *)openChannel:(BRLMChannel *)channel withCredential:(BRLMChannelCredential *)credential;

@end

Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
// Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
#ifndef BRLMPRINTERKIT_SWIFT_H
#define BRLMPRINTERKIT_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -42,6 +42,8 @@
#include <string.h>
#endif
#if defined(__cplusplus)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
Expand All @@ -55,6 +57,7 @@
# endif
#pragma clang diagnostic pop
#endif
#pragma clang diagnostic pop
#endif

#if !defined(SWIFT_TYPEDEFS)
Expand Down Expand Up @@ -288,6 +291,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"

#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#import <BRLMPrinterKit/BRLMError.h>
#import <BRLMPrinterKit/BRLMOpenChannelError.h>
#import <BRLMPrinterKit/BRLMChannel.h>
#import <BRLMPrinterKit/BRLMChannelCredential.h>
#import <BRLMPrinterKit/BRLMPrintError.h>
#import <BRLMPrinterKit/BRLMGetStatusError.h>
#import <BRLMPrinterKit/BRLMPrinterModelSpec.h>
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ typedef NS_ENUM(NSInteger, BRLMRemoveTemplateErrorCode) {
BRLMRemoveTemplateErrorCodeConnectionFailed,
BRLMRemoveTemplateErrorCodeUnresponsiveState,
BRLMRemoveTemplateErrorCodeAborted,
BRLMRemoveTemplateErrorCodeMissingCredential,
BRLMRemoveTemplateErrorCodeInvalidCredential,
BRLMRemoveTemplateErrorCodeExpiredCredential,
BRLMRemoveTemplateErrorCodeMismatchedCredentialFormat,
BRLMRemoveTemplateErrorCodeUnknownError = 21199,
};

Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ typedef NS_ENUM(NSUInteger, BRLMTransferErrorCode) {
BRLMTransferErrorCodePrinterStatusError,
BRLMTransferErrorCodeConnectionFailed,
BRLMTransferErrorCodeAborted,
BRLMTransferErrorCodeMissingCredential,
BRLMTransferErrorCodeInvalidCredential,
BRLMTransferErrorCodeExpiredCredential,
BRLMTransferErrorCodeMismatchedCredentialFormat,
BRLMTransferErrorCodeUnknownError = 10199,
};

Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
@property (copy,nonatomic)NSString* strNodeName;
@property (copy,nonatomic)NSString* strMACAddress;
@property (copy,nonatomic)NSString* strBLEAdvertiseLocalName;
@property (retain,nonatomic)NSNumber* isSecureConnectionSupported;
@property (retain,nonatomic)NSNumber* isCommandSecurityEnabled;


- (NSString *)description;

Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#import <BRLMPrinterKit/BRLMPrinterConfigRequestResult.h>
#import <BRLMPrinterKit/BRLMPrinterConfigUpdateOrder.h>
#import <BRLMPrinterKit/BRLMPrinterConfigUpdateResult.h>
#import <BRLMPrinterKit/BRLMChannelCredential.h>

#define ERROR_NONE_ 0
#define ERROR_TIMEOUT -3
Expand Down Expand Up @@ -231,6 +232,7 @@ extern NSString *const BRMessageKey;
- (int)getPTStatus:(PTSTATUSINFO*)status;
- (int)getStatus:(BRPtouchPrinterStatus**)status;
- (int)getStatus:(BRPtouchPrinterStatus**)status errorCode:(int *)errorCode;
- (void)waitForPrinterResponce;
- (NSString *)getModelName;
- (NSString *)getFirmVersion;
- (NSString *)getMediaVersion;
Expand All @@ -247,7 +249,7 @@ extern NSString *const BRMessageKey;
- (NSDictionary<NSURL*,NSNumber*/*BRLMTransferErrorCode*/>*)transferDatabaseFiles:(NSArray*)sendFileArray dataProgress:( void (^)(NSURL* current, int progressPercentage))progressCallback;
- (NSDictionary<NSURL*,NSNumber*/*BRLMTransferErrorCode*/>*)transferBinaryFiles:(NSArray*)sendFileArray dataProgress:( void (^)(NSURL* current, int progressPercentage))progressCallback;
- (NSDictionary<NSNumber*,NSNumber*/*BRLMTransferErrorCode*/>*)transferBinaryData:(NSArray*)sendDataArray dataProgress:( void (^)(NSNumber* current, int progressPercentage))progressCallback;

- (NSDictionary<NSURL*,NSNumber*/*BRLMTransferErrorCode*/>*)transferPrinterConfigurationFiles:(NSArray*)sendFileArray dataProgress:( void (^)(NSURL* current, int progressPercentage))progressCallback;

- (int)sendTemplate:(NSString *)sendtemplateFilePath connectionType:(CONNECTION_TYPE) type;
- (int)sendDatabase:(NSString *)databaseFilePath;
Expand Down Expand Up @@ -302,6 +304,8 @@ extern NSString *const BRMessageKey;
- (int)setPrinterSettings:(NSDictionary*)printerSettings;
- (int)getPrinterSettings:(NSDictionary**)printerSettings require:(NSArray*)require;

- (void)setCredential:(BRLMChannelCredential*) credential;

///This api is for Brother applications. We do not recommend you to use it.
- (BRLMPrinterConfigRequestResult*)requestPrinterConfig:(BRLMPrinterConfigRequestOrder*)order;
///This api is for Brother applications. We do not recommend you to use it.
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Binary file modified Sources/BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Info.plist
100755 → 100644
Binary file not shown.
Empty file.
18 changes: 16 additions & 2 deletions ...rm64/BRLMPrinterKit.framework/Modules/BRLMPrinterKit.swiftmodule/arm64-apple-ios.abi.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"ABIRoot": {
"kind": "Root",
"name": "TopLevel",
"printedName": "TopLevel",
"name": "BRLMPrinterKit",
"printedName": "BRLMPrinterKit",
"children": [
{
"kind": "TypeDecl",
Expand Down Expand Up @@ -96,6 +96,20 @@
"ObjectiveC.NSObject"
],
"conformances": [
{
"kind": "Conformance",
"name": "Copyable",
"printedName": "Copyable",
"usr": "s:s8CopyableP",
"mangledName": "$ss8CopyableP"
},
{
"kind": "Conformance",
"name": "Escapable",
"printedName": "Escapable",
"usr": "s:s9EscapableP",
"mangledName": "$ss9EscapableP"
},
{
"kind": "Conformance",
"name": "Equatable",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
// swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BRLMPrinterKit
// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
// swift-module-flags: -target arm64-apple-ios14.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BRLMPrinterKit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
@_exported import BRLMPrinterKit
import Swift
import _Concurrency
Expand Down
Binary file modified ...rm64/BRLMPrinterKit.framework/Modules/BRLMPrinterKit.swiftmodule/arm64-apple-ios.swiftdoc
100755 → 100644
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
// swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BRLMPrinterKit
// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
// swift-module-flags: -target arm64-apple-ios14.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BRLMPrinterKit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
@_exported import BRLMPrinterKit
import Swift
import _Concurrency
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Loading