Skip to content

wpfl5040/firebase-android-mvvm-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firebase-android-mvvm-tutorial

Firebase exercise project that integrates Kotlin Coroutines, Koin, Room, Navigation Architecture Components, ViewModel/LiveData, and Data Binding.

How to setup?

  • Go to the Firebase console and create a project
  • Download google-services and put it in /app directory.
  • Run the application.

FireStore

  • Go to the Firebase Database
  • Modify the rule to allow read and write
  • Create users collection
 collection -------- document ----------------------------field----------------------------                                                                         
   users              autoId          name(String), email(String), created(Timestamp)                                                                           

Authentication

  • Go to the Firebase Authentication
  • GO to the sign-in method tab and enable email password

Crashlytics

  • When the testcrash button is pressed in the app, a runtime exception is raised
  • Go to the crash tab of the Firebase homepage and check

Storage

  • GO to the Firebase Storage
  • Modify the rule to allow read and write
  • Go to the StorageRepositoryImpl class and modify the path accordingly
    //TODO : Please modify the path appropriately
    val storageRef = storage.getReferenceFromUrl("Enter your url")
    //TODO : Please modify the path appropriately
    val listRef = storage.reference.child("Enter your folder")

Analytics

  • Analytics event settings.
  • Check the event name in the FirebaseAnalytics.Event. class
  • How to register customEvent
     fun customEvent(eventName: String) {
         analytics.logEvent(eventName, Bundle())
     }

Machine Learning

  • To be added

About

Firebase exercise project that integrates Kotlin Coroutines, Koin, Navigation Architecture Components, ViewModel/LiveData, and Data Binding.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages