Fix #5829 - Messing around with flutter API
[roobuilder] / src / Project / Flutter.vala
1 /**
2  Deps:
3     Palete.Flutter
4     
5 */
6
7 namespace Project 
8 {
9         static int fl_id = 1;
10  
11
12         public class Flutter : Project
13         {
14                 /**
15                 * Gir cache - it's local as we might want clear it if we modify the packages...
16                 *
17                 */
18                 //public Gee.HashMap<string,Palete.Gir> gir_cache = null;
19                 //public bool gir_cache_loaded = false;
20  
21           
22                 public Flutter(string path) {
23                   
24                   
25                         base(path);
26                          this.palete = new Palete.Flutter(this);
27                         
28                         //this.gir_cache = new Gee.HashMap<string,Palete.Gir>();
29                         this.xtype = "Flutter";
30                         var gid = "project-flutter-%d".printf(gtk_id++);
31                         this.id = gid;
32                         try {
33                                 this.loadConfig();
34                         } catch (GLib.Error e )  {
35                                 // is tihs ok?
36                         }
37                         //scan files..
38                         // if no 'pubspec.yml' ... then we need to run flutter create...
39                         this.scanDirs();
40                 
41                 }
42                  
43                 public void loadConfig() throws GLib.Error 
44                 {
45                         // ?? read the yaml file?
46                         
47                         // ?? read the 'iml' xml files - contains librayr info?
48                         
49                  
50                 }
51                 public void  writeConfig() {}
52                 
53                 public Gee.ArrayList<string> filesAll(string in_path,bool abspath = true)
54                 {
55                         GLib.error("Not supported yet");
56                 }
57                 public Gee.ArrayList<string> filesForCompile(string in_path, bool abspath = true) {
58                         GLib.error("Not supported yet");
59                 }
60                 
61                 public Gee.ArrayList<string> filesForOpen(string in_path)
62                 {
63                         GLib.error("Not supported yet");
64                 }
65         }
66 }