mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-29 22:45:44 +00:00 
			
		
		
		
	Ajout des icones iOS
Ajout de EFcore dans la lib pour que ça compile sur iOS
This commit is contained in:
		
							parent
							
								
									72b88d9b08
								
							
						
					
					
						commit
						30d1bcaaa5
					
				
					 12 changed files with 298 additions and 2 deletions
				
			
		
							
								
								
									
										32
									
								
								AideDeJeu/AideDeJeu.iOS/NativeAPI.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								AideDeJeu/AideDeJeu.iOS/NativeAPI.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| using AideDeJeu.Tools; | ||||
| using System; | ||||
| using System.IO; | ||||
| using Foundation; | ||||
| 
 | ||||
| [assembly: Xamarin.Forms.Dependency(typeof(AideDeJeu.Droid.Version_Android))] | ||||
| namespace AideDeJeu.Droid | ||||
| { | ||||
| 	public class Version_Android : INativeAPI | ||||
| 	{ | ||||
| 		public string GetVersion() | ||||
| 		{ | ||||
| 
 | ||||
| 			return NSBundle.MainBundle.InfoDictionary[new NSString("CFBundleShortVersionString")].ToString(); | ||||
| 		} | ||||
| 
 | ||||
| 		public int GetBuild() | ||||
| 		{ | ||||
| 			var buildVersion = NSBundle.MainBundle.InfoDictionary[new NSString("CFBundleVersion")].ToString(); | ||||
| 			int build = 0; | ||||
| 			var res = int.TryParse(buildVersion, out build); | ||||
| 			return res ? build : 0; | ||||
| 		} | ||||
| 
 | ||||
| 		public string GetDatabasePath(string databaseName) | ||||
| 		{ | ||||
| 			SQLitePCL.Batteries_V2.Init(); | ||||
| 			var databasePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "..", "Library", databaseName); | ||||
| 			return databasePath; | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 yostane
						yostane