Skip to content

Commit

Permalink
Add Podfile.lock to build results.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekharkunov committed Oct 11, 2024
1 parent 6ce8145 commit 84d4393
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions server/src/main/java/com/defold/extender/Extender.java
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,13 @@ public boolean accept(File pathname) {
}
}

if (resolvedPods.podFileLock != null) {
LOGGER.info("buildPods - adding Podfile.lock to build output");
File destPodFileLock = new File(buildDirectory, "Podfile.lock");
FileUtils.copyFile(resolvedPods.podFileLock, destPodFileLock);
outputFiles.add(destPodFileLock);
}

return outputFiles;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public class ResolvedPods {
public File frameworksDir;
public File generatedDir;
public String platformMinVersion;
public File podFileLock;

// In the functions below we also get the values from the parent spec
// if one exists. A parent spec inherits all of its subspecs (unless a
Expand Down Expand Up @@ -147,7 +148,8 @@ public String toString() {
sb.append("pods dir: " + podsDir + "\n");
sb.append("frameworks Dir: " + frameworksDir + "\n");
sb.append("generated dir: " + generatedDir + "\n");
sb.append("platform min version: " + platformMinVersion);
sb.append("platform min version: " + platformMinVersion + "\n");
sb.append("podfile.lock: " + podFileLock);
return sb.toString();
}
}
Expand Down Expand Up @@ -1393,6 +1395,7 @@ public ResolvedPods resolveDependencies(PlatformConfig config, File jobDir, Stri
resolvedPods.podsDir = new File(workingDir, "Pods");
resolvedPods.frameworksDir = frameworksDir;
resolvedPods.generatedDir = generatedDir;
resolvedPods.podFileLock = new File(workingDir, "Podfile.lock");

LOGGER.info("Resolved Cocoapod dependencies");
LOGGER.info(resolvedPods.toString());
Expand Down

0 comments on commit 84d4393

Please sign in to comment.