1
0
Fork 0
mirror of https://github.com/MatomoCamp/matomocamp-companion-android.git synced 2024-09-19 16:13:46 +02:00
Commit graph

320 commits

Author SHA1 Message Date
Christophe Beyls
d1a336c1e0 upgrade Kotlin to 1.4.20 and coroutines to 1.4.1
replace java.util.* imports with individual imports
2020-11-25 14:57:50 +01:00
Christophe Beyls
475ce1a451 defer initialization of OkHttpClient on a background thread 2020-11-11 19:26:18 +01:00
Christophe Beyls
9578ca949e use okhttp-tls library to build custom SSLSocketFactory and TrustManager instances 2020-11-11 13:02:35 +01:00
Christophe Beyls
06f902eadb
Add missing room images for building U (#61)
replace existing images and add 3 new ones.
2020-11-10 00:46:20 +01:00
Christophe Beyls
e7de633383 Use async Handler for LiveData scheduling 2020-11-06 16:25:01 +01:00
Christophe Beyls
e306f6436b revert workaround for compound drawables tinting bug in some Android versions, bug has been fixed 2020-09-14 15:51:36 +02:00
Christophe Beyls
ae3212822d upgrade to Kotlin 1.4.10 + new versions of AppCompat & Material Components
+ add workaround for FAB tinting on API < 21
2020-09-14 15:51:32 +02:00
Christophe Beyls
2c5a0eaa7a fix: use DateParceler to serialize startTime and endTime fields 2020-07-18 01:05:25 +02:00
Christophe Beyls
b2a93a2165 upgrade Gradle plugin to 4.0
restrict the Jitpack Repository to the PhotoView dependency
2020-05-29 12:07:58 +02:00
Christophe Beyls
4b20c0b3a4 rely on FragmentFactory to instantiate all fragments, replace newInstance() factory methods with createArguments() 2020-05-21 15:16:50 +02:00
Christophe Beyls
7335b6021e make ViewLifecycleLazy implementation private and make it implement LifecycleEventObserver to save an object allocation 2020-05-12 00:06:58 +02:00
Christophe Beyls
f7b6ea857e remove double negation 2020-05-08 22:33:41 +02:00
Christophe Beyls
64188a1bd6 tweak code in RecyclerViewExt 2020-05-08 00:45:42 +02:00
Christophe Beyls
e87ca567be extract findActivity() to a public utility function in ViewExt 2020-05-08 00:41:52 +02:00
Christophe Beyls
b8235f8e93 use += operator for collections 2020-05-06 23:32:53 +02:00
Christophe Beyls
9ea8200c07 use with(obtainStyledAttributes) for consistency with other screens 2020-05-04 23:53:27 +02:00
Christophe Beyls
ecbe98f9e4 combine download schedule progress and result into LoadingState 2020-05-02 00:46:14 +02:00
Christophe Beyls
400bcdea53 use += operator to add view 2020-04-29 01:01:00 +02:00
Christophe Beyls
3194c80cf4 remove some unnecessary null checks 2020-04-25 21:01:53 +02:00
Christophe Beyls
f447c0069b don't use Parcelize in MultiChoiceHelper for better reusability 2020-04-23 17:53:24 +02:00
Christophe Beyls
afd488be58 fix multiChoiceHelper adapter lifecycle 2020-04-23 16:04:24 +02:00
Christophe Beyls
5ad84338ee provide Calendar instance directly as argument default value in DateUtils.getYear() 2020-04-23 15:20:13 +02:00
Christophe Beyls
1eff855426 refactor HttpUtils to suspending functions and perform parsing on the OkHttp background thread 2020-04-22 19:07:47 +02:00
Christophe Beyls
dc02336785 fix the download progress bar logic and encapsulate it in FadeOutViewMediator 2020-04-21 20:15:56 +02:00
Christophe Beyls
7f282c4418 replace ContentLoadingProgressBar with ContentLoadingViewMediator 2020-04-21 19:09:11 +02:00
Christophe Beyls
1d88941b63 create viewLifecycleLazy and use it to make fragments properly implement RecycledViewPoolProvider 2020-04-21 14:42:36 +02:00
Christophe Beyls
96eb3df61d use LazyThreadSafetyMode.NONE for lazy preference read in TrackScheduleListFragment 2020-04-21 13:58:14 +02:00
Christophe Beyls
0cabd84732 remove dependency to lifecycle-common-java8 2020-04-21 13:09:41 +02:00
Christophe Beyls
a410532aa1 isolate fix for disappearing menu items into a separate class 2020-04-21 10:52:40 +02:00
Christophe Beyls
24a27a5ac1 use alternative Activity constructor instead of setContentView() 2020-04-17 17:51:54 +02:00
Christophe Beyls
b45b3cf444 remove unnecessary FOCUS_AFTER_DESCENDANTS on RecyclerView 2020-04-17 00:58:14 +02:00
Christophe Beyls
77ec0fca2d disallow null queries in SearchViewModel 2020-04-17 00:18:32 +02:00
Christophe Beyls
75c73c2de8 update Parser to be a read-only interface 2020-04-16 16:15:56 +02:00
Christophe Beyls
8988744024 Override another material components layout to avoid including the unused BaselineLayout internal class in the APK 2020-04-10 17:49:14 +02:00
Christophe Beyls
7ddf2020f2 replace RecyclerViewFragment with RecyclerViewViewHolder and refactor fragments to not keep a reference to their RecyclerView adapter
Refactor TrackScheduleListFragment and TrackScheduleActivity to simplify communication code
2020-04-03 15:53:02 +02:00
Christophe Beyls
93b43b1f91 remove unused namespace declarations 2020-04-02 11:53:09 +02:00
Christophe Beyls
162628687d only allow non-null types for SingleEvent 2020-03-29 18:33:49 +02:00
Christophe Beyls
a9c76680e4 refactor MultiChoiceHelper to allow changing its underlying adapter 2020-03-28 03:06:39 +01:00
Christophe Beyls
02e6887c45 simplify Fragments by removing onCreateView() and onDestroyView() callbacks and viewHolder members when possible 2020-03-26 13:19:06 +01:00
Christophe Beyls
f90fbccd2a replace deprecated onActivityCreated() with onViewCreated() in fragments 2020-03-20 00:11:42 +01:00
Christophe Beyls
a060f5d717 use custom BackgroundWorkScope instead of GlobalScope 2020-01-31 15:44:19 +01:00
Christophe Beyls
a37e102cd5 simplify the Link class by removing secondary constructor 2020-01-29 23:29:24 +01:00
Christophe Beyls
d9aed9319e regression fix: initial section display in the toolbar 2020-01-29 12:04:44 +01:00
Christophe Beyls
669f5d1cb0
Convert the entire app to Kotlin (#50)
- Remove all Java code and replace it with Kotlin equivalent
- Use KTX versions of all libraries to extend them with Kotlin functionality
- Migrate Okio to its latest version which is written in Kotlin.
2020-01-28 23:47:38 +01:00
Christophe Beyls
afcc269eda fix ViewPager2 adapter memory leak when TracksFragment is detached 2020-01-27 12:14:58 +01:00
Christophe Beyls
f0601224f1 update SearchViewModel to save its own state using SavedStateHandle 2020-01-26 14:21:49 +01:00
Christophe Beyls
60a3d01324 fix app:drawableTint not working in some Android versions 2020-01-24 13:50:28 +01:00
Christophe Beyls
8554eb710c remove duplicate text set in BookmarksAdapter 2020-01-24 13:38:58 +01:00
Christophe Beyls
c82e4c2333 improve background coloring code in TrackScheduleAdapter 2020-01-23 20:25:48 +01:00
Christophe Beyls
ad3f25e480 remove all left/right attributes from layouts since the app now has a min SDK version of 17 which always supports start/end attributes 2020-01-22 21:42:55 +01:00