Skip to content

Not compatible with latest Androidx version #198

@manas661

Description

@manas661

Describe the bug
A clear and concise description of what the bug is.

com.amplifyframework.ui:authenticator:1.0.0 is not working with latest compose bom library . It is only being compatable with androidx.compose.animation:animation:1.4.3 .And it is not working with any of the upper version.

We are faing this issue to implement amplify in Android:-

java.lang.NoSuchMethodError: No static method AnimatedContent(Ljava/lang/Object;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Ljava/lang/String;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V in class Landroidx/compose/animation/AnimatedContentKt; or its super classes (declaration of 'androidx.compose.animation.AnimatedContentKt' appears in /data/app/~~6bhZICrgqVij99eBwBhVhA==/com.kotak.kotakpro.qa-b8N8K3H1VJQv0sX17v-0zQ==/base.apk)
at com.amplifyframework.ui.authenticator.ui.AuthenticatorKt.Authenticator(Authenticator.kt:112)

To Reproduce
A code sample or steps:


   Authenticator(
            signInContent = {
                Amplify.Auth.signIn(
                    "888888888888", "8888888888", { result ->
                        if (result.isSignedIn) {
                          
                            Toast.makeText(context, "authenticated", Toast.LENGTH_SHORT).show()

                    } else {
                        Toast.makeText(context, "not authenticated", Toast.LENGTH_SHORT).show()
                    }
                }, {
                    startSensorEvent.value = true
                }
            )
        }
    ) {
     //content
    }

Which AWS service(s) are affected?
amplify authenticator

Metadata

Metadata

Assignees

No one assigned

    Labels

    authenticatorThis issue relates to the Authenticator componentclosing soonThis issue will be closed in 7 days unless further comments are made.pending-community-responseIssue is pending response from the issue requestorquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions