Skip to content

Build errors with @Suppress annotations on Kotlin 2.2+ #2358

@zlace0x

Description

@zlace0x

Describe the bug
Build errors with @SuppressLint annotations on Kotlin 2.2+

To Reproduce
Using Kotlin version 2.2

e: file:///Users/dev/.pub-cache/hosted/pub.dev/stripe_android-12.3.0/android/src/main/kotlin/com/reactnativestripesdk/CollectBankAccountLauncherManager.kt:70:5 This annotation is not applicable to target 'expression'
e: file:///Users/dev/.pub-cache/hosted/pub.dev/stripe_android-12.3.0/android/src/main/kotlin/com/reactnativestripesdk/FinancialConnectionsSheetManager.kt:55:9 This annotation is not applicable to target 'expression'
e: file:///Users/dev/.pub-cache/hosted/pub.dev/stripe_android-12.3.0/android/src/main/kotlin/com/reactnativestripesdk/FinancialConnectionsSheetManager.kt:65:9 This annotation is not applicable to target 'expression'
e: file:///Users/dev/.pub-cache/hosted/pub.dev/stripe_android-12.3.0/android/src/main/kotlin/com/reactnativestripesdk/GooglePayPaymentMethodLauncherManager.kt:18:5 This annotation is not applicable to target 'expression'
e: file:///Users/dev/.pub-cache/hosted/pub.dev/stripe_android-12.3.0/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherManager.kt:174:5 This annotation is not applicable to target 'expression'
e: file:///Users/dev/.pub-cache/hosted/pub.dev/stripe_android-12.3.0/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetManager.kt:335:11 This annotation is not applicable to target 'expression'
e: file:///Users/dev/.pub-cache/hosted/pub.dev/stripe_android-12.3.0/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetManager.kt:340:11 This annotation is not applicable to target 'expression'

Downgrading to Kotlin 2.1, treats these errors as warnings.

Smartphone / tablet

  • Device: Android
  • OS: Android
  • Package version: 12.3.0
  • Flutter version 3.38.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions