build.gradle(:app)

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 28

lintOptions {
disable 'InvalidPackage'
}

defaultConfig {
// TODO: Specif…

파이어베이스 인증에 로그인 하기

    // 파이어베이스 인증 //
    $('.login-form').submit(function(e){
        e.preventDefault();
       
        const email = $('.login-form input[name="email"]').val();
        const password = $('.login-form input[name="password"]').val();
       
        firebase.auth().signInWithEmailAndPassword(email, password)
            .then((user) => {               
                console.log(user);
                this.reset();
            })
            .catch((error) => {
                console.log(error);
            });
    });

댓글

이 블로그의 인기 게시물

파이어베이스 펑션스 서브도메인 설정하기

build.gradle(:app)