[app] Update dependencies (#368)
This commit is contained in:
parent
55248342fc
commit
7c1ea44479
|
|
@ -167,11 +167,11 @@ dependencies {
|
|||
val markwonVersion = "4.6.2"
|
||||
val okhttpVersion = "4.9.1"
|
||||
annotationProcessor("com.github.bumptech.glide:compiler:$glideVersion")
|
||||
implementation("androidx.activity:activity:1.2.0")
|
||||
implementation("androidx.activity:activity:1.2.1")
|
||||
implementation("androidx.browser:browser:1.3.0")
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.0.4")
|
||||
implementation("androidx.core:core:1.3.2")
|
||||
implementation("androidx.fragment:fragment:1.3.0")
|
||||
implementation("androidx.fragment:fragment:1.3.1")
|
||||
implementation("androidx.recyclerview:recyclerview:1.1.0")
|
||||
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
||||
implementation("com.caverock:androidsvg-aar:1.4")
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ buildscript {
|
|||
}
|
||||
dependencies {
|
||||
classpath("com.android.tools:r8:3.0.27-dev")
|
||||
classpath("com.android.tools.build:gradle:7.0.0-alpha09")
|
||||
classpath("com.android.tools.build:gradle:7.0.0-alpha10")
|
||||
classpath("org.eclipse.jgit:org.eclipse.jgit:5.10.0.202012080955-r")
|
||||
classpath(kotlin("gradle-plugin", version = "1.4.31"))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ import java.lang.reflect.Member;
|
|||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
|
|
@ -77,7 +79,7 @@ public final class XposedBridge {
|
|||
private static final Object[] EMPTY_ARRAY = new Object[0];
|
||||
|
||||
// built-in handlers
|
||||
public static final Map<Member, CopyOnWriteSortedSet<XC_MethodHook>> sHookedMethodCallbacks = new HashMap<>();
|
||||
private static final Map<Member, CopyOnWriteSortedSet<XC_MethodHook>> sHookedMethodCallbacks = new NoValuesHashMap<>();
|
||||
public static final CopyOnWriteSortedSet<XC_LoadPackage> sLoadedPackageCallbacks = new CopyOnWriteSortedSet<>();
|
||||
/*package*/ static final CopyOnWriteSortedSet<XC_InitPackageResources> sInitPackageResourcesCallbacks = new CopyOnWriteSortedSet<>();
|
||||
/*package*/ static final CopyOnWriteSortedSet<XC_InitZygote> sInitZygoteCallbacks = new CopyOnWriteSortedSet<>();
|
||||
|
|
@ -337,6 +339,38 @@ public final class XposedBridge {
|
|||
return YahfaHooker.invokeOriginalMethod((Executable) method, thisObject, args);
|
||||
}
|
||||
|
||||
private static class NoValuesHashMap<K,V> extends HashMap<K,V> {
|
||||
@Override
|
||||
public Collection values() {
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<K> keySet() {
|
||||
return Collections.EMPTY_SET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<Entry<K, V>> entrySet() {
|
||||
return Collections.EMPTY_SET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int size() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public static final class CopyOnWriteSortedSet<E> {
|
||||
private transient volatile Object[] elements = EMPTY_ARRAY;
|
||||
|
|
|
|||
Loading…
Reference in New Issue