commit 1b5adbcca2013594327e523cc1f10ea6737755d4 Author: fankesyooni Date: Wed Sep 17 12:35:44 2025 +0800 Initial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..d9b9b1ae --- /dev/null +++ b/.editorconfig @@ -0,0 +1,35 @@ +# noinspection EditorConfigKeyCorrectness +[{*.kt,*.kts}] +ktlint_standard_annotation = disabled +ktlint_standard_filename = disabled +ktlint_standard_wrapping = disabled +ktlint_standard_import-ordering = enabled +ktlint_standard_max-line-length = disabled +ktlint_standard_multiline-if-else = disabled +ktlint_standard_argument-list-wrapping = disabled +ktlint_standard_parameter-list-wrapping = disabled +ktlint_standard_trailing-comma-on-declaration-site = disabled +ktlint_function_signature_body_expression_wrapping = multiline +ktlint_standard_string-template-indent = disabled +ktlint_standard_function-signature = disabled +ktlint_standard_trailing-comma-on-call-site = disabled +ktlint_standard_multiline-expression-wrapping = disabled +ktlint_standard_no-empty-first-line-in-class-body = disabled +ktlint_standard_if-else-wrapping = disabled +ktlint_standard_if-else-bracing = disabled +ktlint_standard_statement-wrapping = disabled +ktlint_standard_blank-line-before-declaration = disabled +ktlint_standard_no-empty-file = disabled +ktlint_standard_property-naming = disabled +ktlint_standard_function-naming = disabled +ktlint_standard_chain-method-continuation = disabled +ktlint_standard_class-signature = disabled +ktlint_standard_condition-wrapping = disabled +ktlint_standard_class-signature = disabled +ktlint_standard_no-trailing-spaces = disabled +ktlint_standard_multiline-loop = disabled +ij_continuation_indent_size = 2 +indent_size = 4 +indent_style = space +insert_final_newline = false +max_line_length = 150 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..1e1d8a63 --- /dev/null +++ b/.gitignore @@ -0,0 +1,110 @@ +## Fully .gtignore for IntelliJ, Android Studio and Gradle based Java projects +## References: +## - https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +## - https://github.com/android/platform-samples/blob/main/.gitignore + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +.idea/.name +.idea/artifacts +.idea/compiler.xml +.idea/jarRepositories.xml +.idea/modules.xml +.idea/*.iml +.idea/modules +.idea/caches +.idea/material_theme** +.idea/other.xml +*.iml +*.ipr + +# Kotlin +.kotlin + +# Misc +.idea/misc.xml + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +# Android studio 3.1+ additional +.idea/deployment*.xml +.idea/assetWizardSettings.xml +.idea/androidTestResultsUserPreferences.xml + +# Android projects +**/local.properties +/captures +.externalNativeBuild +.cxx + +# Gradle projects +.gradle +build/ + +# Mkdocs temporary serving folder +docs-gen +site +*.bak +.idea/appInsightsSettings.xml + +# Mac OS +.DS_Store \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..b23337df --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,7 @@ +# Default ignored files +/shelf/ +/workspace.xml + +/AndroidProjectSystem.xml +/copilot* +/discord.xml \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 00000000..7f70f7ef --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 00000000..79ee123c --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/fileTemplates/includes/copyright-name.template b/.idea/fileTemplates/includes/copyright-name.template new file mode 100644 index 00000000..ad0a2430 --- /dev/null +++ b/.idea/fileTemplates/includes/copyright-name.template @@ -0,0 +1 @@ +2019 HighCapable \ No newline at end of file diff --git a/.idea/fileTemplates/includes/license-content.template b/.idea/fileTemplates/includes/license-content.template new file mode 100644 index 00000000..68616e91 --- /dev/null +++ b/.idea/fileTemplates/includes/license-content.template @@ -0,0 +1,13 @@ + * Apache License Version 2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. \ No newline at end of file diff --git a/.idea/fileTemplates/includes/open-source-license-header.template b/.idea/fileTemplates/includes/open-source-license-header.template new file mode 100644 index 00000000..6f41ea1f --- /dev/null +++ b/.idea/fileTemplates/includes/open-source-license-header.template @@ -0,0 +1,13 @@ +/* + * #parse("project-name") - #parse("project-description") + + * Copyright (C) #parse("copyright-name") + + * #parse("project-url") + + * + #parse("license-content") + + * + * This file is created by $USER on $DATE. + */ \ No newline at end of file diff --git a/.idea/fileTemplates/includes/project-description.template b/.idea/fileTemplates/includes/project-description.template new file mode 100644 index 00000000..95f8bd6c --- /dev/null +++ b/.idea/fileTemplates/includes/project-description.template @@ -0,0 +1 @@ +A modern Hook API and Xposed module solution. \ No newline at end of file diff --git a/.idea/fileTemplates/includes/project-name.template b/.idea/fileTemplates/includes/project-name.template new file mode 100644 index 00000000..6b80fff2 --- /dev/null +++ b/.idea/fileTemplates/includes/project-name.template @@ -0,0 +1 @@ +YukiHook \ No newline at end of file diff --git a/.idea/fileTemplates/includes/project-url.template b/.idea/fileTemplates/includes/project-url.template new file mode 100644 index 00000000..b695a9fb --- /dev/null +++ b/.idea/fileTemplates/includes/project-url.template @@ -0,0 +1 @@ +https://github.com/HighCapable/YukiHook \ No newline at end of file diff --git a/.idea/fileTemplates/internal/Kotlin Annotation.kt b/.idea/fileTemplates/internal/Kotlin Annotation.kt new file mode 100644 index 00000000..0e2b92b4 --- /dev/null +++ b/.idea/fileTemplates/internal/Kotlin Annotation.kt @@ -0,0 +1,6 @@ +#parse("open-source-license-header") + +#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME} +#end + +annotation class ${NAME} diff --git a/.idea/fileTemplates/internal/Kotlin Class.kt b/.idea/fileTemplates/internal/Kotlin Class.kt new file mode 100644 index 00000000..4112dfbc --- /dev/null +++ b/.idea/fileTemplates/internal/Kotlin Class.kt @@ -0,0 +1,7 @@ +#parse("open-source-license-header") + +#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME} + +#end +class ${NAME} { +} \ No newline at end of file diff --git a/.idea/fileTemplates/internal/Kotlin Data Class.kt b/.idea/fileTemplates/internal/Kotlin Data Class.kt new file mode 100644 index 00000000..db701e7f --- /dev/null +++ b/.idea/fileTemplates/internal/Kotlin Data Class.kt @@ -0,0 +1,6 @@ +#parse("open-source-license-header") + +#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME} +#end + +data class ${NAME}() diff --git a/.idea/fileTemplates/internal/Kotlin Enum.kt b/.idea/fileTemplates/internal/Kotlin Enum.kt new file mode 100644 index 00000000..a1fa97dc --- /dev/null +++ b/.idea/fileTemplates/internal/Kotlin Enum.kt @@ -0,0 +1,7 @@ +#parse("open-source-license-header") + +#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME} + +#end +enum class ${NAME} { +} \ No newline at end of file diff --git a/.idea/fileTemplates/internal/Kotlin File.kt b/.idea/fileTemplates/internal/Kotlin File.kt new file mode 100644 index 00000000..321d3a5a --- /dev/null +++ b/.idea/fileTemplates/internal/Kotlin File.kt @@ -0,0 +1,5 @@ +#parse("open-source-license-header") + +#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME} + +#end diff --git a/.idea/fileTemplates/internal/Kotlin Interface.kt b/.idea/fileTemplates/internal/Kotlin Interface.kt new file mode 100644 index 00000000..de3a20b2 --- /dev/null +++ b/.idea/fileTemplates/internal/Kotlin Interface.kt @@ -0,0 +1,7 @@ +#parse("open-source-license-header") + +#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME} + +#end +interface ${NAME} { +} \ No newline at end of file diff --git a/.idea/fileTemplates/internal/Kotlin Object.kt b/.idea/fileTemplates/internal/Kotlin Object.kt new file mode 100644 index 00000000..e9475bee --- /dev/null +++ b/.idea/fileTemplates/internal/Kotlin Object.kt @@ -0,0 +1,7 @@ +#parse("open-source-license-header") + +#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME} +#end + +object ${NAME} { +} diff --git a/.idea/migrations.xml b/.idea/migrations.xml new file mode 100644 index 00000000..f8051a6f --- /dev/null +++ b/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 00000000..16660f1d --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README-zh-CN.md b/README-zh-CN.md new file mode 100644 index 00000000..1be89096 --- /dev/null +++ b/README-zh-CN.md @@ -0,0 +1,65 @@ +# Yuki Hook + +一个现代的 Hook API 与 Xposed 模块解决方案。 + +[English](README.md) | 简体中文 + +## 分支说明 + +`2.x` 分支目前仍处于开发状态,所有 API 在发布正式版本之前均可能发生变化,且目前不提供任何文档,直接使用的风险请自行承担。 + +正式版发布后,将切回主分支 `main`,`1.x` 版本将从 `master` 分支命名为 `1.x`,仅做定期维护并不再推荐使用。 + +## 分支介绍 + +`2.x` 版本为完全重构版,不包含 `1.x` +的任何历史代码,功能上将延续设计方案,并原生支持 [libxposed](https://github.com/libxposed)。 + +`2.x` 版本将采用模块化设计,大致内容设计如下。 + +除非没有标记 `*`,否则均为可选依赖引入。 + +| 名称 | 描述 | +|----------------------------------|-----------------------------------| +| yukihook-core | 核心模块,包含核心 Hook API 框架 | +| *yukihook-api-rovo89 | Rovo89 Xposed API 支持 | +| *yukihook-api-libxposed | `libxposed` API 支持 | +| *yukihook-api-helper | Hook DSL 语法糖和功能模块 | +| *yukihook-xposedmodule | Xposed 模块支持,包含入口点等配置功能 | +| *yukihook-xposedmodule-extension | Xposed 模块扩展功能,包含资源注入、Activity 代理等 | +| *yukihook-gradle-plugin | Gradle 插件,简化 Xposed 模块配置,自动生成入口点 | + +### 说明 + +如果你是作为 Xposed 模块开发者,你需要引入 `yukihook-core`、`yukihook-api-helper` 和 +`yukihook-xposedmodule` 外加一个 Xposed API 支持模块; + +如果你是选择将 Hook API 内置进应用自身,你只需要引入 `yukihook-core` 和 +`yukihook-api-helper` 外加一个 Xposed API 支持模块。 + +### Xposed API 支持模块 + +`yukihook-api-rovo89` 与 `yukihook-api-libxposed` 是 YukiHook 原生提供的支持,你也可以将自己或第三方的 +Hook API 对接到 `yukihook-core` 以实现对应的功能。 + +### 注意 + +`yukihook-api-rovo89` 与 `yukihook-api-libxposed` 只能选择一个引入,否则会发生冲突。 + +YukiHook `2.x` 与 `1.x` 一样,只提供设计结构和框架,不提供任何核心 Hook 功能。 + +## 关于反射 API + +YukiHook `2.x` 不会自带反射 API,你可以选用推荐的 [KavaRef](https://github.com/HighCapable/KavaRef) +或是 [DexKit](https://github.com/LuckyPray/DexKit),YukiHook `2.x` 将原生支持。 + +目前准备支持的扩展模块如下。 + +| 名称 | 描述 | +|---------------------------------|----------------------------------------------------------| +| *yukihook-api-extension-kavaref | [KavaRef](https://github.com/HighCapable/KavaRef) 相关扩展功能 | +| *yukihook-api-extension-dexkit | [DexKit](https://github.com/LuckyPray/DexKit) 相关扩展功能 | + +## 贡献 + +欢迎广大开发者参与到开发中来,如果有好的想法与设计思路,你可以随时向本项目提 PR,我们欢迎任何有建设性想法的功能。 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 00000000..34f65096 --- /dev/null +++ b/README.md @@ -0,0 +1,77 @@ +# Yuki Hook + +A modern Hook API and Xposed module solution. + +English | [简体中文](README-zh-CN.md) + +## Branch Description + +The `2.x` branch is still in development state. All APIs may change before the official version is +released, and no documentation is provided at present. Please bear the risk of direct use at your +own risk. + +After the official version is released, the main branch will be switched back to the main branch. +The `1.x` version will be named `1.x` from the `master` branch. It is not recommended to use it only +for regular maintenance. + +## Branch Introduction + +The `2.x` version is a completely refactored version and does not include `1.x` +Any historical code of the code will function to continue the design scheme and natively +support [libxposed](https://github.com/libxposed). + +The `2.x` version will adopt a modular design, and the general content is designed as follows. + +Unless there is no mark `*`, all are optional dependencies introduced. + +| Name | Description | +|----------------------------------|-------------------------------------------------------------------------------------------------| +| yukihook-core | Core module, including core Hook API framework | +| *yukihook-api-rovo89 | Rovo89 Xposed API Support | +| *yukihook-api-libxposed | `libxposed` API Support | +| *yukihook-api-helper | Hook DSL Syntax Sugar and Functional Modules | +| *yukihook-xposedmodule | Xposed module supports, including entry points and other configuration functions | +| *yukihook-xposedmodule-extension | Xposed module extension functions, including resource injection, Activity proxy, etc | +| *yukihook-gradle-plugin | Gradle plugin, simplifies Xposed module configuration, and automatically generates entry points | + +### Explanation + +If you are an Xposed module developer, you need to introduce `yukihook-core`, `yukihook-api-helper` +and +`yukihook-xposedmodule` plus an Xposed API support module; + +If you choose to build the Hook API into the app itself, you only need to introduce `yukihook-core` +and +`yukihook-api-helper` plus an Xposed API support module. + +### Xposed API Support Module + +`yukihook-api-rovo89` and `yukihook-api-libxposed` are native support provided by YukiHook, and you +can also use it yourself or a third-party +The Hook API is connected to `yukihook-core` to implement the corresponding functions. + +### Pay Attention + +`yukihook-api-rovo89` and `yukihook-api-libxposed` can only select one introduction, otherwise +conflict will occur. + +YukiHook `2.x`, like `1.x`, only provides design structure and framework, and does not provide any +core Hook features. + +## About Reflection API + +YukiHook `2.x` does not come with a reflection API, you can choose the +recommended [KavaRef](https://github.com/HighCapable/KavaRef) +or [DexKit](https://github.com/LuckyPray/DexKit), YukiHook `2.x` will be natively supported. + +The currently prepared extension modules are as follows. + +| Name | Description | +|---------------------------------|------------------------------------------------------------------------------| +| *yukihook-api-extension-kavaref | [KavaRef](https://github.com/HighCapable/KavaRef) related extended functions | +| *yukihook-api-extension-dexkit | [DexKit](https://github.com/LuckyPray/DexKit) related extended functions | + +## Contribution + +We welcome developers to participate in the development. If you have good ideas and design ideas, +you can ask this project for PR at any time. We welcome any constructive ideas. \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 00000000..7853cc6a --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,90 @@ +import com.vanniktech.maven.publish.AndroidSingleVariantLibrary +import com.vanniktech.maven.publish.MavenPublishBaseExtension +import org.jetbrains.dokka.gradle.DokkaTask +import org.jetbrains.kotlin.gradle.dsl.JvmTarget +import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile + +plugins { + autowire(libs.plugins.android.application) apply false + autowire(libs.plugins.android.library) apply false + autowire(libs.plugins.kotlin.jvm) apply false + autowire(libs.plugins.kotlin.android) apply false + autowire(libs.plugins.kotlin.dokka) apply false + autowire(libs.plugins.maven.publish) apply false +} + +libraryProjects { + afterEvaluate { + configure { + repositories { + val repositoryDir = gradle.gradleUserHomeDir + .resolve("highcapable-maven-repository") + .resolve("repository") + + maven { + name = "HighCapableMavenReleases" + url = repositoryDir.resolve("releases").toURI() + } + maven { + name = "HighCapableMavenSnapShots" + url = repositoryDir.resolve("snapshots").toURI() + } + } + } + + configure { + configure(AndroidSingleVariantLibrary(publishJavadocJar = false)) + } + } + + tasks.withType().configureEach { + val configuration = """{ "footerMessage": "YukiHook | Apache-2.0 License | Copyright (C) 2019 HighCapable" }""" + pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.base.DokkaBase" to configuration)) + } + + tasks.register("publishKDoc") { + group = "documentation" + dependsOn("dokkaHtml") + + doLast { + val docsDir = rootProject.projectDir + .resolve("docs-source") + .resolve("dist") + .resolve("KDoc") + .resolve(project.name) + + if (docsDir.exists()) docsDir.deleteRecursively() else docsDir.mkdirs() + layout.buildDirectory.dir("dokka/html").get().asFile.copyRecursively(docsDir) + } + } +} + +allprojects { + tasks.withType().configureEach { + compilerOptions { + jvmTarget = JvmTarget.JVM_17 + freeCompilerArgs.addAll( + "-Xno-param-assertions", + "-Xno-call-assertions", + "-Xno-receiver-assertions" + ) + } + } +} + +fun libraryProjects(action: Action) { + val libraries = listOf( + Libraries.YUKIHOOK_CORE, + Libraries.YUKIHOOK_API_ROVO89, + Libraries.YUKIHOOK_API_LIBXPOSED, + Libraries.YUKIHOOK_API_HELPER + ) + allprojects { if (libraries.contains(name)) action.execute(this) } +} + +object Libraries { + const val YUKIHOOK_CORE = "yukihook-core" + const val YUKIHOOK_API_ROVO89 = "yukihook-api-rovo89" + const val YUKIHOOK_API_LIBXPOSED = "yukihook-api-libxposed" + const val YUKIHOOK_API_HELPER = "yukihook-api-helper" +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..9057bfd8 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,43 @@ +# Compiler Configuration +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +android.useAndroidX=true +android.nonTransitiveRClass=true +kotlin.code.style=official +# Project Configuration +project.name=YukiHook +project.url=https://github.com/HighCapable/YukiHook +project.groupName=com.highcapable.yukihook +project.android.compileSdk=36 +project.android.minSdk=21 +project.android.targetSdk=36 +project.samples-app.packageName=${project.groupName}.app +project.samples-app.versionName=universal +project.samples-app.versionCode=1 +project.samples-module.packageName=${project.groupName}.module +project.samples-module.versionName=universal +project.samples-module.versionCode=1 +project.yukihook-core.namespace=${project.groupName}.core +project.yukihook-core.version="2.0.0" +project.yukihook-api-rovo89.namespace=${project.groupName}.api.rovo89 +project.yukihook-api-rovo89.version="2.0.0" +project.yukihook-api-libxposed.namespace=${project.groupName}.api.libxposed +project.yukihook-api-libxposed.version="2.0.0" +project.yukihook-api-helper.namespace=${project.groupName}.api.helper +project.yukihook-api-helper.version="2.0.0" +# Maven Publish Configuration +SONATYPE_HOST=CENTRAL_PORTAL +RELEASE_SIGNING_ENABLED=true +# Maven POM Configuration +POM_NAME=YukiHook +POM_DESCRIPTION=A modern Hook API and Xposed module solution. +POM_URL=https://github.com/HighCapable/YukiHook +POM_LICENSE_NAME=Apache License 2.0 +POM_LICENSE_URL=https://github.com/HighCapable/YukiHook/blob/main/LICENSE +POM_LICENSE_DIST=repo +POM_SCM_URL=https://github.com/HighCapable/YukiHook +POM_SCM_CONNECTION=scm:git:git://github.com/HighCapable/YukiHook.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://github.com/HighCapable/YukiHook.git +POM_DEVELOPER_ID=0 +POM_DEVELOPER_NAME=fankes +POM_DEVELOPER_EMAIL=qzmmcn@163.com +POM_DEVELOPER_URL=https://github.com/fankes \ No newline at end of file diff --git a/gradle/sweet-dependency/sweet-dependency-config.yaml b/gradle/sweet-dependency/sweet-dependency-config.yaml new file mode 100644 index 00000000..360f5a72 --- /dev/null +++ b/gradle/sweet-dependency/sweet-dependency-config.yaml @@ -0,0 +1,90 @@ +preferences: + autowire-on-sync-mode: UPDATE_OPTIONAL_DEPENDENCIES + repositories-mode: FAIL_ON_PROJECT_REPOS + +repositories: + gradle-plugin-portal: + scope: PLUGINS + google: + maven-central: + jit-pack: + rovo89-xposed-api: + scope: LIBRARIES + url: https://api.xposed.info/ + content: + include: + group: + de.robv.android.xposed + +plugins: + org.jetbrains.kotlin.jvm: + alias: kotlin-jvm + version: 2.2.10 + org.jetbrains.kotlin.android: + alias: kotlin-android + version-ref: kotlin-jvm + org.jetbrains.dokka: + alias: kotlin-dokka + version: 1.9.20 + auto-update: false + com.android.application: + alias: android-application + version: 8.13.0 + com.android.library: + alias: android-library + version-ref: android-application + com.vanniktech.maven.publish: + alias: maven-publish + version: 0.34.0 + +libraries: + de.robv.android.xposed: + api: + version: 82 + repositories: + rovo89-xposed-api + org.lsposed.hiddenapibypass: + hiddenapibypass: + version: 6.1 + com.highcapable.kavaref: + kavaref-core: + version: 1.0.1 + kavaref-extension: + version: 1.0.1 + com.highcapable.hikage: + hikage-core: + version: 1.0.2 + hikage-compiler: + version: 1.0.1 + hikage-extension: + version: 1.0.1 + hikage-widget-androidx: + version: 1.0.1 + hikage-widget-material: + version: 1.0.1 + com.highcapable.betterandroid: + ui-component: + version: 1.0.8 + ui-extension: + version: 1.0.7 + system-extension: + version: 1.0.3 + androidx.core: + core-ktx: + version: 1.17.0 + androidx.appcompat: + appcompat: + version: 1.7.1 + com.google.android.material: + material: + version: 1.11.0 + auto-update: false + androidx.test.ext: + junit: + version: 1.3.0 + androidx.test.espresso: + espresso-core: + version: 3.7.0 + junit: + junit: + version: 4.13.2 \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 00000000..8bdaf60c Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..42f0071e --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists \ No newline at end of file diff --git a/gradlew b/gradlew new file mode 100755 index 00000000..ef07e016 --- /dev/null +++ b/gradlew @@ -0,0 +1,251 @@ +#!/bin/sh + +# +# Copyright © 2015 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH="\\\"\\\"" + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 00000000..db3a6ac2 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH= + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/samples/app/build.gradle.kts b/samples/app/build.gradle.kts new file mode 100644 index 00000000..26bbac35 --- /dev/null +++ b/samples/app/build.gradle.kts @@ -0,0 +1,49 @@ +plugins { + autowire(libs.plugins.android.application) + autowire(libs.plugins.kotlin.android) +} + +android { + namespace = property.project.samples.app.packageName + compileSdk = property.project.android.compileSdk + + defaultConfig { + applicationId = property.project.samples.app.packageName + minSdk = property.project.android.minSdk + targetSdk = property.project.android.targetSdk + versionCode = property.project.samples.app.versionCode + versionName = property.project.samples.app.versionName + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + + buildFeatures { + buildConfig = true + viewBinding = true + } + lint { checkReleaseBuilds = false } +} + +dependencies { + implementation(androidx.core.core.ktx) + implementation(androidx.appcompat.appcompat) + implementation(com.google.android.material.material) + + testImplementation(junit.junit) + androidTestImplementation(androidx.test.ext.junit) + androidTestImplementation(androidx.test.espresso.espresso.core) +} \ No newline at end of file diff --git a/samples/app/proguard-rules.pro b/samples/app/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/samples/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/samples/app/src/androidTest/java/com/highcapable/yukihook/ExampleInstrumentedTest.kt b/samples/app/src/androidTest/java/com/highcapable/yukihook/ExampleInstrumentedTest.kt new file mode 100644 index 00000000..d248d8f3 --- /dev/null +++ b/samples/app/src/androidTest/java/com/highcapable/yukihook/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.highcapable.yukihook + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.highcapable.yukihookapi", appContext.packageName) + } +} \ No newline at end of file diff --git a/samples/app/src/main/AndroidManifest.xml b/samples/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..a520e1c1 --- /dev/null +++ b/samples/app/src/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/samples/app/src/main/java/com/highcapable/yukihook/app/MainActivity.kt b/samples/app/src/main/java/com/highcapable/yukihook/app/MainActivity.kt new file mode 100644 index 00000000..3b91ddf3 --- /dev/null +++ b/samples/app/src/main/java/com/highcapable/yukihook/app/MainActivity.kt @@ -0,0 +1,44 @@ +/* + * YukiHook - A modern Hook API and Xposed module solution. + * Copyright (C) 2019 HighCapable + * https://github.com/HighCapable/YukiHook + * + * Apache License Version 2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This file is created by fankes on 2025/9/17. + */ +package com.highcapable.yukihook.app + +import android.os.Bundle +import androidx.activity.enableEdgeToEdge +import androidx.appcompat.app.AppCompatActivity +import androidx.core.view.ViewCompat +import androidx.core.view.WindowInsetsCompat + +class MainActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + enableEdgeToEdge() + setContentView(R.layout.activity_main) + + ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets -> + val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()) + v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom) + insets + } + } +} \ No newline at end of file diff --git a/samples/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/samples/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..2b068d11 --- /dev/null +++ b/samples/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/samples/app/src/main/res/drawable/ic_launcher_background.xml b/samples/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..07d5da9c --- /dev/null +++ b/samples/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/app/src/main/res/layout/activity_main.xml b/samples/app/src/main/res/layout/activity_main.xml new file mode 100644 index 00000000..86a5d977 --- /dev/null +++ b/samples/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/samples/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/samples/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..6f3b755b --- /dev/null +++ b/samples/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/samples/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/samples/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..6f3b755b --- /dev/null +++ b/samples/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/samples/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/samples/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 00000000..c209e78e Binary files /dev/null and b/samples/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/samples/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/samples/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 00000000..b2dfe3d1 Binary files /dev/null and b/samples/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/samples/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/samples/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 00000000..4f0f1d64 Binary files /dev/null and b/samples/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/samples/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/samples/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 00000000..62b611da Binary files /dev/null and b/samples/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/samples/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/samples/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 00000000..948a3070 Binary files /dev/null and b/samples/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/samples/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/samples/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 00000000..1b9a6956 Binary files /dev/null and b/samples/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/samples/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/samples/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 00000000..28d4b77f Binary files /dev/null and b/samples/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/samples/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/samples/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 00000000..9287f508 Binary files /dev/null and b/samples/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/samples/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/samples/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 00000000..aa7d6427 Binary files /dev/null and b/samples/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/samples/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/samples/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 00000000..9126ae37 Binary files /dev/null and b/samples/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/samples/app/src/main/res/values-night/themes.xml b/samples/app/src/main/res/values-night/themes.xml new file mode 100644 index 00000000..31132cff --- /dev/null +++ b/samples/app/src/main/res/values-night/themes.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/samples/app/src/main/res/values/colors.xml b/samples/app/src/main/res/values/colors.xml new file mode 100644 index 00000000..c8524cd9 --- /dev/null +++ b/samples/app/src/main/res/values/colors.xml @@ -0,0 +1,5 @@ + + + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/samples/app/src/main/res/values/strings.xml b/samples/app/src/main/res/values/strings.xml new file mode 100644 index 00000000..f03100fa --- /dev/null +++ b/samples/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + YukiHook + \ No newline at end of file diff --git a/samples/app/src/main/res/values/themes.xml b/samples/app/src/main/res/values/themes.xml new file mode 100644 index 00000000..d4f48485 --- /dev/null +++ b/samples/app/src/main/res/values/themes.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/samples/module/src/main/res/values/colors.xml b/samples/module/src/main/res/values/colors.xml new file mode 100644 index 00000000..c8524cd9 --- /dev/null +++ b/samples/module/src/main/res/values/colors.xml @@ -0,0 +1,5 @@ + + + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/samples/module/src/main/res/values/strings.xml b/samples/module/src/main/res/values/strings.xml new file mode 100644 index 00000000..f03100fa --- /dev/null +++ b/samples/module/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + YukiHook + \ No newline at end of file diff --git a/samples/module/src/main/res/values/themes.xml b/samples/module/src/main/res/values/themes.xml new file mode 100644 index 00000000..333d658c --- /dev/null +++ b/samples/module/src/main/res/values/themes.xml @@ -0,0 +1,9 @@ + + + + +