1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2026-02-07 17:13:32 +00:00

Ajout database et début utilisation pour les spells

This commit is contained in:
Yan Maniez 2018-05-13 01:10:03 +02:00
parent da08a4d387
commit 1f23facbb7
14 changed files with 197 additions and 10 deletions

View file

@ -66,7 +66,7 @@
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Version.cs" />
<Compile Include="NativeAPI.cs" />
</ItemGroup>
<ItemGroup>
<AndroidAsset Include="Assets\LinLibertine_R.ttf" />

View file

@ -1,10 +1,12 @@
using AideDeJeu.Tools;
using Android.Content.PM;
using System;
using System.IO;
[assembly: Xamarin.Forms.Dependency(typeof(AideDeJeu.Droid.Version_Android))]
namespace AideDeJeu.Droid
{
public class Version_Android : IAppVersion
public class Version_Android : INativeAPI
{
public string GetVersion()
{
@ -24,5 +26,10 @@ namespace AideDeJeu.Droid
return info.VersionCode;
}
public string GetDatabasePath(string databaseName)
{
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), databaseName);
}
}
}