Jack Deng

Results 69 comments of Jack Deng

> 添加新的依赖,都需要重启AS吗? 不需要

> composingBuilds怎么检测依赖更新呢 通过插件 Gradle Versions Plugin,可以查看另外一个项目 [PokemonGo](https://github.com/hi-dhl/PokemonGo) ,搜索 如何检查依赖库的版本更新

> 使用了复合构建,依赖暂时不去修改,试了很多次,整体rebuild project时间变慢了。不知道原因为何。 > 还有顺便提供一个操作,在非build.gradle的的脚本中(项目有大量的module,可能抽取了某些通用的xxx.gradle)是无法访问到该插件内容的,可以把类添加到project的extensions,这样也可以避免在脚本中导包,这样都可以愉快的访问: > > ```kotlin > class DependencyRepoPlugin : Plugin { > > override fun apply(target: Project) { > println("[${DependencyRepoPlugin::class.java.simpleName}] apply.[${target.name}]") > // 在非build.gradle的的脚本中无法访问到该内容,添加到extensions > target.extensions.add("DependencyRepo", DependencyRepo)...

> > > 使用了复合构建,依赖暂时不去修改,试了很多次,整体rebuild project时间变慢了。不知道原因为何。 > > > 还有顺便提供一个操作,在非build.gradle的的脚本中(项目有大量的module,可能抽取了某些通用的xxx.gradle)是无法访问到该插件内容的,可以把类添加到project的extensions,这样也可以避免在脚本中导包,这样都可以愉快的访问: > > > ```kotlin > > > class DependencyRepoPlugin : Plugin { > > > > > > override fun apply(target:...

> 我怎么用这个会出现kotlin 的依赖重复的现象,有1.3.72. 有1.5.10的 jdk7 jdk8的,但是我把该改的都改了,项目中没有1.3.72 我之前好像也出现过,忘记怎么弄的了,贴出一下你的配置,看一下项目使用的 kotlin 的版本。

@JuneLeo 感谢补充, 已经将 Deflate/Stored (压缩模式和存储模式) 相关内容添加进对应的文章内了

嗯嗯,以 Android Studio Arctic Fox 开始命名的 版本好像都是可以的, 在之前的旧版本也可以使用,但是会有一个警告 , ``` If this is an unrelated build, it must have its own settings file. ``` 详见 https://github.com/hi-dhl/ComposingBuilds-vs-buildSrc/issues/2 和 https://github.com/hi-dhl/ComposingBuilds-vs-buildSrc/issues/7

for AndroidStudio 3.0+, mainMoudle has buildTypes and buildTypes as same as libModule buildTypes and buildTypes ,it would like: mainModule buildTypes { release { buildConfigField "boolean", "LOG_DEBUG", "false" zipAlignEnabled true shrinkResources...

这个处理的方案,可以参考我另外一个库 https://github.com/hi-dhl/Binding 的处理, Binding 和 JDataBinding 是互相兼容的,也可以使用 Binding 替换掉 JDataBinding, Binding 更加全面 ``` class FragmentNav1 : Fragment() { // DataBinding val binding: FragmentMainBinding by databind() // ViewBinding val binding: FragmentMainBinding...