@simplymobile/capacitor-godex-printer 2.0.0 → 7.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.
@@ -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 = '13.0'
14
+ s.ios.deployment_target = '14.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.6.1'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
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'
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.0.0'
14
+ classpath 'com.android.tools.build:gradle:8.7.2'
15
15
  }
16
16
  }
17
17
 
18
18
  apply plugin: 'com.android.library'
19
19
 
20
- android {
21
- namespace "pl.simplymobile.plugins.godexprinter"
22
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
20
+ android {
21
+ namespace "pl.simplymobile.plugins.godexprinter"
22
+ compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
23
23
  defaultConfig {
24
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
25
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
24
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
25
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
26
26
  versionCode 1
27
27
  versionName "1.0"
28
28
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -37,8 +37,8 @@ android {
37
37
  abortOnError false
38
38
  }
39
39
  compileOptions {
40
- sourceCompatibility JavaVersion.VERSION_17
41
- targetCompatibility JavaVersion.VERSION_17
40
+ sourceCompatibility JavaVersion.VERSION_21
41
+ targetCompatibility JavaVersion.VERSION_21
42
42
  }
43
43
  }
44
44
 
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var core = require('@capacitor/core');
6
4
 
7
5
  const GodexPrinter = core.registerPlugin('GodexPrinter', {
@@ -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';\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;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -35,8 +35,6 @@ var capacitorGodexPrinter = (function (exports, core) {
35
35
 
36
36
  exports.GodexPrinter = GodexPrinter;
37
37
 
38
- Object.defineProperty(exports, '__esModule', { value: true });
39
-
40
38
  return exports;
41
39
 
42
40
  })({}, capacitorExports);
@@ -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';\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;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplymobile/capacitor-godex-printer",
3
- "version": "2.0.0",
3
+ "version": "7.0.0",
4
4
  "description": "Capacitor GoDEX printer plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -36,32 +36,32 @@
36
36
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
37
37
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
38
38
  "eslint": "eslint . --ext ts",
39
- "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
39
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
40
40
  "swiftlint": "node-swiftlint",
41
41
  "docgen": "docgen --api GodexPrinterPlugin --output-readme README.md --output-json dist/docs.json",
42
- "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
42
+ "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
43
43
  "clean": "rimraf ./dist",
44
44
  "watch": "tsc --watch",
45
45
  "prepublishOnly": "npm run build"
46
46
  },
47
47
  "devDependencies": {
48
- "@capacitor/android": "^5.0.0",
49
- "@capacitor/core": "^5.0.0",
50
- "@capacitor/docgen": "^0.2.1",
51
- "@capacitor/ios": "^5.0.0",
52
- "@ionic/eslint-config": "^0.3.0",
53
- "@ionic/prettier-config": "^3.0.0",
54
- "@ionic/swiftlint-config": "^1.1.2",
55
- "eslint": "^7.11.0",
56
- "prettier": "~2.8.8",
57
- "prettier-plugin-java": "~2.1.0",
58
- "rimraf": "^3.0.2",
59
- "rollup": "^2.32.0",
60
- "swiftlint": "^1.0.1",
61
- "typescript": "~4.1.5"
48
+ "@capacitor/android": "^7.0.0",
49
+ "@capacitor/core": "^7.0.0",
50
+ "@capacitor/docgen": "^0.3.0",
51
+ "@capacitor/ios": "^7.0.0",
52
+ "@ionic/eslint-config": "^0.4.0",
53
+ "@ionic/prettier-config": "^4.0.0",
54
+ "@ionic/swiftlint-config": "^2.0.0",
55
+ "eslint": "^8.57.0",
56
+ "prettier": "^3.4.2",
57
+ "prettier-plugin-java": "^2.6.6",
58
+ "rimraf": "^6.0.1",
59
+ "rollup": "^4.30.1",
60
+ "swiftlint": "^2.0.0",
61
+ "typescript": "~4.1.6"
62
62
  },
63
63
  "peerDependencies": {
64
- "@capacitor/core": "^5.0.0"
64
+ "@capacitor/core": ">=7.0.0"
65
65
  },
66
66
  "prettier": "@ionic/prettier-config",
67
67
  "swiftlint": "@ionic/swiftlint-config",