Skip to content

Commit

Permalink
Cleanup project files with common props
Browse files Browse the repository at this point in the history
  • Loading branch information
tangalbert919 committed Jan 6, 2019
1 parent ddce608 commit e5dd951
Show file tree
Hide file tree
Showing 111 changed files with 179 additions and 1,270 deletions.
60 changes: 60 additions & 0 deletions osu.Android.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<Project>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>False</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
<AndroidLinkMode>None</AndroidLinkMode>
<EmbedAssembliesIntoApk>False</EmbedAssembliesIntoApk>
<AotAssemblies>false</AotAssemblies>
<EnableLLVM>false</EnableLLVM>
<BundleAssemblies>false</BundleAssemblies>
<MandroidI18n>CJK;Mideast;Rare;West;Other</MandroidI18n>
<AndroidSupportedAbis />
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>True</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
<MandroidI18n>CJK;Mideast;Rare;West;Other</MandroidI18n>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Mono.Android" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Framework">
<Version>0.0.7879</Version>
</PackageReference>
<PackageReference Include="ppy.osu.Framework.Android">
<Version>0.0.7879</Version>
</PackageReference>
<PackageReference Include="SharpCompress">
<Version>0.22.0</Version>
</PackageReference>
<PackageReference Include="SharpFNT">
<Version>1.1.0</Version>
</PackageReference>
<PackageReference Include="SixLabors.Core">
<Version>1.0.0-dev000094</Version>
</PackageReference>
<PackageReference Include="SixLabors.ImageSharp">
<Version>1.0.0-dev002278</Version>
</PackageReference>
</ItemGroup>
</Project>
19 changes: 0 additions & 19 deletions osu.Android/Assets/AboutAssets.txt

This file was deleted.

67 changes: 1 addition & 66 deletions osu.Android/osu.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,43 +24,7 @@
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>False</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
<AndroidLinkMode>None</AndroidLinkMode>
<EmbedAssembliesIntoApk>False</EmbedAssembliesIntoApk>
<AotAssemblies>false</AotAssemblies>
<EnableLLVM>false</EnableLLVM>
<BundleAssemblies>false</BundleAssemblies>
<MandroidI18n>CJK;Mideast;Rare;West;Other</MandroidI18n>
<AndroidSupportedAbis />
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>True</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Mono.Android" />
</ItemGroup>
<Import Project="..\osu.Android.props" />
<ItemGroup>
<Compile Include="OsuGameActivity.cs" />
<Compile Include="Resources\Resource.designer.cs" />
Expand All @@ -83,7 +47,6 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</AndroidNativeLibrary>
<None Include="Properties\AndroidManifest.xml" />
<None Include="Assets\AboutAssets.txt" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\values\colors.xml" />
Expand All @@ -106,27 +69,6 @@
<AndroidResource Include="Resources\mipmap-xxxhdpi\ic_launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-xxxhdpi\ic_launcher_round.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Framework">
<Version>0.0.7879</Version>
</PackageReference>
<PackageReference Include="ppy.osu.Framework.Android">
<Version>0.0.7879</Version>
</PackageReference>
<PackageReference Include="SharpCompress">
<Version>0.22.0</Version>
</PackageReference>
<PackageReference Include="SharpFNT">
<Version>1.1.0</Version>
</PackageReference>
<PackageReference Include="SixLabors.Core">
<Version>1.0.0-dev000094</Version>
</PackageReference>
<PackageReference Include="SixLabors.ImageSharp">
<Version>1.0.0-dev002278</Version>
</PackageReference>
<PackageReference Include="Xamarin.Android.Support.Design" Version="27.0.2.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\osu-resources\osu.Game.Resources\osu.Game.Resources.csproj">
<Project>{d9a367c9-4c1a-489f-9b05-a0cea2b53b58}</Project>
Expand Down Expand Up @@ -157,11 +99,4 @@
<Content Include="bass.dll" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
19 changes: 0 additions & 19 deletions osu.Game.Rulesets.Catch.Tests.Android/Assets/AboutAssets.txt

This file was deleted.

19 changes: 7 additions & 12 deletions osu.Game.Rulesets.Catch.Tests.Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE

using Android.App;
using Android.OS;
using Android.Support.V7.App;
using Android.Runtime;
using Android.Widget;
using Android.Content.PM;
using osu.Framework.Android;
using osu.Game.Tests;

namespace osu.Game.Rulesets.Catch.Tests.Android
{
[Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true)]
public class MainActivity : AppCompatActivity
[Activity(Theme = "@android:style/Theme.NoTitleBar", MainLauncher = true, ScreenOrientation = ScreenOrientation.SensorLandscape, SupportsPictureInPicture = false, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize)]
public class MainActivity : AndroidGameActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.activity_main);
}
protected override Framework.Game CreateGame()
=> new OsuTestBrowser();
}
}
44 changes: 0 additions & 44 deletions osu.Game.Rulesets.Catch.Tests.Android/Resources/AboutResources.txt

This file was deleted.

112 changes: 0 additions & 112 deletions osu.Game.Rulesets.Catch.Tests.Android/Resources/Resource.designer.cs

This file was deleted.

This file was deleted.

Loading

0 comments on commit e5dd951

Please sign in to comment.