Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
e590cae5
Commit
e590cae5
authored
Mar 25, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
0b7dba64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
script/release_builder.sh
+17
-1
src/main/java/tech/starwin/LibConfig.java
+3
-5
No files found.
script/release_builder.sh
View file @
e590cae5
echo
"1、GP包(无权限)"
echo
"2、渠道包(有权限)"
echo
-n
"选择打包方式:"
read
action
cd
../../
rm
-rf
resGuardApks
gradlew clean
gradlew resguardAppProductGoogleplayRelease
if
((
${
action
}
==
'1'
))
then
gradlew resguardAppProductGoogleplayRelease
elif
((
${
action
}
==
'2'
))
then
gradlew resguardAppProductWebsiteRelease
else
echo
"未知的打包方式"
fi
#cd ../base/src/base/script
#./rename_project.sh
#cd ../../../../
...
...
src/main/java/tech/starwin/LibConfig.java
View file @
e590cae5
...
...
@@ -97,11 +97,9 @@ public class LibConfig {
public
static
void
initLib
(
Application
application
)
{
if
(
application
!=
null
)
{
CONTEXT
=
application
;
if
(!
TextUtils
.
isEmpty
(
XH_CHANNEL_NAME
))
{
String
channel
=
WalleChannelReader
.
getChannel
(
application
.
getApplicationContext
());
if
(!
TextUtils
.
isEmpty
(
channel
))
{
XH_CHANNEL_NAME
=
channel
;
}
String
channel
=
WalleChannelReader
.
getChannel
(
application
.
getApplicationContext
());
if
(!
TextUtils
.
isEmpty
(
channel
))
{
XH_CHANNEL_NAME
=
channel
;
}
//APP名字
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment