RoomDataPersistance
topicsCovered:
- Room
- ModelView
- Excecutor
- LiveData
- ViewModelFactory
- Unzip the github project to a folder
- Open Android Studio. Go to File -> New -> Import Project
- choose To_Do_List to import and then click Next->Finish.
- Run the project in android studio with emulator or on android phone to see the App running.
make sure you have the below dependencies in build.gradle.app file
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:29.0.0'
// RecyclerView dependency; must match SDK version
implementation 'com.android.support:recyclerview-v7:29.0.0'
// FAB dependency
implementation 'com.android.support:design:29.0.0'
// Room dependencies
implementation "android.arch.persistence.room:runtime:1.1.1"
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
annotationProcessor "android.arch.persistence.room:compiler:1.1.1"
//liveData
implementation "android.arch.lifecycle:extensions:1.1.1"
annotationProcessor "android.arch.lifecycle:compiler:1.1.1"
// Testing
// Instrumentation dependencies use androidTestImplementation
// (as opposed to testImplementation for local unit tests run in the JVM)
androidTestImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support:support-annotations:28.0.0'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
To_Do_List is distributed under the MIT license.