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
103f058c
Commit
103f058c
authored
Apr 21, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
3cb6e373
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
+20
-1
script/code/move_buildconfig.py
+20
-1
No files found.
script/code/move_buildconfig.py
View file @
103f058c
...
...
@@ -81,7 +81,7 @@ def move_config(path):
addToProperties
(
"account_kit_client_token="
+
getResValue
(
line
))
line
=
getStringRes
(
"ACCOUNT_KIT_CLIENT_TOKEN"
,
"
\"
${account_kit_client_token}
\"
"
)
#zendesk
elif
needChange
(
"ZENDESK_URL"
,
line
):
addToProperties
(
"
\n
#zendesk 客服"
)
addToProperties
(
"zendesk_url=
\"
"
+
getResValue
(
line
)
+
"
\"
"
)
...
...
@@ -95,6 +95,24 @@ def move_config(path):
addToProperties
(
"zendesk_client_id=
\"
"
+
getResValue
(
line
)
+
"
\"
"
)
line
=
getStringFiled
(
"ZENDESK_CLIENT_ID"
,
"
\"
${zendesk_client_id}
\"
"
)
#同盾
elif
needChange
(
"TONGDUN_PARENT_CODE"
,
line
):
addToProperties
(
"
\n
#同盾"
)
addToProperties
(
"tongdun_parent_code=
\"
"
+
getResValue
(
line
)
+
"
\"
"
)
line
=
getStringFiled
(
"TONGDUN_PARENT_CODE"
,
"
\"
${tongdun_parent_code}
\"
"
)
elif
needChange
(
"TONGDUN_PARENT_KEY"
,
line
):
addToProperties
(
"tongdun_parent_key=
\"
"
+
getResValue
(
line
)
+
"
\"
"
)
line
=
getStringFiled
(
"TONGDUN_PARENT_KEY"
,
"
\"
${tongdun_parent_key}
\"
"
)
elif
needChange
(
"TONGDUN_APP_NAME"
,
line
):
addToProperties
(
"tongdun_app_name=
\"
"
+
getResValue
(
line
)
+
"
\"
"
)
line
=
getStringFiled
(
"TONGDUN_APP_NAME"
,
"
\"
${tongdun_app_name}
\"
"
)
elif
needChange
(
"octopus_open_whatsapp"
,
line
):
line
=
getStringRes
(
"octopus_open_whatsapp"
,
"
\"
${tongdun_app_name} Open Whatsapp
\"
"
)
#appsflyer
elif
needChange
(
"APPSFLYER_DEV_KEY"
,
line
):
addToProperties
(
"
\n
#Appsflyer"
)
addToProperties
(
"appsflyer_key=
\"
"
+
getResValue
(
line
)
+
"
\"
"
)
...
...
@@ -105,6 +123,7 @@ def move_config(path):
addToProperties
(
"hot_line=
\"
"
+
getResValue
(
line
)
+
"
\"
"
)
line
=
getStringFiled
(
"HOTLINE"
,
"
\"
${hot_line}
\"
"
)
#server
elif
needChange
(
"API_BASE_URL"
,
line
):
addToProperties
(
"
\n
#server"
)
addToProperties
(
"base_url=
\"
"
+
getResValue
(
line
)
+
"
\"
"
)
...
...
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