java: Stop using dev.rikka.hidden.stub
- We dont need the whole dev.rikka.hidden.stub library so just remove it and simplify dependencies. - We already have our own stub package so we can just include the missing stubs that we want directly in it. Signed-off-by: Dakkshesh <beakthoven@gmail.com>
This commit is contained in:
@@ -92,7 +92,6 @@ android {
|
||||
dependencies {
|
||||
compileOnly(project(":stub"))
|
||||
compileOnly(libs.annotation)
|
||||
compileOnly(libs.dev.rikka.hidden.stub)
|
||||
implementation(libs.org.bouncycastle.bcpkix.jdk18on)
|
||||
implementation(libs.org.lsposed.libcxx.libcxx)
|
||||
}
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
[versions]
|
||||
agp = "8.12.0"
|
||||
annotation = "1.9.1"
|
||||
hidden-api = "4.4.0"
|
||||
jdk18on = "1.81"
|
||||
kotlin = "2.2.10"
|
||||
libcxx = "28.1.13356709"
|
||||
|
||||
[libraries]
|
||||
annotation = { module = "androidx.annotation:annotation", version.ref = "annotation" }
|
||||
dev-rikka-hidden-stub = { module = "dev.rikka.hidden:stub", version.ref = "hidden-api" }
|
||||
org-bouncycastle-bcpkix-jdk18on = { module = "org.bouncycastle:bcpkix-jdk18on", version.ref = "jdk18on" }
|
||||
org-lsposed-libcxx-libcxx = { module = "org.lsposed.libcxx:libcxx", version.ref = "libcxx" }
|
||||
|
||||
|
||||
@@ -34,5 +34,4 @@ android {
|
||||
|
||||
dependencies {
|
||||
compileOnly(libs.annotation)
|
||||
compileOnly(libs.dev.rikka.hidden.stub)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright 2025 Dakkshesh <beakthoven@gmail.com>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
abstract class BaseParceledListSlice<T> {
|
||||
|
||||
public List<T> getList() {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright 2025 Dakkshesh <beakthoven@gmail.com>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package android.content.pm;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ParceledListSlice<T> extends BaseParceledListSlice<T> {
|
||||
|
||||
public ParceledListSlice(List<T> list) {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user