Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
## 0.8.0

- Adds Android Gradle Plugin 9 / built-in Kotlin compatibility.
- Keeps Kotlin Gradle Plugin compatibility for Android Gradle Plugin versions earlier than 9.

## 0.7.0

- Expanded Android app details payload with additional raw fields: `uid`, `apkPath`, `apkSizeBytes`, `dataPath`, and `isOnExternalStorage`.
- Added APK size calculation in bytes using `ApplicationInfo.sourceDir` and `splitSourceDirs`.
- Updated Dart unit tests for method channel mapping of the new fields.

## 0.6.0

- **BREAKING**: Updated to match platform interface 0.6.0 - `requestedPermissions` removed from `AppInfo`
- Added `getRequestedPermissions(String packageName)` method implementation for on-demand permission retrieval
- Added GitHub Actions workflows for Android unit tests, quality checks, and PR enforcement
Expand All @@ -12,13 +19,16 @@
- Made `FlutterDeviceAppsAndroidPlugin` class `open` with `protected` fields for testability

## 0.5.1

- Added support for additional `AppInfo` fields from the Android package manager: `category`, `targetSdkVersion`, `minSdkVersion`, `enabled`, `processName`, `installLocation`, `requestedPermissions`.
- Populates `requestedPermissions` via `PackageManager.GET_PERMISSIONS`.

## 0.4.0

App change events now forward the raw Android action string to Dart, letting the Dart side handle event type mapping; no breaking changes.

## 0.2.0

- Enhanced README.md with professional badge layout for better package visibility
- Added centered HTML badges for pub.dev, GitHub stars, Flutter documentation, and MIT license
- Added umbrella package badge linking to main flutter_device_apps package
Expand All @@ -27,6 +37,7 @@ App change events now forward the raw Android action string to Dart, letting the
- Enhanced package branding and visual consistency across federated plugin family

## 0.1.2

- Added `openAppSettings` implementation using `Settings.ACTION_APPLICATION_DETAILS_SETTINGS`
- Added `uninstallApp` implementation using `Intent.ACTION_UNINSTALL_PACKAGE` with fallback to `ACTION_DELETE`
- Added `getInstallerStore` implementation using `PackageManager.getInstallerPackageName()`
Expand All @@ -42,5 +53,6 @@ App change events now forward the raw Android action string to Dart, letting the
- Removed unused `enabled`/`disabled` event types that were never implemented

## 0.1.0

- First public Android implementation for `flutter_device_apps`
- Adds listApps, getApp, openApp, and appChanges (EventChannel)
29 changes: 25 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@ allprojects {
}

apply plugin: "com.android.library"
apply plugin: "kotlin-android"

def agpMajor = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize(".")[0] as int
def builtInKotlinEnabled = providers.gradleProperty("android.builtInKotlin")
.map { it.toBoolean() }
.orElse(agpMajor >= 9)
.get()

def shouldApplyKotlinAndroid = agpMajor < 9 || !builtInKotlinEnabled

if (shouldApplyKotlinAndroid) {
apply plugin: "kotlin-android"
}

android {
namespace = "com.okmsbun.flutter_device_apps_android"
Expand All @@ -34,8 +45,10 @@ android {
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11
if (shouldApplyKotlinAndroid) {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
}

sourceSets {
Expand All @@ -60,10 +73,18 @@ android {
all {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen {false}
outputs.upToDateWhen { false }
showStandardStreams = true
}
}
}
}
}

if (!shouldApplyKotlinAndroid) {
kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11
}
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_device_apps_android
description: Android implementation of flutter_device_apps (federated plugin).
version: 0.7.0
version: 0.8.0
repository: https://github.com/okmsbun/flutter_device_apps_android
issue_tracker: https://github.com/okmsbun/flutter_device_apps_android/issues
topics:
Expand Down