cross_platform_csproj 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cross_platform_csproj.rb +44 -0
- metadata +1 -1
@@ -94,4 +94,48 @@ class CrossPlatformCSProj
|
|
94
94
|
return path
|
95
95
|
end
|
96
96
|
|
97
|
+
def self.getCoreFiles(path)
|
98
|
+
fileList = FileList.new()
|
99
|
+
|
100
|
+
fileList.include("#{path}/**/*.cs")
|
101
|
+
|
102
|
+
return fileList
|
103
|
+
end
|
104
|
+
|
105
|
+
def self.getAndroidFiles(path)
|
106
|
+
fileList = getCoreFiles(path);
|
107
|
+
|
108
|
+
fileList.exclude("#{path}/**/IOS/**/*.cs")
|
109
|
+
fileList.exclude("#{path}/**/Windows/**/*.cs")
|
110
|
+
|
111
|
+
fileList.exclude("#{path}/**/*.IOS.cs")
|
112
|
+
fileList.exclude("#{path}/**/*.Windows.cs")
|
113
|
+
|
114
|
+
return fileList;
|
115
|
+
end
|
116
|
+
|
117
|
+
def self.getIOSFiles(path)
|
118
|
+
fileList = getCoreFiles(path);
|
119
|
+
|
120
|
+
fileList.exclude("#{path}/**/Android/**/*.cs")
|
121
|
+
fileList.exclude("#{path}/**/Windows/**/*.cs")
|
122
|
+
|
123
|
+
fileList.exclude("#{path}/**/*.Android.cs")
|
124
|
+
fileList.exclude("#{path}/**/*.Windows.cs")
|
125
|
+
|
126
|
+
return fileList;
|
127
|
+
end
|
128
|
+
|
129
|
+
def self.getWindowsFiles(path)
|
130
|
+
fileList = getCoreFiles(path);
|
131
|
+
|
132
|
+
fileList.exclude("#{path}/**/Android/**/*.cs")
|
133
|
+
fileList.exclude("#{path}/**/IOS/**/*.cs")
|
134
|
+
|
135
|
+
fileList.exclude("#{path}/**/*.Android.cs")
|
136
|
+
fileList.exclude("#{path}/**/*.IOS.cs")
|
137
|
+
|
138
|
+
return fileList;
|
139
|
+
end
|
140
|
+
|
97
141
|
end
|