-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from breadrock1/hotfix/check-urls-fault
Hotfix: Check urls fault
- Loading branch information
Showing
16 changed files
with
126,558 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "adblock-coffee" | ||
version = "0.1.3" | ||
version = "0.1.4" | ||
edition = "2021" | ||
authors = ["Bread White <[email protected]>"] | ||
|
||
|
@@ -10,6 +10,12 @@ crate_type = ["cdylib"] | |
[dependencies] | ||
anyhow = "^1.0" | ||
adblock = "^0.8" | ||
env_logger = "0.11.3" | ||
jni = "^0.21" | ||
thiserror = "^1.0" | ||
lazy_static = "1.5.0" | ||
log = "0.4.22" | ||
once_cell = "1.19.0" | ||
thiserror = "^1.0" | ||
|
||
[target.'cfg(target_os = "android")'.dependencies] | ||
android_logger = "^0.14" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use lazy_static::lazy_static; | ||
use std::sync::Once; | ||
|
||
#[cfg(target_os = "android")] | ||
use {android_logger::Config, log::LevelFilter}; | ||
|
||
#[cfg(not(target_os = "android"))] | ||
use {env_logger::Builder, log::LevelFilter}; | ||
|
||
lazy_static! { | ||
static ref _LOGGER: Once = { | ||
let init = Once::new(); | ||
|
||
#[cfg(target_os = "android")] | ||
init.call_once(|| { | ||
android_logger::init_once( | ||
Config::default() | ||
.with_tag("Tag_RustAdvtBlocker") | ||
.with_max_level(LevelFilter::max()), | ||
); | ||
}); | ||
|
||
#[cfg(not(target_os = "android"))] | ||
init.call_once(|| { | ||
let mut builder = Builder::new(); | ||
builder.filter_level(LevelFilter::Debug); | ||
builder.init(); | ||
}); | ||
|
||
init | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.