Skip to content

Commit

Permalink
update for AndroidX
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Jan 26, 2021
1 parent 1ce2484 commit 441ddb1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 24 deletions.
2 changes: 1 addition & 1 deletion e2e/Forms/src/HelloWorld.Android/HelloWorld.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.prismlibrary.helloworld">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="28" />
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="29" />
<application android:label="Prism Sandbox" android:icon="@mipmap/icon" android:theme="@style/MainTheme"></application>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
<com.google.android.material.tabs.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<android.support.v7.widget.Toolbar
<androidx.appcompat.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light" />

4 changes: 2 additions & 2 deletions e2e/Forms/src/HelloWorld.Android/SplashActivity.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Android.App;
using Android.Content;
using Android.Support.V7.App;
using AndroidX.AppCompat.App;

namespace HelloWorld.Droid
{
Expand All @@ -16,4 +16,4 @@ protected override void OnResume()
StartActivity(new Intent(Application.Context, typeof(MainActivity)));
}
}
}
}
2 changes: 1 addition & 1 deletion e2e/Uno/HelloUnoWorld.Droid/HelloUnoWorld.Droid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<AndroidUseAapt2>false</AndroidUseAapt2>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<AndroidUseIntermediateDesignerFile>True</AndroidUseIntermediateDesignerFile>
<ResourcesDirectory>..\HelloUnoWorld.Shared\Strings</ResourcesDirectory>
Expand Down
2 changes: 1 addition & 1 deletion e2e/Uno/HelloUnoWorld.Droid/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.prismlibrary.helloworld" android:versionCode="1" android:versionName="1.0" android:installLocation="auto">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="28" />
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="29" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:label="HelloUnoWorld"></application>
</manifest>
17 changes: 2 additions & 15 deletions e2e/Uno/ModuleA/ModuleA.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="MSBuild.Sdk.Extras">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;xamarinios10;monoandroid80;monoandroid90</TargetFrameworks>
<TargetFrameworks>netstandard2.0;xamarinios10;MonoAndroid10.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);uap10.0.16299;</TargetFrameworks>
<!-- Ensures the .xr.xml files are generated in a proper layout folder -->
<GenerateLibraryLayout>true</GenerateLibraryLayout>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<DefineConstants>$(DefineConstants);__WASM__</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)'=='xamarinios10' or '$(TargetFramework)'=='monoandroid80' or '$(TargetFramework)'=='monoandroid90' or '$(TargetFramework)'=='netstandard2.0'">
<ItemGroup Condition="$(TargetFramework.StartsWith('xamarinios')) or $(TargetFramework.StartsWith('xamarinmac')) or $(TargetFramework.StartsWith('MonoAndroid')) or $(TargetFramework.StartsWith('netstandard'))">
<PackageReference Include="Uno.UI" />
</ItemGroup>
<ItemGroup>
Expand All @@ -21,22 +21,9 @@
<ItemGroup>
<UpToDateCheckInput Include="**\*.xaml" Exclude="bin\**\*.xaml;obj\**\*.xaml" />
</ItemGroup>
<ItemGroup>
<UpToDateCheckInput Remove="ModulePageA.xaml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\src\Prism.Core\Prism.Core.csproj" />
<ProjectReference Include="..\..\..\src\Uno\Prism.DryIoc.Uno\Prism.DryIoc.Uno.csproj" />
<ProjectReference Include="..\..\..\src\Uno\Prism.Uno\Prism.Uno.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="ModulePageA.xaml.cs">
<DependentUpon>ModulePageA.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="ModulePageA.xaml">
<Generator>MSBuild:Compile</Generator>
</None>
</ItemGroup>
</Project>

0 comments on commit 441ddb1

Please sign in to comment.