We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee63685 + 01450f7 commit 85ca1d8Copy full SHA for 85ca1d8
1 file changed
gradle-plugin/src/main/kotlin/dev/icerock/gradle/generator/FatFrameworkWithResourcesTask.kt
@@ -0,0 +1,28 @@
1
+/*
2
+ * Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
5
+package dev.icerock.gradle.generator
6
7
+import org.gradle.api.tasks.TaskAction
8
+import org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask
9
10
+open class FatFrameworkWithResourcesTask : FatFrameworkTask() {
11
12
+ @TaskAction
13
+ protected fun copyBundle() {
14
+ super.createFatFramework()
15
16
+ frameworks.first().outputFile.listFiles()
17
+ ?.asSequence()
18
+ ?.filter { it.name.contains(".bundle") }
19
+ ?.forEach { bundleFile ->
20
+ project.copy {
21
+ from(bundleFile) {
22
+ into(bundleFile.name)
23
+ }
24
+ into(fatFrameworkDir)
25
26
27
28
+}
0 commit comments