APP 打包配置

APP 打包配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export ANDROID_SDK_ROOT=/opt/android-sdk
find . -name "*.apk" -type f -delete
ls -l ./

buildAll() {
for APP in "${APPS[@]}"
do
buildTarget $APP
done
}

buildTarget() {
if [ -d "$1" ]; then
cd $1
git pull
else
git clone git@gitlab.test.com:packages/app/$1.git
cd $1
fi

git branch -a

# switch branch
cbranch=$(git symbolic-ref --short HEAD)
if [ "$cbranch" != "develop" ]; then
git checkout -b develop remotes/origin/develop
fi

# clean if need
if [ "$BUILD_CLEAN" = "true" ]
then
gradle clean
fi

gradle assemble$BUILDTYPE --no-daemon --stacktrace -PCustomeData=$data

cd ..
}

APPS=('Settings' 'BTPhone')

if [ $MODULE = 'ALL' ]
then
buildAll
else
buildTarget $MODULE
fi

APP 打包配置
http://example.com/2024/07/29/APP打包配置/
作者
Shuiyes
发布于
2024年7月29日
许可协议