@simplymobile/capacitor-godex-printer 7.1.0 → 8.1.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,14 +3,14 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "SimplymobileCapacitorGodexPrinter",
6
- platforms: [.iOS(.v14)],
6
+ platforms: [.iOS(.v15)],
7
7
  products: [
8
8
  .library(
9
9
  name: "SimplymobileCapacitorGodexPrinter",
10
10
  targets: ["GodexPrinterPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
14
14
  ],
15
15
  targets: [
16
16
  .target(
@@ -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/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '14.0'
14
+ s.ios.deployment_target = '15.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
17
17
  end
@@ -1,8 +1,8 @@
1
1
  ext {
2
2
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
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
6
  }
7
7
 
8
8
  buildscript {
@@ -11,18 +11,18 @@ buildscript {
11
11
  mavenCentral()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:8.7.2'
14
+ classpath 'com.android.tools.build:gradle:8.13.0'
15
15
  }
16
16
  }
17
17
 
18
18
  apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
- namespace "pl.simplymobile.plugins.godexprinter"
22
- compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
21
+ namespace = "pl.simplymobile.plugins.godexprinter"
22
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
23
23
  defaultConfig {
24
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
25
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
24
+ minSdkVersion = project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
25
+ targetSdkVersion = project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
26
26
  versionCode 1
27
27
  versionName "1.0"
28
28
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -30,11 +30,11 @@ android {
30
30
  buildTypes {
31
31
  release {
32
32
  minifyEnabled false
33
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
33
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
34
34
  }
35
35
  }
36
36
  lintOptions {
37
- abortOnError false
37
+ abortOnError = false
38
38
  }
39
39
  compileOptions {
40
40
  sourceCompatibility JavaVersion.VERSION_21
@@ -1,19 +1,19 @@
1
- export interface GodexPrinterPlugin {
2
- getVersion(): Promise<{
3
- version: string;
4
- }>;
5
- connectToUSB(): Promise<{
6
- value: string;
7
- }>;
8
- printFromUSB(options: {
9
- value: string;
10
- }): Promise<{
11
- value: boolean;
12
- }>;
13
- disconnect(): Promise<{
14
- value: string;
15
- }>;
16
- getPrinterDPI(): Promise<{
17
- value: number;
18
- }>;
19
- }
1
+ export interface GodexPrinterPlugin {
2
+ getVersion(): Promise<{
3
+ version: string;
4
+ }>;
5
+ connectToUSB(): Promise<{
6
+ value: string;
7
+ }>;
8
+ printFromUSB(options: {
9
+ value: string;
10
+ }): Promise<{
11
+ value: boolean;
12
+ }>;
13
+ disconnect(): Promise<{
14
+ value: string;
15
+ }>;
16
+ getPrinterDPI(): Promise<{
17
+ value: number;
18
+ }>;
19
+ }
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=definitions.js.map
@@ -1,4 +1,4 @@
1
- import type { GodexPrinterPlugin } from './definitions';
2
- declare const GodexPrinter: GodexPrinterPlugin;
3
- export * from './definitions';
4
- export { GodexPrinter };
1
+ import type { GodexPrinterPlugin } from './definitions';
2
+ declare const GodexPrinter: GodexPrinterPlugin;
3
+ export * from './definitions';
4
+ export { GodexPrinter };
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { registerPlugin } from '@capacitor/core';
2
- const GodexPrinter = registerPlugin('GodexPrinter', {
3
- web: () => import('./web').then(m => new m.GodexPrinterWeb()),
4
- });
5
- export * from './definitions';
6
- export { GodexPrinter };
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const GodexPrinter = registerPlugin('GodexPrinter', {
3
+ web: () => import('./web').then(m => new m.GodexPrinterWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { GodexPrinter };
7
7
  //# sourceMappingURL=index.js.map
package/dist/esm/web.d.ts CHANGED
@@ -1,21 +1,21 @@
1
- import { WebPlugin } from '@capacitor/core';
2
- import type { GodexPrinterPlugin } from './definitions';
3
- export declare class GodexPrinterWeb extends WebPlugin implements GodexPrinterPlugin {
4
- getVersion(): Promise<{
5
- version: string;
6
- }>;
7
- connectToUSB(): Promise<{
8
- value: string;
9
- }>;
10
- printFromUSB(options: {
11
- value: string;
12
- }): Promise<{
13
- value: boolean;
14
- }>;
15
- disconnect(): Promise<{
16
- value: string;
17
- }>;
18
- getPrinterDPI(): Promise<{
19
- value: number;
20
- }>;
21
- }
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { GodexPrinterPlugin } from './definitions';
3
+ export declare class GodexPrinterWeb extends WebPlugin implements GodexPrinterPlugin {
4
+ getVersion(): Promise<{
5
+ version: string;
6
+ }>;
7
+ connectToUSB(): Promise<{
8
+ value: string;
9
+ }>;
10
+ printFromUSB(options: {
11
+ value: string;
12
+ }): Promise<{
13
+ value: boolean;
14
+ }>;
15
+ disconnect(): Promise<{
16
+ value: string;
17
+ }>;
18
+ getPrinterDPI(): Promise<{
19
+ value: number;
20
+ }>;
21
+ }
package/dist/esm/web.js CHANGED
@@ -1,24 +1,24 @@
1
- import { WebPlugin } from '@capacitor/core';
2
- export class GodexPrinterWeb extends WebPlugin {
3
- async getVersion() {
4
- console.log('NOT IMPLEMENTED');
5
- return { version: 'NOT IMPLEMENTED' };
6
- }
7
- async connectToUSB() {
8
- console.log('NOT IMPLEMENTED');
9
- return { value: 'NOT IMPLEMENTED' };
10
- }
11
- async printFromUSB(options) {
12
- console.log('NOT IMPLEMENTED', options.value);
13
- return { value: false };
14
- }
15
- async disconnect() {
16
- console.log('NOT IMPLEMENTED');
17
- return { value: 'NOT IMPLEMENTED' };
18
- }
19
- async getPrinterDPI() {
20
- console.log('NOT IMPLEMENTED');
21
- return { value: 0 };
22
- }
23
- }
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class GodexPrinterWeb extends WebPlugin {
3
+ async getVersion() {
4
+ console.log('NOT IMPLEMENTED');
5
+ return { version: 'NOT IMPLEMENTED' };
6
+ }
7
+ async connectToUSB() {
8
+ console.log('NOT IMPLEMENTED');
9
+ return { value: 'NOT IMPLEMENTED' };
10
+ }
11
+ async printFromUSB(options) {
12
+ console.log('NOT IMPLEMENTED', options.value);
13
+ return { value: false };
14
+ }
15
+ async disconnect() {
16
+ console.log('NOT IMPLEMENTED');
17
+ return { value: 'NOT IMPLEMENTED' };
18
+ }
19
+ async getPrinterDPI() {
20
+ console.log('NOT IMPLEMENTED');
21
+ return { value: 0 };
22
+ }
23
+ }
24
24
  //# sourceMappingURL=web.js.map
@@ -2,31 +2,31 @@
2
2
 
3
3
  var core = require('@capacitor/core');
4
4
 
5
- const GodexPrinter = core.registerPlugin('GodexPrinter', {
6
- web: () => Promise.resolve().then(function () { return web; }).then(m => new m.GodexPrinterWeb()),
5
+ const GodexPrinter = core.registerPlugin('GodexPrinter', {
6
+ web: () => Promise.resolve().then(function () { return web; }).then(m => new m.GodexPrinterWeb()),
7
7
  });
8
8
 
9
- class GodexPrinterWeb extends core.WebPlugin {
10
- async getVersion() {
11
- console.log('NOT IMPLEMENTED');
12
- return { version: 'NOT IMPLEMENTED' };
13
- }
14
- async connectToUSB() {
15
- console.log('NOT IMPLEMENTED');
16
- return { value: 'NOT IMPLEMENTED' };
17
- }
18
- async printFromUSB(options) {
19
- console.log('NOT IMPLEMENTED', options.value);
20
- return { value: false };
21
- }
22
- async disconnect() {
23
- console.log('NOT IMPLEMENTED');
24
- return { value: 'NOT IMPLEMENTED' };
25
- }
26
- async getPrinterDPI() {
27
- console.log('NOT IMPLEMENTED');
28
- return { value: 0 };
29
- }
9
+ class GodexPrinterWeb extends core.WebPlugin {
10
+ async getVersion() {
11
+ console.log('NOT IMPLEMENTED');
12
+ return { version: 'NOT IMPLEMENTED' };
13
+ }
14
+ async connectToUSB() {
15
+ console.log('NOT IMPLEMENTED');
16
+ return { value: 'NOT IMPLEMENTED' };
17
+ }
18
+ async printFromUSB(options) {
19
+ console.log('NOT IMPLEMENTED', options.value);
20
+ return { value: false };
21
+ }
22
+ async disconnect() {
23
+ console.log('NOT IMPLEMENTED');
24
+ return { value: 'NOT IMPLEMENTED' };
25
+ }
26
+ async getPrinterDPI() {
27
+ console.log('NOT IMPLEMENTED');
28
+ return { value: 0 };
29
+ }
30
30
  }
31
31
 
32
32
  var web = /*#__PURE__*/Object.freeze({
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\r\nconst GodexPrinter = registerPlugin('GodexPrinter', {\r\n web: () => import('./web').then(m => new m.GodexPrinterWeb()),\r\n});\r\nexport * from './definitions';\r\nexport { GodexPrinter };\r\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\r\nexport class GodexPrinterWeb extends WebPlugin {\r\n async getVersion() {\r\n console.log('NOT IMPLEMENTED');\r\n return { version: 'NOT IMPLEMENTED' };\r\n }\r\n async connectToUSB() {\r\n console.log('NOT IMPLEMENTED');\r\n return { value: 'NOT IMPLEMENTED' };\r\n }\r\n async printFromUSB(options) {\r\n console.log('NOT IMPLEMENTED', options.value);\r\n return { value: false };\r\n }\r\n async disconnect() {\r\n console.log('NOT IMPLEMENTED');\r\n return { value: 'NOT IMPLEMENTED' };\r\n }\r\n async getPrinterDPI() {\r\n console.log('NOT IMPLEMENTED');\r\n return { value: 0 };\r\n }\r\n}\r\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,eAAe,SAASC,cAAS,CAAC;AAC/C,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACvC,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC9C,KAAK;AACL,IAAI,MAAM,YAAY,GAAG;AACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACvC,QAAQ,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC;AAC5C,KAAK;AACL,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;AAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;AACtD,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAChC,KAAK;AACL,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACvC,QAAQ,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC;AAC5C,KAAK;AACL,IAAI,MAAM,aAAa,GAAG;AAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACvC,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC5B,KAAK;AACL;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst GodexPrinter = registerPlugin('GodexPrinter', {\n web: () => import('./web').then(m => new m.GodexPrinterWeb()),\n});\nexport * from './definitions';\nexport { GodexPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class GodexPrinterWeb extends WebPlugin {\n async getVersion() {\n console.log('NOT IMPLEMENTED');\n return { version: 'NOT IMPLEMENTED' };\n }\n async connectToUSB() {\n console.log('NOT IMPLEMENTED');\n return { value: 'NOT IMPLEMENTED' };\n }\n async printFromUSB(options) {\n console.log('NOT IMPLEMENTED', options.value);\n return { value: false };\n }\n async disconnect() {\n console.log('NOT IMPLEMENTED');\n return { value: 'NOT IMPLEMENTED' };\n }\n async getPrinterDPI() {\n console.log('NOT IMPLEMENTED');\n return { value: 0 };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,eAAe,SAASC,cAAS,CAAC;AAC/C,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE;AAC7C,IAAI;AACJ,IAAI,MAAM,YAAY,GAAG;AACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,QAAQ,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE;AAC3C,IAAI;AACJ,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;AAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,KAAK,CAAC;AACrD,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;AAC/B,IAAI;AACJ,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,QAAQ,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE;AAC3C,IAAI;AACJ,IAAI,MAAM,aAAa,GAAG;AAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AACtC,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE;AAC3B,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -1,31 +1,31 @@
1
1
  var capacitorGodexPrinter = (function (exports, core) {
2
2
  'use strict';
3
3
 
4
- const GodexPrinter = core.registerPlugin('GodexPrinter', {
5
- web: () => Promise.resolve().then(function () { return web; }).then(m => new m.GodexPrinterWeb()),
4
+ const GodexPrinter = core.registerPlugin('GodexPrinter', {
5
+ web: () => Promise.resolve().then(function () { return web; }).then(m => new m.GodexPrinterWeb()),
6
6
  });
7
7
 
8
- class GodexPrinterWeb extends core.WebPlugin {
9
- async getVersion() {
10
- console.log('NOT IMPLEMENTED');
11
- return { version: 'NOT IMPLEMENTED' };
12
- }
13
- async connectToUSB() {
14
- console.log('NOT IMPLEMENTED');
15
- return { value: 'NOT IMPLEMENTED' };
16
- }
17
- async printFromUSB(options) {
18
- console.log('NOT IMPLEMENTED', options.value);
19
- return { value: false };
20
- }
21
- async disconnect() {
22
- console.log('NOT IMPLEMENTED');
23
- return { value: 'NOT IMPLEMENTED' };
24
- }
25
- async getPrinterDPI() {
26
- console.log('NOT IMPLEMENTED');
27
- return { value: 0 };
28
- }
8
+ class GodexPrinterWeb extends core.WebPlugin {
9
+ async getVersion() {
10
+ console.log('NOT IMPLEMENTED');
11
+ return { version: 'NOT IMPLEMENTED' };
12
+ }
13
+ async connectToUSB() {
14
+ console.log('NOT IMPLEMENTED');
15
+ return { value: 'NOT IMPLEMENTED' };
16
+ }
17
+ async printFromUSB(options) {
18
+ console.log('NOT IMPLEMENTED', options.value);
19
+ return { value: false };
20
+ }
21
+ async disconnect() {
22
+ console.log('NOT IMPLEMENTED');
23
+ return { value: 'NOT IMPLEMENTED' };
24
+ }
25
+ async getPrinterDPI() {
26
+ console.log('NOT IMPLEMENTED');
27
+ return { value: 0 };
28
+ }
29
29
  }
30
30
 
31
31
  var web = /*#__PURE__*/Object.freeze({
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\r\nconst GodexPrinter = registerPlugin('GodexPrinter', {\r\n web: () => import('./web').then(m => new m.GodexPrinterWeb()),\r\n});\r\nexport * from './definitions';\r\nexport { GodexPrinter };\r\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\r\nexport class GodexPrinterWeb extends WebPlugin {\r\n async getVersion() {\r\n console.log('NOT IMPLEMENTED');\r\n return { version: 'NOT IMPLEMENTED' };\r\n }\r\n async connectToUSB() {\r\n console.log('NOT IMPLEMENTED');\r\n return { value: 'NOT IMPLEMENTED' };\r\n }\r\n async printFromUSB(options) {\r\n console.log('NOT IMPLEMENTED', options.value);\r\n return { value: false };\r\n }\r\n async disconnect() {\r\n console.log('NOT IMPLEMENTED');\r\n return { value: 'NOT IMPLEMENTED' };\r\n }\r\n async getPrinterDPI() {\r\n console.log('NOT IMPLEMENTED');\r\n return { value: 0 };\r\n }\r\n}\r\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,eAAe,SAASC,cAAS,CAAC;IAC/C,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACvC,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC9C,KAAK;IACL,IAAI,MAAM,YAAY,GAAG;IACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACvC,QAAQ,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC5C,KAAK;IACL,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;IAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACtD,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IAChC,KAAK;IACL,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACvC,QAAQ,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC5C,KAAK;IACL,IAAI,MAAM,aAAa,GAAG;IAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACvC,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAC5B,KAAK;IACL;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst GodexPrinter = registerPlugin('GodexPrinter', {\n web: () => import('./web').then(m => new m.GodexPrinterWeb()),\n});\nexport * from './definitions';\nexport { GodexPrinter };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class GodexPrinterWeb extends WebPlugin {\n async getVersion() {\n console.log('NOT IMPLEMENTED');\n return { version: 'NOT IMPLEMENTED' };\n }\n async connectToUSB() {\n console.log('NOT IMPLEMENTED');\n return { value: 'NOT IMPLEMENTED' };\n }\n async printFromUSB(options) {\n console.log('NOT IMPLEMENTED', options.value);\n return { value: false };\n }\n async disconnect() {\n console.log('NOT IMPLEMENTED');\n return { value: 'NOT IMPLEMENTED' };\n }\n async getPrinterDPI() {\n console.log('NOT IMPLEMENTED');\n return { value: 0 };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,eAAe,SAASC,cAAS,CAAC;IAC/C,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,QAAQ,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE;IAC7C,IAAI;IACJ,IAAI,MAAM,YAAY,GAAG;IACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,QAAQ,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE;IAC3C,IAAI;IACJ,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;IAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,KAAK,CAAC;IACrD,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;IAC/B,IAAI;IACJ,IAAI,MAAM,UAAU,GAAG;IACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,QAAQ,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE;IAC3C,IAAI;IACJ,IAAI,MAAM,aAAa,GAAG;IAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACtC,QAAQ,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE;IAC3B,IAAI;IACJ;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "module": "dist/esm/index.js",
3
- "devDependencies": {
4
- "typescript": "~4.1.6",
5
- "@capacitor/docgen": "^0.3.0",
6
- "@capacitor/core": "^7.0.0",
7
- "rollup": "^4.30.1",
8
- "@capacitor/ios": "^7.0.0",
9
- "@ionic/swiftlint-config": "^2.0.0",
10
- "rimraf": "^6.0.1",
11
- "@ionic/prettier-config": "^4.0.0",
12
- "swiftlint": "^2.0.0",
13
- "@ionic/eslint-config": "^0.4.0",
14
- "@capacitor/android": "^7.0.0",
15
- "eslint": "^8.57.0",
16
- "prettier-plugin-java": "^2.6.6",
17
- "prettier": "^3.4.2"
18
- },
19
- "license": "Apache-2.0",
20
- "peerDependencies": {
21
- "@capacitor/core": ">=7.0.0"
22
- },
23
- "bugs": {
24
- "url": "https://github.com/issues"
25
- },
26
- "swiftlint": "@ionic/swiftlint-config",
27
- "keywords": [
28
- "capacitor",
29
- "plugin",
30
- "native"
31
- ],
32
- "version": "7.1.0",
33
- "eslintConfig": {
34
- "extends": "@ionic/eslint-config/recommended"
35
- },
36
- "repository": {
37
- "type": "git",
38
- "url": "git+https://github.com/.git"
39
- },
40
- "types": "dist/esm/index.d.ts",
41
- "main": "dist/plugin.cjs.js",
42
- "description": "Capacitor GoDEX printer plugin",
43
- "capacitor": {
44
- "android": {
45
- "src": "android"
46
- },
47
- "ios": {
48
- "src": "ios"
49
- }
50
- },
51
- "files": [
52
- "android/src/main/",
53
- "android/libs/",
54
- "android/build.gradle",
55
- "dist/",
56
- "SimplymobileCapacitorGodexPrinter.podspec",
57
- "ios/Sources",
58
- "ios/Tests",
59
- "Package.swift"
60
- ],
61
- "author": "SimplyMobile",
62
- "name": "@simplymobile/capacitor-godex-printer",
63
- "scripts": {
64
- "prepublishOnly": "npm run build",
65
- "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
66
- "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
67
- "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
68
- "clean": "rimraf ./dist",
69
- "docgen": "docgen --api GodexPrinterPlugin --output-readme README.md --output-json dist/docs.json",
70
- "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
71
- "watch": "tsc --watch",
72
- "swiftlint": "node-swiftlint",
73
- "verify:web": "npm run build",
74
- "verify:ios": "xcodebuild -scheme SimplymobileCapacitorGodexPrinter -destination generic/platform=iOS",
75
- "eslint": "eslint . --ext ts",
76
- "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
77
- "verify:android": "cd android && ./gradlew clean build test && cd .."
78
- },
79
- "unpkg": "dist/plugin.js",
80
- "prettier": "@ionic/prettier-config"
81
- }
1
+ {
2
+ "module": "dist/esm/index.js",
3
+ "devDependencies": {
4
+ "typescript": "^5.9.3",
5
+ "@capacitor/docgen": "^0.3.1",
6
+ "@capacitor/core": "^8.0.0",
7
+ "rollup": "^4.53.2",
8
+ "@capacitor/ios": "^8.0.0",
9
+ "@ionic/swiftlint-config": "^2.0.0",
10
+ "rimraf": "^6.1.0",
11
+ "@ionic/prettier-config": "^4.0.0",
12
+ "swiftlint": "^2.0.0",
13
+ "@ionic/eslint-config": "^0.4.0",
14
+ "@capacitor/android": "^8.0.0",
15
+ "eslint": "^8.57.1",
16
+ "prettier-plugin-java": "^2.7.7",
17
+ "prettier": "^3.6.2"
18
+ },
19
+ "license": "Apache-2.0",
20
+ "peerDependencies": {
21
+ "@capacitor/core": ">=8.0.0"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/issues"
25
+ },
26
+ "swiftlint": "@ionic/swiftlint-config",
27
+ "keywords": [
28
+ "capacitor",
29
+ "plugin",
30
+ "native"
31
+ ],
32
+ "version": "8.1.0",
33
+ "eslintConfig": {
34
+ "extends": "@ionic/eslint-config/recommended"
35
+ },
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/.git"
39
+ },
40
+ "types": "dist/esm/index.d.ts",
41
+ "main": "dist/plugin.cjs.js",
42
+ "description": "Capacitor GoDEX printer plugin",
43
+ "capacitor": {
44
+ "android": {
45
+ "src": "android"
46
+ },
47
+ "ios": {
48
+ "src": "ios"
49
+ }
50
+ },
51
+ "files": [
52
+ "android/src/main/",
53
+ "android/libs/",
54
+ "android/build.gradle",
55
+ "dist/",
56
+ "SimplymobileCapacitorGodexPrinter.podspec",
57
+ "ios/Sources",
58
+ "ios/Tests",
59
+ "Package.swift"
60
+ ],
61
+ "author": "SimplyMobile",
62
+ "name": "@simplymobile/capacitor-godex-printer",
63
+ "scripts": {
64
+ "prepublishOnly": "npm run build",
65
+ "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
66
+ "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
67
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
68
+ "clean": "rimraf ./dist",
69
+ "docgen": "docgen --api GodexPrinterPlugin --output-readme README.md --output-json dist/docs.json",
70
+ "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
71
+ "watch": "tsc --watch",
72
+ "swiftlint": "node-swiftlint",
73
+ "verify:web": "npm run build",
74
+ "verify:ios": "xcodebuild -scheme SimplymobileCapacitorGodexPrinter -destination generic/platform=iOS",
75
+ "eslint": "eslint . --ext ts",
76
+ "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
77
+ "verify:android": "cd android && ./gradlew clean build test && cd .."
78
+ },
79
+ "unpkg": "dist/plugin.js",
80
+ "prettier": "@ionic/prettier-config"
81
+ }