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

460 commits

Author SHA1 Message Date
Christophe Beyls
389af5475c update fragments to 1.3.0 and use the new Activity Result and Fragment Result APIs 2021-02-15 22:03:36 +01:00
Christophe Beyls
cf91dcc0f8 allow alarms to go off while the device is in low-power idle mode 2021-02-07 16:57:54 +01:00
Christophe Beyls
12d355cb09 bump version code for release 2.0.5 2021-02-06 01:39:43 +01:00
Christophe Beyls
531b8e38b8 update OkHttp to 3.12.13 2021-02-06 01:36:25 +01:00
Christophe Beyls
258598e730
Import bookmarks feature (#65)
- move ICalendarWriter to ical package
- create ICalendarReader and share CRLF constant with ICalendarWriter
- add import icon
- implement bookmarks parser and add file picker to send parsed bookmark ids to ExternalBookmarksActivity
- add feature to import all bookmarks shown in the external bookmarks list at once, with confirmation dialog.
2021-02-06 01:33:41 +01:00
Christophe Beyls
3df765fecc upgrade kotlinx.coroutines and okio to their latest version 2021-02-04 14:09:23 +01:00
Christophe Beyls
b7484e406c always expect non-null body in case of successful http response 2021-01-27 19:56:59 +01:00
Jaime Soriano Pastor
3518208b3a
Ignore duplicated person in event (#64) 2021-01-26 18:48:33 +01:00
Christophe Beyls
4e8959ce84 fix res-override sourceSet path 2020-12-25 17:26:12 +01:00
Christophe Beyls
7e63735a7d replace "more info" menu item with floating action button in PersonInfoActivity
use a single ViewModel in the Activity as data source for both Activity and Fragment.
2020-12-21 18:01:57 +01:00
Christophe Beyls
5a0b641b61 replace deprecated method call setToolbarColor() with setDefaultColorSchemeParams() in CustomTabsIntent.Builder 2020-12-19 19:13:20 +01:00
Christophe Beyls
9386b9c107 refresh the list of libraries used in the project 2020-12-19 19:04:29 +01:00
Christophe Beyls
fa72523517 update Room to 2.2.6 2020-12-19 18:31:21 +01:00
Christophe Beyls
6dc13ed4bd Update target SDK version to 30 and rewrite Travis CI configuration
- update compileSdkVersion, buildToolsVersion and targetSdkVersion to 30
- update Travis CI config file to use OpenJDK 11 on Ubuntu Focal and manual Android SDK components installation.
2020-12-19 18:29:31 +01:00
Christophe Beyls
2771cea3a4 only display the room name instead of "(Building Unknown)" in case of unknown building 2020-12-12 14:19:37 +01:00
Christophe Beyls
72734576db replace android's JsonReader with Moshi's JsonReader to parse room statuses more efficiently 2020-12-12 00:34:39 +01:00
Christophe Beyls
8e32310b28 upgrade Kotlin to 1.4.21 and browser to 1.3.0 2020-12-11 18:04:32 +01:00
Christophe Beyls
241ff25398 move overridden library resources to a separate resources folder for clarity 2020-11-29 12:57:08 +01:00
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
b26c0af3d6 remove Proguard rules ignored by R8 2020-11-11 18:34:11 +01:00
Christophe Beyls
2b4c2e3f85 exclude DebugProbesKt.bin from release builds 2020-11-11 13:03:47 +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
06074c09ce upgrade Coroutines library to 1.4.0 2020-11-02 13:55:04 +01:00
Christophe Beyls
098bff0323 upgrade Gradle plugin to 4.1.0, and core and okio libraries 2020-11-02 02:35:43 +01:00
Christophe Beyls
a13705dfa7 fix overriding annotationProcessorOptions 2020-09-14 16:06:37 +02:00
Christophe Beyls
410ed8fc30 upgrade Okio to 2.8.0 for Kotlin 1.4 2020-09-14 16:05:41 +02: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
24891fc134 upgrade coroutines and core 2020-07-25 14:41:23 +02:00
Christophe Beyls
2c5a0eaa7a fix: use DateParceler to serialize startTime and endTime fields 2020-07-18 01:05:25 +02:00
Christophe Beyls
496286339b update Gradle plugin to 4.0.1, DrawerLayout and Okio 2020-07-18 01:05:14 +02:00
Christophe Beyls
a049e48ead remove old support library Proguard rules 2020-06-13 12:41:16 +02:00
Christophe Beyls
c07e550997 update okhttp to 3.12.12 2020-06-13 12:40:02 +02:00
Christophe Beyls
ae91af6dbe upgrade core and fragment libraries 2020-06-11 01:19:45 +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
d2b674f3d2 upgrade DrawerLayout library 2020-05-21 00:13:21 +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
5424dfb385 upgrade Okio to 2.6.0 2020-04-29 01:02:35 +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
cfb588935f upgrade Kotlin and Preference 2020-04-16 16:24: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
5b989d3253 upgrade Gradle plugin, fragment-ktx and DrawerLayout to their latest stable version 2020-04-02 11:46:43 +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
a71a92dbbc Update Kotlin to 1.3.71, as well as Okio and Coroutines libraries. Coroutines 1.3.5 makes the final APK 8KB smaller. 2020-03-24 16:01:31 +01:00
Christophe Beyls
4514e40222 upgrade R8 to fix a bug present in the built-in version of AGP 3.6.1 (1.6.67) 2020-03-20 18:43:46 +01:00
Christophe Beyls
f90fbccd2a replace deprecated onActivityCreated() with onViewCreated() in fragments 2020-03-20 00:11:42 +01:00
Christophe Beyls
5ef42ea87b upgrade Room, Fragment, Paging libraries 2020-03-20 00:04:22 +01:00
Christophe Beyls
f627d9a758 add new required Proguard rules for ViewModels 2020-03-20 00:01:38 +01:00
Christophe Beyls
bd2a220275 Update DrawerLayout to 1.1.0-alpha04, OkHttp to 3.12.10 and Kotlin to 1.3.70 2020-03-06 17:44:00 +01:00
Christophe Beyls
7212aee9be Remove View binding classes generation, added by mistake 2020-03-06 16:43:47 +01:00
Christophe Beyls
da7e7321a9 remove Kotlin compiler non-null assertions from release builds 2020-02-25 15:30:58 +01:00
Christophe Beyls
11e71d1595 update Gradle, Gradle plugin to 3.6.0 and a few dependencies 2020-02-25 01:15:51 +01:00
Christophe Beyls
4bbe817476 update build tools, core, fragments, material components to latest stable version 2020-02-10 11:22:39 +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
9db6ec56ad prepare for hotfix release 2.0.1 2020-01-29 12:30:55 +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
97cbeb86c7 update version code for next release 2020-01-26 14:30:23 +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
Christophe Beyls
bf0682633d migrate to Lifecycle 2.2.0 and Fragment 1.2.0 2020-01-22 21:13:21 +01:00
Christophe Beyls
569ffd7542 upgrade Material Components library 2020-01-22 20:26:00 +01:00
Christophe Beyls
1cead841d8 fix logic to prevent animation in BookmarkStatusAdapter 2020-01-22 12:24:24 +01:00
Christophe Beyls
6b7ce11dee improve Building name selection 2020-01-21 18:06:51 +01:00
Christophe Beyls
31ea8f9c5d ensure the application Context is used for shared preferences 2020-01-21 05:28:20 +01:00
Christophe Beyls
266842eca4 fix notifications app color 2020-01-21 05:24:53 +01:00