Commit Graph

60207 Commits

Author SHA1 Message Date
c20c6cdebf Merge pull request #21878 from bdach/android-version-spec
Adjust Android package versioning to .NET 6
2022-12-28 19:39:15 +08:00
4b71ccf315 Merge pull request #21879 from frenzibyte/first-object-visbility-keywords
Add keywords to ease search of "first object visibility" setting
2022-12-28 12:15:34 +01:00
9021cf7be6 Allow aspect ratios smaller than the default in taiko 2022-12-28 11:42:34 +01:00
b4c5e18da0 Add keywords to ease search of "first object visibility" setting 2022-12-28 13:23:50 +03:00
76367444cb Adjust Android package versioning to .NET 6
With .NET 6, the way Xamarin package versioning works has changed.

- The `ApplicationVersion` MSBuild property aims to replace
  `android:versionCode` in the manifest.
- The `ApplicationDisplayVersion` MSBuild property aims to replace
  `android:versionName` in the manifest.

More about this can be read in Xamarin docs:

    ec712da8c1/Documentation/guides/OneDotNetSingleProject.md

To this end:

- Manual `version{Code,Name}` specs are removed from
  `AndroidManifest.xml`, as they were preventing MSBuild properties
  from functioning properly.
- `Version` now defaults to 0.0.0, so that local builds don't appear
  like they were deployed (see `OsuGameBase.IsDeployedBuild`).
- `ApplicationDisplayVersion` now defaults to `Version`.
  This addresses the Android portion of #21498.
- `ApplicationVersion` can now be specified by command line,
  but still needs to be supplied manually for version detection to
  work correctly. See `OsuGameAndroid.AssemblyVersion` for more info.

Putting the pieces together, the complete publish command to deploy
a new build should look something like so:

    dotnet publish -f net6.0-android \
                   -r android-arm64 \
                   -c Release \
                   -p:Version=2022.1228.0 \
                   -p:ApplicationVersion=202212280
2022-12-28 10:36:54 +01:00
3c0b8af8f1 Allow unsubscribing from solo statistics updates
This is more of a safety item. To avoid potential duplicate key in
dictionary errors (and also avoid being slightly memory-leaky), allow
`SoloStatisticsWatcher` consumers to dispose of the subscriptions they
take out.
2022-12-28 08:07:48 +01:00
04f9a354c3 Convert SoloResultsScreen to NRT 2022-12-28 07:54:36 +01:00
a0a26b1e8c Ignore statistics update subscriptions with invalid score ID
If score submission fails, the score will not receive a correct online
ID from web, but will still be passed on to the solo statistics watcher
on the results screen. This could lead to the watcher subscribing to
changes with score ID equal to the default of -1. If this happened more
than once, that would cause a crash due to duplicate keys in the
`callbacks` dictionary.

Closes #21837.
2022-12-28 07:54:01 +01:00
e9d32fca18 Fix various failures in initial statistics fetch
- If the local user is restricted, then attempting to fetch their data
  from the `/users` endpoint would result in an empty response.

- Even if the user was successfully fetched, their `RulesetsStatistics`
  may not be populated (and instead be `null`). Curiously this was not
  picked up by static analysis until the first issue was fixed.

Closes #21839.
2022-12-28 07:31:36 +01:00
0d78bc2248 Fix osu.ppy.sh links no longer opening in-game
Addresses https://github.com/ppy/osu/discussions/21838.
2022-12-28 06:42:35 +08:00
5e8ca11ded Merge pull request #21819 from bdach/fix-global-ranking-accuracy-display
Fix incorrect accuracy display on overall ranking view
2022-12-28 04:47:15 +08:00
e90619244d Fix incorrect accuracy display on overall ranking view 2022-12-27 19:51:51 +01:00
e2703bba18 Fix invalid data in test scene 2022-12-27 19:49:08 +01:00
b4a3f872ee Merge pull request #21809 from turbedi/split_trimentries
Use StringSplitOptions.TrimEntries in string.Split() when possible
2022-12-27 18:42:48 +01:00
ae2058b55e Merge branch 'master' into split_trimentries 2022-12-27 18:07:36 +01:00
080790d352 Merge pull request #21812 from frenzibyte/fix-publish
Move system packages version pinning workaround to game project
2022-12-27 20:31:35 +08:00
1a4489edb2 Move version pinning of system packages to osu.Game 2022-12-27 14:58:18 +03:00
9be1689e04 Merge pull request #21811 from peppy/add-hard-link-faq
Add link to hard link explanation wiki page
2022-12-27 18:25:56 +08:00
61029b126d Add link to hard link explanation wiki page 2022-12-27 17:56:23 +08:00
42c1d410b4 Merge pull request #21810 from peppy/api-switch
Use new lazer API endpoint
2022-12-27 17:56:20 +08:00
b3e44f20bc Use new lazer API endpoint
This is a temporary change to target the new experimental/next deploy.
The main change that should result from this is having the user profile
show the pp^next values from the new domain.
2022-12-27 17:20:40 +08:00
182f36c434 Use StringSplitOptions.TrimEntries for string.Split() when possible 2022-12-27 09:41:58 +01:00
df6f2ad0a1 Merge pull request #21804 from bdach/hide-global-rankings-when-presenting-scores
Only show global rankings on solo results screen when progressing from gameplay
2022-12-27 16:39:26 +08:00
38a674cd84 Merge pull request #21807 from Joehuu/external-link-open-highlight
Highlight "open" option on external link button context menu
2022-12-27 16:09:06 +08:00
777ffcf805 Highlight "open" option on external link button context menu 2022-12-26 20:47:24 -08:00
bb58976838 Merge remote-tracking branch 'upstream/master' into overlay-panels-context-menu 2022-12-26 17:54:15 -08:00
a0690e7ffb replay menus remembers expanded state
no messing with readonly fields
2022-12-27 00:13:46 +00:00
bcaff37851 Merge pull request #21802 from turbedi/generic_enum
Use generic Enum methods
2022-12-27 02:42:12 +03:00
8bc8b0d0af Remove redundant context menu container 2022-12-26 15:38:07 -08:00
84e3858a86 Move context menu / popover container one level to account for header 2022-12-26 15:37:46 -08:00
01cf96e240 Only show global rankings on results screen when progressing from gameplay 2022-12-26 23:35:45 +01:00
cb2b0d4178 Remove redundant type specs 2022-12-26 23:12:53 +01:00
335cb0205f Remove now unnecessary using 2022-12-26 22:50:36 +01:00
fcbb21c75e Fix typo 2022-12-26 20:38:35 +01:00
c7ca4bbba5 Use generic Enum methods 2022-12-26 20:36:39 +01:00
2470991aaa Merge pull request #21800 from mk56-spn/remove_obsolete_star_colours
Remove obsoleted "ForDifficultyRating" method
2022-12-26 17:39:25 +01:00
e416bdd06b Merge branch 'master' into remove_obsolete_star_colours 2022-12-26 16:35:47 +01:00
fbff5d8d69 Remove obsoleted "ForDifficultyRating" method 2022-12-26 16:16:52 +01:00
6b5059285b Merge pull request #21798 from peppy/update-framework
Update framework
2022-12-26 22:44:47 +08:00
5dd03c6c60 Update framework 2022-12-26 21:53:52 +08:00
786d94c149 Merge pull request #21792 from Joehuu/fix-parameters-inspection
Fix parameters with the same default value inspection
2022-12-26 15:41:54 +09:00
0761fa54c5 Merge pull request #21778 from bdach/score-stats-on-results
Add overall ranking display to solo results screen
2022-12-26 14:14:53 +08:00
0dba25e0ab Refactor to just exit sub screens until lounge sub screen
Co-Authored-By: Salman Ahmed <frenzibyte@gmail.com>
2022-12-25 21:56:22 -08:00
09cc41604f Merge branch 'master' into score-stats-on-results 2022-12-26 13:37:36 +08:00
144144c40c Revert removing redundant font parameter 2022-12-25 20:47:05 -08:00
a10628e270 Change severity of RedundantArgumentDefaultValue to hint 2022-12-25 20:47:05 -08:00
ee77b8cad3 Merge branch 'master' into fix-parameters-inspection 2022-12-26 05:17:40 +03:00
97d3b7bd63 Merge pull request #21781 from Joehuu/link-title-and-artist
Link beatmap set title and artist to listing search
2022-12-26 10:13:16 +08:00
2d57ea6f15 Merge branch 'master' into link-title-and-artist 2022-12-26 03:23:05 +03:00
973fd90af2 Fix parameters with the same default value inspection 2022-12-25 16:15:02 -08:00