TODO List
This commit is contained in:
parent
2d935f77c9
commit
4de1f5e47f
3 changed files with 31 additions and 0 deletions
15
src/apk.rs
Normal file
15
src/apk.rs
Normal 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
7
src/build.rs
Normal 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
|
||||||
|
}
|
|
@ -3,6 +3,8 @@ use std::{
|
||||||
time::{Duration, Instant},
|
time::{Duration, Instant},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mod apk;
|
||||||
|
mod build;
|
||||||
mod revanced;
|
mod revanced;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
|
@ -33,8 +35,13 @@ async fn main() {
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
println!("Scheduler starting");
|
println!("Scheduler starting");
|
||||||
|
|
||||||
|
/* TODO: Is it okay to run everything in threads ???
|
||||||
|
* Build depends on APK and ReVanced threads to be completed */
|
||||||
|
|
||||||
// Prepare threads
|
// Prepare threads
|
||||||
let thread_revanced = thread::spawn(revanced::worker);
|
let thread_revanced = thread::spawn(revanced::worker);
|
||||||
|
let thread_apk = thread::spawn(apk::worker);
|
||||||
|
let thread_build = thread::spawn(build::worker);
|
||||||
|
|
||||||
// Run threads
|
// Run threads
|
||||||
rt.block_on(async {
|
rt.block_on(async {
|
||||||
|
@ -43,6 +50,8 @@ async fn main() {
|
||||||
.expect("Thread Revanced panicked.")
|
.expect("Thread Revanced panicked.")
|
||||||
.await
|
.await
|
||||||
});
|
});
|
||||||
|
thread_apk.join().expect("Thread APK panicked.");
|
||||||
|
thread_build.join().expect("Thread Build panicked.");
|
||||||
|
|
||||||
let runtime = start.elapsed();
|
let runtime = start.elapsed();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue