Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuoos committed May 5, 2023
1 parent 10f22d9 commit 2574ce5
Show file tree
Hide file tree
Showing 33 changed files with 5,260 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
*.iml
*.apk
.gradle
.idea
.DS_Store
/build
/captures
app/debug/*
app/build/*
.externalNativeBuild
.cxx
local.properties
genshin.jks
app/release/output-metadata.json
app/debug/output-metadata.json
patch.bat
genshin-impact.apk
genshin-impact-lv0-lspatched.apk
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
90 changes: 90 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@

plugins {
id("com.android.application")
id("kotlin-android")
id("stringfog")
id("top.niunaijun.blackobfuscator")
}

android {
compileSdk = 32

defaultConfig {
applicationId = "Xuoos.GenshinImpact.Proxy"
minSdk = 28
targetSdk = 32
versionCode = 3
versionName = "1.0.4"
ndk {
abiFilters += listOf("armeabi-v7a","arm64-v8a", "x86", "x86_64")
}
}



buildTypes {
release {
isMinifyEnabled = false
isShrinkResources = false
setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro", "proguard-log.pro"))
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.majorVersion
}

sourceSets {
getByName("main") {
jniLibs.srcDirs("libs")
}
}

packagingOptions {
resources {
excludes += "/META-INF/**"
excludes += "/kotlin/**"
excludes += "/*.txt"
excludes += "/*.bin"
}
}

applicationVariants.all {
outputs.all {
(this as com.android.build.gradle.internal.api.BaseVariantOutputImpl).outputFileName =
"GI-Proxy-Xuoos-$name.apk"
}
}
}

BlackObfuscator {
isEnabled = false
//正常
//depth = 3
//极端
depth = 6
setObfClass("Xuoos", "kotlin", "com", "org")
//setBlackClass("GenshinProxy.Xuoos.StringFog")
}

stringfog {
implementation = "Xuoos.GenshinImpact.Proxy.StringFogImpl"
enable = true
//fogPackages = arrayOf("com.github", "org", "Kotlin", "GenshinProxy")
//kg = com.github.megatronking.stringfog.plugin.kg.RandomKeyGenerator()
// bytes ** base64
mode = com.github.megatronking.stringfog.plugin.StringFogMode.bytes
}

dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("lib*.so"))))
api("com.github.megatronking.stringfog:xor:4.0.1")
compileOnly("de.robv.android.xposed:api:82")
compileOnly("de.robv.android.xposed:api:82:sources")
implementation("com.github.kyuubiran:EzXHelper:0.9.2")
}
Loading

0 comments on commit 2574ce5

Please sign in to comment.