TODO List

This commit is contained in:
Mylloon 2023-09-05 17:41:57 +02:00
parent 2d935f77c9
commit 4de1f5e47f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 31 additions and 0 deletions

15
src/apk.rs Normal file
View file

@ -0,0 +1,15 @@
/// APKs worker
pub fn worker() {
todo!()
// Get the list of supported APKs from ReVanced
// We may need to do download it first in revanced.rs ?
/* IDEA
* Logic of exclusion?
* We can by default include all patches, and from a config file, having a
* list user-defined of patches to exclude (to reduce the need to change it
* a lot overtime) */
// Based on what is supported and what the user wanna build, we should
// Fetch the latest (supported) version of packages
}

7
src/build.rs Normal file
View file

@ -0,0 +1,7 @@
/// Build worker
pub fn worker() {
todo!()
// We are here building ReVanced APK
// Using the downloaded required ReVanced tools and required APKs
}

View file

@ -3,6 +3,8 @@ use std::{
time::{Duration, Instant},
};
mod apk;
mod build;
mod revanced;
mod utils;
@ -33,8 +35,13 @@ async fn main() {
let start = Instant::now();
println!("Scheduler starting");
/* TODO: Is it okay to run everything in threads ???
* Build depends on APK and ReVanced threads to be completed */
// Prepare threads
let thread_revanced = thread::spawn(revanced::worker);
let thread_apk = thread::spawn(apk::worker);
let thread_build = thread::spawn(build::worker);
// Run threads
rt.block_on(async {
@ -43,6 +50,8 @@ async fn main() {
.expect("Thread Revanced panicked.")
.await
});
thread_apk.join().expect("Thread APK panicked.");
thread_build.join().expect("Thread Build panicked.");
let runtime = start.elapsed();