该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

以下就是 lib 下的build.gradle文件

apply plugin: 'com.android.library'

android {

publishNonDefault true

compileSdkVersion 28

defaultConfig {

minSdkVersion 19

targetSdkVersion 28

versionCode 1

versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

externalNativeBuild {

cmake {

abiFilters 'armeabi-v7a', 'x86'

cppFlags "-frtti -fexceptions -D__ANDROID__ -std=c++11"

cFlags "-D__ANDROID__ -DAL_ALEXT_PROTOTYPES -DANDROID"

}

}

//非 app module里面就需要

ndk {

moduleName "ffmpeg"

ldLibs "log"

abiFilters 'armeabi-v7a', 'x86'

}

}

buildTypes {

release {

debuggable false

jniDebuggable false

minifyEnabled false

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}

debug {

debuggable true

jniDebuggable true

}

}

externalNativeBuild {

cmake {

path "CMakeLists.txt"

}

}

//非APP module里面就需要

packagingOptions {

pickFirst 'lib/armeabi-v7a/libzplay-lib.so'

pickFirst 'lib/x86/libzplay-lib.so'

}

}

dependencies {

implementation fileTree(include: ['*.jar'], dir: 'libs')

}

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐