Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Updated android gradle plugin (namespace) and compileSdk version#86

Open
gaabrielricci wants to merge 1 commit intog123k:masterfrom
gaabrielricci:upgrade_android_gradle_plugin
Open

Updated android gradle plugin (namespace) and compileSdk version#86
gaabrielricci wants to merge 1 commit intog123k:masterfrom
gaabrielricci:upgrade_android_gradle_plugin

Conversation

@gaabrielricci
Copy link
Copy Markdown

Resolved namespace incompatibility issue in build.gradle in app module. Error in the image below. And updated the package build version to the latest android version.

app_badger

@j-ixcayau
Copy link
Copy Markdown

Any update of this PR?

@gaabrielricci
Copy link
Copy Markdown
Author

waiting for the owner

@biklas7
Copy link
Copy Markdown

biklas7 commented Nov 9, 2023

hey @gaabrielricci I tried to use your fork and it shows this error:
Build file '/Users/.../.pub-cache/git/flutter_app_badger-b4c1958dd11e60ff69b34396522901a71078f036/android/build.gradle' should not contain a package statement.

@gaabrielricci
Copy link
Copy Markdown
Author

@biklas7

Check the implementation if it is correct in your pubspec.yaml, I created a new flutter project, only added my fork, and it worked correctly with the updated gradle 8/8.1.3

implementation:

cupertino_icons: ^1.0.2
flutter_app_badger:
path: C:/............../Documents/teste/flutter_app_badger

@jakobleck
Copy link
Copy Markdown

According to the migration guide for buttons it is recommended to use ElevatedButton as a replacement for RaisedButton. ;)

@gaabrielricci
Copy link
Copy Markdown
Author

According to the migration guide for buttons it is recommended to use ElevatedButton as a replacement for RaisedButton. ;)

I just updated the android dependencies to get rid of the namespace error. I didn't update the code for this library

@jakobleck
Copy link
Copy Markdown

According to the migration guide for buttons it is recommended to use ElevatedButton as a replacement for RaisedButton. ;)

I just updated the android dependencies to get rid of the namespace error. I didn't update the code for this library

Are you sure? :) I'm referring to the changes in the example app.

@nav-mrizzello
Copy link
Copy Markdown

When will the new library be released with this change?

@MyBlueford16
Copy link
Copy Markdown

Any chance this will get merged in soon? I really don't want to have to migrate to a different package but this is blocking us from releasing a critical update.

@jakobleck
Copy link
Copy Markdown

Just use a git ref for including the package until a new version is released?

@MyBlueford16
Copy link
Copy Markdown

Just use a git ref for including the package until a new version is released?

@jakobleck yeahhh that's what I ended up doing. Was hoping to avoid that

@leejh10003
Copy link
Copy Markdown

Yeah I need this patch too. Isn't there any update on this?

@nohli
Copy link
Copy Markdown

nohli commented Mar 8, 2024

@g-30 @g123k could you publish a fix for the namespace please?

This prevents an app using this plugin to upgrade to Android Gradle Plugin >=8.

@ChrisElliotUK
Copy link
Copy Markdown

We’ve had to pgrade to Android Gradle Plugin >=8 due to another package and now we can’t compile because of this. Please can you merge this

@j-ixcayau
Copy link
Copy Markdown

For those who are still waiting for the merge, I added this update like this

  flutter_app_badger:
    git:
      url: https://github.com/g123k/flutter_app_badger.git

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.