Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza417 committed Nov 7, 2022
1 parent 150c2d2 commit 789a5a9
Show file tree
Hide file tree
Showing 57 changed files with 331 additions and 449 deletions.
1 change: 1 addition & 0 deletions .idea/dictionaries/PC.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
android {
compileSdkVersion 33

def appVersionCode = 44
def appVersionCode = 45
def appVersionName = "build_$appVersionCode (alpha)"

buildFeatures {
Expand Down
19 changes: 15 additions & 4 deletions app/src/main/assets/html/changelogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ <h4>Improvements</h4>
<li>Improved selected batch apps list behaviour.</li>
<li>Improved search behaviours.</li>
<li>Improved app loader framework to optimize overall performance of the app.<br>
<small>The app is facing a weird data corruption issue in the backend and I cannot seem to
find the source of the issue at the moment. It could be my device issue or in general
I messed up somewhere either way I'm sure what has happened.</small></li>
<sub>(This is a major improvement in the app's performance)</sub>
</ul>

<h4>Removed</h4>
Expand All @@ -68,6 +66,13 @@ <h4>Music</h4>
<li>Added <i>Shuffle</i> button.</li>
</ul>

<h4>Development</h4>

<ul>
<li>Updated many underlying APIs.</li>
<li>Updated how the codebase uses deprecated and old APIs.</li>
</ul>

<br>
<br>
<div class="wrap-collapsible">
Expand Down Expand Up @@ -117,6 +122,11 @@ <h4>Removed</h4>
</div>
</div>
<br>

<p>The app is released on GitHub and FDroid from here.</p>

<br>

<div class="wrap-collapsible">
<input id="build_43" class="toggle" type="checkbox">
<label for="build_43" class="lbl-toggle">Build43</label>
Expand All @@ -125,7 +135,8 @@ <h4>Removed</h4>
<h4>User Interface</h4>

<ul>
<li>Added blur effect on the background when a popup window is showing.</li>
<li>Added blur effect on the background when a popup window is showing.<br>
<small>Will work on supported devices only.</small></li>
<li>Added option to enable disable blur effect on popup windows <b>Behaviour
Preferences</b>
panel.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

77 changes: 0 additions & 77 deletions app/src/main/java/app/simple/inure/adapters/ui/AdapterApps.kt

This file was deleted.

27 changes: 22 additions & 5 deletions app/src/main/java/app/simple/inure/apk/utils/ProvidersUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import android.os.Build
import app.simple.inure.util.NullSafety.isNotNull

object ProvidersUtils {

fun isEnabled(context: Context, packageName: String, clsName: String): Boolean {
val componentName = ComponentName(packageName, clsName)

Expand All @@ -19,8 +18,17 @@ object ProvidersUtils {
// We need to get the application info to get the component's default state
try {
val packageInfo = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
context.packageManager.getPackageInfo(packageName, PackageManager.GET_PROVIDERS
or PackageManager.MATCH_DISABLED_COMPONENTS)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
context.packageManager
.getPackageInfo(packageName,
PackageManager.PackageInfoFlags.of(
(PackageManager.GET_PROVIDERS or PackageManager.MATCH_DISABLED_COMPONENTS).toLong()))
} else {
@Suppress("DEPRECATION")
context.packageManager
.getPackageInfo(packageName,
PackageManager.GET_PROVIDERS or PackageManager.MATCH_DISABLED_COMPONENTS)
}
} else {
@Suppress("deprecation")
context.packageManager.getPackageInfo(packageName, PackageManager.GET_PROVIDERS
Expand Down Expand Up @@ -49,8 +57,17 @@ object ProvidersUtils {
else -> {
try {
val packageInfo = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
context.packageManager.getPackageInfo(packageName, PackageManager.GET_PROVIDERS
or PackageManager.MATCH_DISABLED_COMPONENTS)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
context.packageManager
.getPackageInfo(packageName,
PackageManager.PackageInfoFlags.of(
(PackageManager.GET_PROVIDERS or PackageManager.MATCH_DISABLED_COMPONENTS).toLong()))
} else {
@Suppress("DEPRECATION")
context.packageManager
.getPackageInfo(packageName,
PackageManager.GET_PROVIDERS or PackageManager.MATCH_DISABLED_COMPONENTS)
}
} else {
@Suppress("deprecation")
context.packageManager.getPackageInfo(packageName, PackageManager.GET_PROVIDERS
Expand Down
Loading

0 comments on commit 789a5a9

Please sign in to comment.