-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SKIE Kotlin incompatibility warning.
- Loading branch information
1 parent
90cd574
commit 3f00c95
Showing
5 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
SKIE/skie-gradle/plugin-impl/src/common/kotlin/co/touchlab/skie/plugin/shim/KgpShimLoader.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../plugin/util/SkieKotlinVariantResolver.kt → .../plugin/shim/SkieKotlinVariantResolver.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...skie-gradle/plugin-impl/src/common/kotlin/co/touchlab/skie/plugin/shim/SkieLoaderError.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package co.touchlab.skie.plugin.shim | ||
|
||
import co.touchlab.skie.plugin.configuration.skieExtension | ||
import org.gradle.api.Project | ||
|
||
fun Project.reportSkieLoaderError(error: String) { | ||
afterEvaluate { | ||
// Intentionally not checking for the macOS platform | ||
val isSkieSupposedToBeEnabled = skieExtension.isEnabled.get() | ||
|
||
if (isSkieSupposedToBeEnabled) { | ||
val errorMessage = """ | ||
|Error: ${error.replace("\n", "\n|")} | ||
|SKIE cannot not be used until this error is resolved. | ||
|To proceed with the compilation, please remove or explicitly disable SKIE by adding 'skie { isEnabled = false }' to your Gradle configuration. | ||
""".trimMargin() | ||
|
||
error(errorMessage) | ||
} | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
...skie-gradle/plugin-impl/src/common/kotlin/co/touchlab/skie/plugin/util/SkieLoaderError.kt
This file was deleted.
Oops, something went wrong.