| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- apply plugin: 'com.android.library'
- android {
- compileSdkVersion 28
- buildToolsVersion '28.0.3'
- defaultConfig {
- minSdkVersion 16
- targetSdkVersion 28
- versionCode 1
- versionName "1.0"
- }
- defaultConfig {
- minSdkVersion 16
- targetSdkVersion 28
- versionCode 1
- versionName "1.0"
- ndk {
- abiFilters 'armeabi', 'armeabi-v7a', 'x86'
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- signingConfig signingConfigs.debug
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- debug {
- minifyEnabled false
- signingConfig signingConfigs.debug
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- proguardFiles 'proguard-rules.pro'
- }
- signingConfigs {
- debug {
- //签名文件在项目根目录下
- //KEY_ALIAS,KEY_PASSWORD,STORE_PASSWORD写在项目根目录下的gradle.properties里
- keyAlias "qhd"
- keyPassword "aoyi123"
- storeFile file('qhd.jks')
- storePassword "aoyi123"
- }
- }
- }
- lintOptions {
- abortOnError false
- }
- productFlavors {
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- // implementation(rootProject.ext.dependencies.espresso, {
- // exclude group: 'com.android.support', module: 'support-annotations'
- // })
- // implementation rootProject.ext.dependencies.appcompatV7
- // implementation rootProject.ext.dependencies.junit
- implementation 'com.android.support:appcompat-v7:28.0.0'
- testImplementation 'junit:junit:4.12'
- implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.3'
- // compile 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.3'
- implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.3'
- implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.3'
- // compile 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.3'
- implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.3'
- // compile 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.3'
- }
- //apply plugin: 'com.github.dcendents.android-maven'
- //apply plugin: 'com.jfrog.bintray'
- //
- //def siteUrl = 'https://github.com/xiaoyanger0825/NiceVideoPlayer' // 项目的主页
- //def gitUrl = 'https://github.com/xiaoyanger0825/NiceVideoPlayer' // Git仓库的url
- ////发布到组织名称名字,必须填写
- //group = "com.xiaomark.nicevideoplayer"
- ////发布到JCenter上的项目名字,必须填写
- //def libName = "nicevideoplayer"
- //// 版本号,下次更新是只需要更改版本号即可
- //version = rootProject.ext.android.versionName
- //
- //Properties properties = new Properties()
- //properties.load(project.rootProject.file('local.properties').newDataInputStream())
- //bintray {
- // user = properties.getProperty("bintray.user")
- // key = properties.getProperty("bintray.apikey")
- // pkg {
- // userOrg = 'xiaomark' //自己创建的organization名称
- // repo = 'nicevideoplayer'//自己创建的仓库名字
- // name = libName //上传到JCenter的名字,最终引用的名字
- // websiteUrl = siteUrl
- // vcsUrl = gitUrl
- // licenses = ['Apache-2.0']//不能随便写,只能是仓库创建时选择的license type
- // publish = true // 是否是公开项目,公开别人可以引用
- //
- // version {
- // name = rootProject.ext.android.versionName
- // desc = 'a video player libarary for android.'//描述,自己定义
- // released = new Date()
- // vcsTag = rootProject.ext.android.versionName
- // attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
- // }
- // }
- // configurations = ['archives']
- //}
- //
- //install {
- // repositories.mavenInstaller {
- // // This generates POM.xml with proper parameters
- // pom {
- // project {
- // packaging 'aar'
- // // Add your description here
- // name 'nicevideoplayer'
- // description 'a video player libarary for android.'
- // url siteUrl
- // // Set your license
- // licenses {
- // license {
- // name 'Apache-2.0' //和之前自己定义的协议一致
- // url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
- // }
- // }
- // developers {
- // developer {
- // id 'xiaoyanger0825' //填写bintray或者github的用户名
- // name 'xiaojianjun' //姓名
- // email 'xiaojianjun0825@aliyun.com'//邮箱
- // }
- // }
- // scm {
- // connection gitUrl
- // developerConnection gitUrl
- // url siteUrl
- // }
- // }
- // }
- // }
- //}
- //task sourcesJar(type: Jar) {
- // from android.sourceSets.main.java.srcDirs
- // classifier = 'sources'
- //}
- //task javadoc(type: Javadoc) {
- // failOnError false //必须添加以免出错
- // source = android.sourceSets.main.java.srcDirs
- // classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
- //}
- //task javadocJar(type: Jar, dependsOn: javadoc) {
- // classifier = 'javadoc'
- // from javadoc.destinationDir
- //}
- //artifacts {
- // archives javadocJar
- // archives sourcesJar
- //}
- //
- //javadoc {
- // options {
- // //如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码
- // encoding "UTF-8"
- // charSet 'UTF-8'
- // author true
- // version true
- // links "http://docs.oracle.com/javase/7/docs/api"
- // }
- //}
|