MCPcopy Create free account
hub / github.com/NativeScript/android / CheckFileExists

Method CheckFileExists

test-app/runtime/src/main/cpp/ModuleInternal.cpp:251–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void ModuleInternal::CheckFileExists(Isolate* isolate, const std::string& path, const std::string& baseDir) {
252 JEnv env;
253 JniLocalRef jsModulename(env.NewStringUTF(path.c_str()));
254 JniLocalRef jsBaseDir(env.NewStringUTF(baseDir.c_str()));
255
256 env.CallStaticObjectMethod(MODULE_CLASS, RESOLVE_PATH_METHOD_ID, (jstring) jsModulename, (jstring) jsBaseDir);
257}
258
259Local<Object> ModuleInternal::LoadImpl(Isolate* isolate, const string& moduleName, const string& baseDir, bool& isData) {
260 auto pathKind = GetModulePathKind(moduleName);

Callers

nothing calls this directly

Calls 2

NewStringUTFMethod · 0.80

Tested by

no test coverage detected