()
| 4 | import os |
| 5 | |
| 6 | def main(): |
| 7 | appId = "" |
| 8 | if "AGORA_APP_ID" in os.environ: |
| 9 | appId = os.environ["AGORA_APP_ID"] |
| 10 | token = "" |
| 11 | |
| 12 | f = open("./app/src/main/res/values/string_configs.xml", 'r+') |
| 13 | content = f.read() |
| 14 | contentNew = re.sub(r'YOUR APP ID', appId, content) |
| 15 | contentNew = re.sub(r'YOUR ACCESS TOKEN', token, contentNew) |
| 16 | f.seek(0) |
| 17 | f.write(contentNew) |
| 18 | f.truncate() |
| 19 | |
| 20 | |
| 21 | if __name__ == "__main__": |