Skip to content

refactor: move the core into nativescript::common - #1

Merged
edusperoni merged 2 commits into
mainfrom
refactor/nativescript-common-namespace
Dec 5, 2026
Merged

edusperoni merged 2 commits into
mainfrom
refactor/nativescript-common-namespace

Conversation

@edusperoni

@edusperoni edusperoni commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

Moves the core from a top-level ns:: into nativescript::common, subdivided by component (nativescript::common::base64 today). Include guards follow; the include root stays ns/, since a nativescript/ root matches the NativeScript/ source folders on case-insensitive file systems.

DESIGN.md:

  • New "Layering and direction" section: this repository is the app runtime (builtins, module loading, code cache, event loop), unified on V8 first. ns:native comes next, then an engine-agnostic API that existing engine layers grow into.
  • Rules from it: no slower path to avoid a V8 type; V8 calls confined to their own files; the namespace convention.
  • §4.4 keeps v8::Task and the isolate key, with hot paths reaching the loop through an isolate data slot.
  • F7 recorded as decided.

Formatting: CI now checks every .h/.cpp against the iOS runtime's .clang-format with clang-format 22.1.8. A file moved from a runtime and kept comparable with its copy goes in .clang-format-ignore until the migration ends.

Host tests pass locally (ASan/UBSan).

Nest under nativescript:: with one sub-namespace of our own, subdivided by component, and rename the include guards to match. DESIGN.md gains the layering and direction (app runtime first on V8, ns:native next, an engine-agnostic API after), records F7, and keeps V8 types where a neutral shape would cost.
@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Free
  • Run ID: dca12140-6393-4f63-8b31-e23f9ea76676

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

NativeScript is on CodeRabbit Free, which includes PR summaries. Ask your admin to upgrade for code reviews.

  • Ask an admin to upgrade

Open in CodeRabbit

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Pinned clang-format 22.1.8. Files kept comparable with a runtime's copy during the migration go in .clang-format-ignore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant