Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Bump to 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-TSNG committed Mar 19, 2022
1 parent 5e32ccc commit a3e911e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Expand Up @@ -9,7 +9,7 @@ plugins {
val properties = Properties()
properties.load(project.rootProject.file("local.properties").inputStream())

val verName = "1.2"
val verName = "1.2.1"
val gitCommitCount = "git rev-list HEAD --count".execute().toInt()
val gitCommitHash = "git rev-parse --verify --short HEAD".execute()

Expand Down
Expand Up @@ -4,12 +4,15 @@ import android.app.Activity
import com.github.kyuubiran.ezxhelper.utils.Log
import com.github.kyuubiran.ezxhelper.utils.findMethod
import com.github.kyuubiran.ezxhelper.utils.hookAfter
import de.robv.android.xposed.XC_MethodHook.Unhook
import icu.nullptr.twifucker.BuildConfig
import icu.nullptr.twifucker.hook.modulePrefs
import icu.nullptr.twifucker.ui.SettingsDialog

private lateinit var theHook: Unhook;

fun mainActivityHook() {
findMethod("com.twitter.app.main.MainActivity") {
theHook = findMethod("com.twitter.app.main.MainActivity") {
name == "onResume"
}.hookAfter { param ->
Log.d("MainActivity onResume")
Expand All @@ -20,5 +23,6 @@ fun mainActivityHook() {
if (modulePrefs.getBoolean("show_toast", true)) {
Log.toast("TwiFucker version ${BuildConfig.VERSION_NAME}")
}
theHook.unhook()
}
}

0 comments on commit a3e911e

Please sign in to comment.