Skip to content

Commit

Permalink
chore: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Aug 4, 2024
1 parent f8f6678 commit 65f0696
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 57 deletions.
2 changes: 1 addition & 1 deletion wsEvents/installReVanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = async function installReVanced(ws) {

for (const deviceId of global.jarNames.devices) {
const microGVersion = await getAppVersion_(
'com.mgoogle.android.gms',
'app.revanced.android.gms',
null,
false,
deviceId
Expand Down
18 changes: 0 additions & 18 deletions wsEvents/patchApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,22 +212,4 @@ module.exports = async function patchApp(ws) {

if (data.toString().includes('Unmatched')) reportSys(args, ws);
});

buildProcess.stderr.on('data', async (data) => {
ws.send(
JSON.stringify({
event: 'patchLog',
log: data.toString()
})
);

if (data.toString().includes('Purged') || data.toString().includes('purge')) await afterBuild(ws);

if (data.toString().includes('INSTALL_FAILED_UPDATE_INCOMPATIBLE')) {
await reinstallReVanced(ws);
await afterBuild(ws);
}

if (data.toString().includes('Unmatched')) reportSys(args, ws);
});
};
22 changes: 2 additions & 20 deletions wsEvents/patchAppArscLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ async function afterBuild(ws) {
ws.send(
JSON.stringify({
event: 'patchLog',
log: `Copied files over to /storage/emulated/0/!\nPlease install ReVanced, its located in /storage/emulated/0/${global.outputName}\nand if you are building YT/YTM ReVanced without root, also install /storage/emulated/0/microg.apk.`
log: `Copied files over to /storage/emulated/0/!\nPlease install ReVanced, its located in /storage/emulated/0/${global.outputName}.`
})
);
}
else if (!(global.jarNames.devices && global.jarNames.devices[0]))
ws.send(
JSON.stringify({
event: 'patchLog',
log: `ReVanced has been built!\nPlease transfer over revanced/${global.outputName} and if you are using YT/YTM, revanced/microg.apk and install them!`
log: `ReVanced has been built!\nPlease transfer over revanced/${global.outputName}.`
})
);

Expand Down Expand Up @@ -162,22 +162,4 @@ module.exports = async function patchAppArscLib(ws) {

if (data.toString().includes('Unmatched')) reportSys(args, ws);
});

buildProcess.stderr.on('data', async (data) => {
ws.send(
JSON.stringify({
event: 'patchLog',
log: data.toString()
})
);

if (data.toString().includes('Finished')) await afterBuild(ws);

if (data.toString().includes('INSTALL_FAILED_UPDATE_INCOMPATIBLE')) {
await reinstallReVanced(ws);
await afterBuild(ws);
}

if (data.toString().includes('Unmatched')) reportSys(args, ws);
});
};
18 changes: 0 additions & 18 deletions wsEvents/patchAppWithRipLibs.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,22 +240,4 @@ module.exports = async function patchAppWithRipLibs(ws) {

if (data.toString().includes('Unmatched')) reportSys(args, ws);
});

buildProcess.stderr.on('data', async (data) => {
ws.send(
JSON.stringify({
event: 'patchLog',
log: data.toString()
})
);

if (data.toString().includes('Purged') || data.toString().includes('purge')) await afterBuild(ws);

if (data.toString().includes('INSTALL_FAILED_UPDATE_INCOMPATIBLE')) {
await reinstallReVanced(ws);
await afterBuild(ws);
}

if (data.toString().includes('Unmatched')) reportSys(args, ws);
});
};

0 comments on commit 65f0696

Please sign in to comment.