mirror of
https://github.com/ReVanced/revanced-library.git
synced 2026-01-18 08:53:57 +00:00
Compare commits
4 Commits
v3.0.2-dev
...
v3.0.3-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7a98b5795 | ||
|
|
649f06b19d | ||
|
|
cace51700a | ||
|
|
91cefc8598 |
@@ -1,3 +1,12 @@
|
|||||||
|
## [3.0.3-dev.1](https://github.com/ReVanced/revanced-library/compare/v3.0.2...v3.0.3-dev.1) (2024-11-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Detect if app is installed by fixing inversion ([649f06b](https://github.com/ReVanced/revanced-library/commit/649f06b19dd4d2a3f3216a0b3ea947b9fe0d475f))
|
||||||
|
|
||||||
|
## [3.0.2](https://github.com/ReVanced/revanced-library/compare/v3.0.1...v3.0.2) (2024-11-05)
|
||||||
|
|
||||||
## [3.0.2-dev.1](https://github.com/ReVanced/revanced-library/compare/v3.0.1...v3.0.2-dev.1) (2024-11-05)
|
## [3.0.2-dev.1](https://github.com/ReVanced/revanced-library/compare/v3.0.1...v3.0.2-dev.1) (2024-11-05)
|
||||||
|
|
||||||
## [3.0.1](https://github.com/ReVanced/revanced-library/compare/v3.0.0...v3.0.1) (2024-10-13)
|
## [3.0.1](https://github.com/ReVanced/revanced-library/compare/v3.0.0...v3.0.1) (2024-10-13)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
version = 3.0.2-dev.1
|
version = 3.0.3-dev.1
|
||||||
#Gradle
|
#Gradle
|
||||||
org.gradle.jvmargs = -Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options="-Xmx2048M"
|
org.gradle.jvmargs = -Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options="-Xmx2048M"
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
|
|||||||
@@ -122,13 +122,12 @@ abstract class RootInstaller internal constructor(
|
|||||||
* @throws FailedToFindInstalledPackageException If the package is not installed.
|
* @throws FailedToFindInstalledPackageException If the package is not installed.
|
||||||
*/
|
*/
|
||||||
private fun String.assertInstalled() {
|
private fun String.assertInstalled() {
|
||||||
if (INSTALLED_APK_PATH(this)().output.isNotEmpty()) {
|
if (INSTALLED_APK_PATH(this)().output.isEmpty()) {
|
||||||
throw FailedToFindInstalledPackageException(this)
|
throw FailedToFindInstalledPackageException(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal class FailedToFindInstalledPackageException internal constructor(packageName: String) :
|
internal class FailedToFindInstalledPackageException internal constructor(packageName: String) : Exception("Failed to find installed package \"$packageName\" because no activity was found")
|
||||||
Exception("Failed to find installed package \"$packageName\" because no activity was found")
|
|
||||||
|
|
||||||
internal class PackageNameRequiredException internal constructor() : Exception("Package name is required")
|
internal class PackageNameRequiredException internal constructor() : Exception("Package name is required")
|
||||||
internal class NoRootPermissionException internal constructor() : Exception("No root permission")
|
internal class NoRootPermissionException internal constructor() : Exception("No root permission")
|
||||||
|
|||||||
Reference in New Issue
Block a user