forked from Blendman974/faceclaw
Merge pull request #51 from A-nony-mous/fix/windows-build
Fix the Android build on Windows
This commit is contained in:
4 files changed
+23
-5
No files matched your search
@@ -7,7 +7,7 @@ const vm = require('node:vm');
|
||||
// The injected shim (app/apps/evenhub/session.ts) and the published types
|
||||
// (evenhub-extensions/src/index.ts) describe the same API from two sides.
|
||||
const source = fs.readFileSync(path.join(__dirname, '../app/apps/evenhub/session.ts'), 'utf8');
|
||||
const template = source.match(/export function buildFaceclawExtensionsScript[^`]*`([\s\S]*?)`;\n}/)[1];
|
||||
const template = source.match(/export function buildFaceclawExtensionsScript[^`]*`([\s\S]*?)`;\r?\n}/)[1];
|
||||
const shim = template.replace('${JSON.stringify(versionString)}', JSON.stringify('Faceclaw/9.9.9'));
|
||||
const types = fs.readFileSync(path.join(__dirname, '../evenhub-extensions/src/index.ts'), 'utf8');
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ test('every remaining Java source has an explicit Android boundary and every mig
|
||||
const java = path.join(root, 'App_Resources/Android/src/main/java');
|
||||
const list = directory => fs.readdirSync(directory, { withFileTypes: true }).flatMap(entry => {
|
||||
const file = path.join(directory, entry.name);
|
||||
return entry.isDirectory() ? list(file) : file.endsWith('.java') ? [path.relative(java, file)] : [];
|
||||
return entry.isDirectory() ? list(file) : file.endsWith('.java') ? [path.relative(java, file).split(path.sep).join('/')] : [];
|
||||
});
|
||||
const boundaries = require('../native/kotlin/android-java-boundaries.json');
|
||||
const retained = boundaries.flatMap(group => { assert.ok(group.reason.length > 20); return group.files; });
|
||||
|
||||
Reference in new issue
Block a user