FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Agroa-API-Examples/Android/APIExample/ci.env.py at master · Fishguys/Agroa-API-Examples · GitHub
Fishguys
/
Agroa-API-Examples
Public
forked from
AgoraIO/API-Examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Agroa-API-Examples
/
Android
/
APIExample
/
ci.env.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (18 loc) · 492 Bytes
Breadcrumbs
Agroa-API-Examples
/
Android
/
APIExample
/
ci.env.py
Copy path
File metadata and controls
22 lines (18 loc) · 492 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import
re
import
os
def
main
():
appId
=
""
if
"AGORA_APP_ID"
in
os
.
environ
:
appId
=
os
.
environ
[
"AGORA_APP_ID"
]
token
=
""
f
=
open
(
"./app/src/main/res/values/string_configs.xml"
,
'r+'
)
content
=
f
.
read
()
contentNew
=
re
.
sub
(
r'YOUR APP ID'
,
appId
,
content
)
contentNew
=
re
.
sub
(
r'YOUR ACCESS TOKEN'
,
token
,
contentNew
)
f
.
seek
(
0
)
f
.
write
(
contentNew
)
f
.
truncate
()
if
__name__
==
"__main__"
:
main
()
Back
|
FazBrowse Home
|
New Git URL