Skip to content

Commit

Permalink
feat: Add support for tears of themis, add signing config
Browse files Browse the repository at this point in the history
  • Loading branch information
4o3F committed May 4, 2024
1 parent c117c88 commit 9759365
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
build/
.dart_tool/
rust_builder
logs
logs
android/key.properties
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ android {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
// signingConfig signingConfigs.release
applicationVariants.all { variant ->
variant.outputs.all { output ->
if (variant.buildType.name.equals('release')) {
output.outputFileName = "ascent_${flutterVersionName}${getFilter(OutputFile.ABI)?"_${getFilter(OutputFile.ABI)}":""}.apk"
output.outputFileName = "ascent_${flutterVersionName}${getFilter(OutputFile.ABI) ? "_${getFilter(OutputFile.ABI)}" : ""}.apk"
} else if (variant.buildType.name.equals('debug')) {
outputFileName = "ascent_${flutterVersionName}${getFilter(OutputFile.ABI)?"_${getFilter(OutputFile.ABI)}":""}_debug.apk"
outputFileName = "ascent_${flutterVersionName}${getFilter(OutputFile.ABI) ? "_${getFilter(OutputFile.ABI)}" : ""}_debug.apk"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion rust/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn do_filter(file_path: String) -> Result<String> {
rt.block_on(async {
let bytes = fs::read(file_path).unwrap();
let data = String::from_utf8_lossy(bytes.as_slice()).to_string();
let re = Regex::new(r"https://(webstatic|hk4e-api|webstatic-sea|hk4e-api-os|api-takumi|api-os-takumi|gs|public-operation-hk4e).(mihoyo\.com|hoyoverse\.com).*authkey=.*\s.*game_biz.*(plat_type|#/log)").unwrap();
let re = Regex::new(r"https://(webstatic|hk4e-api|webstatic-sea|hk4e-api-os|api-takumi|api-os-takumi|gs|public-operation-hk4e).(mihoyo\.com|hoyoverse\.com).*authkey=.*\s*.*game_biz.*(plat_type|#/log)").unwrap();
let matches = re.find(data.as_str()).unwrap();
let data = String::from(matches.as_str());
let mut front_half: String = String::new();
Expand Down

0 comments on commit 9759365

Please sign in to comment.