Skip to content

Commit

Permalink
Added FRB Android .NET 8 template.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Mar 16, 2024
1 parent 1c1cba4 commit f391cb8
Show file tree
Hide file tree
Showing 17 changed files with 1,853 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34607.119
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlatRedBallAndroidMonoGameTemplate", "FlatRedBallAndroidMonoGameTemplate\FlatRedBallAndroidMonoGameTemplate.csproj", "{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8D8B22DE-4952-47C6-85CB-1076D0A7A912}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-mgcb": {
"version": "3.8.1.303",
"commands": [
"mgcb"
]
},
"dotnet-mgcb-editor": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor"
]
},
"dotnet-mgcb-editor-linux": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor-linux"
]
},
"dotnet-mgcb-editor-windows": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor-windows"
]
},
"dotnet-mgcb-editor-mac": {
"version": "3.8.1.303",
"commands": [
"mgcb-editor-mac"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Views;
using Microsoft.Xna.Framework;

namespace FlatRedBallAndroidMonoGameTemplate
{
[Activity(
Label = "@string/app_name",
MainLauncher = true,
Icon = "@drawable/icon",
AlwaysRetainTaskState = true,
LaunchMode = LaunchMode.SingleInstance,
ScreenOrientation = ScreenOrientation.FullUser,
ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize
)]
public class Activity1 : AndroidGameActivity
{
private Game1 _game;
private View _view;

protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);

_game = new Game1();
_view = _game.Services.GetService(typeof(View)) as View;

SetContentView(_view);
_game.Run();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="FlatRedBallAndroidMonoGameTemplate.FlatRedBallAndroidMonoGameTemplate" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="31" />
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<application android:label="FlatRedBallAndroidMonoGameTemplate"></application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

#----------------------------- Global Properties ----------------------------#

/outputDir:bin/$(Platform)
/intermediateDir:obj/$(Platform)
/platform:Android
/config:
/profile:Reach
/compress:False

#-------------------------------- References --------------------------------#


#---------------------------------- Content ---------------------------------#

Loading

0 comments on commit f391cb8

Please sign in to comment.