@nativescript-community/ui-image 4.6.0 → 4.6.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
+ ## [4.6.1](https://github.com/nativescript-community/ui-image/compare/v4.6.0...v4.6.1) (2025-10-08)
7
+
8
+ ### Bug Fixes
9
+
10
+ * support N official cli ([6988afe](https://github.com/nativescript-community/ui-image/commit/6988afe51896626e5accc738e8febd340f09ae2e))
11
+
6
12
  ## [4.6.0](https://github.com/nativescript-community/ui-image/compare/v4.5.7...v4.6.0) (2025-10-06)
7
13
 
8
14
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-image",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "description": "Advanced and efficient image display plugin which uses Fresco (Android) and SDWebImage (iOS) to implement caching, placeholders, image effects, and much more.",
5
5
  "main": "./index",
6
6
  "sideEffects": false,
@@ -44,5 +44,5 @@
44
44
  },
45
45
  "license": "Apache-2.0",
46
46
  "readmeFilename": "README.md",
47
- "gitHead": "bd62b4826c83c73ee7de69e65998317788894f08"
47
+ "gitHead": "dc818e98e39c0000d40544ab86e676e27d4261e5"
48
48
  }
@@ -1,15 +1,6 @@
1
1
  import groovy.json.JsonSlurper
2
2
 
3
- // for now we support only @nativescript/core and @akylas/nativescript
4
- // we should have a more generic way
5
- def widgetsDir = "$USER_PROJECT_ROOT/node_modules/@nativescript/core/platforms/android"
6
- def appPackageJsonFile = file("$USER_PROJECT_ROOT/package.json")
7
- if (appPackageJsonFile.exists()) {
8
- def appPackageJson = new JsonSlurper().parseText(appPackageJsonFile.text)
9
- if (appPackageJson.dependencies['@akylas/nativescript'] != null) {
10
- widgetsDir = "$USER_PROJECT_ROOT/node_modules/@akylas/nativescript/platforms/android"
11
- }
12
- }
3
+
13
4
 
14
5
  dependencies {
15
6
  def frescoVersion = project.hasProperty("frescoVersion") ? project.frescoVersion : "3.1.3"
@@ -29,19 +20,42 @@ dependencies {
29
20
  // }
30
21
 
31
22
  if (project.hasProperty("tempBuild")) {
23
+ // we need to copy the code in both places as N main gradle system does not support top level code
24
+ // for now we support only @nativescript/core and @akylas/nativescript
25
+ // we should have a more generic way
26
+ def widgetsDir = "$USER_PROJECT_ROOT/node_modules/@nativescript/core/platforms/android"
27
+ def appPackageJsonFile = file("$USER_PROJECT_ROOT/package.json")
28
+ if (appPackageJsonFile.exists()) {
29
+ def appPackageJson = new JsonSlurper().parseText(appPackageJsonFile.text)
30
+ if (appPackageJson.dependencies['@akylas/nativescript'] != null) {
31
+ widgetsDir = "$USER_PROJECT_ROOT/node_modules/@akylas/nativescript/platforms/android"
32
+ }
33
+ }
34
+
32
35
  // if ui-mobile-base is provided as source the name is nativescript.aar
33
- if (file("$widgetsDir/nativescript.aar").exists()) {
36
+ //else use widget-release.aar
37
+ if (file("$widgetsDir/widgets-release.aar").exists()) {
38
+ implementation(name:'widgets-release', ext:'aar')
39
+ } else {
34
40
  implementation(name:'nativescript', ext:'aar')
35
41
  }
36
- // if ui-mobile-base is provided as aar the name is widget-release.aar
37
- if (file("$widgetsDir/widget-release.aar").exists()) {
38
- implementation(name:'widget-release', ext:'aar')
39
- }
42
+ }
40
43
  }
41
44
  }
42
45
 
43
46
  repositories {
44
47
  mavenCentral()
48
+ // we need to copy the code in both places as N main gradle system does not support top level code
49
+ // for now we support only @nativescript/core and @akylas/nativescript
50
+ // we should have a more generic way
51
+ def widgetsDir = "$USER_PROJECT_ROOT/node_modules/@nativescript/core/platforms/android"
52
+ def appPackageJsonFile = file("$USER_PROJECT_ROOT/package.json")
53
+ if (appPackageJsonFile.exists()) {
54
+ def appPackageJson = new JsonSlurper().parseText(appPackageJsonFile.text)
55
+ if (appPackageJson.dependencies['@akylas/nativescript'] != null) {
56
+ widgetsDir = "$USER_PROJECT_ROOT/node_modules/@akylas/nativescript/platforms/android"
57
+ }
58
+ }
45
59
  flatDir {
46
60
  dirs "$widgetsDir"
47
61
  }