Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with latest Androidx version #198

Open
manas661 opened this issue Oct 4, 2024 · 1 comment
Open

Not compatible with latest Androidx version #198

manas661 opened this issue Oct 4, 2024 · 1 comment
Labels
authenticator This issue relates to the Authenticator component closing soon This issue will be closed in 7 days unless further comments are made. pending-communitiy-response Issue is pending response from the issue requestor question Further information is requested

Comments

@manas661
Copy link

manas661 commented Oct 4, 2024

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

@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify team member labels Oct 4, 2024
@manas661 manas661 changed the title Not compatible with latest Android x version Not compatible with latest Androidx version Oct 4, 2024
@mattcreaser mattcreaser transferred this issue from aws-amplify/aws-sdk-android Oct 4, 2024
@mattcreaser
Copy link
Member

I've transfered this issue to the authenticator repsoitory.

@manas661 please confirm that you're using the latest version of Authenticator, 1.3.0. There was a fix around the animation libraries included back in 1.0.2.

@mattcreaser mattcreaser added the authenticator This issue relates to the Authenticator component label Oct 4, 2024
@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Oct 4, 2024
@mattcreaser mattcreaser added question Further information is requested pending-communitiy-response Issue is pending response from the issue requestor labels Oct 4, 2024
@github-actions github-actions bot removed the pending-triage Issue is pending triage label Oct 4, 2024
@vincetran vincetran added the closing soon This issue will be closed in 7 days unless further comments are made. label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authenticator This issue relates to the Authenticator component closing soon This issue will be closed in 7 days unless further comments are made. pending-communitiy-response Issue is pending response from the issue requestor question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants