Commit e590cae5 by sikang

bug fix

parent 0b7dba64
echo "1、GP包(无权限)"
echo "2、渠道包(有权限)"
echo -n "选择打包方式:"
read action
cd ../../ cd ../../
rm -rf resGuardApks rm -rf resGuardApks
gradlew clean gradlew clean
gradlew resguardAppProductGoogleplayRelease
if((${action}=='1'))
then
gradlew resguardAppProductGoogleplayRelease
elif((${action}=='2'))
then
gradlew resguardAppProductWebsiteRelease
else
echo "未知的打包方式"
fi
#cd ../base/src/base/script #cd ../base/src/base/script
#./rename_project.sh #./rename_project.sh
#cd ../../../../ #cd ../../../../
......
...@@ -97,12 +97,10 @@ public class LibConfig { ...@@ -97,12 +97,10 @@ public class LibConfig {
public static void initLib(Application application) { public static void initLib(Application application) {
if (application != null) { if (application != null) {
CONTEXT = application; CONTEXT = application;
if (!TextUtils.isEmpty(XH_CHANNEL_NAME)) {
String channel = WalleChannelReader.getChannel(application.getApplicationContext()); String channel = WalleChannelReader.getChannel(application.getApplicationContext());
if (!TextUtils.isEmpty(channel)) { if (!TextUtils.isEmpty(channel)) {
XH_CHANNEL_NAME = channel; XH_CHANNEL_NAME = channel;
} }
}
//APP名字 //APP名字
LibConfig.APP_NAME = AppInfoUtils.getAppName(CONTEXT); LibConfig.APP_NAME = AppInfoUtils.getAppName(CONTEXT);
......
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