GithubHelp home page GithubHelp logo

anitaa1990 / github-repo-sample Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 370 KB

A demo app that follows clean architecture which includes:

Kotlin 100.00%
kotlin-android data-binding android-application android-architecture mvvm-architecture rxjava-android retrofit2-rxjava2 livedata viewmodel

github-repo-sample's Introduction

Github-Repo-Sample

A demo app in android to showcase clean architecture:

  • DataBinding
  • LiveData
  • ViewModel
  • MVVM Architecture
  • RxJava, RxAndroid
  • Written in Kotlin

github-repo-sample's People

Contributors

anitaa1990 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vjaydeshmukh

github-repo-sample's Issues

java.lang.IllegalArgumentException: Unknown pattern character 'Y'

Just downloaded the source code, import it into the Android studio and run it Causing the error

08-16 16:12:46.053 1631-1652/? E/AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
Process: com.an.github, PID: 1631
java.lang.IllegalArgumentException: Unknown pattern character 'Y'
at java.text.SimpleDateFormat.validatePatternCharacter(SimpleDateFormat.java:323)
at java.text.SimpleDateFormat.validatePattern(SimpleDateFormat.java:305)
at java.text.SimpleDateFormat.(SimpleDateFormat.java:365)
at java.text.SimpleDateFormat.(SimpleDateFormat.java:258)
at com.an.github.utils.AppUtils$Companion.getLastWeekDate(AppUtils.kt:22)
at com.an.github.datasource.GithubDataSource.loadInitial(GithubDataSource.kt:24)
at androidx.paging.PageKeyedDataSource.dispatchLoadInitial(PageKeyedDataSource.java:323)
at androidx.paging.ContiguousPagedList.(ContiguousPagedList.java:102)
at androidx.paging.PagedList.create(PagedList.java:190)
at androidx.paging.PagedList.access$000(PagedList.java:114)
at androidx.paging.PagedList$Builder.build(PagedList.java:362)
at androidx.paging.LivePagedListBuilder$1.compute(LivePagedListBuilder.java:201)
at androidx.paging.LivePagedListBuilder$1.compute(LivePagedListBuilder.java:166)
at androidx.lifecycle.ComputableLiveData$2.run(ComputableLiveData.java:100)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

After updating AppUtils.kt
getLastWeekDate-> date formate val df = SimpleDateFormat("yyyy-MM-dd") from "YYYY" to "yyyy"
it's working fine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.