apply from: "../module.build.gradle" android { namespace 'com.snc.web' defaultConfig { //如果是独立模块,则使用当前组件的包名 if (isModule.toBoolean()) { namespace 'com.snc.web' } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } dependencies { testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' implementation 'com.just.agentweb:agentweb-androidx:4.1.4' kapt 'com.alibaba:arouter-compiler:1.5.2' //组件独立运行时,宿主项目直接依赖基础库,避免编译错误 api project(':lib_base') }