@capgo/capacitor-printer 8.1.8 → 8.1.10
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/README.md
CHANGED
|
@@ -16,6 +16,18 @@ Print documents, HTML, PDFs, images and the current web view from your Capacitor
|
|
|
16
16
|
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-printer/main/assets/github-social-preview.png" alt="@capgo/capacitor-printer for Capacitor apps" width="300" />
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
+
## Built and maintained with AI
|
|
20
|
+
|
|
21
|
+
We build, improve and fix our plugins with heavy use of AI, so issues usually get fixed in under a day and pull requests get feedback the same day. A human still reviews and merges 50+ pull requests daily.
|
|
22
|
+
|
|
23
|
+
- Most plugin issues get a fix pull request the same day, often within a couple of hours, and are usually resolved in one to two days.
|
|
24
|
+
- Every pull request goes through our AI review system, usually within minutes.
|
|
25
|
+
- Our AI pre-checks tests, code review, conventions and security, then a human validates and merges.
|
|
26
|
+
- A human, Martin, reviews and merges 50+ pull requests every day.
|
|
27
|
+
- In the last 90 days, 95% of plugin issues were resolved.
|
|
28
|
+
|
|
29
|
+
[Learn more about how we build with AI](https://capgo.app/docs/plugins/ai-engineering/)
|
|
30
|
+
|
|
19
31
|
## Key features
|
|
20
32
|
|
|
21
33
|
- **HTML**: `printHtml()` prints an HTML string.
|
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.10";
|
|
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.10"
|
|
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.10",
|
|
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",
|