diff --git a/AdvancedTimer.Forms.Plugin.nuspec b/AdvancedTimer.Forms.Plugin.nuspec index 90a2379..d011946 100644 --- a/AdvancedTimer.Forms.Plugin.nuspec +++ b/AdvancedTimer.Forms.Plugin.nuspec @@ -2,7 +2,7 @@ info.dmwilson.AdvancedTimer.Forms.Plugin - 1.0.2.0-alpha2 + 1.0.2.0-alpha5 AdvancedTimer Plugin for Xamarin.Forms Ufuk ARSLAN,David M. Wilson David M. Wilson @@ -10,7 +10,7 @@ https://github.com/d-m-wilson/AdvancedTimer false - This is a .NET Standard 2.0 version of the AdvancedTimer plugin by Ufuk Arslan. The code has not been modified, only the project types and references. + This is a .NET Standard 2.0 version of the AdvancedTimer plugin by Ufuk Arslan. Timer object and its methods are implemented for extended support for timers. You can start, stop, change interval of a timer. diff --git a/AdvancedTimer/AdvancedTimer.Forms.Plugin.Android/AdvancedTimerImplementation.cs b/AdvancedTimer/AdvancedTimer.Forms.Plugin.Android/AdvancedTimerImplementation.cs index f031a19..fdd9bec 100644 --- a/AdvancedTimer/AdvancedTimer.Forms.Plugin.Android/AdvancedTimerImplementation.cs +++ b/AdvancedTimer/AdvancedTimer.Forms.Plugin.Android/AdvancedTimerImplementation.cs @@ -1,10 +1,8 @@ -using AdvancedTimer.Forms.Plugin.Abstractions; using System; -using Xamarin.Forms; -using AdvancedTimer.Forms.Plugin.Droid; using System.Timers; +using AdvancedTimer.Forms.Plugin.Abstractions; +using Xamarin.Forms; -[assembly: Dependency(typeof(AdvancedTimerImplementation))] namespace AdvancedTimer.Forms.Plugin.Droid { /// @@ -19,7 +17,10 @@ public class AdvancedTimerImplementation : IAdvancedTimer /// /// Used for registration with dependency service /// - public static void Init() { } + public static void Init() + { + DependencyService.Register(); + } /// /// Used for initializing timer and options diff --git a/AdvancedTimer/AdvancedTimer.Forms.Plugin.iOSUnified/AdvancedTimerImplementation.cs b/AdvancedTimer/AdvancedTimer.Forms.Plugin.iOSUnified/AdvancedTimerImplementation.cs index faeccd9..01a4f3b 100644 --- a/AdvancedTimer/AdvancedTimer.Forms.Plugin.iOSUnified/AdvancedTimerImplementation.cs +++ b/AdvancedTimer/AdvancedTimer.Forms.Plugin.iOSUnified/AdvancedTimerImplementation.cs @@ -1,15 +1,14 @@ -using AdvancedTimer.Forms.Plugin.Abstractions; -using System; -using Xamarin.Forms; -using AdvancedTimer.Forms.Plugin.iOS; +using System; using System.Timers; +using AdvancedTimer.Forms.Plugin.Abstractions; +using Xamarin.Forms; -[assembly: Dependency(typeof(AdvancedTimerImplementation))] namespace AdvancedTimer.Forms.Plugin.iOS { /// /// AdvancedTimer Implementation /// + [Foundation.Preserve(AllMembers = true, Conditional = false)] public class AdvancedTimerImplementation : IAdvancedTimer { Timer timer; @@ -19,7 +18,10 @@ public class AdvancedTimerImplementation : IAdvancedTimer /// /// Used for registration with dependency service /// - public static void Init() { } + public static void Init() + { + DependencyService.Register(); + } /// /// Used for initializing timer and options