You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugin-build/plugin/src/main/java/com/glebsolovev/kotlin/bitcodetools/gradle/plugin/BitcodeAnalysisPlugin.kt
+49-27Lines changed: 49 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ abstract class BitcodeAnalysisPlugin : Plugin<Project> {
31
31
""
32
32
}If you still would like to overcome this behaviour, ${
33
33
""
34
+
}use the standalone `extractSomeBitcode` task / ${
35
+
""
34
36
}register a custom `ExtractBitcodeTask` task and run it instead."
35
37
36
38
constvalGROUP_NAME="bitcode analysis"
@@ -40,25 +42,28 @@ abstract class BitcodeAnalysisPlugin : Plugin<Project> {
40
42
val (decompileBitcodeExtension, extractBitcodeExtension) = project.createExtensions()
41
43
project.registerStandaloneBitcodeTasks()
42
44
project.afterEvaluate {
43
-
val tmpArtifactsDirectory = resolveToRelativeDirectory(decompileBitcodeExtension.tmpArtifactsDirectoryPath)
44
-
listOf(
45
-
resolveReleasePipelineParameters(
46
-
tmpArtifactsDirectory,
47
-
decompileBitcodeExtension,
48
-
extractBitcodeExtension
49
-
),
50
-
resolveDebugPipelineParameters(
51
-
tmpArtifactsDirectory,
52
-
decompileBitcodeExtension,
53
-
extractBitcodeExtension
45
+
val artifactsDirectory = resolveToRelativeDirectory(decompileBitcodeExtension.artifactsDirectoryPath)
46
+
buildList {
47
+
add(
48
+
resolveReleasePipelineParameters(
49
+
artifactsDirectory,
50
+
decompileBitcodeExtension,
51
+
extractBitcodeExtension
52
+
)
54
53
)
55
-
).forEach {
56
-
it.registerTasks(
54
+
if (decompileBitcodeExtension.linkDebugTaskName !=null) {
0 commit comments