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:
Dakkshesh
2025-08-17 23:15:44 +05:30
parent af2707765a
commit 088e9ff1b0
5 changed files with 30 additions and 4 deletions
-1
View File
@@ -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)
}
-2
View File
@@ -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" }
-1
View File
@@ -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("");
}
}