Skip to content

Commit f1a0d89

Browse files
committed
Update the Xamarin Component
1 parent 574d4d4 commit f1a0d89

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

component/component.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ icons:
1414
- icon_512x512.png
1515
libraries:
1616
ios:
17-
- ../build/MonoTouch/ModernHttpClient.iOS.dll
17+
- ../build/MonoTouch/ModernHttpClient.dll
1818
android:
1919
- ../build/MonoAndroid/OkHttp.dll
20-
- ../build/MonoAndroid/ModernHttpClient.Android.dll
20+
- ../build/MonoAndroid/ModernHttpClient.dll
2121
samples:
2222
- name: "HttpClient.iOS Sample"
2323
path: ../samples/HttpClient.iOS/HttpClient.iOS.sln

samples/HttpClient.Android/HttpClient.Android.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<Reference Include="Mono.Android" />
4848
<Reference Include="System.Net.Http" />
4949
<Reference Include="ModernHttpClient.Android">
50-
<HintPath>..\..\build\MonoAndroid\ModernHttpClient.Android.dll</HintPath>
50+
<HintPath>..\..\build\MonoAndroid\ModernHttpClient.dll</HintPath>
5151
</Reference>
5252
<Reference Include="OkHttp">
5353
<HintPath>..\..\build\MonoAndroid\OkHttp.dll</HintPath>
@@ -73,4 +73,4 @@
7373
<AndroidResource Include="Resources\layout\ShowStream.axml" />
7474
</ItemGroup>
7575
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
76-
</Project>
76+
</Project>

samples/HttpClient.Android/MainActivity.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void OnCreate (Bundle bundle)
3333
} else if (FindViewById<RadioButton> (Resource.Id.radioButton2).Checked) {
3434
await new NetHttp (this).HttpSample ();
3535
} else if (FindViewById<RadioButton> (Resource.Id.radioButton3).Checked) {
36-
await new NetHttp (this).HttpSample (new OkHttpNetworkHandler ());
36+
await new NetHttp (this).HttpSample (new NativeMessageHandler());
3737
}
3838
};
3939
}

samples/HttpClient.iOS/HttpClient.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<Reference Include="System.Xml.Linq" />
6666
<Reference Include="System.Net.Http" />
6767
<Reference Include="ModernHttpClient.iOS">
68-
<HintPath>..\..\build\MonoTouch\ModernHttpClient.iOS.dll</HintPath>
68+
<HintPath>..\..\build\MonoTouch\ModernHttpClient.dll</HintPath>
6969
</Reference>
7070
</ItemGroup>
7171
<ItemGroup>
@@ -108,4 +108,4 @@
108108
<ItemGroup>
109109
<ITunesArtwork Include="Resources\iTunesArtwork.png" />
110110
</ItemGroup>
111-
</Project>
111+
</Project>

samples/HttpClient.iOS/Main.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async void Button1TouchDown (object sender, EventArgs e)
7474
await new NetHttp (this).HttpSample (new CFNetworkHandler ());
7575
break;
7676
case 2:
77-
await new NetHttp (this).HttpSample (new NSUrlSessionHandler());
77+
await new NetHttp (this).HttpSample (new NativeMessageHandler());
7878
break;
7979
}
8080
}

0 commit comments

Comments
 (0)