Skip to content

Commit

Permalink
Fix incorrect escaped provisioning output path (#11)
Browse files Browse the repository at this point in the history
Description
===========

The default path to `~/Library/MobileDevice/Provisioning Profiles/` was incorrectly escaped.
I fixed this and adjusted a test to used spaces in the output path.

Changes
=======

* ![FIX] incorrect escaped provisioning output path
  • Loading branch information
Larusso committed Jul 4, 2023
1 parent 24f3279 commit 8c08543
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 8c08543

Please sign in to comment.