Skip to content

Commit

Permalink
add aliyunplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
VeroZ1 committed Oct 7, 2021
1 parent 35e2044 commit f18cd87
Show file tree
Hide file tree
Showing 13 changed files with 681 additions and 2 deletions.
1 change: 1 addition & 0 deletions aliyunplayer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
75 changes: 75 additions & 0 deletions aliyunplayer/bintray.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

// 这个version是区分library版本的,因此当我们需要更新library时记得修改这个version
version = rootProject.ext.playerbaseIjkVersion

def siteUrl = 'https://github.com/jiajunhui/PlayerBase' // 项目的主页
def gitUrl = 'https://github.com/jiajunhui/PlayerBase.git' // Git仓库的url
group = "cn.jiajunhui" // Maven Group ID for the artifact,一般填你唯一的包名
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
// Add your description here
description 'Packaging aliyunplayer by PlayerBase'
name 'aliyunplayer' //项目描述
url siteUrl
// Set your license
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer { // 开发者信息
id 'aliyunplayer'
name 'junhui jia'
email '[email protected]'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
options.encoding = 'UTF-8'
source = 'src/main/java'
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
Properties properties = new Properties()
// 加载本地配置
properties.load(project.rootProject.file('local.properties').newDataInputStream())
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = "Tools" //发布到Bintray的那个仓库里,默认账户有四个库,我们这里上传到maven库
name = "aliyunplayer" //发布到Bintray上的项目名字
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
}
}
36 changes: 36 additions & 0 deletions aliyunplayer/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apply plugin: 'com.android.library'
//apply from: 'bintray.gradle'

android {
compileSdkVersion 29

defaultConfig {
minSdkVersion 18
targetSdkVersion 29
versionCode 1
versionName "1.0"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
compileOptions{

}
}

lintOptions{
abortOnError false
}

}

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

api "com.aliyun.sdk.android:AliyunPlayer:5.4.2.0-full"
api "com.kk.taurus.playerbase:playerbase:$playerbaseVersion"
// api project(':playerbase')
}
21 changes: 21 additions & 0 deletions aliyunplayer/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
2 changes: 2 additions & 0 deletions aliyunplayer/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kk.taurus.aliyunplayer" />
Loading

0 comments on commit f18cd87

Please sign in to comment.