-
Notifications
You must be signed in to change notification settings - Fork 371
+ Add support to "podspec" parameter for #452 #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -125,11 +125,15 @@ public static string PropertyDictionaryToString( | |
| /// <summary> | ||
| /// Get the path of a pod without quotes. If the path isn't present, returns an empty | ||
| /// string. | ||
| /// This also support podspec parameters. It will prefer podspec parameter over path | ||
| /// if present. | ||
| /// </summary> | ||
| public string LocalPath { | ||
| get { | ||
| string path; | ||
| if (!propertiesByName.TryGetValue("path", out path)) return ""; | ||
| if (!propertiesByName.TryGetValue("podspec", out path)){ | ||
| if (!propertiesByName.TryGetValue("path", out path)) return ""; | ||
| } | ||
|
Comment on lines
+134
to
+136
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As mentioned. It is better to have two different properties for See the next comment. |
||
| if (path.StartsWith("'") && path.EndsWith("'")) { | ||
| path = path.Substring(1, path.Length - 2); | ||
| } | ||
|
|
@@ -276,7 +280,8 @@ private class IOSXmlDependencies : XmlDependencies { | |
| "modular_headers", | ||
| "source", | ||
| "subspecs", | ||
| "path" | ||
| "path", | ||
| "podspec" | ||
| }; | ||
|
|
||
| public IOSXmlDependencies() { | ||
|
|
@@ -295,6 +300,7 @@ public IOSXmlDependencies() { | |
| /// <iosPods> | ||
| /// <iosPod name="name" | ||
| /// path="pathToLocal" | ||
| /// podspec="pathToLocalPodSpecJSON" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you can specify a url here as well Perhaps use |
||
| /// version="versionSpec" | ||
| /// bitcodeEnabled="enabled" | ||
| /// minTargetSdk="sdk"> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to use a different property for "podspec".
Also, do similar override in
PodFilePodLinecamphongdinh@a97b71d#diff-4e150db5d98cbbe99ab461893cc478b33377658b810b34ebc72f7549670ef482R154-R157
Note that from the Cocoapod doc,
:podspeccan point to an "http" url. So perhaps only expand the path only if it does not start with "http".