Skip to content

Commit

Permalink
#Release# 2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hyongbai committed Jul 26, 2019
1 parent 2c3de71 commit 52c1dda
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 43 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
</p>

[![license](http://img.shields.io/badge/license-Apache2.0-brightgreen.svg?style=flat)](https://github.com/Qihoo360/RePlugin/blob/master/LICENSE)
[![Release Version](https://img.shields.io/badge/release-2.3.2-brightgreen.svg)](https://github.com/Qihoo360/RePlugin/releases)

[![Release Version](https://img.shields.io/badge/release-2.3.3-brightgreen.svg)](https://github.com/Qihoo360/RePlugin/releases)

## 通知

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[![license](http://img.shields.io/badge/license-Apache2.0-brightgreen.svg?style=flat)](https://github.com/Qihoo360/RePlugin/blob/master/LICENSE)

[![Release Version](https://img.shields.io/badge/release-2.3.2-brightgreen.svg)](https://github.com/Qihoo360/RePlugin/releases)
[![Release Version](https://img.shields.io/badge/release-2.3.3-brightgreen.svg)](https://github.com/Qihoo360/RePlugin/releases)

## 通知

Expand Down
17 changes: 13 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ __rp_deploy_project(){
git checkout ${1}
}

rp_revert_AppConstant(){
git status -s | sed s/^...// | grep '/AppConstant.groovy' | git checkout ${f}
}

rp_deploy(){
local current=`pwd` && cd ${RP_BASE_DIR}
# revert AppConstant.groovy
rp_revert_AppConstant
# saving all changes: git stash save "saving stash for deploying!!!"
# deploy
for p in ${TARGET_PROJECTS}; do __rp_deploy_project ${RP_BASE_DIR}/${p}; done
# revert local changes: git revert --hard HEAD; git stash pop
local current=`pwd`
rp_revert_AppConstant
# back
cd ${current}
}

rp_test(){
Expand All @@ -45,11 +53,12 @@ rp_test(){
# replugin-sample-extra/fresco/FrescoPlugin/app
replugin-sample-extra/fresco/FrescoPlugin
)
local log=${RP_BASE_DIR}/build/rp_test.log && [[ -f $log ]] && rm -f $log
local log=${RP_BASE_DIR}/build/rp_test.log && [[ -f $log ]] && rm -f $log && touch $log
local current=`pwd`
for p in ${projects}; do
echo -e ">>> BUILDING ${p}"
p=${RP_BASE_DIR}/${p} && __gradle_exec -p ${p} clean asDebug 2>/dev/null >> ${log} && echo "SUCCEED";
local p=${RP_BASE_DIR}/${p}
echo -e ">>> BUILDING ${RP_BASE_DIR}/${p}"
cd ${p} && { __gradle_exec -p ${p} clean asDebug }
ls -l ${p}/app/build/outputs/apk
done
cd ${current}
Expand Down
5 changes: 3 additions & 2 deletions rp-config.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
project.ext{
RP_USER = 'qihoo360'
RP_USER = 'replugin'
RP_REPO = 'replugin'
RP_USERORG = 'qihoo360' // unset this if you an't belong to any orgnization
//
RP_SITE = 'https://github.com/Qihoo360/Replugin'
RP_DESC = 'RePlugin - A flexible, stable, easy-to-use Android Plug-in Framework'
Expand All @@ -10,5 +11,5 @@ project.ext{
RP_LICENSES_NAME = 'Apache-2.0'
//
RP_GROUP = 'com.qihoo360.replugin'
RP_VERSION = '2.3.2'
RP_VERSION = '2.3.3'
}
76 changes: 41 additions & 35 deletions rp-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def pbEmail = getPropertyExt('RP_EMAIL', pbUser)

def pbUserId = getPropertyExt('RP_USER_ID', pbUser)

def pbUserOrg = getPropertyExt('RP_USERORG', '')

def pbBintayKey = getPropertyExt('RP_BINTRAY_KEY', System.getenv('RP_BINTRAY_KEY'))

//
Expand Down Expand Up @@ -120,6 +122,29 @@ tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}


// TODO: mavenLocal & jcenter conflicts

if ( pbBintayKey == null ){

System.err.println("\n>>>「publish.gradle」bintray access key is EMPTY, UPLOAD LOCAL ONLY!\n")

///// publish to LOCAL

apply plugin: 'maven'
final def theGroup = group // group will be reset to 'upload'
uploadArchives {
repositories.mavenDeployer {
repository(url: "file://${System.getenv('HOME')}/.m2/repository")
pom.groupId = theGroup
pom.version = version
pom.artifactId = pbArtifactId
}
}

return
}

/////// publish to BINTRAY

apply plugin: 'com.jfrog.bintray'
Expand Down Expand Up @@ -157,38 +182,19 @@ install {
}
}

// config bintray

if ( pbBintayKey == null ){
System.err.println("bintray access key is EMPTY!!!")
} else {
bintray {
user = pbUser
key = pbBintayKey
configurations = ['archives']
pkg {
desc = pbDesc
repo = pbRepo
name = pbArtifactId
vcsUrl = pbGitUrl
userOrg = 'qihoo360'
websiteUrl = pbSiteUrl
issueTrackerUrl = pbIssueUrl
licenses = [pbLicense]
publish = true
}
}
}

/////// publish to LOCAL

// apply plugin: 'maven'
//final def theGroup = group // group will be reset to 'upload'
//uploadArchives {
// repositories.mavenDeployer {
// repository(url: "file://${System.getenv('HOME')}/.m2/repository")
// pom.groupId = theGroup
// pom.version = version
// pom.artifactId = pbArtifactId
// }
//}
bintray {
user = pbUser
key = pbBintayKey
configurations = ['archives']
pkg {
desc = pbDesc
repo = pbRepo
name = pbArtifactId
vcsUrl = pbGitUrl
userOrg = pbUserOrg
websiteUrl = pbSiteUrl
issueTrackerUrl = pbIssueUrl
licenses = [pbLicense]
publish = true
}
}

0 comments on commit 52c1dda

Please sign in to comment.