expo-print 12.7.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
@@ -10,6 +10,21 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 12.8.1 — 2023-12-19
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 12.8.0 — 2023-11-14
18
+
19
+ ### 🛠 Breaking changes
20
+
21
+ - Bumped iOS deployment target to 13.4. ([#25063](https://github.com/expo/expo/pull/25063) by [@gabrieldonadel](https://github.com/gabrieldonadel))
22
+ - On `Android` bump `compileSdkVersion` and `targetSdkVersion` to `34`. ([#24708](https://github.com/expo/expo/pull/24708) by [@alanjhughes](https://github.com/alanjhughes))
23
+
24
+ ### 💡 Others
25
+
26
+ - Remove `unimodule.json` in favour of `expo-module.config.json`. ([#25100](https://github.com/expo/expo/pull/25100) by [@reichhartd](https://github.com/reichhartd))
27
+
13
28
  ## 12.7.0 — 2023-10-17
14
29
 
15
30
  ### 🛠 Breaking changes
@@ -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.7.0'
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()) {
@@ -61,11 +61,11 @@ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
61
61
  android {
62
62
  // Remove this if and it's contents, when support for SDK49 is dropped
63
63
  if (!safeExtGet("expoProvidesDefaultConfig", false)) {
64
- compileSdkVersion safeExtGet("compileSdkVersion", 33)
64
+ compileSdkVersion safeExtGet("compileSdkVersion", 34)
65
65
 
66
66
  defaultConfig {
67
67
  minSdkVersion safeExtGet("minSdkVersion", 23)
68
- targetSdkVersion safeExtGet("targetSdkVersion", 33)
68
+ targetSdkVersion safeExtGet("targetSdkVersion", 34)
69
69
  }
70
70
 
71
71
  publishing {
@@ -94,7 +94,7 @@ android {
94
94
  namespace "expo.modules.print"
95
95
  defaultConfig {
96
96
  versionCode 27
97
- versionName "12.7.0"
97
+ versionName "12.8.1"
98
98
  }
99
99
  }
100
100
 
@@ -10,5 +10,5 @@ internal class PrintOptions(
10
10
  @Field var width: Int? = null,
11
11
  @Field var height: Int? = null,
12
12
  @Field var orientation: String? = null,
13
- @Field var base64: Boolean = false,
13
+ @Field var base64: Boolean = false
14
14
  ) : Record, Serializable
@@ -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") val pageHeight = PIXELS_PER_MIL * printAttributes.mediaSize!!.heightMils
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
@@ -1,9 +1,9 @@
1
1
  {
2
- "platforms": ["ios", "android"],
3
- "ios": {
4
- "modules": ["ExpoPrintModule"]
5
- },
6
- "android": {
7
- "modules":["expo.modules.print.PrintModule"]
8
- }
2
+ "platforms": ["ios", "android"],
3
+ "ios": {
4
+ "modules": ["ExpoPrintModule"]
5
+ },
6
+ "android": {
7
+ "modules": ["expo.modules.print.PrintModule"]
8
+ }
9
9
  }
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.license = package['license']
11
11
  s.author = package['author']
12
12
  s.homepage = package['homepage']
13
- s.platform = :ios, '13.0'
13
+ s.platform = :ios, '13.4'
14
14
  s.source = { git: 'https://github.com/expo/expo.git' }
15
15
  s.static_framework = true
16
16
  s.swift_version = '5.4'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-print",
3
- "version": "12.7.0",
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": "da25937e2a99661cbe5eb60ca1d8d6245fc96a50"
43
+ "gitHead": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
44
44
  }
package/unimodule.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "name": "expo-print",
3
- "platforms": ["ios", "android"]
4
- }