Skip to content

Commit 52c1dda

Browse files
committed
#Release# 2.3.3
1 parent 2c3de71 commit 52c1dda

File tree

5 files changed

+60
-43
lines changed

5 files changed

+60
-43
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
</p>
66

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

1011
## 通知
1112

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

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

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

1111
## 通知
1212

deploy.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,21 @@ __rp_deploy_project(){
1919
git checkout ${1}
2020
}
2121

22+
rp_revert_AppConstant(){
23+
git status -s | sed s/^...// | grep '/AppConstant.groovy' | git checkout ${f}
24+
}
25+
2226
rp_deploy(){
2327
local current=`pwd` && cd ${RP_BASE_DIR}
28+
# revert AppConstant.groovy
29+
rp_revert_AppConstant
2430
# saving all changes: git stash save "saving stash for deploying!!!"
2531
# deploy
2632
for p in ${TARGET_PROJECTS}; do __rp_deploy_project ${RP_BASE_DIR}/${p}; done
2733
# revert local changes: git revert --hard HEAD; git stash pop
28-
local current=`pwd`
34+
rp_revert_AppConstant
35+
# back
36+
cd ${current}
2937
}
3038

3139
rp_test(){
@@ -45,11 +53,12 @@ rp_test(){
4553
# replugin-sample-extra/fresco/FrescoPlugin/app
4654
replugin-sample-extra/fresco/FrescoPlugin
4755
)
48-
local log=${RP_BASE_DIR}/build/rp_test.log && [[ -f $log ]] && rm -f $log
56+
local log=${RP_BASE_DIR}/build/rp_test.log && [[ -f $log ]] && rm -f $log && touch $log
4957
local current=`pwd`
5058
for p in ${projects}; do
51-
echo -e ">>> BUILDING ${p}"
52-
p=${RP_BASE_DIR}/${p} && __gradle_exec -p ${p} clean asDebug 2>/dev/null >> ${log} && echo "SUCCEED";
59+
local p=${RP_BASE_DIR}/${p}
60+
echo -e ">>> BUILDING ${RP_BASE_DIR}/${p}"
61+
cd ${p} && { __gradle_exec -p ${p} clean asDebug }
5362
ls -l ${p}/app/build/outputs/apk
5463
done
5564
cd ${current}

rp-config.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
project.ext{
2-
RP_USER = 'qihoo360'
2+
RP_USER = 'replugin'
33
RP_REPO = 'replugin'
4+
RP_USERORG = 'qihoo360' // unset this if you an't belong to any orgnization
45
//
56
RP_SITE = 'https://github.com/Qihoo360/Replugin'
67
RP_DESC = 'RePlugin - A flexible, stable, easy-to-use Android Plug-in Framework'
@@ -10,5 +11,5 @@ project.ext{
1011
RP_LICENSES_NAME = 'Apache-2.0'
1112
//
1213
RP_GROUP = 'com.qihoo360.replugin'
13-
RP_VERSION = '2.3.2'
14+
RP_VERSION = '2.3.3'
1415
}

rp-publish.gradle

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def pbEmail = getPropertyExt('RP_EMAIL', pbUser)
5757

5858
def pbUserId = getPropertyExt('RP_USER_ID', pbUser)
5959

60+
def pbUserOrg = getPropertyExt('RP_USERORG', '')
61+
6062
def pbBintayKey = getPropertyExt('RP_BINTRAY_KEY', System.getenv('RP_BINTRAY_KEY'))
6163

6264
//
@@ -120,6 +122,29 @@ tasks.withType(JavaCompile) {
120122
options.encoding = "UTF-8"
121123
}
122124

125+
126+
// TODO: mavenLocal & jcenter conflicts
127+
128+
if ( pbBintayKey == null ){
129+
130+
System.err.println("\n>>>「publish.gradle」bintray access key is EMPTY, UPLOAD LOCAL ONLY!\n")
131+
132+
///// publish to LOCAL
133+
134+
apply plugin: 'maven'
135+
final def theGroup = group // group will be reset to 'upload'
136+
uploadArchives {
137+
repositories.mavenDeployer {
138+
repository(url: "file://${System.getenv('HOME')}/.m2/repository")
139+
pom.groupId = theGroup
140+
pom.version = version
141+
pom.artifactId = pbArtifactId
142+
}
143+
}
144+
145+
return
146+
}
147+
123148
/////// publish to BINTRAY
124149

125150
apply plugin: 'com.jfrog.bintray'
@@ -157,38 +182,19 @@ install {
157182
}
158183
}
159184

160-
// config bintray
161-
162-
if ( pbBintayKey == null ){
163-
System.err.println("bintray access key is EMPTY!!!")
164-
} else {
165-
bintray {
166-
user = pbUser
167-
key = pbBintayKey
168-
configurations = ['archives']
169-
pkg {
170-
desc = pbDesc
171-
repo = pbRepo
172-
name = pbArtifactId
173-
vcsUrl = pbGitUrl
174-
userOrg = 'qihoo360'
175-
websiteUrl = pbSiteUrl
176-
issueTrackerUrl = pbIssueUrl
177-
licenses = [pbLicense]
178-
publish = true
179-
}
180-
}
181-
}
182-
183-
/////// publish to LOCAL
184-
185-
// apply plugin: 'maven'
186-
//final def theGroup = group // group will be reset to 'upload'
187-
//uploadArchives {
188-
// repositories.mavenDeployer {
189-
// repository(url: "file://${System.getenv('HOME')}/.m2/repository")
190-
// pom.groupId = theGroup
191-
// pom.version = version
192-
// pom.artifactId = pbArtifactId
193-
// }
194-
//}
185+
bintray {
186+
user = pbUser
187+
key = pbBintayKey
188+
configurations = ['archives']
189+
pkg {
190+
desc = pbDesc
191+
repo = pbRepo
192+
name = pbArtifactId
193+
vcsUrl = pbGitUrl
194+
userOrg = pbUserOrg
195+
websiteUrl = pbSiteUrl
196+
issueTrackerUrl = pbIssueUrl
197+
licenses = [pbLicense]
198+
publish = true
199+
}
200+
}

0 commit comments

Comments
 (0)