Browse Source

change build.gradle

main
MTing 2 weeks ago
parent
commit
01c0713a4c
  1. 4
      app/build.gradle
  2. 11
      facelibrary/build.gradle
  3. 2
      gradle/wrapper/gradle-wrapper.properties
  4. 6
      settings.gradle

4
app/build.gradle

@ -79,6 +79,10 @@ dependencies {
// Android开发工具库 // Android开发工具库
implementation 'com.blankj:utilcode:1.30.7' implementation 'com.blankj:utilcode:1.30.7'
//
implementation project(':facelibrary')
implementation files('libs/orbbec_module-debug.aar')
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

11
facelibrary/build.gradle

@ -1,9 +1,13 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
namespace 'com.baidu.idl.main.facesdk'
compileSdkVersion 29 compileSdkVersion 29
// buildToolsVersion '26.0.2'
buildToolsVersion '35.0.0'
publishNonDefault true publishNonDefault true
buildFeatures {
buildConfig true
}
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 29 targetSdkVersion 29
@ -44,13 +48,12 @@ android {
} }
dependencies { dependencies {
implementation files('libs/liantian.jar')
compile fileTree(include: ['*.jar'], dir: 'libs')
api files('libs/liantian.jar')
api fileTree(include: ['*.jar'], dir: 'libs')
// implementation 'org.jetbrains:annotations-java5:15.0' // implementation 'org.jetbrains:annotations-java5:15.0'
// implementation ('org.jetbrains:annotations-java5:15.0'){ // implementation ('org.jetbrains:annotations-java5:15.0'){
// exclude module: 'org.intellij.lang.annotations' // exclude module: 'org.intellij.lang.annotations'
// } // }
compile files('libs/orbbec_module-debug.aar')
implementation files('libs/FaceSDK-3568-3.1.jar') implementation files('libs/FaceSDK-3568-3.1.jar')
implementation files('libs/bd_unifylicense.jar') implementation files('libs/bd_unifylicense.jar')

2
gradle/wrapper/gradle-wrapper.properties

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-7.4-bin.zip
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-9.0.0-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

6
settings.gradle

@ -6,12 +6,16 @@ pluginManagement {
} }
} }
dependencyResolutionManagement { dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
flatDir {
dirs '../facelibrary/libs'
}
} }
} }
rootProject.name = "OxFaceLogin" rootProject.name = "OxFaceLogin"
include ':app' include ':app'
include ':facelibrary'
Loading…
Cancel
Save