plugins { id 'com.android.library' id 'kotlin-android' id 'kotlin-android-extensions' id 'kotlin-kapt' } android { compileSdkVersion rootProject.ext.android.compileSdkVersion defaultConfig { minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode Integer.valueOf(VERSION_CODE) versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION") testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' javaCompileOptions { annotationProcessorOptions { arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] } } } //排除包中的proto文件 packagingOptions { exclude '**/*.proto' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } lintOptions { abortOnError false } kotlinOptions { jvmTarget = "1.8" freeCompilerArgs += [ "-Xopt-in=kotlin.RequiresOptIn" ] } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation rootProject.ext.dependencies.kotlinstdlib implementation rootProject.ext.dependencies.mogologlib implementation rootProject.ext.dependencies.androidx_datastore implementation rootProject.ext.dependencies.androidxroomruntime kapt rootProject.ext.dependencies.androidxroomcompiler implementation rootProject.ext.dependencies.rxandroid implementation rootProject.ext.dependencies.androidxcardview implementation rootProject.ext.dependencies.androidxroomktx implementation rootProject.ext.dependencies.androidxappcompat implementation rootProject.ext.dependencies.androidxconstraintlayout implementation rootProject.ext.dependencies.androidxrecyclerview implementation rootProject.ext.dependencies.life_cycle_scope implementation project(':core:mogo-core-function-call') implementation project(':core:mogo-core-function-api') implementation project(':core:mogo-core-res') implementation project(':foudations:mogo-commons') implementation 'io.github.h07000223:flycoTabLayout:3.0.0' implementation project(':core:mogo-core-utils') implementation project(':libraries:mogo-adas') implementation project(':libraries:mogo-adas-data') //----------------SSH start--------------------- //implementation('org.connectbot:sshlib:2.2.21') //正常引用 org.connectbot:sshlib:2.2.21库由于存在冲突 故将原始代码拷贝到项目中并引用库中的第三方库 implementation("com.jcraft:jzlib:1.1.3") implementation("org.connectbot:simplesocks:1.0.1") implementation("com.google.crypto.tink:tink:1.7.0") implementation("org.connectbot:jbcrypt:1.0.2") //----------------SSH end--------------------- implementation 'org.conscrypt:conscrypt-android:2.5.2' }