Skip to content

Commit 365706f

Browse files
committed
test tools release script for android
1 parent 945280d commit 365706f

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

android/fuseTestTools/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.3

android/fuseTestTools/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ publishing {
5555
create<MavenPublication>("release") {
5656
groupId = "com.breautek.fuse"
5757
artifactId = "test-tools"
58-
version = "0.0.3"
58+
version = file("../VERSION").readText().trim()
5959

6060
afterEvaluate {
6161
from(components["release"])
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2023-2025 Breautek
2+
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
source build-tools/DirectoryTools.sh
16+
17+
tagMessage="Fuse Android Test Tools Release: $version"
18+
19+
function onPreRelease {
20+
spushd android/fuseTestTools
21+
echo $version > VERSION
22+
git add VERSION
23+
spopd
24+
}
25+
26+
function publishRelease {
27+
spushd android
28+
./gradlew :fuseTestTools:publishReleasePublicationToMavenRepository
29+
spopd
30+
}
31+
32+
files=(
33+
"android/fuseTestTools/build/outputs/aar/fuseTestTools-debug.aar"
34+
"android/fuseTestTools/build/outputs/aar/fuseTestTools-release.aar"
35+
)

makeRelease.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ case "$module" in
7979
$MODULE_CORE)
8080
source compiler/$platform/releaseCore.sh
8181
;;
82-
# $MODULE_TEST_TOOLS)
83-
# source compiler/$platform/releaseTestTools.sh
84-
# ;;
82+
$MODULE_TEST_TOOLS)
83+
source compiler/$platform/releaseTestTools.sh
84+
;;
8585
$MODULE_FILESYSTEM)
8686
source compiler/$platform/releaseFilesystem.sh
8787
;;

0 commit comments

Comments
 (0)