This commit is contained in:
Maurice 2024-06-19 16:42:19 +02:00
parent 9d6aaccc0c
commit 94a4ba1e1e
4 changed files with 18 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea/
obj/
bin/
bin/
/.DS_Store

BIN
DemoAndroid/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -13,10 +13,8 @@
<RunAOTCompilation>False</RunAOTCompilation>
<PublishAot>False</PublishAot>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="QRCoder-ImageSharp" Version="0.10.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Activities\" />
</ItemGroup>
</Project>

15
DemoAndroid/README.md Normal file
View File

@ -0,0 +1,15 @@
# Android Native C# readme
1. AOT makes release versions crash sometimes, so it is disabled
2. Project created with
```bash
dotnet new android
```
3. New activities can be created with
```bash
dotnet new android-activity -n MyNewActivity
```
4. Avoid NuGet packages that are not built for non-Windows environments (e.g. depend on System.Drawing)
If the app crashes directly in Release, before reverting all your changes try to clean /bin and /obj
Also, if you reverted some changes, clean /bin and /obj again before thinking it still doesn't work