Commit Graph

27 Commits

Author SHA1 Message Date
Dan Balasescu
497213d529
Re-enable LLVM for now 2024-02-02 21:28:52 +09:00
Dan Balasescu
630278f6e7
Replace UseMauiEssentials with PackageReference 2024-02-02 21:28:51 +09:00
Dan Balasescu
6e4d52863c
Upgrade to .NET 8 SDK 2024-02-02 21:28:51 +09:00
Bartłomiej Dach
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
Dean Herbert
877413524f Cherry-picked android changes from #17462 2022-12-19 15:46:54 +09:00
Susko3
cb1d60cd36 Include new file in compile 2022-07-15 11:57:05 +02:00
Susko3
037e56f13e Add Android mouse settings 2022-01-15 14:53:41 +01:00
Susko3
99481d2b77 Update OsuGameActivity and manifest in line with framework changes 2021-12-24 12:51:11 +01:00
dependabot[bot]
c93533fa2e
Bump Xamarin.Essentials from 1.6.1 to 1.7.0
Bumps [Xamarin.Essentials](https://github.com/xamarin/Essentials) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/xamarin/Essentials/releases)
- [Commits](https://github.com/xamarin/Essentials/compare/1.6.1...1.7.0)

---
updated-dependencies:
- dependency-name: Xamarin.Essentials
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-01 17:04:24 +00:00
Christine Chen
43b97fe0ad Refactor PowerStatus (now called BatteryInfo) 2021-04-12 10:52:52 -04:00
Christine Chen
6bccb3aab6 Use DI to implement battery detection, add BatteryCutoff property
- Removed the Xamarin.Essentials package from osu.Game and added it to osu.iOS and osu.Android only.
- iOS and Android implementations use Xamarin.Essentials.Battery, while the Desktop implementation
only returns 100% battery for now.
- Added a BatteryCutoff property to PowerStatus so it can be different for each platform (default 20%, 25% on iOS)
2021-04-08 19:55:11 -04:00
Dean Herbert
eee3d83ed2 Disable sdk linker for android debug releases
Aimed to improve build time (especially for CI builds).

The additional lines come from visual studio. I'm intentionally
committing its output so it doesn't cause a diff on further csproj
changes.
2021-04-05 19:36:38 +09:00
Dean Herbert
6f01070408 Add weird android package requirements 2021-03-29 23:11:24 +09:00
Lucas A
e823575751 Lock screen rotation while in gameplay. 2020-10-15 19:36:49 +02:00
smoogipoo
a4edd3b8a1 Fix iOS/Android lockups by disabling LLVM 2020-02-27 09:24:54 +09:00
Dean Herbert
d2ebf296d9 Release with better compilation options 2019-07-04 13:07:59 +09:00
Dean Herbert
486e7e4e1e Remove unnecessary file 2019-07-02 19:44:04 +09:00
Dean Herbert
1a3cc25d6c Update in accordance with visual studio changes
Adds x86 emulator deployment target
2019-07-02 19:40:42 +09:00
tangalbert919
c0471019ff Very minor changes 2019-03-17 09:39:07 -05:00
tangalbert919
999b947153 Update Android csproj files 2019-03-05 17:55:18 -06:00
tangalbert919
b18eebfd70 Get icon working for osu.Android 2019-01-09 19:31:42 -06:00
tangalbert919
8159905ca0 Code File Sanity 2019-01-05 23:48:57 -06:00
tangalbert919
e5dd95198a Cleanup project files with common props 2019-01-05 23:17:55 -06:00
tangalbert919
ddce608f97 Setup osu.Android solution and its ruleset tests 2019-01-05 22:15:09 -06:00
tangalbert919
660be6a2a4 Remove ability to import from opsu!
This has been struck down by @ppy
2018-12-20 09:11:20 -06:00
tangalbert919
214908aaa0 Add opsu migration, fix font not rendering 2018-12-14 09:27:02 -06:00
tangalbert919
d16f6576ca Add Android project 2018-12-13 00:10:15 -06:00