-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from andy840119/android-support
Add ios support
- Loading branch information
Showing
16 changed files
with
665 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<LangVersion>8.0</LangVersion> | ||
<OutputPath>bin\$(Configuration)</OutputPath> | ||
<WarningLevel>4</WarningLevel> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<BundleAssemblies>false</BundleAssemblies> | ||
<AotAssemblies>false</AotAssemblies> | ||
<OutputType>Library</OutputType> | ||
<FileAlignment>512</FileAlignment> | ||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> | ||
<AndroidApplication>True</AndroidApplication> | ||
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType> | ||
<!-- This does not take effect, unlike osu game repo. --> | ||
<!--<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>--> | ||
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<AndroidSupportedAbis>armeabi-v7a;x86;arm64-v8a</AndroidSupportedAbis> | ||
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent> | ||
<MandroidI18n>cjk,mideast,other,rare,west</MandroidI18n> | ||
<AndroidLinkMode>SdkOnly</AndroidLinkMode> | ||
<ErrorReport>prompt</ErrorReport> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)' == 'Debug'"> | ||
<DebugSymbols>True</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>False</Optimize> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<AndroidManagedSymbols>false</AndroidManagedSymbols> | ||
<AndroidUseSharedRuntime>true</AndroidUseSharedRuntime> | ||
<EmbedAssembliesIntoApk>false</EmbedAssembliesIntoApk> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)' == 'Release'"> | ||
<DebugSymbols>false</DebugSymbols> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<AndroidManagedSymbols>false</AndroidManagedSymbols> | ||
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime> | ||
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<AndroidNativeLibrary Include="..\osu.Framework.Android\armeabi-v7a\*.so"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</AndroidNativeLibrary> | ||
<AndroidNativeLibrary Include="..\osu.Framework.Android\arm64-v8a\*.so"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</AndroidNativeLibrary> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="Mono.Android" /> | ||
<Reference Include="Java.Interop" /> | ||
</ItemGroup> | ||
<ItemGroup Label="Package References"> | ||
<PackageReference Include="ManagedBass" Version="2.0.4" /> | ||
<PackageReference Include="ManagedBass.Fx" Version="2.0.1" /> | ||
</ItemGroup> | ||
</Project> |
5 changes: 5 additions & 0 deletions
5
osu.Framework.Microphone.Tests.Android/Properties/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="osu.Framework.Tests.Android" android:installLocation="auto"> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29" /> | ||
<application android:label="osu!framework test" /> | ||
</manifest> |
16 changes: 16 additions & 0 deletions
16
osu.Framework.Microphone.Tests.Android/TestGameActivity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using Android.App; | ||
using Android.Content.PM; | ||
using osu.Framework.Android; | ||
|
||
namespace osu.Framework.Tests.Android | ||
{ | ||
[Activity(MainLauncher = true, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize, Theme = "@android:style/Theme.NoTitleBar")] | ||
public class TestGameActivity : AndroidGameActivity | ||
{ | ||
protected override Game CreateGame() | ||
=> new VisualTestGame(); | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
osu.Framework.Microphone.Tests.Android/osu.Framework.Microphone.Tests.Android.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="..\osu.Framework.Microphone.Android.props" /> | ||
<PropertyGroup> | ||
<LangVersion>8.0</LangVersion> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{320089C6-A141-4D3E-BD5F-C4A6CE9E567B}</ProjectGuid> | ||
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<RootNamespace>osu.Framework.Microphone.Tests.Android</RootNamespace> | ||
<AssemblyName>osu.Framework.Microphone.Tests.Android</AssemblyName> | ||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest> | ||
<AndroidSupportedAbis>armeabi-v7a;x86;arm64-v8a</AndroidSupportedAbis> | ||
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<OutputPath>bin\Release\</OutputPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="TestGameActivity.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Properties\AndroidManifest.xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\osu.Framework.Microphone.Tests\**\*.cs" Exclude="..\osu.Framework.Microphone.Tests\Program.cs;..\osu.Framework.Microphone.Tests\obj\**\*;..\osu.Framework.Microphone.Tests\bin\**\*"> | ||
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
</Compile> | ||
<EmbeddedResource Include="..\osu.Framework.Microphone.Tests\Resources\**\*"> | ||
<Link>Resources\%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\osu.Framework.Microphone\osu.Framework.Microphone.csproj"> | ||
<Project>{D0F85C61-800A-4645-8633-AC59208FA732}</Project> | ||
<Name>osu.Framework.Microphone</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Reference Include="System.Numerics" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="ppy.osu.Framework.Android"> | ||
<Version>2020.722.0</Version> | ||
</PackageReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using Foundation; | ||
using osu.Framework.iOS; | ||
|
||
namespace osu.Framework.Tests | ||
{ | ||
[Register("AppDelegate")] | ||
public class AppDelegate : GameAppDelegate | ||
{ | ||
protected override Game CreateGame() => new VisualTestGame(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using UIKit; | ||
|
||
namespace osu.Framework.Tests | ||
{ | ||
public static class Application | ||
{ | ||
// This is the main entry point of the application. | ||
public static void Main(string[] args) | ||
{ | ||
// if you want to use a different Application Delegate class from "AppDelegate" | ||
// you can specify it here. | ||
UIApplication.Main(args, "GameUIApplication", "AppDelegate"); | ||
} | ||
} | ||
} |
Oops, something went wrong.