Monday, March 4, 2024

Firebase Email Authentication In Android Studio Jetpack Compose 2024

 Step 1: Add Dependency

id("com.google.dagger.hilt.android") version "2.49" apply false

kotlin("kapt")
id("com.google.dagger.hilt.android")

implementation("com.google.dagger:hilt-android:2.49")
kapt("com.google.dagger:hilt-android-compiler:2.49")
implementation ("androidx.hilt:hilt-navigation-compose:1.2.0")
implementation("androidx.navigation:navigation-compose:2.7.7")

Step 2: Connect Firebase




1 comment:

  1. Good code.
    I have changed onClick codes of Buttons as below:
    SignupScreen:
    errorE = email.isEmpty()
    errorP = !errorE && password.isEmpty()
    errorC = !errorE && !errorP && cPassword.isEmpty()
    errorCP = !errorE && !errorP && !errorC && password != cPassword
    if (!errorE && !errorP && !errorC && !errorCP && !pLength) {
    vm.onSignup(email, password)
    }
    LoginScreen:
    errorE = email.isEmpty()
    errorP = !errorE && password.isEmpty()
    if (!errorE && !errorP) vm.login(email, password)

    Code is working fine without any bug.

    Will watch all videos with my personal user id jamunaaprajapati at gmail dot com

    ReplyDelete

Power Of Compounding

 Power Of Compounding 1 = 1 2 = 2 3 = 4 4 = 8 5 = 16 6 = 32 7 = 64 8 = 128 9 = 256 10 = 512 11 = 1024 12 = 2048 13 = 4096 14 = 8192 15 = 163...