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.
Files changed (2) hide show
  1. data/lib/cross_platform_csproj.rb +44 -0
  2. 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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cross_platform_csproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: