Skip to content

Commit 393f4ee

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 4b4adca + 7d59fa4 commit 393f4ee

File tree

5 files changed

+54
-21
lines changed

5 files changed

+54
-21
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [2.0.37](https://github.com/nativescript-community/gesturehandler/compare/v2.0.36...v2.0.37) (2025-10-08)
7+
8+
### Bug Fixes
9+
10+
* build fix for official N cli ([8a8dcfa](https://github.com/nativescript-community/gesturehandler/commit/8a8dcfa2b1784e19955f891c12384f3d54ef01f4))
11+
12+
## [2.0.36](https://github.com/nativescript-community/gesturehandler/compare/v2.0.34...v2.0.36) (2025-10-06)
13+
14+
**Note:** Version bump only for package gesturehandler
15+
616
## [2.0.34](https://github.com/nativescript-community/gesturehandler/compare/v2.0.33...v2.0.34) (2025-09-05)
717

818
**Note:** Version bump only for package gesturehandler

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.0.35",
2+
"version": "2.0.37",
33
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
44
"packages": [
55
"packages/*"

packages/gesturehandler/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [2.0.37](https://github.com/nativescript-community/gesturehandler/compare/v2.0.36...v2.0.37) (2025-10-08)
7+
8+
### Bug Fixes
9+
10+
* build fix for official N cli ([8a8dcfa](https://github.com/nativescript-community/gesturehandler/commit/8a8dcfa2b1784e19955f891c12384f3d54ef01f4))
11+
12+
## [2.0.36](https://github.com/nativescript-community/gesturehandler/compare/v2.0.34...v2.0.36) (2025-10-06)
13+
14+
**Note:** Version bump only for package @nativescript-community/gesturehandler
15+
616
## [2.0.34](https://github.com/nativescript-community/gesturehandler/compare/v2.0.33...v2.0.34) (2025-09-05)
717

818
**Note:** Version bump only for package @nativescript-community/gesturehandler

packages/gesturehandler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript-community/gesturehandler",
3-
"version": "2.0.34",
3+
"version": "2.0.37",
44
"description": "Declarative API exposing platform native touch and gesture system to NativeScript.",
55
"main": "gesturehandler",
66
"sideEffects": false,
Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,45 @@
11
import groovy.json.JsonSlurper
22

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-
}
13-
143
dependencies {
154
implementation "androidx.annotation:annotation:1.1.0"
165

176
if (project.hasProperty("tempBuild")) {
7+
// we need to copy the code in both places as N main gradle system does not support top level code
8+
// for now we support only @nativescript/core and @akylas/nativescript
9+
// we should have a more generic way
10+
def widgetsDir = "$USER_PROJECT_ROOT/node_modules/@nativescript/core/platforms/android"
11+
def appPackageJsonFile = file("$USER_PROJECT_ROOT/package.json")
12+
if (appPackageJsonFile.exists()) {
13+
def appPackageJson = new JsonSlurper().parseText(appPackageJsonFile.text)
14+
if (appPackageJson.dependencies['@akylas/nativescript'] != null) {
15+
widgetsDir = "$USER_PROJECT_ROOT/node_modules/@akylas/nativescript/platforms/android"
16+
}
17+
}
18+
1819
// if ui-mobile-base is provided as source the name is nativescript.aar
19-
if (file("$widgetsDir/nativescript.aar").exists()) {
20+
//else use widget-release.aar
21+
if (file("$widgetsDir/widgets-release.aar").exists()) {
22+
implementation(name:'widgets-release', ext:'aar')
23+
} else {
2024
implementation(name:'nativescript', ext:'aar')
2125
}
22-
// if ui-mobile-base is provided as aar the name is widget-release.aar
23-
if (file("$widgetsDir/widget-release.aar").exists()) {
24-
implementation(name:'widget-release', ext:'aar')
25-
}
2626
}
2727
}
2828
repositories {
29-
flatDir {
30-
dirs "$widgetsDir"
31-
}
29+
if (project.hasProperty("tempBuild")) {
30+
// we need to copy the code in both places as N main gradle system does not support top level code
31+
// for now we support only @nativescript/core and @akylas/nativescript
32+
// we should have a more generic way
33+
def widgetsDir = "$USER_PROJECT_ROOT/node_modules/@nativescript/core/platforms/android"
34+
def appPackageJsonFile = file("$USER_PROJECT_ROOT/package.json")
35+
if (appPackageJsonFile.exists()) {
36+
def appPackageJson = new JsonSlurper().parseText(appPackageJsonFile.text)
37+
if (appPackageJson.dependencies['@akylas/nativescript'] != null) {
38+
widgetsDir = "$USER_PROJECT_ROOT/node_modules/@akylas/nativescript/platforms/android"
39+
}
40+
}
41+
flatDir {
42+
dirs "$widgetsDir"
43+
}
44+
}
3245
}

0 commit comments

Comments
 (0)