1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- apply plugin: 'com.android.library'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-kapt'
- android {
- compileSdkVersion cfgs.compileSdkVersion
- defaultConfig {
- minSdkVersion cfgs.minSdkVersion
- targetSdkVersion cfgs.targetSdkVersion
- versionCode cfgs.versionCode
- versionName cfgs.versionName
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
- ndk {
- // 设置支持的SO库架构
- abiFilters 'armeabi', 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
- }
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- multiDexEnabled true
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- kapt {
- arguments {
- arg("AROUTER_MODULE_NAME", project.getName())
- }
- }
- }
- dependencies {
- api fileTree(dir: 'libs', include: ['*.jar'])
- api "androidx.appcompat:appcompat:${cfgs.appcompat_version}"
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
- exclude group: 'com.android.support', module: 'support-annotations'
- })
- //阿里路由
- api "com.alibaba:arouter-api:${cfgs.arouter_version}"
- kapt "com.alibaba:arouter-compiler:${cfgs.arouter_version}"
- api project(':BSBase')
- api project(':BSBaiduSpeak')
- }
|