Skip to content

Commit 0bda283

Browse files
committed
domain replacement
1 parent c71f8c5 commit 0bda283

File tree

6 files changed

+26
-14
lines changed

6 files changed

+26
-14
lines changed

README-zh.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div align="center">
1212
<h1>Agora Flat Android</h1>
13-
<p>Flat Android 是 <a href="https://www.flat.shengwang.cn/">Agora Flat</a> 开源教室的 Android 客户端</p>
13+
<p>Flat Android 是 <a href="https://www.flat.apprtc.cn/">Agora Flat</a> 开源教室的 Android 客户端</p>
1414
<img src="art/flat-showcase-zh.jpg">
1515
</div>
1616

@@ -83,9 +83,9 @@ Flat 试图使用最新 Android 开发库和工具开发应用程序。主要使
8383
你可以将 Flat
8484
用于商业用途但请注意我们不接受商业化需求定制与部署支持以及其它客户服务。如有相关需求请前往[灵动课堂](https://www.agora.io/cn/agora-flexible-classroom)
8585

86-
[flat-homepage]: https://www.flat.shengwang.cn/
86+
[flat-homepage]: https://www.flat.apprtc.cn/
8787

88-
[flat-web]: https://web.flat.shengwang.cn/
88+
[flat-web]: https://web.flat.apprtc.cn/
8989

9090
[flat-server]: https://github.com/netless-io/flat-server
9191

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div align="center">
1212
<h1>Agora Flat Android</h1>
13-
<p>Project Flat Android is the Android client of <a href="https://www.flat.shengwang.cn/en/">Agora Flat</a> open source classroom.</p>
13+
<p>Project Flat Android is the Android client of <a href="https://www.flat.apprtc.cn/en/">Agora Flat</a> open source classroom.</p>
1414
<img src="art/flat-showcase.png">
1515
<p><a href="./README-zh.md">中文</a></p>
1616
</div>
@@ -88,9 +88,9 @@ usage. Please head
8888
to [agora-flexible-classroom](https://www.agora.io/en/products/flexible-classroom) for such
8989
requirements.
9090

91-
[flat-homepage]: https://www.flat.shengwang.cn/en/#download
91+
[flat-homepage]: https://www.flat.apprtc.cn/en/#download
9292

93-
[flat-web]: https://web.flat.shengwang.cn/
93+
[flat-web]: https://web.flat.apprtc.cn/
9494

9595
[flat-server]: https://github.com/netless-io/flat-server
9696

app/src/main/AndroidManifest.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
android:host="flat-web-dev.whiteboard.agora.io"
114114
android:scheme="https" />
115115
</intent-filter>
116+
116117
<intent-filter>
117118
<action android:name="android.intent.action.VIEW" />
118119

@@ -124,6 +125,17 @@
124125
android:scheme="https" />
125126
</intent-filter>
126127

128+
<intent-filter>
129+
<action android:name="android.intent.action.VIEW" />
130+
131+
<category android:name="android.intent.category.DEFAULT" />
132+
<category android:name="android.intent.category.BROWSABLE" />
133+
134+
<data
135+
android:host="web.flat.apprtc.cn"
136+
android:scheme="https" />
137+
</intent-filter>
138+
127139
<intent-filter>
128140
<action android:name="android.intent.action.VIEW" />
129141

app/src/main/java/io/agora/flat/Constants.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ class Constants {
88
}
99

1010
object URL {
11-
const val Service = "https://www.flat.shengwang.cn/service.html"
11+
const val Service = "https://www.flat.apprtc.cn/service.html"
1212

13-
const val Privacy = "https://www.flat.shengwang.cn/privacy.html"
13+
const val Privacy = "https://www.flat.apprtc.cn/privacy.html"
1414

1515
const val Registration = "https://beian.miit.gov.cn"
1616

17-
const val Libraries = "https://www.flat.shengwang.cn/privacy-extra/libraries.html"
17+
const val Libraries = "https://www.flat.apprtc.cn/privacy-extra/libraries.html"
1818
}
1919

2020
object IntentKey {

app/src/main/java/io/agora/flat/data/AppEnv.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class AppEnv @Inject constructor(@ApplicationContext context: Context) {
2929

3030
val ALL_BASE_URLS = listOf(
3131
"https://flat-web.whiteboard.agora.io",
32-
"https://web.flat.shengwang.cn",
32+
"https://web.flat.apprtc.cn",
3333
"https://web.flat.agora.io",
3434
)
3535
}
@@ -63,9 +63,9 @@ class AppEnv @Inject constructor(@ApplicationContext context: Context) {
6363

6464
envMap[ENV_CN_PROD] = EnvItem(
6565
agoraAppId = "931b86d6781e49a2a255db4ce6e8e804",
66-
serviceUrl = "https://api.flat.shengwang.cn",
66+
serviceUrl = "https://api.flat.apprtc.cn",
6767
githubClientId = "71a29285a437998bdfe0",
68-
baseInviteUrl = "https://web.flat.shengwang.cn",
68+
baseInviteUrl = "https://web.flat.apprtc.cn",
6969
versionCheckUrl = "https://flat-storage.oss-cn-hangzhou.aliyuncs.com/versions/latest/stable/android/checkVersion.json",
7070
logConfig = LogConfig(
7171
ak = BuildConfig.ALIYUN_LOG_PROD_AK,

app/src/main/java/io/agora/flat/ui/activity/home/MainViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ class MainViewModel @Inject constructor(
131131
val startsWithBaseUrl = AppEnv.ALL_BASE_URLS.any { baseUrl -> uri.toString().startsWith(baseUrl) }
132132
if (startsWithBaseUrl) {
133133
val pathSegments = uri.pathSegments
134-
// https://web.flat.shengwang.cn/join/SmallClass/c06ab0b1-05ef-403d-9db0-69cc85ee23bf/
134+
// https://web.flat.apprtc.cn/join/SmallClass/c06ab0b1-05ef-403d-9db0-69cc85ee23bf/
135135
if (pathSegments.size == 2 && pathSegments[0] == "join") {
136136
val roomUUID = pathSegments[1]
137137
joinRoom(roomUUID, openVideo = false, openAudio = false)
138138
}
139-
// https://web.flat.shengwang.cn/replay/SmallClass/c06ab0b1-05ef-403d-9db0-69cc85ee23bf/855c8d51-b5a5-439f-a74b-2eb1a0284036/
139+
// https://web.flat.apprtc.cn/replay/SmallClass/c06ab0b1-05ef-403d-9db0-69cc85ee23bf/855c8d51-b5a5-439f-a74b-2eb1a0284036/
140140
if (pathSegments.size == 4 && pathSegments[0] == "replay") {
141141
val roomUUID = pathSegments[2]
142142
replayInfo.value = roomUUID

0 commit comments

Comments
 (0)