build: 将aar单独放到一个模块里,避免多个地方重复拷贝

This commit is contained in:
张玉久
2022-12-22 16:17:44 +08:00
parent 3a6dba580b
commit c7cda3f64f
7 changed files with 4 additions and 3 deletions

View File

@ -76,7 +76,6 @@ android {
} }
dependencies { dependencies {
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

2
module_lib/build.gradle Normal file
View File

@ -0,0 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('quick_login_android_5.9.4.aar'))

View File

@ -46,8 +46,6 @@ android {
} }
dependencies { dependencies {
compileOnly fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
@ -56,4 +54,5 @@ dependencies {
implementation(project(path: ":module_common")) implementation(project(path: ":module_common"))
implementation(project(path: ":module_core_feature")) implementation(project(path: ":module_core_feature"))
api project(":module_lib")
} }

View File

@ -11,3 +11,4 @@ include ':module_setting'
include ':module_feedback' include ':module_feedback'
include ':ndownload' include ':ndownload'
include ':module_core_feature' include ':module_core_feature'
include ':module_lib'