()
| 31 | enableKeyboardWorkaround(); |
| 32 | |
| 33 | function 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 | |
| 46 | function getTmpDir() { |
no outgoing calls
no test coverage detected