Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 97e0dd0

Browse files
committed
Added dummy 'all' sample
This will reference all the support libs in an app that gets built to see if there are any obvious Android callable wrapper generator errors on the java side that you wouldn't see just by compiling the bindings, until you used them in an app.
1 parent 14bfb47 commit 97e0dd0

File tree

11 files changed

+238
-0
lines changed

11 files changed

+238
-0
lines changed
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectGuid>{F5E33C8B-15AE-4834-9112-5BAF5F0AA427}</ProjectGuid>
7+
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
8+
<OutputType>Library</OutputType>
9+
<RootNamespace>AndroidSupportAll</RootNamespace>
10+
<AssemblyName>AndroidSupportAll</AssemblyName>
11+
<TargetFrameworkVersion>v7.0</TargetFrameworkVersion>
12+
<AndroidApplication>True</AndroidApplication>
13+
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
14+
<AndroidResgenClass>Resource</AndroidResgenClass>
15+
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
16+
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
17+
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
18+
<AndroidUseLatestPlatformSdk>true</AndroidUseLatestPlatformSdk>
19+
</PropertyGroup>
20+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
21+
<DebugSymbols>true</DebugSymbols>
22+
<DebugType>full</DebugType>
23+
<Optimize>false</Optimize>
24+
<OutputPath>bin\Debug</OutputPath>
25+
<DefineConstants>DEBUG;</DefineConstants>
26+
<ErrorReport>prompt</ErrorReport>
27+
<WarningLevel>4</WarningLevel>
28+
<AndroidLinkMode>None</AndroidLinkMode>
29+
<AndroidSupportedAbis>arm64-v8a;armeabi;armeabi-v7a;x86</AndroidSupportedAbis>
30+
</PropertyGroup>
31+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
32+
<DebugSymbols>true</DebugSymbols>
33+
<DebugType>pdbonly</DebugType>
34+
<Optimize>true</Optimize>
35+
<OutputPath>bin\Release</OutputPath>
36+
<ErrorReport>prompt</ErrorReport>
37+
<WarningLevel>4</WarningLevel>
38+
<AndroidManagedSymbols>true</AndroidManagedSymbols>
39+
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
40+
<AndroidEnableMultiDex>true</AndroidEnableMultiDex>
41+
<AndroidSupportedAbis>armeabi;x86;armeabi-v7a;x86_64;arm64-v8a</AndroidSupportedAbis>
42+
</PropertyGroup>
43+
<ItemGroup>
44+
<Reference Include="System" />
45+
<Reference Include="System.Xml" />
46+
<Reference Include="System.Core" />
47+
<Reference Include="Mono.Android" />
48+
</ItemGroup>
49+
<ItemGroup>
50+
<Compile Include="MainActivity.cs" />
51+
<Compile Include="Resources\Resource.designer.cs" />
52+
<Compile Include="Properties\AssemblyInfo.cs" />
53+
</ItemGroup>
54+
<ItemGroup>
55+
<None Include="Properties\AndroidManifest.xml" />
56+
</ItemGroup>
57+
<ItemGroup>
58+
<AndroidResource Include="Resources\layout\Main.axml" />
59+
<AndroidResource Include="Resources\values\Strings.xml" />
60+
<AndroidResource Include="Resources\mipmap-hdpi\Icon.png" />
61+
<AndroidResource Include="Resources\mipmap-mdpi\Icon.png" />
62+
<AndroidResource Include="Resources\mipmap-xhdpi\Icon.png" />
63+
<AndroidResource Include="Resources\mipmap-xxhdpi\Icon.png" />
64+
<AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png" />
65+
</ItemGroup>
66+
<ItemGroup>
67+
<Folder Include="Resources\drawable\" />
68+
<Folder Include="Assets\" />
69+
</ItemGroup>
70+
<ItemGroup>
71+
<ProjectReference Include="..\..\..\animated-vector-drawable\source\Animated-Vector-Drawable.csproj">
72+
<Project>{75CB848E-6EE8-4DAF-8AD4-1782641F69D3}</Project>
73+
<Name>Animated-Vector-Drawable</Name>
74+
</ProjectReference>
75+
<ProjectReference Include="..\..\source\Compat.csproj">
76+
<Project>{CA4194B2-8B2D-4C37-8790-C79C5803357A}</Project>
77+
<Name>Compat</Name>
78+
</ProjectReference>
79+
<ProjectReference Include="..\..\..\support-core-ui\source\Core-UI.csproj">
80+
<Project>{071EAE48-7BCE-4D68-8098-745B923A122F}</Project>
81+
<Name>Core-UI</Name>
82+
</ProjectReference>
83+
<ProjectReference Include="..\..\..\support-core-utils\source\Core-Utils.csproj">
84+
<Project>{BEABEB36-8FFE-4CD9-B6E6-D67686C8BB98}</Project>
85+
<Name>Core-Utils</Name>
86+
</ProjectReference>
87+
<ProjectReference Include="..\..\..\customtabs\source\CustomTabs.csproj">
88+
<Project>{5B33CEC5-C89D-4C5B-8365-17C83CCFAD4C}</Project>
89+
<Name>CustomTabs</Name>
90+
</ProjectReference>
91+
<ProjectReference Include="..\..\..\design\source\Design.csproj">
92+
<Project>{8022A1F5-C228-4B21-8194-BC9E76F9174A}</Project>
93+
<Name>Design</Name>
94+
</ProjectReference>
95+
<ProjectReference Include="..\..\..\support-fragment\source\Fragment.csproj">
96+
<Project>{2DE9FDA4-3F63-49E2-BD45-5C072A0350D8}</Project>
97+
<Name>Fragment</Name>
98+
</ProjectReference>
99+
<ProjectReference Include="..\..\..\support-media-compat\source\Media-Compat.csproj">
100+
<Project>{BD8BB4A9-5ACD-47FB-923C-0DC858E1A42D}</Project>
101+
<Name>Media-Compat</Name>
102+
</ProjectReference>
103+
<ProjectReference Include="..\..\..\percent\source\Percent.csproj">
104+
<Project>{A557F298-10FD-4F47-8C96-20387E2AA741}</Project>
105+
<Name>Percent</Name>
106+
</ProjectReference>
107+
<ProjectReference Include="..\..\..\recommendation\source\Recommendation.csproj">
108+
<Project>{257D3C55-FADE-4C65-9967-7DCDE23F83A8}</Project>
109+
<Name>Recommendation</Name>
110+
</ProjectReference>
111+
<ProjectReference Include="..\..\..\transition\source\Transition.csproj">
112+
<Project>{BF8F6617-A16E-43B8-9985-3D1066D1A081}</Project>
113+
<Name>Transition</Name>
114+
</ProjectReference>
115+
<ProjectReference Include="..\..\..\v13\source\V13.csproj">
116+
<Project>{69351B41-DA07-42F6-9083-0080EBC6407D}</Project>
117+
<Name>V13</Name>
118+
</ProjectReference>
119+
<ProjectReference Include="..\..\..\v14-preference\source\V14-Preference.csproj">
120+
<Project>{E2ACB402-B348-4CD9-9686-9F029DCB3277}</Project>
121+
<Name>V14-Preference</Name>
122+
</ProjectReference>
123+
<ProjectReference Include="..\..\..\v17-leanback\source\V17-Leanback.csproj">
124+
<Project>{DA26C0C2-286A-4B41-9DF7-84D7E5D00C68}</Project>
125+
<Name>V17-Leanback</Name>
126+
</ProjectReference>
127+
<ProjectReference Include="..\..\..\v17-preference-leanback\source\V17-Preference-Leanback.csproj">
128+
<Project>{6948B25E-4A71-4F31-B042-D21B0B99ADA1}</Project>
129+
<Name>V17-Preference-Leanback</Name>
130+
</ProjectReference>
131+
<ProjectReference Include="..\..\..\v7-appcompat\source\V7-AppCompat.csproj">
132+
<Project>{B4ED245B-BBD8-4549-9990-476A36AAD381}</Project>
133+
<Name>V7-AppCompat</Name>
134+
</ProjectReference>
135+
<ProjectReference Include="..\..\..\v7-cardview\source\V7-CardView.csproj">
136+
<Project>{E9848EF1-14E6-4144-95A0-926A52F301B5}</Project>
137+
<Name>V7-CardView</Name>
138+
</ProjectReference>
139+
<ProjectReference Include="..\..\..\v7-gridlayout\source\V7-GridLayout.csproj">
140+
<Project>{D33F5F79-994B-4C34-BCC3-2B30CB630F1B}</Project>
141+
<Name>V7-GridLayout</Name>
142+
</ProjectReference>
143+
<ProjectReference Include="..\..\..\v7-mediarouter\source\V7-MediaRouter.csproj">
144+
<Project>{9E11B536-73E2-4BC6-9921-92889CF089CB}</Project>
145+
<Name>V7-MediaRouter</Name>
146+
</ProjectReference>
147+
<ProjectReference Include="..\..\..\v7-palette\source\V7-Palette.csproj">
148+
<Project>{D9C9670F-8B06-4083-9EEF-42E4D1DE22C1}</Project>
149+
<Name>V7-Palette</Name>
150+
</ProjectReference>
151+
<ProjectReference Include="..\..\..\v7-preference\source\V7-Preference.csproj">
152+
<Project>{A419C738-BD3D-4460-97E9-B8E44FC26896}</Project>
153+
<Name>V7-Preference</Name>
154+
</ProjectReference>
155+
<ProjectReference Include="..\..\..\v7-recyclerview\source\V7-RecyclerView.csproj">
156+
<Project>{514ED7A8-0F25-4F61-B7B3-A4A652FD7192}</Project>
157+
<Name>V7-RecyclerView</Name>
158+
</ProjectReference>
159+
<ProjectReference Include="..\..\..\v8-renderscript\source\V8-RenderScript.csproj">
160+
<Project>{732E9891-9FEE-4493-8C1C-C06F12C5248B}</Project>
161+
<Name>V8-RenderScript</Name>
162+
</ProjectReference>
163+
<ProjectReference Include="..\..\..\vector-drawable\source\Vector-Drawable.csproj">
164+
<Project>{418B64BA-2BAC-4B92-8888-CAFEAAF7E860}</Project>
165+
<Name>Vector-Drawable</Name>
166+
</ProjectReference>
167+
</ItemGroup>
168+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
169+
</Project>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using Android.App;
2+
using Android.Widget;
3+
using Android.OS;
4+
using Android.Support.V4.App;
5+
using Android.Support.V4.Widget;
6+
7+
namespace AndroidSupportAll
8+
{
9+
[Activity (Label = "AndroidSupportAll", MainLauncher = true, Icon = "@mipmap/icon")]
10+
public class MainActivity : Activity
11+
{
12+
protected override void OnCreate (Bundle savedInstanceState)
13+
{
14+
base.OnCreate (savedInstanceState);
15+
16+
// Set our view from the "main" layout resource
17+
SetContentView (Resource.Layout.Main);
18+
19+
20+
21+
22+
23+
24+
}
25+
}
26+
}
27+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.xamarin.androidsupportall">
3+
<uses-sdk android:minSdkVersion="10" />
4+
<application android:allowBackup="true" android:icon="@mipmap/icon" android:label="@string/app_name">
5+
</application>
6+
</manifest>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using Android.App;
4+
5+
// Information about this assembly is defined by the following attributes.
6+
// Change them to the values specific to your project.
7+
8+
[assembly: AssemblyTitle ("AndroidSupportAll")]
9+
[assembly: AssemblyDescription ("")]
10+
[assembly: AssemblyConfiguration ("")]
11+
[assembly: AssemblyCompany ("Xamarin")]
12+
[assembly: AssemblyProduct ("")]
13+
[assembly: AssemblyCopyright ("Xamarin")]
14+
[assembly: AssemblyTrademark ("")]
15+
[assembly: AssemblyCulture ("")]
16+
17+
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
18+
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
19+
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
20+
21+
[assembly: AssemblyVersion ("1.0.0")]
22+
23+
// The following attributes are used to specify the signing key for the assembly,
24+
// if desired. See the Mono documentation for more information about signing.
25+
26+
//[assembly: AssemblyDelaySign(false)]
27+
//[assembly: AssemblyKeyFile("")]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent">
3+
<Button android:id="@+id/myButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/hello" />
4+
</LinearLayout>
2.15 KB
Loading
1.38 KB
Loading
3.16 KB
Loading
5.29 KB
Loading
7.64 KB
Loading

0 commit comments

Comments
 (0)