Skip to content

Commit a97b71d

Browse files
committed
+ Add support to "podspec" parameter for googlesamples#452
1 parent 30b4f92 commit a97b71d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/IOSResolver/src/IOSResolver.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,15 @@ public static string PropertyDictionaryToString(
125125
/// <summary>
126126
/// Get the path of a pod without quotes. If the path isn't present, returns an empty
127127
/// string.
128+
/// This also support podspec parameters. It will prefer podspec parameter over path
129+
/// if present.
128130
/// </summary>
129131
public string LocalPath {
130132
get {
131133
string path;
132-
if (!propertiesByName.TryGetValue("path", out path)) return "";
134+
if (!propertiesByName.TryGetValue("podspec", out path)){
135+
if (!propertiesByName.TryGetValue("path", out path)) return "";
136+
}
133137
if (path.StartsWith("'") && path.EndsWith("'")) {
134138
path = path.Substring(1, path.Length - 2);
135139
}
@@ -276,7 +280,8 @@ private class IOSXmlDependencies : XmlDependencies {
276280
"modular_headers",
277281
"source",
278282
"subspecs",
279-
"path"
283+
"path",
284+
"podspec"
280285
};
281286

282287
public IOSXmlDependencies() {
@@ -295,6 +300,7 @@ public IOSXmlDependencies() {
295300
/// <iosPods>
296301
/// <iosPod name="name"
297302
/// path="pathToLocal"
303+
/// podspec="pathToLocalPodSpecJSON"
298304
/// version="versionSpec"
299305
/// bitcodeEnabled="enabled"
300306
/// minTargetSdk="sdk">

0 commit comments

Comments
 (0)