diff --git a/library/src/main/java/androidx/preference/Preference.java b/library/src/main/java/androidx/preference/Preference.java index 502c39f..08dd310 100644 --- a/library/src/main/java/androidx/preference/Preference.java +++ b/library/src/main/java/androidx/preference/Preference.java @@ -30,6 +30,10 @@ public class Preference { throw new RuntimeException("Stub!"); } + public void setVisible(boolean visible) { + throw new RuntimeException("Stub!"); + } + public String getKey() { throw new RuntimeException("Stub!"); } diff --git a/library/src/main/java/eu/kanade/tachiyomi/AppInfo.kt b/library/src/main/java/eu/kanade/tachiyomi/AppInfo.kt index a759b6b..faaa1e0 100644 --- a/library/src/main/java/eu/kanade/tachiyomi/AppInfo.kt +++ b/library/src/main/java/eu/kanade/tachiyomi/AppInfo.kt @@ -1,6 +1,19 @@ package eu.kanade.tachiyomi object AppInfo { + /** + * Version code of the host application. May be useful for sharing as User-Agent information. + * Note that this value differs between forks so logic should not rely on it. + * + * @since extension-lib 1.3 + */ fun getVersionCode(): Int = throw Exception("Stub!") + + /** + * Version name of the host application. May be useful for sharing as User-Agent information. + * Note that this value differs between forks so logic should not rely on it. + * + * @since extension-lib 1.3 + */ fun getVersionName(): String = throw Exception("Stub!") }