async_wallpaper icon indicating copy to clipboard operation
async_wallpaper copied to clipboard

v3.0.0: Major improvements + new features

Open codenameakshay opened this issue 8 months ago • 1 comments

This pull request includes significant updates to the Android project, focusing on dependency upgrades, permission adjustments, and new features for battery management in the VideoLiveWallpaper service. The most important changes include upgrading the Android Gradle plugin, modifying permissions in the manifest, and implementing battery-aware playback settings.

Dependency and build script updates:

  • android/build.gradle: Upgraded the Android Gradle plugin from version 7.2.0 to 7.4.2.
  • example/android/app/build.gradle: Applied new plugins for Android application and Kotlin, updated Java version compatibility, and added new dependencies for desugaring and multidex support. [1] [2] [3] [4]
  • example/android/build.gradle: Removed old buildscript and dependencies sections.

Permission and manifest changes:

  • android/src/main/AndroidManifest.xml: Adjusted permissions for external storage with maxSdkVersion, added new permissions for media access, and added a new service for VideoLiveWallpaper.

Battery management and playback settings:

  • android/src/main/java/com/codenameakshay/async_wallpaper/VideoLiveWallpaper.java: Introduced battery management to adjust video playback settings based on battery level, including reducing frame rate and playback speed in low battery mode. [1] [2]
  • Added methods to handle media player initialization, resource release, and file copying with proper logging and error handling. [1] [2] [3] [4]

These changes collectively enhance the application's performance, compatibility, and user experience, particularly in scenarios involving low battery conditions.

codenameakshay avatar Apr 14 '25 14:04 codenameakshay

Very nice

I also suggest upgrading the gradle version to above gradle-8.2.1 because of some deprecation errors in the new Flutter version

$ flutter --version
Flutter 3.29.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ea121f8859 (4 weeks ago) • 2025-04-11 19:10:07 +0000
Engine • revision cf56914b32
Tools • Dart 3.7.2 • DevTools 2.42.3

guyluz11 avatar May 06 '25 13:05 guyluz11