expo-print 12.8.0 → 12.8.1
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/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '12.8.
|
|
6
|
+
version = '12.8.1'
|
|
7
7
|
|
|
8
8
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
9
9
|
if (expoModulesCorePlugin.exists()) {
|
|
@@ -94,7 +94,7 @@ android {
|
|
|
94
94
|
namespace "expo.modules.print"
|
|
95
95
|
defaultConfig {
|
|
96
96
|
versionCode 27
|
|
97
|
-
versionName "12.8.
|
|
97
|
+
versionName "12.8.1"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -87,7 +87,8 @@ internal class PrintPDFRenderTask(private val context: Context, private val opti
|
|
|
87
87
|
document = view.createPrintDocumentAdapter("Document")
|
|
88
88
|
// layout the document with appropriate print attributes
|
|
89
89
|
document.onLayout(null, printAttributes, null, object : PrintDocumentAdapterLayoutCallback() {}, null)
|
|
90
|
-
@SuppressLint("Range")
|
|
90
|
+
@SuppressLint("Range")
|
|
91
|
+
val pageHeight = PIXELS_PER_MIL * printAttributes.mediaSize!!.heightMils
|
|
91
92
|
numberOfPages = 1 + (view.contentHeight / pageHeight).toInt()
|
|
92
93
|
|
|
93
94
|
// Write to a file if file path was passed, otherwise invoke onRenderFinish callback
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-print",
|
|
3
|
-
"version": "12.8.
|
|
3
|
+
"version": "12.8.1",
|
|
4
4
|
"description": "Provides an API for iOS (AirPrint) and Android printing functionality.",
|
|
5
5
|
"main": "build/Print.js",
|
|
6
6
|
"types": "build/Print.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"expo": "*"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
|
|
44
44
|
}
|