auth0 / auth0-flutter

Auth0 SDK for Flutter
https://pub.dev/documentation/auth0_flutter/latest/
Apache License 2.0
59 stars 39 forks source link

Android dependency is imported dynamically, causing build issues. #313

Closed parkgrrr closed 10 months ago

parkgrrr commented 11 months ago

Checklist

Description

Last week, every branch new and old of our Android app no longer built due to a kotlin version build error After hours of pouring over merge requests, we realized the Auth0 flutter sdk was dynamically importing the Auth0 Android sdk. There is even a lint warning that is ignored in your sdk. If we would have had a hot fix needed, this would have halted our ability to release. Please lock the Android version for newer and older versions of the Auth0 sdk.

//noinspection GradleDynamicVersion implementation 'com.auth0.android:auth0:2.+'

Auth0 Android SDK that broke us: https://github.com/auth0/Auth0.Android/releases/tag/2.10.2

https://github.com/auth0/auth0-flutter/blob/main/auth0_flutter/android/build.gradle#L70C1-L71C49

Reproduction

  1. Add auth0 sdk to app
  2. Wait for new Android sdk. version to be released
  3. See any combination of build errors

Additional context

No response

auth0_flutter version

1.1.0

Flutter version

3.7.9

Platform

Android

Platform version(s)

No response

poovamraj commented 11 months ago

We have fixed this by locking our version here @parkgrrr - https://github.com/auth0/auth0-flutter/pull/311

You can follow this commit to fix the issue on your side- https://github.com/auth0/auth0-flutter/pull/311/commits/193c7260a5084f73e4d2aa11a60afd3f19663c4b

Sorry for the hassle.

parkgrrr commented 11 months ago

Thank you very much!

parkgrrr commented 11 months ago

Keeping this opened until it's merged. Thanks again.

Widcket commented 10 months ago

The version is now pinned in v1.3.0.