Skip to content

Commit

Permalink
Use dobby prefab (LSPosed#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb2060 authored Mar 15, 2021
1 parent 8813122 commit b7c18eb
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "core/src/main/cpp/external/Dobby"]
path = core/src/main/cpp/external/Dobby
url = https://github.com/jmpews/Dobby.git
[submodule "service"]
path = service
url = https://github.com/Xposed-Modules-Repo/XposedService.git
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ android {
disable += "MissingTranslation"
disable += "ExtraTranslation"
isAbortOnError = true
isCheckReleaseBuilds = true
isCheckReleaseBuilds = false
}

packagingOptions {
Expand Down
1 change: 0 additions & 1 deletion core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/.externalNativeBuild
/build
/libs
/obj
/release
/template_override/module.prop
Expand Down
1 change: 1 addition & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ val verName: String by rootProject.extra

dependencies {
implementation("dev.rikka.ndk:riru:24.0.0")
implementation(files("libs/dobby_prefab.aar"))
implementation("com.android.tools.build:apksig:4.1.2")
compileOnly(project(":hiddenapi-stubs"))
compileOnly("androidx.annotation:annotation:1.1.0")
Expand Down
Binary file added core/libs/dobby_prefab.aar
Binary file not shown.
13 changes: 0 additions & 13 deletions core/src/main/cpp/external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,5 @@ cmake_minimum_required(VERSION 3.4.1)

add_subdirectory(yahfa)

macro(SET_OPTION option value)
set(${option} ${value} CACHE INTERNAL "" FORCE)
endmacro()

SET_OPTION(DOBBY_GENERATE_SHARED OFF)
SET_OPTION(Plugin.Android.BionicLinkerRestriction ON)
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
SET_OPTION(DOBBY_DEBUG OFF)
endif (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
add_subdirectory(Dobby)
target_include_directories(dobby PUBLIC Dobby/include)
target_include_directories(dobby PUBLIC Dobby/builtin-plugin/BionicLinkerRestriction)

add_subdirectory(DexBuilder)
target_include_directories(dex_builder PUBLIC DexBuilder)
1 change: 0 additions & 1 deletion core/src/main/cpp/external/Dobby
Submodule Dobby deleted from 782727
3 changes: 2 additions & 1 deletion core/src/main/cpp/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ add_executable(lspd ${SRC_LIST} ${SRC_JNI_LIST})
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--dynamic-list=${CMAKE_SOURCE_DIR}/dynamic_list")

find_package(riru REQUIRED CONFIG)
find_package(dobby REQUIRED CONFIG)
find_library(log-lib log)
target_link_libraries(lspd yahfa riru::riru android dobby dex_builder ${log-lib})
target_link_libraries(lspd yahfa riru::riru android dobby::dobby dex_builder ${log-lib})

0 comments on commit b7c18eb

Please sign in to comment.