From c065a013fcd97bdba4967c9866a6013f54bea2c5 Mon Sep 17 00:00:00 2001 From: randogoth Date: Mon, 24 Feb 2025 16:53:45 +0200 Subject: [PATCH] include system apps --- android/app/build.gradle | 2 ++ android/build.gradle | 7 +++++++ lib/main.dart | 4 +++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index d9ac931..1054267 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -9,6 +9,7 @@ android { namespace = "vision.flux.plasmoid" compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion + compileSdkVersion 34 compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 @@ -28,6 +29,7 @@ android { targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName + targetSdkVersion 34 } buildTypes { diff --git a/android/build.gradle b/android/build.gradle index 8eb66b0..1fe25b0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -10,6 +10,13 @@ subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { + afterEvaluate { project -> + if (project.hasProperty("android")) { + project.android { + compileSdkVersion 34 + } + } + } project.buildDir = "${rootProject.buildDir}/${project.name}" project.evaluationDependsOn(':app') // Ensure dependencies are evaluated correctly diff --git a/lib/main.dart b/lib/main.dart index b283e53..3b14d0b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -154,6 +154,7 @@ class _AppLauncherScreenState extends State { List installedApps = await DeviceApps.getInstalledApplications( includeAppIcons: true, onlyAppsWithLaunchIntent: true, + includeSystemApps: true ); List loadedApps = installedApps.map((app) { @@ -461,6 +462,7 @@ class _AppLauncherScreenState extends State { sortAlphabetically: widget.settings.sortAlphabetically, autoFocus: !widget.settings.autoFocus, )); + if (!widget.settings.autoFocus) FocusScope.of(context).unfocus(); break; case 'About': _showInfoPage(context, "About", aboutContent); @@ -605,7 +607,7 @@ Use the menu button (plasmoid) to toggle settings such as icon visibility, color --- -Made with 💚 by randogothimport 'package:plasmoid/texts.dart'; +Made with 💚 by randogoth Icon by [Game Icons.net](https://game-icons.net/). """;