Skip to content

Commit

Permalink
feat: update to support android 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Plac3hold3r committed Mar 21, 2020
1 parent 99289bb commit 902054b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
16 changes: 11 additions & 5 deletions nuspec/MaterialDateTimePicker.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<license type="expression">MIT</license>
<projectUrl>https://github.com/Plac3hold3r/PH.Wdullaer.Materialdatetimepicker</projectUrl>
<repository type="git" url="https://github.com/Plac3hold3r/PH.Wdullaer.Materialdatetimepicker" />
<iconUrl>https://raw.githubusercontent.com/Plac3hold3r/PH.Wdullaer.Materialdatetimepicker/master/nuspec/nuget_icon.png</iconUrl>
<icon>images\nuget_icon.png</icon>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A Xamarin Android binding for Wdullaer Material Datetime Picker. Supports Android 4 (API 16) and greater. Includes a material design themable timepicker and datepicker</description>
<summary>A Xamarin Android binding for Wdullaer Material Datetime Picker.</summary>
Expand All @@ -19,12 +19,18 @@
<releaseNotes>Add support latest version 4.2.3 and Android X packages</releaseNotes>

<dependencies>
<dependency id="Xamarin.AndroidX.AppCompat" version="1.1.0" />
<dependency id="Xamarin.AndroidX.RecyclerView" version="1.1.0" />
<group targetFramework="MonoAndroid9.0">
<dependency id="Xamarin.AndroidX.AppCompat" version="1.1.0" />
<dependency id="Xamarin.AndroidX.RecyclerView" version="1.1.0" />
</group>
</dependencies>
<frameworkAssemblies>
<frameworkAssembly assemblyName="Java.Interop" targetFramework="MonoAndroid9.0" />
</frameworkAssemblies>
</metadata>
<files>
<file src="..\src\Binding\bin\Release\MaterialDateTimePicker.dll" target="lib\MonoAndroid81\MaterialDateTimePicker.dll" />
<file src="..\src\Binding\bin\Release\MaterialDateTimePicker.pdb" target="lib\MonoAndroid81\MaterialDateTimePicker.pdb" />
<file src="nuget_icon.png" target="images\" />
<file src="..\src\Binding\bin\Release\MaterialDateTimePicker.dll" target="lib\MonoAndroid90\MaterialDateTimePicker.dll" />
<file src="..\src\Binding\bin\Release\MaterialDateTimePicker.pdb" target="lib\MonoAndroid90\MaterialDateTimePicker.pdb" />
</files>
</package>
2 changes: 1 addition & 1 deletion src/Binding/Binding.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<RootNamespace>MaterialDateTimePicker</RootNamespace>
<AssemblyName>MaterialDateTimePicker</AssemblyName>
<FileAlignment>512</FileAlignment>
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
Expand Down
2 changes: 1 addition & 1 deletion src/SampleApp/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" package="za.co.plac3hold3r.materialdatetimepicker" 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" />
<application android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher"></application>
</manifest>
2 changes: 1 addition & 1 deletion src/SampleApp/SampleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
Expand Down

0 comments on commit 902054b

Please sign in to comment.