jncultural/moduleijkplayer/build.gradle

73 lines
2.8 KiB
Groovy
Raw Permalink Normal View History

2020-05-27 13:32:22 +08:00
if (!IsModuleDev.toBoolean()) {
apply plugin: 'com.android.application'
} else {
apply plugin: 'com.android.library'
}
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jakewharton.butterknife'
2020-06-08 10:09:08 +08:00
apply plugin: 'android-aspectjx'
2020-05-27 13:32:22 +08:00
android {
buildToolsVersion rootProject.ext.gBuildToolsVersion
compileSdkVersion rootProject.ext.gCompileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.gMinSdkVersion
targetSdkVersion rootProject.ext.gCompileSdkVersion
versionCode rootProject.ext.gVersionCode
versionName rootProject.ext.gVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
2020-06-08 10:09:08 +08:00
abiFilters "armeabi", "armeabi-v7a", "x86", "x86_64", "arm64-v8a"
2020-05-27 13:32:22 +08:00
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
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(':cm_utils')
implementation 'androidx.appcompat:appcompat:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
annotationProcessor "com.alibaba:arouter-compiler:${rootProject.ext.gRouterCompileVersion}"
//Rxjava
implementation "io.reactivex.rxjava2:rxjava:${rootProject.ext.gRxJavaVersion}"
implementation "io.reactivex.rxjava2:rxandroid:${rootProject.ext.gRxAndroid}"
//RxJava
implementation "com.squareup.retrofit2:retrofit:${rootProject.ext.gRetrofitVersion}"
//Gson
implementation "com.google.code.gson:gson:${rootProject.ext.gGsonVersion}"
//butterknife
2020-06-08 10:09:08 +08:00
annotationProcessor "com.jakewharton:butterknife-compiler:${rootProject.ext.gButterKnifeVersion}"
2020-05-27 13:32:22 +08:00
//选择器
//glide
implementation "com.github.bumptech.glide:glide:${rootProject.ext.supportGlide}"
annotationProcessor "com.github.bumptech.glide:compiler:${rootProject.ext.supportGlide}"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//播放器
implementation "tv.danmaku.ijk.media:ijkplayer-java:${rootProject.ext.ijkPlayer}"
2020-06-08 10:09:08 +08:00
//屏幕适配
implementation 'com.github.jarryleo:MagicScreenAdapter:v2.1'
2020-05-27 13:32:22 +08:00
}