MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getPackageName

Function getPackageName

hooks/post-process.js:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31enableKeyboardWorkaround();
32
33function getPackageName() {
34 const configPath = path.resolve(__dirname, '../config.xml');
35 if (!fs.existsSync(configPath)) {
36 console.warn('[Cordova Hook] ⚠️ config.xml not found at', configPath);
37 throw new Error(`config.xml is missing at ${configPath}`);
38 }
39 const content = fs.readFileSync(configPath, 'utf-8');
40 const match = content.match(/id="([^"]+)"/);
41 const packageName = match ? match[1] : 'com.foxdebug.acode';
42 return packageName;
43}
44
45
46function getTmpDir() {

Callers 2

enableStaticContextFunction · 0.85
enableKeyboardWorkaroundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected