Skip to content
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

Fix incorrect escaped provisioning output path #11

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class InstallProvisioningProfilesIntegrationSpec extends IOSBuildTaskIntegration
def mock = MobileProvisionMock.createMock({
it.uuid = id
})
def installedProfile = new File(projectDir, "build/profiles/${id}.mobileprovision")
def installedProfile = new File(projectDir, "${installDir}/${id}.mobileprovision")
new Tuple2<File, File>(mock, installedProfile)
}

Expand All @@ -67,7 +67,7 @@ class InstallProvisioningProfilesIntegrationSpec extends IOSBuildTaskIntegration
and:
appendToSubjectTask("""
provisioningProfiles.from(${wrapValueBasedOnType(files.collect { it.first }, "List<File>")})
outputDirectory = ${wrapValueBasedOnType(new File(projectDir, "build/profiles"), "File")}
outputDirectory = ${wrapValueBasedOnType(new File(projectDir, installDir), "File")}
""".stripIndent())

when:
Expand All @@ -82,6 +82,7 @@ class InstallProvisioningProfilesIntegrationSpec extends IOSBuildTaskIntegration
}

where:
installDir = "build/custom profiles/location"
uuids = [UUID.randomUUID(), UUID.randomUUID(), UUID.randomUUID()]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class IOSBuildPlugin implements Plugin<Project> {
task.logFile.convention(project.layout.buildDirectory.file("logs/${task.name}.log"))
task.logToStdout.convention(project.provider {project.logger.isInfoEnabled()})
task.outputDirectory.convention(project.layout.dir(project.provider {
new File("${System.getProperty("user.home")}/Library/MobileDevice/Provisioning\\ Profiles/")
new File("${System.getProperty("user.home")}/Library/MobileDevice/Provisioning Profiles/")
}))
}
})
Expand Down