aboutyou / dart_packages

Dart and Flutter plugins maintained and used by @ABOUTYOU
222 stars 150 forks source link

Conflicting declarations: val TAG: String for Android #430

Open YankoSoulisimo opened 3 months ago

YankoSoulisimo commented 3 months ago

Hello, I have been using the sign_in_with_apple plugin for quite a long time. Recently I updated from version 6.1.0 to 6.1.1. After, when running on Android I get:

e: file:///Users/xxx/.pub-cache/hosted/pub.dev/sign_in_with_apple-6.1.1/android/src/main/kotlin/com/aboutyou/dart_packages/sign_in_with_apple/SignInWithApplePlugin.kt:19:5 Conflicting declarations: val TAG: String e: file:///Users/xxx/.pub-cache/hosted/pub.dev/sign_in_with_apple-6.1.1/android/src/main/kotlin/com/aboutyou/dart_packages/sign_in_with_apple/SignInWithApplePlugin.kt:146:13 Overload resolution ambiguity between candidates: val TAG: String val TAG: String e: file:///Users/xxx/.pub-cache/hosted/pub.dev/sign_in_with_apple-6.1.1/android/src/main/kotlin/com/aboutyou/dart_packages/sign_in_with_apple/SignInWithApplePlugin.kt:154:13 Overload resolution ambiguity between candidates: val TAG: String val TAG: String

FAILURE: Build failed with an exception.

val TAG = "SignInWithApple" and replace the two TAG usages with the string "SignInWithApple" directly.

tp commented 2 months ago

6.1.1 removed the Flutter embedding V1, but it does not look like this is the issue here.

Could you please try the preview release @ https://pub.dev/packages/sign_in_with_apple/versions/6.1.2-beta1?

It should only fix a warning and not be a required update, but maybe you're lucky and this'll fix your issue :)