Commit 6b8d247c by sikang

Merge branch 'master' of http://47.100.14.92:8929/sikang/lib_base

parents 7686f8fe 372394d0
...@@ -129,8 +129,9 @@ dependencies { ...@@ -129,8 +129,9 @@ dependencies {
//魔蝎 //魔蝎
// api 'com.moxie:moxie-client-inter:1.1.6.2' // api 'com.moxie:moxie-client-inter:1.1.6.2'
//facebook SDK //SDK-FACEBOOK-START
// api 'com.facebook.android:facebook-android-sdk:[4,5)' api 'com.facebook.android:facebook-android-sdk:[4,5)'
//SDK-FACEBOOK-END
//AppsFlyer //AppsFlyer
// api 'com.appsflyer:af-android-sdk:4+@aar' // api 'com.appsflyer:af-android-sdk:4+@aar'
......
...@@ -2,10 +2,16 @@ ...@@ -2,10 +2,16 @@
developer="sikang" developer="sikang"
cus_crop_id="${corp_id_majia}"
cus_crop_id=$1
if((${#cus_crop_id}==0))
then
cus_crop_id="${corp_id_majia}"
fi
if((${#cus_crop_id}==0)) if((${#cus_crop_id}==0))
then then
cus_crop_id=="${corp_id}" cus_crop_id="${corp_id}"
fi fi
echo "1、commit + push + push_tag + 自动发包登记 (需要配置分支)" echo "1、commit + push + push_tag + 自动发包登记 (需要配置分支)"
...@@ -27,7 +33,7 @@ then ...@@ -27,7 +33,7 @@ then
git add . git add .
git commit -m "${app_id} ${version_name}" git commit -m "${app_id} ${version_name}"
git push origin ${git_branch} git push origin ${git_branch}
tagName=t${cus_crop_id}-${app_id} tagName=t${corp_id}-${app_id}
git tag -d ${tagName} git tag -d ${tagName}
git push origin --delete tag ${tagName} git push origin --delete tag ${tagName}
git tag -a ${tagName} -m ${tagName} git tag -a ${tagName} -m ${tagName}
......
#!/usr/bin/env bash
echo "1、GP包(无权限)" echo "1、GP包(无权限)"
echo "2、渠道包(有权限)" echo "2、渠道包(有权限)"
echo "3、马甲包 GP" echo "3、马甲包 1"
echo "4、马甲包 渠道" echo "4、马甲包 2"
echo "5、马甲包 3"
echo -n "选择打包方式:" echo -n "选择打包方式:"
read action read action
. ../../gradle.properties cd ../../
. gradle.properties
rm -rf resGuardApks
gradlew clean
if((${action}=='1')) || ((${action}=='3')) init(){
then cd lib_base/script
#同盾插拔 #同盾插拔
if((${#tongdun_parent_key}>5));then if((${#tongdun_parent_key}>5));then
echo "open" echo "open"
./sdk_manager.py "open" "TD" ./sdk_manager.py "open" "TD"
...@@ -26,20 +33,19 @@ then ...@@ -26,20 +33,19 @@ then
./rename_api.py ./rename_api.py
cd .. cd ..
fi fi
fi
cd garble cd garble
#四大组件混淆 #四大组件混淆
./rename_project.sh ./rename_project.sh
#代码结构混淆 #代码结构混淆
./insert.py ./insert.py
cd ../../../
}
cd ../../../
rm -rf resGuardApks
gradlew clean
if((${action}=='1')) if((${action}=='1'))
then then
init
gradlew resguardAppProductGoogleplayRelease gradlew resguardAppProductGoogleplayRelease
elif((${action}=='2')) elif((${action}=='2'))
...@@ -48,15 +54,28 @@ then ...@@ -48,15 +54,28 @@ then
elif((${action}=='3')) elif((${action}=='3'))
then then
mv app/src/main/res/drawable-xxhdpi/logo_majia.png app/src/main/res/drawable-xxhdpi/logo.png mv app/src/main/res/drawable-xxhdpi/logo_majia1.png app/src/main/res/drawable-xxhdpi/logo.png
sed -i "" "s#^app_name=.*#app_name=${majia_name}#g" gradle.properties mv script/api_mapping_majia1 script/api_mapping
sed -i "" "s#^app_name=.*#app_name=${majia_name1}#g" gradle.properties
init
gradlew resguardAppProductGoogleplayRelease gradlew resguardAppProductGoogleplayRelease
elif((${action}=='4')) elif((${action}=='4'))
then then
mv app/src/main/res/drawable-xxhdpi/logo_majia.png app/src/main/res/drawable-xxhdpi/logo.png mv app/src/main/res/drawable-xxhdpi/logo_majia2.png app/src/main/res/drawable-xxhdpi/logo.png
sed -i "" "s#^app_name=.*#app_name=${majia_name}#g" gradle.properties sed -i "" "s#^app_name=.*#app_name=${majia_name2}#g" gradle.properties
gradlew resguardAppProductWebsiteRelease mv script/api_mapping_majia2 script/api_mapping
init
gradlew resguardAppProductGoogleplayRelease
elif((${action}=='5'))
then
mv app/src/main/res/drawable-xxhdpi/logo_majia3.png app/src/main/res/drawable-xxhdpi/logo.png
sed -i "" "s#^app_name=.*#app_name=${majia_name3}#g" gradle.properties
mv script/api_mapping_majia3 script/api_mapping
init
gradlew resguardAppProductGoogleplayRelease
else else
echo "未知的打包方式" echo "未知的打包方式"
......
...@@ -21,7 +21,6 @@ echo "18、加固" ...@@ -21,7 +21,6 @@ echo "18、加固"
echo "19、混淆api" echo "19、混淆api"
echo "20、更新GP状态" echo "20、更新GP状态"
echo -n "请输入指令编号:" echo -n "请输入指令编号:"
read commod read commod
...@@ -150,9 +149,14 @@ then ...@@ -150,9 +149,14 @@ then
elif (($commod == '20')) elif (($commod == '20'))
then then
. ../../gradle.properties
chmod a+x refresh_gponline.sh chmod a+x refresh_gponline.sh
if((${#1} > 0))
then
./refresh_gponline.sh "${corp_id}${1}"
else
./refresh_gponline.sh ./refresh_gponline.sh
fi
else else
echo "找不到编号" echo "找不到编号"
fi fi
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: UTF-8 -*- # -*- coding: UTF-8 -*-
import os import os
......
...@@ -70,8 +70,6 @@ public class LibConfig { ...@@ -70,8 +70,6 @@ public class LibConfig {
public static String TONGDUN_PARENT_KEY; public static String TONGDUN_PARENT_KEY;
public static String TONGDUN_DEVICE_PARENT_CODE; public static String TONGDUN_DEVICE_PARENT_CODE;
public static String TONGDUN_APP_NAME; public static String TONGDUN_APP_NAME;
public static String TD_TEST_SERVER = "https://idfptest.tongdun.net";
public static String TD_PRODUCT_SERVER = "https://idfp.tongdun.net";
public static String APPSFLYER_DEV_KEY; public static String APPSFLYER_DEV_KEY;
public static String XH_CHANNEL_NAME; public static String XH_CHANNEL_NAME;
public static boolean IS_COLLECT_MODE; public static boolean IS_COLLECT_MODE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment