Android app built using Jetpack Compsoe for displaying facts.
Detailed instructions can be found in the Contributing file.
- Clone the repository
git clone https://github.com/dscmbcet/Facts-App
- Open the Datasource.kt file.
- Add in your fact data in the below format
Fact( info = "This is an example of a fact " + "having multiple lines.", source = "r/funfacts", imageId = R.drawable.yourFileName, type = FactType.FUN, submittedBy = "yourName" )
- Open a pull request to this repository.
Image should be uploaded on the res/drawable folder, and the
imageId
would beR.drawable.yourFileName
.
Available fact types:
- FUN,
- INTERESTING
- SCIENCE
- NATURE
- TECH
- MISC