@akylas/nativescript-app-utils 2.2.0 → 2.2.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
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.1](https://github.com/akylas/nativescript-app-utils/compare/v2.2.0...v2.2.1) (2024-12-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **ios:** handle urls starting with file:// ([cf78de2](https://github.com/akylas/nativescript-app-utils/commit/cf78de281977d11d2f16e59bfccfdd87bc81c543))
11
+
6
12
  ## [2.2.0](https://github.com/akylas/nativescript-app-utils/compare/v2.1.6...v2.2.0) (2024-11-14)
7
13
 
8
14
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akylas/nativescript-app-utils",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Provides API for changing the styles of SystemUI (StatusBar, NavigationBar...) on iOS.",
5
5
  "main": "index",
6
6
  "sideEffects": false,
@@ -66,5 +66,5 @@
66
66
  "dependencies": {
67
67
  "@nativescript-community/ui-share-file": "1.3.3"
68
68
  },
69
- "gitHead": "c14683e3b3571d6ff51f84a0c05161a7b0df9bb0"
69
+ "gitHead": "83d8799e538f6dae600c486a122b6bbafefd7e4a"
70
70
  }
@@ -152,7 +152,7 @@ class ImageUtils : NSObject {
152
152
  }
153
153
 
154
154
  static func getImageSize(_ src: String) -> Dictionary<String, Any>? {
155
- let url = NSURL.fileURL(withPath: src)
155
+ let url = NSURL.fileURL(withPath: src.replacingOccurrences(of: "file://", with: ""))
156
156
  let imageSource = CGImageSourceCreateWithURL(url as CFURL, nil);
157
157
  if (imageSource == nil) {
158
158
  // Error loading image
@@ -191,7 +191,7 @@ class ImageUtils : NSObject {
191
191
 
192
192
 
193
193
  static func readImageFromFileSync(_ src: String, options: NSDictionary?) -> UIImage? {
194
- let image = UIImage(contentsOfFile: src)
194
+ let image = UIImage(contentsOfFile: src.replacingOccurrences(of: "file://", with: ""))
195
195
  if let image {
196
196
  let size = image.size
197
197
  let imageOrientation = image.imageOrientation