Skip to content

Commit 7c9d771

Browse files
author
archurtan
committed
SDKDemo Release版的版本号使用tag
Change-Id: I92f8c18efa8190876b6d9925cd1433278115de0e
1 parent eda20cf commit 7c9d771

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.github/scripts/updateVideoSDKVersion.sh

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ version=${version#*v}
1111

1212
# replace videoSdkVersion with version
1313
sed -i 's#def videoSdkVersion.*#def videoSdkVersion = \"'$version'\"#g' config.gradle
14+
sed -i 's#def versionSDKDemoName.*#def versionSDKDemoName = \"'$version'\"#g' config.gradle
1415

1516
# remove '-SNAPSHOT'
1617
sed -i '60,$s#-SNAPSHOT##g' sdk/video-link-android/build.gradle

.github/workflows/tencent_official.yml

+3
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,6 @@ jobs:
153153
asset_content_type: application/zip
154154
env:
155155
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
156+
- name: Upload apk to PGY
157+
run: curl -F 'file=@sdkdemo/build/outputs/apk/release/sdkdemo-release.apk' -F '_api_key=${{ secrets.RELEASE_PGYER_API_KEY }}' https://www.pgyer.com/apiv2/app/upload
158+

config.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
def gitCommitShortHash = 'git log -1 --pretty=%h'.execute([], project.rootDir).text.trim()
22
def versionNamePrefix = "1.1.0"
33
def versionAppName = "local"
4+
def versionSDKDemoName = "local"
45
def sdkVersion = "1.4.1"
56
def videoSdkVersion = "1.0.0"
67

78
ext {
89
android = [
910
versionNameStr: versionNamePrefix,
1011
versionName: versionAppName,
12+
versionSDKDemoName: versionSDKDemoName,
1113
versionCode: 3,
1214
sdkDemoCommitId: 'xxx',
1315
sdkSnapshotVersion: sdkVersion,

sdkdemo/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ android {
3030
minSdkVersion 19
3131
targetSdkVersion 29
3232
versionCode 3
33-
versionName rootProject.ext.android.versionName
33+
versionName rootProject.ext.android.versionSDKDemoName
3434
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3535

3636
buildConfigField 'String', 'TencentIotLinkSDKDemoAppkey', "\"${getValueById('TencentIotLinkSDKDemoAppkey')}\""

0 commit comments

Comments
 (0)