alibaba / alibaba/flutter_boost
[Problem] 如何使用 settings.gradle.kts 接入?
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
在文档那里,接入部分
```gradle
setBinding(new Binding([gradle: this]))
evaluate(new File(
settingsDir.parentFile,
'flutter_module/.android/include_flutter.groovy'
))
include ':flutter_module'
project(':flutter_module').projectDir = new File('../flutter_module')
```
这是 settings.gradle 的代码,但是我用的是 settings.gradle.kts ,我试着
```kotlin
val flutterModulePath = File(settingsDir.parentFile, "flutter_module/.android/include_flutter.groovy")
apply {
from(flutterModulePath)
}
```
可是我发现 kts 无法 evaluate groovy 文件,这可怎么办呐
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the documented settings.gradle integration and compare it with the reported settings.gradle.kts attempt. Read the referenced flutter_module/.android/include_flutter.groovy file and determine how the integration should be documented for Kotlin DSL users. Done means the documentation explains a working settings.gradle.kts path or clearly states the supported limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, groovy, kotlin
- Domain
- build-system, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100