build with other buildTypes
liulinjie1990823 opened this issue · 0 comments
liulinjie1990823 commented
将autoDependency设置为false后,自己导入,依赖的库可以在Libraries中看见:
releaseImplementation 'com.antfortune.freeline:runtime-no-op:0.8.8'
debugImplementation'com.antfortune.freeline:runtime:0.8.8'
并设置匹配不到回退到release版本:
matchingFallbacks = ['release']
编译类型:
buildTypes {
debug { }
beta { }
release { }
}
执行assembleBeta后,按道理回去依赖releaseImplementation的库,结果在application中无法import FreelineCore类。加入betaImplementation 'com.antfortune.freeline:runtime-no-op:0.8.8'后可以解决,但这样matchingFallbacks的效果没有体现出来