Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔥[Urgent] Support AGP 8 and SDK 34 #295

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

knottx
Copy link

@knottx knottx commented Apr 13, 2024

  1. Support AGP 8
  2. Fix Compile Issue 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version #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
Copy link
Author

knottx commented Apr 13, 2024

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

@mrgnhnt96
Copy link

@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.

@knottx
Copy link
Author

knottx commented May 7, 2024

@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.

@famasf1
Copy link

famasf1 commented May 21, 2024

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.

@natsuk4ze
Copy link

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

@YarosMallorca
Copy link

Please merge this ASAP.

@DmitryGaimaldinov
Copy link

@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

@knottx
Copy link
Author

knottx commented Aug 16, 2024

@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

@johnwiese-ms
Copy link

Is this ever going to get merged?

@tungdevpro
Copy link

So cool, thank bro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants