Skip to content

x - #46

Closed
herefishyfish wants to merge 1 commit into
vercel-labs:mainfrom
herefishyfish:NativeScriptC
Closed

x#46
herefishyfish wants to merge 1 commit into
vercel-labs:mainfrom
herefishyfish:NativeScriptC

Conversation

@herefishyfish

Copy link
Copy Markdown

No description provided.

- Add scr_android.c and scr_android.h for Android-specific runtime functions.
- Implement JNI methods for object and field access, method invocation, and string conversion.
- Create a new Android target in the pnpm workspace and update dependencies.
- Add test fixtures for Android applications, including async handling, metadata recognition, and UI interactions.
- Implement tests for compiling Android projects and ensure proper integration with the Scriptc runtime.
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@herefishyfish is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@herefishyfish herefishyfish changed the title feat(android): implement Android runtime support x Jul 29, 2026
@herefishyfish
herefishyfish deleted the NativeScriptC branch July 29, 2026 06:45
@herefishyfish
herefishyfish restored the NativeScriptC branch July 29, 2026 06:45
return result;
}

ScrStr *scr_android_call_string(SCR_ANDROID_CALL_PARAMS) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Android JNI object/string getters that receive a legitimate Java null (no pending exception) return a NULL ScrStr*/ScrAndroidRef* that the type system treats as non-null, causing an uncatchable segfault on the next dereference instead of a catchable scriptc error.

Fix on Vercel

cmake_minimum_required(VERSION 3.22.1)
project(scriptc_app C)

add_library(scriptc_app SHARED

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Synchronous programs using regex/URL/Symbol/path/etc. pass compileAndroid but reference runtime symbols from .c units the Android CMakeLists.txt never compiles, producing a cryptic NDK undefined-symbol link error.

Fix on Vercel

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