Skip to content

Commit 044921b

Browse files
authored
Merge pull request #184 from dansiegel/shinyupdate
Shiny v2 updates
2 parents f1bcfef + 29c2c61 commit 044921b

File tree

29 files changed

+175
-104
lines changed

29 files changed

+175
-104
lines changed

sample/PrismSample.Android/MainApplication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public MainApplication(IntPtr javaReference, JniHandleOwnership transfer)
2020
public override void OnCreate()
2121
{
2222
base.OnCreate();
23-
AndroidShinyHost.Init(this, new Startup());
23+
this.ShinyOnCreate(new Startup());
2424
}
2525
}
2626
}

sample/PrismSample.Android/PrismSample.Android.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
1717
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
1818
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
19-
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
19+
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
2020
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
2121
<AndroidUseAapt2>true</AndroidUseAapt2>
2222
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
@@ -53,7 +53,7 @@
5353
<Reference Include="System.Numerics.Vectors" />
5454
</ItemGroup>
5555
<ItemGroup>
56-
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1364" />
56+
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2012" />
5757
<PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.3" />
5858
</ItemGroup>
5959
<ItemGroup>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.prismlibrary.prismextensions">
3-
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
4-
<application android:label="Prism Extended"></application>
5-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
6-
</manifest>
3+
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29" />
4+
<application android:label="Prism Extended"></application>
5+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
6+
</manifest>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<com.google.android.material.tabs.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:id="@+id/sliding_tabs"
55
android:layout_width="match_parent"
@@ -8,4 +8,4 @@
88
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
99
app:tabIndicatorColor="@android:color/white"
1010
app:tabGravity="fill"
11-
app:tabMode="fixed" />
11+
app:tabMode="fixed" />
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<android.support.v7.widget.Toolbar
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<androidx.appcompat.widget.Toolbar
23
xmlns:android="http://schemas.android.com/apk/res/android"
34
android:id="@+id/toolbar"
45
android:layout_width="match_parent"
56
android:layout_height="wrap_content"
67
android:background="?attr/colorPrimary"
78
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
89
android:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
9-

sample/PrismSample.Android/SplashActivity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using Android.App;
22
using Android.OS;
3-
using Android.Support.V7.App;
43
using Android.Content;
54
using Android.Util;
5+
using AndroidX.AppCompat.App;
66

77
namespace PrismSample.Droid
88
{

sample/PrismSample.UWP/App.xaml.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
using Windows.UI.Xaml.Input;
1515
using Windows.UI.Xaml.Media;
1616
using Windows.UI.Xaml.Navigation;
17+
using Shiny;
18+
using PrismSample.Shiny;
1719

1820
namespace PrismSample.UWP
1921
{
@@ -30,6 +32,7 @@ public App()
3032
{
3133
this.InitializeComponent();
3234
this.Suspending += OnSuspending;
35+
this.ShinyInit(new Startup());
3336
}
3437

3538
/// <summary>
@@ -39,13 +42,9 @@ public App()
3942
/// <param name="e">Details about the launch request and process.</param>
4043
protected override void OnLaunched(LaunchActivatedEventArgs e)
4144
{
42-
43-
44-
Frame rootFrame = Window.Current.Content as Frame;
45-
4645
// Do not repeat app initialization when the Window already has content,
4746
// just ensure that the window is active
48-
if (rootFrame == null)
47+
if (!(Window.Current.Content is Frame rootFrame))
4948
{
5049
// Create a Frame to act as the navigation context and navigate to the first page
5150
rootFrame = new Frame();

sample/PrismSample.UWP/PrismSample.UWP.csproj

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,26 @@
143143
</Page>
144144
</ItemGroup>
145145
<ItemGroup>
146-
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1364" />
146+
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2012" />
147147
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.12" />
148148
</ItemGroup>
149149
<ItemGroup>
150+
<ProjectReference Include="..\..\src\Prism.Container.Extensions\Prism.Container.Extensions.csproj">
151+
<Project>{940ca2d8-b9a8-499a-9ed3-ecee9758073f}</Project>
152+
<Name>Prism.Container.Extensions</Name>
153+
</ProjectReference>
154+
<ProjectReference Include="..\..\src\Prism.DryIoc.Extensions\Prism.DryIoc.Extensions.csproj">
155+
<Project>{3a82a96a-f3fc-4244-87c3-28706494f614}</Project>
156+
<Name>Prism.DryIoc.Extensions</Name>
157+
</ProjectReference>
158+
<ProjectReference Include="..\..\src\Prism.Forms.Extended\Prism.Forms.Extended.csproj">
159+
<Project>{771a0fd7-7877-4ab7-8528-7fb07054393d}</Project>
160+
<Name>Prism.Forms.Extended</Name>
161+
</ProjectReference>
162+
<ProjectReference Include="..\..\src\Shiny.Prism\Shiny.Prism.csproj">
163+
<Project>{fd30086e-fa39-408e-935f-8921b454d282}</Project>
164+
<Name>Shiny.Prism</Name>
165+
</ProjectReference>
150166
<ProjectReference Include="..\PrismSample\PrismSample.csproj">
151167
<Project>{0C2D6820-FA64-4050-9546-BF034329D363}</Project>
152168
<Name>PrismSample</Name>

sample/PrismSample.iOS/AppDelegate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsAppli
2828
//
2929
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
3030
{
31-
iOSShinyHost.Init(new Startup());
31+
this.ShinyFinishedLaunching(new Startup());
3232
global::Xamarin.Forms.Forms.Init();
3333
LoadApplication(new App());
3434

sample/PrismSample.iOS/PrismSample.iOS.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
<Reference Include="System.Numerics.Vectors" />
126126
</ItemGroup>
127127
<ItemGroup>
128-
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1364" />
128+
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2012" />
129129
</ItemGroup>
130130
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
131131
<ItemGroup>

0 commit comments

Comments
 (0)