Ryan Harg
2de6ca303e
Necessary upgrades to compileSdk and targetSdk and adjusting code
2022-12-06 09:35:33 +01:00
Hugh Daschbach
d734953b54
Replace deprecated SimpleExoPlayer with ExoPlayer.
...
This is part of an effort to resolve deprecation warnings.
Most of this is simple refactoring of interfaces that change between
the two Player implementations. There are a few other changes that
deserve further explanation.
Testing indicated that the play/pause button was being reset to pause
in MainActivity:refreshCurrentTrack. In the past this was likely
masked by the ordering of other callbacks. We have removed the
nowPlayingToggle.icon update from MainActivity, leaving that UI update
to PlayerService.
One of the bigger refactorings in PlayerService was forced by the
deprecation of Player.EventListener.onPlayerStateChanged. That forced
separation of handling playWhenReady and playbackState transitions.
In the SimpleExoPlayer implementations, where these transitions were
combined, the module attempted to work out playing state from a
combination of these two state variables.
In addition to separating the reaction to these state changes, we have
added a listener to onIsPlayingChanged, eliminating the need for some
of the earlier logic in Player.EventListener.onPlayerStateChanged.
This addition, along with the separation of state transition
processing, seems to provide a simpler implementation. But it is,
certainly, a possible source of bugs.
2022-12-06 09:35:33 +01:00
Hugh Daschbach
24de54c7e0
MainActivity: startActivityForResult deprecated.
...
Migrate startActivityForResult/onActivityResult to
StartActivityForResult/registerForActivityResult in MainActivity.
2022-12-06 09:35:33 +01:00
Hugh Daschbach
bea1d1f397
LoginActivity: startActivityForResult deprecated.
...
Migrate startActivityForResult/onActivityResult to
StartActivityForResult/registerForActivityResult in
LoginActivity/OAuth.
This moves responsibility for scheduling the starting Intent from
OAuth to LoginActivity.
OAuth still generates the Intent. But instead of starting the intent
directly in OAuth, the intent is returned to LoginActivity. This
better associates processing the activity result with its invocation.
OAuthTest module updated to accommodate internal API change.
2022-12-06 09:35:33 +01:00
Hugh Daschbach
38a3183b9d
Resolve warning: FragmentPagerAdapter deprecated.
...
Replace FragmentPagerAdapter with FragmentStateAdapter in
BrowseTabsAdapter.kt. Refactored getPageTitle as a function that
returns tab name. Tab text update moved to BrowseFragment.
This requires replacement of setupWithViewPager with
TabMediator.attach in BrowseFragment.
Also requires replacing widget declaration
androidx.viewpager.widget.ViewPager with
androidx.viewpager2.widget.ViewPager2 in fragment_browwse.xml.
2022-12-06 09:35:32 +01:00
Hugh Daschbach
8878e3e68f
Resolve warning: ExoDatabaseProvider deprecated.
...
Replace ExoDatabaseProvider with StandaloneDatabaseProvider.
2022-12-06 09:35:32 +01:00
Hugh Daschbach
7d49819450
Resolve warning "Unnecessary safe call".
2022-12-06 09:35:32 +01:00
Hugh Daschbach
4827fbccc1
RequentBus: replace deprecated implementation.
...
Convert RequestBus from deprecated BroadcastChannel to a SharedFlow.
2022-12-06 09:35:32 +01:00
Hugh Daschbach
1a038b2355
CommandBus: replace deprecated implementation.
...
Convert CommandBus from deprecated BroadcastChannel to a SharedFlow.
2022-12-06 09:35:32 +01:00
Hugh Daschbach
be8901390e
EventBus: replace deprecated implementation.
...
Convert EventBus from deprecated BroadcastChannel to a SharedFlow.
2022-12-06 09:35:32 +01:00
Hugh Daschbach
6d1ad9cd78
ProgressBus: replace deprecated implementation.
...
Convert Progress from deprecated BroadcastChannel to a StateFlow.
2022-12-06 09:35:31 +01:00
Hugh Daschbach
72b4aea35a
Resolve deprecation warning in MediaSession.
...
Remove setting of MediaSession flags that are now mandatory and
assumed set.
2022-12-06 09:35:31 +01:00
Ryan Harg
ef01386f16
Merge branch 'renovate/io.mockk-mockk-1.x' into 'develop'
...
Update dependency io.mockk:mockk to v1.13.3
See merge request funkwhale/funkwhale-android!262
2022-12-05 09:25:42 +00:00
Renovate Bot
a9aafef28b
Update dependency io.mockk:mockk to v1.13.3
2022-11-29 13:30:42 +00:00
omarmaciasmolina
b94363e035
Added translation using Weblate (Catalan)
2022-11-28 21:08:29 +00:00
Ryan Harg
234b4d79dd
Merge branch 'renovate/org.jetbrains.kotlin-kotlin-gradle-plugin-1.x' into 'develop'
...
Update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v1.7.21
See merge request funkwhale/funkwhale-android!241
2022-11-22 09:16:10 +00:00
Renovate Bot
c30d89cdea
Update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v1.7.21
2022-11-21 14:00:30 +00:00
Ryan Harg
a718f0a626
Merge branch 'renovate/haynes-jacoco2cobertura-1.x' into 'develop'
...
Update haynes/jacoco2cobertura Docker tag to v1.0.9
See merge request funkwhale/funkwhale-android!243
2022-11-21 13:39:01 +00:00
Renovate Bot
b26e6eb78b
Update haynes/jacoco2cobertura Docker tag to v1.0.9
2022-11-21 13:00:30 +00:00
Ryan Harg
73b112ad5d
Merge branch 'renovate/org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.x' into 'develop'
...
Update dependency org.jetbrains.kotlin:kotlin-stdlib-jdk7 to v1.7.21
See merge request funkwhale/funkwhale-android!242
2022-11-21 12:52:15 +00:00
Renovate Bot
960adee40e
Update dependency org.jetbrains.kotlin:kotlin-stdlib-jdk7 to v1.7.21
2022-11-21 12:30:46 +00:00
Ryan Harg
8070aa0198
Merge branch 'renovate/com.android.tools.build-gradle-7.x' into 'develop'
...
Update dependency com.android.tools.build:gradle to v7.3.1
See merge request funkwhale/funkwhale-android!240
2022-11-21 12:14:05 +00:00
Renovate Bot
adba9e01b1
Update dependency com.android.tools.build:gradle to v7.3.1
2022-11-21 11:00:26 +00:00
Ryan Harg
84ab3826b1
Merge branch 'renovate/com.github.ben-manes-gradle-versions-plugin-0.x' into 'develop'
...
Update dependency com.github.ben-manes:gradle-versions-plugin to v0.44.0
See merge request funkwhale/funkwhale-android!246
2022-11-21 10:46:08 +00:00
Renovate Bot
298c682a60
Update dependency com.github.ben-manes:gradle-versions-plugin to v0.44.0
2022-11-21 10:28:44 +00:00
Ryan Harg
ef386be333
Merge branch 'renovate/org.robolectric-robolectric-4.x' into 'develop'
...
Update dependency org.robolectric:robolectric to v4.9
See merge request funkwhale/funkwhale-android!251
2022-11-21 10:12:51 +00:00
Renovate Bot
470a32434b
Update dependency org.robolectric:robolectric to v4.9
2022-11-21 10:00:53 +00:00
Ryan Harg
0314a8dd7d
Merge branch 'renovate/com.google.code.gson-gson-2.x' into 'develop'
...
Update dependency com.google.code.gson:gson to v2.10
See merge request funkwhale/funkwhale-android!248
2022-11-21 09:44:56 +00:00
Renovate Bot
5d7307206e
Update dependency com.google.code.gson:gson to v2.10
2022-11-21 09:31:12 +00:00
Ryan Harg
4127a97327
Merge branch 'renovate/androidx.test-core-1.x' into 'develop'
...
Update dependency androidx.test:core to v1.5.0
See merge request funkwhale/funkwhale-android!252
2022-11-21 09:03:28 +00:00
Renovate Bot
05717f1067
Update dependency androidx.test:core to v1.5.0
2022-11-08 20:30:47 +00:00
Ryan Harg
a6561266e4
Merge branch 'renovate/io.mockk-mockk-1.x' into 'develop'
...
Update dependency io.mockk:mockk to v1.13.2
See merge request funkwhale/funkwhale-android!215
2022-10-06 08:30:41 +00:00
Renovate Bot
072dbaf0af
Update dependency io.mockk:mockk to v1.13.2
2022-10-03 11:00:46 +00:00
Ryan Harg
0e7994ec4d
Merge branch 'renovate/com.android.tools.build-gradle-7.x' into 'develop'
...
Update dependency com.android.tools.build:gradle to v7.3.0
See merge request funkwhale/funkwhale-android!216
2022-10-03 10:39:02 +00:00
Renovate Bot
6fbe4e4e7a
Update dependency com.android.tools.build:gradle to v7.3.0
2022-09-15 17:00:29 +00:00
Ryan Harg
bd8cec2d27
Merge branch 'minor-fixup' into 'develop'
...
Minor cleanup: consistent deserialization.
See merge request funkwhale/funkwhale-android!190
2022-09-03 11:09:21 +00:00
Hugh Daschbach
48570e24ea
Minor cleanup: consistent deserialization.
2022-09-03 11:09:21 +00:00
Ryan Harg
3da84cb6b5
Merge branch 'renovate/org.jacoco-org.jacoco.core-0.x' into 'develop'
...
Update dependency org.jacoco:org.jacoco.core to v0.8.8
See merge request funkwhale/funkwhale-android!197
2022-08-29 19:24:01 +00:00
Renovate Bot
d139da56de
Update dependency org.jacoco:org.jacoco.core to v0.8.8
2022-08-26 12:23:58 +00:00
Ryan Harg
8d9cdbb441
Merge branch 'renovate/io.mockk-mockk-1.x' into 'develop'
...
Update dependency io.mockk:mockk to v1.12.7
See merge request funkwhale/funkwhale-android!186
2022-08-26 12:23:02 +00:00
Renovate Bot
c1c218eb6f
Update dependency io.mockk:mockk to v1.12.7
2022-08-26 14:07:39 +02:00
Ryan Harg
6ce043893e
Merge branch 'technical/upgrade-kotlin' into 'develop'
...
Upgrade to Kotlin 1.7.0
See merge request funkwhale/funkwhale-android!210
2022-08-26 12:06:41 +00:00
Ryan Harg
bfdac03d0c
Upgrade to Kotlin 1.7.0
2022-08-26 12:06:41 +00:00
Ryan Harg
2d449549b0
Merge branch 'renovate/org.robolectric-robolectric-4.x' into 'develop'
...
Update dependency org.robolectric:robolectric to v4.8.2
See merge request funkwhale/funkwhale-android!209
2022-08-26 10:01:21 +00:00
Renovate Bot
19155a9c25
Update dependency org.robolectric:robolectric to v4.8.2
2022-08-26 09:31:48 +00:00
Ryan Harg
f4abf4084a
Merge branch 'renovate/org.jlleitschuh.gradle.ktlint-11.x' into 'develop'
...
Update plugin org.jlleitschuh.gradle.ktlint to v11
See merge request funkwhale/funkwhale-android!193
2022-08-26 09:29:35 +00:00
Renovate Bot
05ab1d7dc2
Update plugin org.jlleitschuh.gradle.ktlint to v11
2022-08-26 08:31:40 +00:00
Ryan Harg
6db00911b4
Merge branch 'renovate/com.github.ben-manes-gradle-versions-plugin-0.x' into 'develop'
...
Update dependency com.github.ben-manes:gradle-versions-plugin to v0.42.0
See merge request funkwhale/funkwhale-android!198
2022-08-26 08:14:41 +00:00
Renovate Bot
b2baea2b38
Update dependency com.github.ben-manes:gradle-versions-plugin to v0.42.0
2022-08-26 07:30:47 +00:00
Ryan Harg
fd6804dc20
Merge branch 'renovate/com.github.bjoernq-unmockplugin-0.x' into 'develop'
...
Update dependency com.github.bjoernq:unmockplugin to v0.7.9
See merge request funkwhale/funkwhale-android!195
2022-08-26 07:24:57 +00:00