Beispiel #1
0
        public static bool ShouldShowLegacyImportModal()
        {
            if (Device.RuntimePlatform != Device.iOS)
            {
                return(false);
            }

            if (!File.Exists(DBPath) || !File.Exists(KTLegacyContext.DBPath))
            {
                return(false);
            }

            var oldDB = new KTUserContext(DBPath);

            return(oldDB.GetCurrentVersion().RulesVersion == "1.1.1-c3a06fceb2f395c3f188ecd9bbfcd86781b8face5e29032b969b3a97b72c84c7");
        }
Beispiel #2
0
        private bool NeedsUpdate()
        {
            var version = OldUdb?.GetCurrentVersion();

            return(version == null || version?.RulesVersion != Provider.GetVersion() || Provider.GetVersion().EndsWith("dev"));
        }