image_gallery_saver icon indicating copy to clipboard operation
image_gallery_saver copied to clipboard

🔥[Urgent] Support AGP 8 and Fix Compile Issue

Open knottx opened this issue 10 months ago • 9 comments

  1. Support AGP 8
  2. Fix Compile Issue #272

For people who are waiting for this you can use this in your pubspec.yaml

dependency_overrides:
  image_gallery_saver:
    git:
      url: https://github.com/knottx/image_gallery_saver.git
      ref: knottx-latest

knottx avatar Apr 13 '24 09:04 knottx

@hyjfine @woodwen @nicolas-landa @dvaldivia @qiuxiang @kazumi007 @ened @zhuyangyang-lingoace @Allen0505 @harithay @HemlockBane @bingbingbog Please merge and release. 🥹

knottx avatar Apr 13 '24 14:04 knottx

@knottx Thanks for fixing this issue! I've been scratching my head for the last few hours until I came across this fix.

This PR might be more welcomed if you removed all the changes unrelated to the AGP 8 fix. (namely: lints, code formatting, and launch files). However, I know those other changes will be appreciated, so I suggest throwing them into a different PR.

mrgnhnt96 avatar May 06 '24 23:05 mrgnhnt96

@knottx Thanks for fixing this issue! I've been scratching my head for the last few hours until I came across this fix.

This PR might be more welcomed if you removed all the changes unrelated to the AGP 8 fix. (namely: lints, code formatting, and launch files). However, I know those other changes will be appreciated, so I suggest throwing them into a different PR.

@mrgnhnt96 sure! done.

knottx avatar May 07 '24 00:05 knottx

The owner of the repository haven't committed or merge any single PR since June last year. I think we are going to need an alternative fork soon.

famasf1 avatar May 21 '24 05:05 famasf1

I am running an alternative package. I would be happy to help you.

natsuk4ze avatar Jul 31 '24 23:07 natsuk4ze

Please merge this ASAP.

YarosMallorca avatar Aug 13 '24 12:08 YarosMallorca

@knottx, please, add support for flutter 3.24.0 in your repo. Right now building apk with your fork throws

Execution failed for task ':image_gallery_saver:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR: 
     /build/image_gallery_saver/intermediates/merged_res/release/values/values.xml:194: AAPT: error: resource android:attr/lStar not found.

This happens due to old compile sdk in android/build.gradle file. While experimenting I found out that compile sdk of a package has to be >=31 to successfully build apk with flutter 3.24.0. But it's better to set 34 right away.

Similar issue happens, for example, in one signal package: https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/930

Sure, I can fork your repo but it'll be helpful for others who also want to use sdk 3.24.0

DmitryGaimaldinov avatar Aug 16 '24 05:08 DmitryGaimaldinov

@knottx, please, add support for flutter 3.24.0 in your repo. Right now building apk with your fork throws

Execution failed for task ':image_gallery_saver:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR: 
     /build/image_gallery_saver/intermediates/merged_res/release/values/values.xml:194: AAPT: error: resource android:attr/lStar not found.

This happens due to old compile sdk in android/build.gradle file. While experimenting I found out that compile sdk of a package has to be >=31 to successfully build apk with flutter 3.24.0. But it's better to set 34 right away.

Similar issue happens, for example, in one signal package: OneSignal/OneSignal-Flutter-SDK#930

Sure, I can fork your repo but it'll be helpful for others who also want to use sdk 3.24.0

Updated

knottx avatar Aug 16 '24 05:08 knottx

Is this ever going to get merged?

johnwiese-ms avatar Aug 18 '24 14:08 johnwiese-ms