forked from Blendman974/faceclaw
Rebase firmware on 2.3.0, fixing issue with lost ring input events
This commit is contained in:
1 parent
8ceecb6393
commit
b972cd7682
21 files changed
+790
-156
No files matched your search
@@ -109,7 +109,11 @@ test('pinned stock firmware reproduces the custom image, extracts fonts, and pas
|
||||
'@nativescript/core': { File: { exists: fs.existsSync, fromPath: file => ({ readTextSync: () => fs.readFileSync(file, 'utf8') }) },
|
||||
knownFolders: { documents: () => ({ path: temp, getFile: name => ({ writeTextSync: text => fs.writeFileSync(path.join(temp, name), text) }) }) } },
|
||||
'./firmware/cfw-patches': patches, './firmware-fonts': fonts,
|
||||
'../util/http': { fetchWithUserAgent: async () => ({ ok: true, arrayBuffer: async () => Uint8Array.from(base).buffer }) },
|
||||
'../util/http': { fetchWithUserAgent: async (url) => {
|
||||
const md5 = crypto.createHash('md5').update(base).digest('hex');
|
||||
assert.equal(url, `https://cdn.evenreal.co/firmware/${md5}.bin`);
|
||||
return { ok: true, arrayBuffer: async () => Uint8Array.from(base).buffer };
|
||||
} },
|
||||
'../util/hex-util': require('../.test-build/app/util/hex-util.js'), '../graphics/evenhub-font': { EvenHubFont: { invalidate() {} } },
|
||||
'../native/firmware-files': { firmwareSha256: hash, writeFirmwareFile: (file, buffer) => fs.writeFileSync(file, new Uint8Array(buffer)) },
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user