mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 17:55:24 +08:00
...
This commit is contained in:
@@ -30,7 +30,7 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
signingConfig signingConfigs.debug
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
|
@@ -27,9 +27,13 @@
|
||||
*/
|
||||
package com.highcapable.yukihookapi.demo
|
||||
|
||||
import androidx.annotation.Keep
|
||||
|
||||
// for test
|
||||
@Keep
|
||||
class InjectTest(private val string: String) {
|
||||
|
||||
// for test
|
||||
@Keep
|
||||
fun getString() = string
|
||||
}
|
@@ -27,9 +27,13 @@
|
||||
*/
|
||||
package com.highcapable.yukihookapi.demo
|
||||
|
||||
import androidx.annotation.Keep
|
||||
|
||||
// for test
|
||||
@Keep
|
||||
class InjectTestName(private val string: String) {
|
||||
|
||||
// for test
|
||||
@Keep
|
||||
fun getString() = string
|
||||
}
|
@@ -31,12 +31,15 @@ package com.highcapable.yukihookapi.demo
|
||||
|
||||
import android.os.Bundle
|
||||
import android.widget.Toast
|
||||
import androidx.annotation.Keep
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import com.highcapable.yukihookapi.hook.xposed.YukiHookModuleStatus
|
||||
|
||||
@Keep
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
||||
@Keep
|
||||
private var a = "没更改的变量"
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
@@ -66,14 +69,18 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
// for test
|
||||
@Keep
|
||||
private fun toast() = Toast.makeText(this, "我弹出来了,没有 Hook", Toast.LENGTH_SHORT).show()
|
||||
|
||||
// for test
|
||||
@Keep
|
||||
private fun a(content1: String = "前缀", content: String) = "$content1${content}_后面加了一段文字"
|
||||
|
||||
// for test
|
||||
@Keep
|
||||
private fun test() = "正常显示的一行文字"
|
||||
|
||||
// for test
|
||||
@Keep
|
||||
private fun test(string: String) = string
|
||||
}
|
Reference in New Issue
Block a user