Skip to content

Commit 1bbf835

Browse files
authored
Merge branch 'main' into feat/ada-v3
2 parents b5ad951 + e293636 commit 1bbf835

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

.github/workflows/npm_release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ jobs:
7373
- name: Build npm package
7474
run: ./gradlew -PgitCommitVersion=${{ github.sha }} -PnoCCache --stacktrace
7575
- name: Upload npm package artifact
76-
uses: actions/upload-artifact@v3
76+
uses: actions/upload-artifact@v4
7777
with:
7878
name: npm-package
7979
path: dist/nativescript-android-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
8080
- name: Upload debug symbols
81-
uses: actions/upload-artifact@v3
81+
uses: actions/upload-artifact@v4
8282
with:
8383
name: debug-symbols
8484
path: test-app/runtime/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*
@@ -146,7 +146,7 @@ jobs:
146146
with:
147147
node-version: 18
148148
registry-url: "https://registry.npmjs.org"
149-
- uses: actions/download-artifact@v3
149+
- uses: actions/download-artifact@v4
150150
with:
151151
name: npm-package
152152
path: dist
@@ -176,11 +176,11 @@ jobs:
176176
node-version: 18
177177
- name: Setup
178178
run: npm install
179-
- uses: actions/download-artifact@v3
179+
- uses: actions/download-artifact@v4
180180
with:
181181
name: npm-package
182182
path: dist
183-
- uses: actions/download-artifact@v3
183+
- uses: actions/download-artifact@v4
184184
with:
185185
name: debug-symbols
186186
path: dist/debug-symbols

.github/workflows/pull_request.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ jobs:
7070
- name: Build npm package
7171
run: ./gradlew -PgitCommitVersion=${{ github.sha }} -PnoCCache --stacktrace
7272
- name: Upload npm package artifact
73-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
7474
with:
7575
name: npm-package
7676
path: dist/nativescript-android-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
7777
- name: Upload debug symbols
78-
uses: actions/upload-artifact@v3
78+
uses: actions/upload-artifact@v4
7979
with:
8080
name: debug-symbols
8181
path: test-app/runtime/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*

test-app/runtime/src/main/cpp/MetadataNode.cpp

+9-5
Original file line numberDiff line numberDiff line change
@@ -859,11 +859,15 @@ void MetadataNode::SetInnerTypes(v8::Isolate* isolate, Local<Function>& ctorFunc
859859
auto context = isolate->GetCurrentContext();
860860
const auto &children = *treeNode->children;
861861
for (auto curChild: children) {
862-
ctorFunction->SetAccessor(
863-
context,
864-
v8::String::NewFromUtf8(isolate, curChild->name.c_str()).ToLocalChecked(),
865-
InnerTypeAccessorGetterCallback, nullptr, v8::External::New(isolate, curChild)
866-
);
862+
bool hasOwnProperty = ctorFunction->HasOwnProperty(context, ArgConverter::ConvertToV8String(isolate, curChild->name)).ToChecked();
863+
// Child is defined as a function already when the inner type is a companion object
864+
if (!hasOwnProperty) {
865+
ctorFunction->SetAccessor(
866+
context,
867+
v8::String::NewFromUtf8(isolate, curChild->name.c_str()).ToLocalChecked(),
868+
InnerTypeAccessorGetterCallback, nullptr, v8::External::New(isolate, curChild)
869+
);
870+
}
867871
}
868872
}
869873
}

0 commit comments

Comments
 (0)