mirror of
https://github.com/awatertrevi/xamarin-neo4j.git
synced 2026-09-22 09:05:29 +00:00
25 lines
573 B
C#
25 lines
573 B
C#
//
|
|
// VersionService.cs
|
|
//
|
|
// Trevi Awater
|
|
// 02-03-2024
|
|
//
|
|
// © Xamarin.Neo4j.iOS
|
|
//
|
|
|
|
using Foundation;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Neo4j.iOS.Services;
|
|
using Xamarin.Neo4j.Services.Interfaces;
|
|
|
|
[assembly: Dependency(typeof(VersionService))]
|
|
namespace Xamarin.Neo4j.iOS.Services
|
|
{
|
|
public class VersionService : IVersionService
|
|
{
|
|
public string GetVersion() => NSBundle.MainBundle.InfoDictionary["CFBundleShortVersionString"]?.ToString();
|
|
|
|
public string GetBuild() => NSBundle.MainBundle.InfoDictionary["CFBundleVersion"]?.ToString();
|
|
}
|
|
}
|