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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
script/release_builder.sh
+17
-1
src/main/java/tech/starwin/LibConfig.java
+0
-2
No files found.
script/release_builder.sh
View file @
e590cae5
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 ../../../../
...
...
src/main/java/tech/starwin/LibConfig.java
View file @
e590cae5
...
@@ -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
);
...
...
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