Browse Source

first commit

hexleo 5 years ago
parent
commit
5905eca79b

+ 0 - 8
Android/PlayerProj/animplayer/build.gradle

@@ -2,14 +2,9 @@ apply plugin: 'com.android.library'
 apply plugin: 'kotlin-android'
 apply plugin: 'kotlin-android'
 apply plugin: 'kotlin-android-extensions'
 apply plugin: 'kotlin-android-extensions'
 
 
-// 内部maven上传
-apply from: file("../maven.gradle")
-
 android {
 android {
     compileSdkVersion 28
     compileSdkVersion 28
 
 
-
-
     defaultConfig {
     defaultConfig {
         minSdkVersion 16
         minSdkVersion 16
         targetSdkVersion 28
         targetSdkVersion 28
@@ -31,6 +26,3 @@ dependencies {
         exclude module: 'annotations'
         exclude module: 'annotations'
     }
     }
 }
 }
-
-// jcenter 上传(这个要在底部)
-// apply from: file("publish.gradle")

+ 0 - 33
Android/PlayerProj/animplayer/publish.gradle

@@ -1,33 +0,0 @@
-ext {
-    // 此处填写刚才建立的maven仓库的仓库名称
-    bintrayRepo = 'maven'
-    // library的group id
-    publishedGroupId = 'com.egame.vap'
-    // library网站地址
-    siteUrl = 'https://github.com/Tencent/vap'
-    // library仓库地址
-    gitUrl = 'https://github.com/Tencent/vap'
-
-    // 注册时候的bintray username
-    developerId = 'hexleo'
-    // 开发者名称
-    developerName = 'hexleo'
-    // 开发者邮箱
-    developerEmail = 'wanghailiang333@gmail.com'
-
-    // 开源许可证(这里是Apache 2.0)
-    licenseName = 'MIT'
-    licenseUrl = 'http://opensource.org/licenses/MIT'
-    allLicenses = ["MIT"]
-
-    // library artifact(单个module一般就填写library name)
-    artifact = 'animplayer'
-    libraryName = 'animplayer'
-    libraryVersion = '2.0.6'
-    libraryDescription = ''
-    // bintrayName 是你在网页Repository页面能看到的名称
-    bintrayName = 'vap'
-}
-
-apply from: '../installv1.gradle'
-apply from: '../bintrayv1.gradle'

+ 0 - 59
Android/PlayerProj/bintrayv1.gradle

@@ -1,59 +0,0 @@
-apply plugin: 'com.jfrog.bintray'
-
-version = libraryVersion
-
-if (project.hasProperty("android")) { // Android libraries
-    task sourcesJar(type: Jar) {
-        classifier = 'sources'
-        from android.sourceSets.main.java.srcDirs
-    }
-
-    task javadoc(type: Javadoc) {
-        source = android.sourceSets.main.java.srcDirs
-        classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
-    }
-} else { // Java libraries
-    task sourcesJar(type: Jar, dependsOn: classes) {
-        classifier = 'sources'
-        from sourceSets.main.allSource
-    }
-}
-
-task javadocJar(type: Jar, dependsOn: javadoc) {
-    classifier = 'javadoc'
-    from javadoc.destinationDir
-}
-
-artifacts {
-    archives javadocJar
-    archives sourcesJar
-}
-
-// Bintray
-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 = bintrayRepo
-        name = bintrayName
-        desc = libraryDescription
-        websiteUrl = siteUrl
-        vcsUrl = gitUrl
-        licenses = allLicenses
-        publish = true
-        publicDownloadNumbers = true
-        version {
-            desc = libraryDescription
-            gpg {
-                sign = true //Determines whether to GPG sign the files. The default is false
-                passphrase = properties.getProperty("bintray.gpg.password")
-                //Optional. The passphrase for GPG signing'
-            }
-        }
-    }
-}

+ 0 - 42
Android/PlayerProj/installv1.gradle

@@ -1,42 +0,0 @@
-apply plugin: 'com.github.dcendents.android-maven'
-
-group = publishedGroupId                               // Maven Group ID for the artifact
-
-install {
-    repositories.mavenInstaller {
-        // This generates POM.xml with proper parameters
-        pom {
-            project {
-                packaging 'aar'
-                groupId publishedGroupId
-                artifactId artifact
-
-                // Add your description here
-                name libraryName
-                description libraryDescription
-                url siteUrl
-
-                // Set your license
-                licenses {
-                    license {
-                        name licenseName
-                        url licenseUrl
-                    }
-                }
-                developers {
-                    developer {
-                        id developerId
-                        name developerName
-                        email developerEmail
-                    }
-                }
-                scm {
-                    connection gitUrl
-                    developerConnection gitUrl
-                    url siteUrl
-
-                }
-            }
-        }
-    }
-}

+ 0 - 37
Android/PlayerProj/maven.gradle

@@ -1,37 +0,0 @@
-apply plugin: 'maven'
-
-def GROUP = "com.tencent.qgame"
-def ARTIFACT_ID = "animplayer"
-def VERSION = "2.0.6"
-def IS_SNAPSHOTS = true
-def SNAPSHOTS_VERSION = "5"
-def USER_NAME = System.env.VAP_USER_NAME
-def KEY = System.env.VAP_KEY
-
-uploadArchives{
-    repositories.mavenDeployer{
-        // 配置本地仓库路径,项目根目录下的repository目录中
-        def repoUrl = "https://mirrors.tencent.com/repository/maven/thirdparty"
-        def version = VERSION
-        print("")
-        if (IS_SNAPSHOTS) {
-            version = VERSION + "." + SNAPSHOTS_VERSION + "-SNAPSHOT"
-            repoUrl = "https://mirrors.tencent.com/repository/maven/thirdparty-snapshots"
-        }
-
-        repository(url: repoUrl) {
-            authentication(userName: USER_NAME, password: KEY)
-            pom.groupId = GROUP
-            pom.artifactId = ARTIFACT_ID
-            pom.version = version
-        }
-
-        snapshotRepository(url: repoUrl) {
-            authentication(userName: USER_NAME, password: KEY)
-            pom.groupId = GROUP
-            pom.artifactId = ARTIFACT_ID
-            pom.version = version
-        }
-
-    }
-}