File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
plugin/src/main/kotlin/io/github/ttypic/swiftklib/gradle/task Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ abstract class CompileSwiftTask @Inject constructor(
92
92
*/
93
93
private fun createPackageSwift () {
94
94
File (swiftBuildDir, " Package.swift" )
95
- .create (createPackageSwiftContents(cinteropName))
95
+ .writeText (createPackageSwiftContents(cinteropName))
96
96
}
97
97
98
98
private fun buildSwift (xcodeVersion : Int ): SwiftBuildResult {
@@ -249,7 +249,7 @@ abstract class CompileSwiftTask @Inject constructor(
249
249
logger.info(content)
250
250
logger.info(" ---/ cinterop def /---" )
251
251
252
- defFile.create (content)
252
+ defFile.writeText (content)
253
253
}
254
254
255
255
private fun CompileTarget.operatingSystem (): String =
@@ -286,12 +286,6 @@ val SDKLESS_TARGETS = listOf(
286
286
CompileTarget .tvosSimulatorArm64,
287
287
)
288
288
289
- private fun File.create (content : String ) {
290
- bufferedWriter().use {
291
- it.write(content)
292
- }
293
- }
294
-
295
289
private fun File.md5 () = BigInteger (1 , MessageDigest .getInstance(" MD5" ).digest(readBytes()))
296
290
.toString(16 )
297
291
.padStart(32 , ' 0' )
You can’t perform that action at this time.
0 commit comments