47 lines
1.4 KiB
Groovy
47 lines
1.4 KiB
Groovy
apply from: rootProject.file('cc-settings-2.gradle')
|
|
|
|
android {
|
|
namespace 'com.fanghoo.video'
|
|
compileSdk rootProject.compileVersion
|
|
compileSdkVersion rootProject.compileVersion
|
|
buildToolsVersion rootProject.buildVersion
|
|
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
multiDexEnabled rootProject.ext.android.multiDexEnabled //突破应用方法数65535的一个限制
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
//仅在以application方式编译时才添加applicationId属性
|
|
if (project.ext.runAsApp) {
|
|
applicationId 'com.fanghoo.video'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation project(path: ':base')
|
|
|
|
//完整版引入
|
|
implementation 'com.shuyu:GSYVideoPlayer:7.1.4'
|
|
// provided 在 Gradle 8.x 中已移除,使用 compileOnly 替代
|
|
compileOnly files('libs/eventbus-2.4.0.jar')
|
|
|
|
}
|