Skip to content

Commit

Permalink
Fixed update to 3.0 bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Sep 23, 2015
1 parent 65e7af2 commit b9c32c7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion VlcXamarin.Sample/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected override void OnCreate (Bundle bundle)
button.Click += delegate {
button.Text = string.Format ("{0} clicks!", count++);

MediaLibVLC m = new MediaLibVLC(mLibVLC, "http://www.montemagno.com/sample.mp3");
var m = new MediaLibVLC(mLibVLC, Android.Net.Uri.Parse("http://www.montemagno.com/sample.mp3"));

// Tell the media player to play the new Media.
mMediaPlayer.Media = m;
Expand Down
2 changes: 1 addition & 1 deletion VlcXamarin.Sample/Properties/AndroidManifest.xml
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.vlcxamarin.sample">
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="22" />
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21" />
<application android:label="VlcXamarin.Sample"></application>
</manifest>
19 changes: 8 additions & 11 deletions VlcXamarin.Sample/Resources/layout/Main.axml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button
android:id="@+id/myButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
</LinearLayout>

android:layout_height="fill_parent">
<Button
android:id="@+id/myButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
3 changes: 2 additions & 1 deletion VlcXamarin.Sample/VlcXamarin.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>
<AssemblyName>VlcXamarin.Sample</AssemblyName>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<TargetFrameworkVersion>v5.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -42,6 +42,7 @@
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Mono.Android" />
<Reference Include="Mono.Android.Export" />
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
Expand Down
2 changes: 2 additions & 0 deletions VlcXamarin/Transforms/Metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@
<attr path="/api/package[@name='org.videolan.libvlc']/class[@name='VLCObject']" name="visibility">public</attr>
<attr path="/api/package[@name='org.videolan.libvlc']/class[@name='VLCEvent']" name="visibility">public</attr>

<remove-node path="/api/package[@name='org.videolan.libvlc']/interface[@name='VLCEvent.Listener']" />

</metadata>
2 changes: 1 addition & 1 deletion VlcXamarin/VlcXamarin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>
<AssemblyName>VlcXamarin</AssemblyName>
<TargetFrameworkVersion>v5.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down

0 comments on commit b9c32c7

Please sign in to comment.