@capgo/capacitor-printer 8.1.8 → 8.1.9
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/android/build.gradle
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Consumer rules for apps that enable R8 (Capacitor 9 release defaults).
|
|
2
|
+
# Duplicate of library proguard-rules.pro content, merged into app shrinkers via consumerProguardFiles.
|
|
3
|
+
|
|
4
|
+
# Capacitor discovers @CapacitorPlugin classes and @PluginMethod handlers via reflection on the JS bridge.
|
|
5
|
+
# Keep annotation metadata Capacitor reads through PluginHandle reflection.
|
|
6
|
+
-keepattributes RuntimeVisibleAnnotations
|
|
7
|
+
-keep @interface com.getcapacitor.annotation.** { *; }
|
|
8
|
+
-keep @interface com.getcapacitor.PluginMethod { *; }
|
|
9
|
+
|
|
10
|
+
-keep @com.getcapacitor.annotation.CapacitorPlugin public class com.capgo.printer.PrinterPlugin {
|
|
11
|
+
@com.getcapacitor.PluginMethod public <methods>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
# Printer and its inner PrintDocumentAdapter implementations (PDF and content URI paths). Kept with the public constructor used from PrinterPlugin.
|
|
15
|
+
-keep class com.capgo.printer.Printer {
|
|
16
|
+
<init>(android.content.Context, android.app.Activity);
|
|
17
|
+
public <methods>;
|
|
18
|
+
}
|
|
19
|
+
-keep class com.capgo.printer.Printer$* {
|
|
20
|
+
<init>(...);
|
|
21
|
+
<methods>;
|
|
22
|
+
}
|
|
@@ -9,7 +9,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
9
9
|
@CapacitorPlugin(name = "Printer")
|
|
10
10
|
public class PrinterPlugin extends Plugin {
|
|
11
11
|
|
|
12
|
-
private final String pluginVersion = "8.1.
|
|
12
|
+
private final String pluginVersion = "8.1.9";
|
|
13
13
|
|
|
14
14
|
private Printer implementation;
|
|
15
15
|
|
|
@@ -3,7 +3,7 @@ import Capacitor
|
|
|
3
3
|
|
|
4
4
|
@objc(PrinterPlugin)
|
|
5
5
|
public class PrinterPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
6
|
-
private let pluginVersion: String = "8.1.
|
|
6
|
+
private let pluginVersion: String = "8.1.9"
|
|
7
7
|
public let identifier = "PrinterPlugin"
|
|
8
8
|
public let jsName = "Printer"
|
|
9
9
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-printer",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.9",
|
|
4
4
|
"description": "Capacitor plugin for printing documents, HTML, PDFs, images and web views",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"android/src/main/",
|
|
11
11
|
"android/build.gradle",
|
|
12
|
+
"android/consumer-rules.pro",
|
|
12
13
|
"dist/",
|
|
13
14
|
"ios/Sources",
|
|
14
15
|
"ios/Tests",
|