type
status
date
slug
summary
tags
category
icon
password
gradle中使用了gradle.properties和local.properties文件.
build.gradle 可以直接获取同级目录和上层目录的properties文件.
如果properties文件在其他目录,或者不是.properties的格式,我们可以使用Java中的Properties类来读取这些文件.
Properties文件支持以下几种格式:
  • key=value
  • key: value
在Android Studio中建议统一使用key=value形式
看一个kotin dsl 的例子:
Path中可以使用resolve方法,将路径字符串转换成对应格式的Path.
Hook点击事件Glide原理分析
Loading...