@simplymobile/capacitor-bixolon-sdk-printer 8.0.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Package.swift CHANGED
@@ -3,21 +3,20 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "SimplymobileCapacitorBixolonSdkPrinter",
6
- platforms: [.iOS(.v15)],
6
+ platforms: [.iOS(.v16)],
7
7
  products: [
8
8
  .library(
9
9
  name: "SimplymobileCapacitorBixolonSdkPrinter",
10
10
  targets: ["BixolonSdkPrinterPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
13
+ .package(url: "https://github.com/ionic-team/capacitor.git", from: "9.0.0")
14
14
  ],
15
15
  targets: [
16
16
  .target(
17
17
  name: "BixolonSdkPrinterPlugin",
18
18
  dependencies: [
19
- .product(name: "Capacitor", package: "capacitor-swift-pm"),
20
- .product(name: "Cordova", package: "capacitor-swift-pm")
19
+ .product(name: "Capacitor", package: "capacitor")
21
20
  ],
22
21
  path: "ios/Sources/BixolonSdkPrinterPlugin"),
23
22
  .testTarget(
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '15.0'
14
+ s.ios.deployment_target = '16.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
17
17
  end
@@ -1,58 +1,58 @@
1
- ext {
2
- junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
6
- }
7
-
8
- buildscript {
9
- repositories {
10
- google()
11
- mavenCentral()
12
- }
13
- dependencies {
14
- classpath 'com.android.tools.build:gradle:8.13.0'
15
- }
16
- }
17
-
18
- apply plugin: 'com.android.library'
19
-
20
- android {
21
- namespace = "pl.simplymobile.plugins.bixolonsdkprinter"
22
- compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
23
- defaultConfig {
24
- minSdkVersion = project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
25
- targetSdkVersion = project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
26
- versionCode 1
27
- versionName "1.0"
28
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
29
- }
30
- buildTypes {
31
- release {
32
- minifyEnabled false
33
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
34
- }
35
- }
36
- lintOptions {
37
- abortOnError = false
38
- }
39
- compileOptions {
1
+ ext {
2
+ junitVersion = rootProject.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
+ androidxAppCompatVersion = rootProject.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.8.0'
4
+ androidxJunitVersion = rootProject.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
5
+ androidxEspressoCoreVersion = rootProject.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
6
+ }
7
+
8
+ buildscript {
9
+ repositories {
10
+ google()
11
+ mavenCentral()
12
+ }
13
+ dependencies {
14
+ classpath 'com.android.tools.build:gradle:9.4.1'
15
+ }
16
+ }
17
+
18
+ apply plugin: 'com.android.library'
19
+
20
+ android {
21
+ namespace = "pl.simplymobile.plugins.bixolonsdkprinter"
22
+ compileSdk = rootProject.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 37
23
+ defaultConfig {
24
+ consumerProguardFiles "proguard-rules.pro"
25
+ minSdkVersion = rootProject.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
26
+ versionCode 1
27
+ versionName "1.0"
28
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
29
+ }
30
+ buildTypes {
31
+ release {
32
+ minifyEnabled false
33
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
34
+ }
35
+ }
36
+ lintOptions {
37
+ abortOnError = false
38
+ }
39
+ compileOptions {
40
40
  sourceCompatibility JavaVersion.VERSION_21
41
41
  targetCompatibility JavaVersion.VERSION_21
42
- }
43
- }
44
-
45
- repositories {
46
- google()
47
- mavenCentral()
48
- }
49
-
50
-
51
- dependencies {
52
- implementation fileTree(dir: 'libs', include: ['*.jar'])
53
- implementation project(':capacitor-android')
54
- implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
55
- testImplementation "junit:junit:$junitVersion"
56
- androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
57
- androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
58
- }
42
+ }
43
+ }
44
+
45
+ repositories {
46
+ google()
47
+ mavenCentral()
48
+ }
49
+
50
+
51
+ dependencies {
52
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
53
+ implementation project(':capacitor-android')
54
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
55
+ testImplementation "junit:junit:$junitVersion"
56
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
57
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
58
+ }
@@ -0,0 +1,26 @@
1
+ # Add project specific ProGuard rules here.
2
+ # You can control the set of applied configuration files using the
3
+ # proguardFiles setting in build.gradle.
4
+ #
5
+ # For more details, see
6
+ # http://developer.android.com/guide/developing/tools/proguard.html
7
+
8
+ # If your project uses WebView with JS, uncomment the following
9
+ # and specify the fully qualified class name to the JavaScript interface
10
+ # class:
11
+ #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12
+ # public *;
13
+ #}
14
+
15
+ # Uncomment this to preserve the line number information for
16
+ # debugging stack traces.
17
+ #-keepattributes SourceFile,LineNumberTable
18
+
19
+ # If you keep the line number information, uncomment this to
20
+ # hide the original source file name.
21
+ #-renamesourcefileattribute SourceFile
22
+
23
+ # Bixolon SDK (libs/BixolonPrinter.jar): bez kodu źródłowego nie wiadomo, co ładuje refleksją
24
+ # (m.in. klasy zestawów znaków), więc chronimy cały pakiet.
25
+ -keep class com.bixolon.printer.** { *; }
26
+ -dontwarn com.bixolon.printer.**
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst BixolonSdkPrinter = registerPlugin('BixolonSdkPrinter', {\n web: () => import('./web').then((m) => new m.BixolonSdkPrinterWeb()),\n});\nexport * from './definitions';\nexport { BixolonSdkPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BixolonSdkPrinterWeb extends WebPlugin {\n async checkPermissions() {\n return { bluetooth: 'denied' };\n }\n async requestPermissions() {\n return { bluetooth: 'denied' };\n }\n async printText(options) {\n console.log('NOT IMPLEMENTED', options.lines, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printBarCode(options) {\n console.log('NOT IMPLEMENTED', options.data, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printQRCode(options) {\n console.log('NOT IMPLEMENTED', options.data, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printBitmap(options) {\n console.log('NOT IMPLEMENTED', options.base64Image, options.width, options.brightness, options.alignment);\n return { message: 'NOT IMPLEMENTED' };\n }\n async cutPaper(options) {\n console.log('NOT IMPLEMENTED', options === null || options === void 0 ? void 0 : options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async getStatus(options) {\n console.log('NOT IMPLEMENTED', options === null || options === void 0 ? void 0 : options.printStatus, options === null || options === void 0 ? void 0 : options.config);\n return {};\n }\n async reconnect() {\n console.log('NOT IMPLEMENTED');\n return { message: 'NOT IMPLEMENTED' };\n }\n async disconnect() {\n console.log('NOT IMPLEMENTED');\n }\n async startMsrReaderListener() {\n console.log('NOT IMPLEMENTED');\n }\n async stopMsrReaderListener() {\n console.log('NOT IMPLEMENTED');\n }\n async startConnectionListener() {\n console.log('NOT IMPLEMENTED');\n }\n async stopConnectionListener() {\n console.log('NOT IMPLEMENTED');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;AAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;AACxE,CAAC;;ACFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;AACpD,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AACtC,IAAI;AACJ,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AACtC,IAAI;AACJ,IAAI,MAAM,SAAS,CAAC,OAAO,EAAE;AAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC;AACrE,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE;AAC7C,IAAI;AACJ,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;AAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;AACpE,QAAQ,OAAO,EAAE,OAAO,EAAE,iB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,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ,IAAI,MAAM,sBAAsB,GAAG;AACnC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ,IAAI,MAAM,qBAAqB,GAAG;AAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ,IAAI,MAAM,uBAAuB,GAAG;AACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ,IAAI,MAAM,sBAAsB,GAAG;AACnC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst BixolonSdkPrinter = registerPlugin('BixolonSdkPrinter', {\n web: () => import('./web').then((m) => new m.BixolonSdkPrinterWeb()),\n});\nexport * from './definitions';\nexport { BixolonSdkPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BixolonSdkPrinterWeb extends WebPlugin {\n async checkPermissions() {\n return { bluetooth: 'denied' };\n }\n async requestPermissions() {\n return { bluetooth: 'denied' };\n }\n async printText(options) {\n console.log('NOT IMPLEMENTED', options.lines, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printBarCode(options) {\n console.log('NOT IMPLEMENTED', options.data, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printQRCode(options) {\n console.log('NOT IMPLEMENTED', options.data, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printBitmap(options) {\n console.log('NOT IMPLEMENTED', options.base64Image, options.width, options.brightness, options.alignment);\n return { message: 'NOT IMPLEMENTED' };\n }\n async cutPaper(options) {\n console.log('NOT IMPLEMENTED', options === null || options === void 0 ? void 0 : options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async getStatus(options) {\n console.log('NOT IMPLEMENTED', options === null || options === void 0 ? void 0 : options.printStatus, options === null || options === void 0 ? void 0 : options.config);\n return {};\n }\n async reconnect() {\n console.log('NOT IMPLEMENTED');\n return { message: 'NOT IMPLEMENTED' };\n }\n async disconnect() {\n console.log('NOT IMPLEMENTED');\n }\n async startMsrReaderListener() {\n console.log('NOT IMPLEMENTED');\n }\n async stopMsrReaderListener() {\n console.log('NOT IMPLEMENTED');\n }\n async startConnectionListener() {\n console.log('NOT IMPLEMENTED');\n }\n async stopConnectionListener() {\n console.log('NOT IMPLEMENTED');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;AAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;AACxE,CAAC;;ACFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;AACpD,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AACtC,IAAI;AACJ,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AACtC,IAAI;AACJ,IAAI,MAAM,SAAS,CAAC,OAAO,EAAE;AAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC;AACrE,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE;AAC7C,IAAI;AACJ,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;AAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;AACpE,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAi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AC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ,IAAI,MAAM,sBAAsB,GAAG;AACnC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ,IAAI,MAAM,qBAAqB,GAAG;AAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ,IAAI,MAAM,uBAAuB,GAAG;AACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ,IAAI,MAAM,sBAAsB,GAAG;AACnC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,IAAI;AACJ;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst BixolonSdkPrinter = registerPlugin('BixolonSdkPrinter', {\n web: () => import('./web').then((m) => new m.BixolonSdkPrinterWeb()),\n});\nexport * from './definitions';\nexport { BixolonSdkPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BixolonSdkPrinterWeb extends WebPlugin {\n async checkPermissions() {\n return { bluetooth: 'denied' };\n }\n async requestPermissions() {\n return { bluetooth: 'denied' };\n }\n async printText(options) {\n console.log('NOT IMPLEMENTED', options.lines, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printBarCode(options) {\n console.log('NOT IMPLEMENTED', options.data, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printQRCode(options) {\n console.log('NOT IMPLEMENTED', options.data, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printBitmap(options) {\n console.log('NOT IMPLEMENTED', options.base64Image, options.width, options.brightness, options.alignment);\n return { message: 'NOT IMPLEMENTED' };\n }\n async cutPaper(options) {\n console.log('NOT IMPLEMENTED', options === null || options === void 0 ? void 0 : options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async getStatus(options) {\n console.log('NOT IMPLEMENTED', options === null || options === void 0 ? void 0 : options.printStatus, options === null || options === void 0 ? void 0 : options.config);\n return {};\n }\n async reconnect() {\n console.log('NOT IMPLEMENTED');\n return { message: 'NOT IMPLEMENTED' };\n }\n async disconnect() {\n console.log('NOT IMPLEMENTED');\n }\n async startMsrReaderListener() {\n console.log('NOT IMPLEMENTED');\n }\n async stopMsrReaderListener() {\n console.log('NOT IMPLEMENTED');\n }\n async startConnectionListener() {\n console.log('NOT IMPLEMENTED');\n }\n async stopConnectionListener() {\n console.log('NOT IMPLEMENTED');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;IAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;IACxE,CAAC;;ICFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;IACpD,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;IACtC,IAAI;IACJ,IAAI,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;IACtC,IAAI;IACJ,IAAI,MAAM,SAAS,CAAC,OAAO,EAAE;IAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC;IACrE,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE;IAC7C,IAAI;IACJ,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;IAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACpE,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAA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AAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ,IAAI,MAAM,sBAAsB,GAAG;IACnC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ,IAAI,MAAM,qBAAqB,GAAG;IAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ,IAAI,MAAM,uBAAuB,GAAG;IACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ,IAAI,MAAM,sBAAsB,GAAG;IACnC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst BixolonSdkPrinter = registerPlugin('BixolonSdkPrinter', {\n web: () => import('./web').then((m) => new m.BixolonSdkPrinterWeb()),\n});\nexport * from './definitions';\nexport { BixolonSdkPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BixolonSdkPrinterWeb extends WebPlugin {\n async checkPermissions() {\n return { bluetooth: 'denied' };\n }\n async requestPermissions() {\n return { bluetooth: 'denied' };\n }\n async printText(options) {\n console.log('NOT IMPLEMENTED', options.lines, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printBarCode(options) {\n console.log('NOT IMPLEMENTED', options.data, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printQRCode(options) {\n console.log('NOT IMPLEMENTED', options.data, options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async printBitmap(options) {\n console.log('NOT IMPLEMENTED', options.base64Image, options.width, options.brightness, options.alignment);\n return { message: 'NOT IMPLEMENTED' };\n }\n async cutPaper(options) {\n console.log('NOT IMPLEMENTED', options === null || options === void 0 ? void 0 : options.config);\n return { message: 'NOT IMPLEMENTED' };\n }\n async getStatus(options) {\n console.log('NOT IMPLEMENTED', options === null || options === void 0 ? void 0 : options.printStatus, options === null || options === void 0 ? void 0 : options.config);\n return {};\n }\n async reconnect() {\n console.log('NOT IMPLEMENTED');\n return { message: 'NOT IMPLEMENTED' };\n }\n async disconnect() {\n console.log('NOT IMPLEMENTED');\n }\n async startMsrReaderListener() {\n console.log('NOT IMPLEMENTED');\n }\n async stopMsrReaderListener() {\n console.log('NOT IMPLEMENTED');\n }\n async startConnectionListener() {\n console.log('NOT IMPLEMENTED');\n }\n async stopConnectionListener() {\n console.log('NOT IMPLEMENTED');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;IAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;IACxE,CAAC;;ICFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;IACpD,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;IACtC,IAAI;IACJ,IAAI,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;IACtC,IAAI;IACJ,IAAI,MAAM,SAAS,CAAC,OAAO,EAAE;IAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC;IACrE,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE;IAC7C,IAAI;IACJ,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;IAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACpE,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAiB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C,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ,IAAI,MAAM,sBAAsB,GAAG;IACnC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ,IAAI,MAAM,qBAAqB,GAAG;IAClC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ,IAAI,MAAM,uBAAuB,GAAG;IACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ,IAAI,MAAM,sBAAsB,GAAG;IACnC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,IAAI;IACJ;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplymobile/capacitor-bixolon-sdk-printer",
3
- "version": "8.0.1",
3
+ "version": "9.0.0",
4
4
  "description": "Capacitor Bixolon printer plugin (official Bixolon SDK)",
5
5
  "author": "SimplyMobile",
6
6
  "license": "Apache-2.0",
@@ -16,7 +16,8 @@
16
16
  "ios/Sources",
17
17
  "ios/Tests",
18
18
  "Package.swift",
19
- "SimplymobileCapacitorBixolonSdkPrinter.podspec"
19
+ "SimplymobileCapacitorBixolonSdkPrinter.podspec",
20
+ "android/proguard-rules.pro"
20
21
  ],
21
22
  "keywords": [
22
23
  "capacitor",
@@ -34,7 +35,7 @@
34
35
  "verify:web": "npm run build",
35
36
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
36
37
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
37
- "eslint": "eslint . --ext ts",
38
+ "eslint": "eslint .",
38
39
  "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
39
40
  "swiftlint": "node-swiftlint",
40
41
  "docgen": "docgen --api BixolonSdkPrinterPlugin --output-readme README.md --output-json dist/docs.json",
@@ -44,14 +45,14 @@
44
45
  "prepublishOnly": "npm run build"
45
46
  },
46
47
  "devDependencies": {
47
- "@capacitor/android": "^8.0.0",
48
- "@capacitor/core": "^8.0.0",
48
+ "@capacitor/android": "^9.0.0",
49
+ "@capacitor/core": "^9.0.0",
49
50
  "@capacitor/docgen": "^0.3.1",
50
- "@capacitor/ios": "^8.0.0",
51
- "@ionic/eslint-config": "^0.4.0",
51
+ "@capacitor/ios": "^9.0.0",
52
+ "@ionic/eslint-config": "^0.5.0",
52
53
  "@ionic/prettier-config": "^4.0.0",
53
54
  "@ionic/swiftlint-config": "^2.0.0",
54
- "eslint": "^8.57.1",
55
+ "eslint": "^10.0.0",
55
56
  "prettier": "^3.6.2",
56
57
  "prettier-plugin-java": "^2.7.7",
57
58
  "rimraf": "^6.1.0",
@@ -60,10 +61,7 @@
60
61
  "typescript": "^5.9.3"
61
62
  },
62
63
  "peerDependencies": {
63
- "@capacitor/core": ">=8.0.0"
64
- },
65
- "eslintConfig": {
66
- "extends": "@ionic/eslint-config/recommended"
64
+ "@capacitor/core": ">=9.0.0"
67
65
  },
68
66
  "prettier": "@ionic/prettier-config",
69
67
  "swiftlint": "@ionic/swiftlint-config",