BlinkID / blinkid-flutter

ID scanning plugins for cross-platform apps built with Flutter.
80 stars 23 forks source link

Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported #62

Open RuiMiguel opened 5 months ago

RuiMiguel commented 5 months ago

I have added blinkid_flutter package to a Flutter Android/iOS app, when I compile to Android I see this error on debug console

Incorrect package="com.microblink.flutter" found in source AndroidManifest.xml: /Users/ruialonso/.pub-cache/hosted/pub.dev/blinkid_flutter-6.7.0/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="com.microblink.flutter" from the source AndroidManifest.xml: /Users/ruialonso/.pub-cache/hosted/pub.dev/blinkid_flutter-6.7.0/android/src/main/AndroidManifest.xml.

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':blinkid_flutter:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
   > Incorrect package="com.microblink.flutter" found in source AndroidManifest.xml: /Users/ruialonso/.pub-cache/hosted/pub.dev/blinkid_flutter-6.7.0/android/src/main/AndroidManifest.xml.
     Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
     Recommendation: remove package="com.microblink.flutter" from the source AndroidManifest.xml: /Users/ruialonso/.pub-cache/hosted/pub.dev/blinkid_flutter-6.7.0/android/src/main/AndroidManifest.xml.

To be compatible with the latest versions of gradle, the library must remove package="com.microblink.flutter" from AndroidManifest.xml. I've tried to do this in local and the app compiles and runs succesfully.

Environment

flutter: 3.19.3 blinkid_flutter: ^6.7.0

Android com.android.application 8.4.1 compileSdkVersion 34 minSdkVersion 21 jvmTarget = 17

mparadina commented 5 months ago

Hi @RuiMiguel

Thank you for reporting the issue. This will be fixed in the upcoming 6.8.0 release.

I will notify you here once the SDK has been released.

omartinma commented 5 months ago

@mparadina thanks for the quick response to the issue. Do you have an estimate of when this will be ready? Thanks!

mparadina commented 5 months ago

@omartinma the new release should come out by the end of next week. Let me know if anything else comes up in the meantime.

omartinma commented 5 months ago

@mparadina i see there has not been any update last week, is there any estimation about this?

mparadina commented 4 months ago

Hi @omartinma! Apologies for the longer wait for the release. The version 6.8.0 has been released, which can be found here: https://github.com/BlinkID/blinkid-flutter/releases/tag/v6.8.0

Please test it out and let me know if it is working as expected. :)

RuiMiguel commented 4 months ago

Thank you so much @mparadina , we will update and check it

mparadina commented 4 months ago

@RuiMiguel no worries! Did you maybe test out the SDK? Is it working as expected now?

RuiMiguel commented 4 months ago

Hi @mparadina I have tested last version on my Android device and it works. Thanks!