mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
made the android project work again :^)
This commit is contained in:
parent
f5b2ef01f3
commit
5d9c480160
5 changed files with 19 additions and 40 deletions
|
@ -2,16 +2,15 @@ using Android.App;
|
||||||
using Android.Content.PM;
|
using Android.Content.PM;
|
||||||
using Android.OS;
|
using Android.OS;
|
||||||
using Android.Views;
|
using Android.Views;
|
||||||
using Demos;
|
|
||||||
|
|
||||||
namespace AndroidDemos {
|
namespace Demos.Android {
|
||||||
[Activity(Label = "Demos.Android"
|
[Activity(Label = "Demos.Android"
|
||||||
, MainLauncher = true
|
, MainLauncher = true
|
||||||
, Icon = "@drawable/icon"
|
, Icon = "@drawable/icon"
|
||||||
, Theme = "@style/Theme.Splash"
|
, Theme = "@style/Theme.Splash"
|
||||||
, AlwaysRetainTaskState = true
|
, AlwaysRetainTaskState = true
|
||||||
, LaunchMode = LaunchMode.SingleInstance
|
, LaunchMode = LaunchMode.SingleInstance
|
||||||
, ScreenOrientation = ScreenOrientation.SensorLandscape
|
, ScreenOrientation = ScreenOrientation.UserLandscape
|
||||||
, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)]
|
, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)]
|
||||||
public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity {
|
public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Import Project="$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Common.props')" />
|
<Import Project="$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
@ -10,8 +10,8 @@
|
||||||
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>AndroidDemos</RootNamespace>
|
<RootNamespace>Demos.Android</RootNamespace>
|
||||||
<AssemblyName>AndroidDemos</AssemblyName>
|
<AssemblyName>Demos.Android</AssemblyName>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AndroidApplication>true</AndroidApplication>
|
<AndroidApplication>true</AndroidApplication>
|
||||||
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
|
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<AndroidSupportedAbis>armeabi-v7a;x86</AndroidSupportedAbis>
|
<AndroidSupportedAbis>armeabi-v7a;x86</AndroidSupportedAbis>
|
||||||
<AndroidStoreUncompressedFileExtensions>.m4a</AndroidStoreUncompressedFileExtensions>
|
<AndroidStoreUncompressedFileExtensions>.m4a</AndroidStoreUncompressedFileExtensions>
|
||||||
<MandroidI18n />
|
<MandroidI18n />
|
||||||
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v7.1</TargetFrameworkVersion>
|
||||||
<MonoGamePlatform>Android</MonoGamePlatform>
|
<MonoGamePlatform>Android</MonoGamePlatform>
|
||||||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
||||||
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
|
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
|
||||||
|
@ -55,14 +55,6 @@
|
||||||
<HintPath>..\packages\MonoGame.Extended.3.7.0\lib\netstandard2.0\MonoGame.Extended.dll</HintPath>
|
<HintPath>..\packages\MonoGame.Extended.3.7.0\lib\netstandard2.0\MonoGame.Extended.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="MonoGame.Extended.Graphics, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null">
|
|
||||||
<HintPath>..\packages\MonoGame.Extended.Graphics.3.7.0\lib\netstandard2.0\MonoGame.Extended.Graphics.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="MonoGame.Extended.Tiled, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null">
|
|
||||||
<HintPath>..\packages\MonoGame.Extended.Tiled.3.7.0\lib\netstandard2.0\MonoGame.Extended.Tiled.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="mscorlib" />
|
<Reference Include="mscorlib" />
|
||||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed">
|
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed">
|
||||||
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll</HintPath>
|
||||||
|
@ -81,13 +73,6 @@
|
||||||
<Compile Include="Resources\Resource.Designer.cs" />
|
<Compile Include="Resources\Resource.Designer.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<MonoGameContentReference Include="..\Demos\Content\Content.mgcb" />
|
|
||||||
<None Include="..\Demos\Content\*\**" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AndroidResource Include="Resources\Values\Strings.xml" />
|
<AndroidResource Include="Resources\Values\Strings.xml" />
|
||||||
<AndroidResource Include="Resources\Drawable\Icon.png" />
|
<AndroidResource Include="Resources\Drawable\Icon.png" />
|
||||||
|
@ -95,6 +80,11 @@
|
||||||
<AndroidResource Include="Resources\Values\Styles.xml" />
|
<AndroidResource Include="Resources\Values\Styles.xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<MonoGameContentReference Include="..\Demos\Content\Content.mgcb" />
|
||||||
|
<None Include="..\Demos\Content\*\**" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="packages.config" />
|
||||||
<None Include="Properties\AndroidManifest.xml" />
|
<None Include="Properties\AndroidManifest.xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -102,18 +92,10 @@
|
||||||
<Project>{1bc4682b-aa14-4937-b5c7-707e20fe88ff}</Project>
|
<Project>{1bc4682b-aa14-4937-b5c7-707e20fe88ff}</Project>
|
||||||
<Name>Demos</Name>
|
<Name>Demos</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\MLEM.Extended\MLEM.Extended.csproj">
|
|
||||||
<Project>{232a6513-a28c-4d7f-ba5a-89281bfc1538}</Project>
|
|
||||||
<Name>MLEM.Extended</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\MLEM.Startup\MLEM.Startup.csproj">
|
<ProjectReference Include="..\MLEM.Startup\MLEM.Startup.csproj">
|
||||||
<Project>{997f4739-7bec-4621-b9ca-68deb2d74412}</Project>
|
<Project>{997f4739-7bec-4621-b9ca-68deb2d74412}</Project>
|
||||||
<Name>MLEM.Startup</Name>
|
<Name>MLEM.Startup</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\MLEM.Ui\MLEM.Ui.csproj">
|
|
||||||
<Project>{6f00629a-8b87-4264-8896-19983285e32f}</Project>
|
|
||||||
<Name>MLEM.Ui</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\MLEM\MLEM.csproj">
|
<ProjectReference Include="..\MLEM\MLEM.csproj">
|
||||||
<Project>{1d6ab762-43c4-4775-8924-707c7ec3f142}</Project>
|
<Project>{1d6ab762-43c4-4775-8924-707c7ec3f142}</Project>
|
||||||
<Name>MLEM</Name>
|
<Name>MLEM</Name>
|
||||||
|
|
4
Demos.Android/Resources/Resource.Designer.cs
generated
4
Demos.Android/Resources/Resource.Designer.cs
generated
|
@ -9,9 +9,9 @@
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
[assembly: global::Android.Runtime.ResourceDesignerAttribute("AndroidDemos.Resource", IsApplication=true)]
|
[assembly: global::Android.Runtime.ResourceDesignerAttribute("Demos.Android.Resource", IsApplication=true)]
|
||||||
|
|
||||||
namespace AndroidDemos
|
namespace Demos.Android
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,5 @@
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Coroutine" version="1.0.2" targetFramework="monoandroid90" />
|
<package id="Coroutine" version="1.0.2" targetFramework="monoandroid90" />
|
||||||
<package id="MonoGame.Extended" version="3.7.0" targetFramework="monoandroid90" />
|
<package id="MonoGame.Extended" version="3.7.0" targetFramework="monoandroid90" />
|
||||||
<package id="MonoGame.Extended.Graphics" version="3.7.0" targetFramework="monoandroid90" />
|
|
||||||
<package id="MonoGame.Extended.Tiled" version="3.7.0" targetFramework="monoandroid90" />
|
|
||||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="monoandroid90" />
|
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="monoandroid90" />
|
||||||
</packages>
|
</packages>
|
12
MLEM.sln
12
MLEM.sln
|
@ -12,10 +12,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MLEM.Ui", "MLEM.Ui\MLEM.Ui.
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demos.DesktopGL", "Demos.DesktopGL\Demos.DesktopGL.csproj", "{468A868F-FB75-4D48-BC03-6F9FCDB014C9}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demos.DesktopGL", "Demos.DesktopGL\Demos.DesktopGL.csproj", "{468A868F-FB75-4D48-BC03-6F9FCDB014C9}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demos.Android", "Demos.Android\Demos.Android.csproj", "{410C0262-131C-4D0E-910D-D01B4F7143E0}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandbox", "Sandbox\Sandbox.csproj", "{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandbox", "Sandbox\Sandbox.csproj", "{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demos.Android", "Demos.Android\Demos.Android.csproj", "{410C0262-131C-4D0E-910D-D01B4F7143E0}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
@ -46,13 +46,13 @@ Global
|
||||||
{468A868F-FB75-4D48-BC03-6F9FCDB014C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{468A868F-FB75-4D48-BC03-6F9FCDB014C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{468A868F-FB75-4D48-BC03-6F9FCDB014C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{468A868F-FB75-4D48-BC03-6F9FCDB014C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{468A868F-FB75-4D48-BC03-6F9FCDB014C9}.Release|Any CPU.Build.0 = Release|Any CPU
|
{468A868F-FB75-4D48-BC03-6F9FCDB014C9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{410C0262-131C-4D0E-910D-D01B4F7143E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{410C0262-131C-4D0E-910D-D01B4F7143E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{410C0262-131C-4D0E-910D-D01B4F7143E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{410C0262-131C-4D0E-910D-D01B4F7143E0}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}.Release|Any CPU.Build.0 = Release|Any CPU
|
{289ABC96-7A0B-4EB9-A0BE-75C807C09F74}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{410C0262-131C-4D0E-910D-D01B4F7143E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{410C0262-131C-4D0E-910D-D01B4F7143E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{410C0262-131C-4D0E-910D-D01B4F7143E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{410C0262-131C-4D0E-910D-D01B4F7143E0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
Loading…
Reference in a new issue