blaugold / user_messaging_platform

A flutter plugin which provides a Dart API for the User Messaging Platform (UMP) SDK, which is the Consent Management Platform (CMP) SDK provided as part of Google's Funding Choices.
https://pub.dev/packages/user_messaging_platform
MIT License
9 stars 10 forks source link

Plugin no longer compile for new versions of flutter #26

Open defemz opened 1 month ago

defemz commented 1 month ago

Hi there and thanks for this really great plugin. I recently upgraded my flutter to version 3.24.3. Since then my app no longer compile. It usually stopped with the following error message:

A problem occurred configuring project ':user_messaging_platform'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

     If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

Please kindly take note and update the plugin. Thanks

RichardRaue commented 5 days ago

There is an easy way to show the UMP with built-in methods. In short, the google mobile ads lib already has means to show the form. Please see here for details:

https://stackoverflow.com/questions/76779852/flutter-how-to-implement-the-ump-sdk https://developers.google.com/admob/flutter/privacy?hl=de