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
@@ -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("");
}
}