android——Groovy gralde 脚本迁移到DSL

1、implementation的转换

Kotlin 复制代码
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:***'

转换为

Kotlin 复制代码
implementation ("com.github.CymChad:BaseRecyclerViewAdapterHelper:***")

2、plugin的转换

Kotlin 复制代码
apply plugin: 'kotlin-android-extensions'

转换为:

Kotlin 复制代码
plugins {
    kotlin("android.extensions")
}

3、maven的转换

Kotlin 复制代码
repositories {
  mavenCentral()
  maven {
    url '<MAVEN REPO URL>'
  }
}

转换为:

Kotlin 复制代码
repositories {
    maven {
        url = uri("<your-custom-url>")
    }
}
相关推荐
花归去9 小时前
echarts 柱状图包含右侧进度
开发语言·前端·javascript
火柴就是我9 小时前
学习一些常用的混合模式之BlendMode. dst
android·flutter
遥不可及zzz9 小时前
解决 Google Play 提示的 16KB 内存页面大小对齐问题:通过升级 Android Gradle 插件(AGP)
android
沐浴露z9 小时前
学习通“只能录入不能粘贴” 解决方案与原理分析
javascript
多看书少吃饭9 小时前
Vite开发环境按需编译是怎么实现的
前端
ybb_ymm9 小时前
@Async修饰不生效
java·前端·数据库
Sapphire~9 小时前
Vue3-03 熟悉src文件夹及Vue文件格式
前端·javascript·vue.js
快乐星球3729 小时前
鸿蒙5、6用户h5页面使用schemeURL跳转小程序失败
前端
SmartRadio9 小时前
在MT8791 5G硬件平台上舍弃安卓系统-运行OpenWRT系统
android·5g·mt8791
ChangYan.9 小时前
Electron使用ffi-napi报错External buffers are not allowed解决办法
前端·javascript·electron