File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -125,11 +125,15 @@ public static string PropertyDictionaryToString(
125
125
/// <summary>
126
126
/// Get the path of a pod without quotes. If the path isn't present, returns an empty
127
127
/// string.
128
+ /// This also support podspec parameters. It will prefer podspec parameter over path
129
+ /// if present.
128
130
/// </summary>
129
131
public string LocalPath {
130
132
get {
131
133
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
+ }
133
137
if ( path . StartsWith ( "'" ) && path . EndsWith ( "'" ) ) {
134
138
path = path . Substring ( 1 , path . Length - 2 ) ;
135
139
}
@@ -276,7 +280,8 @@ private class IOSXmlDependencies : XmlDependencies {
276
280
"modular_headers" ,
277
281
"source" ,
278
282
"subspecs" ,
279
- "path"
283
+ "path" ,
284
+ "podspec"
280
285
} ;
281
286
282
287
public IOSXmlDependencies ( ) {
@@ -295,6 +300,7 @@ public IOSXmlDependencies() {
295
300
/// <iosPods>
296
301
/// <iosPod name="name"
297
302
/// path="pathToLocal"
303
+ /// podspec="pathToLocalPodSpecJSON"
298
304
/// version="versionSpec"
299
305
/// bitcodeEnabled="enabled"
300
306
/// minTargetSdk="sdk">
You can’t perform that action at this time.
0 commit comments