debugCompile project(path: ‘:sdk’, configuration: ‘debug’)
综合示例
1、先看app这边的build.gradle配置:
apply plugin: ‘com.android.application’
android {
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
debug {
applicationIdSuffix ‘.debug’
minifyEnabled false
}
// 自定义的构建类型,名字随便取,一定要有意义
raedebug {
initWith debug
applicationIdSuffix ‘.raedebug’
}
}
}
dependencies {
// 生成环境依赖
releaseCompile project(path: ‘:sdk’, configuration: ‘release’)
// 测试环境依赖
debugCompile project(path: ‘:sdk’, configuration: ‘debug’)
// 自定义构建类型依赖
raedebugCompile project(path: ‘:sdk’, configur