Browse Source

优化

dev-2.0
YakumoChen 1 month ago
parent
commit
7de3fe2dcd
3 changed files with 24 additions and 18 deletions
  1. 10
      android/gradle.properties
  2. 30
      lib/rtc/rtc_manager.dart
  3. 2
      lib/widget/user_agreement_dialog.dart

10
android/gradle.properties

@ -2,8 +2,8 @@ org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
#org.gradle.java.home=D:/jdk-17.0.11
#systemProp.http.proxyHost=127.0.0.1
#systemProp.http.proxyPort=10810
#systemProp.https.proxyHost=127.0.0.1
#systemProp.https.proxyPort=10810
org.gradle.java.home=D:/jdk-17.0.11
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=10810
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=10810

30
lib/rtc/rtc_manager.dart

@ -782,18 +782,24 @@ class RTCManager {
await _engine?.muteLocalAudioStream(false); await _engine?.muteLocalAudioStream(false);
await _engine?.muteLocalVideoStream(false); await _engine?.muteLocalVideoStream(false);
await _engine?.enableContentInspect(
enabled: true,
config: ContentInspectConfig(
modules: [
ContentInspectModule(
type: ContentInspectType.contentInspectSupervision,
interval: 15
)
],
moduleCount: 1
)
);
try{
await _engine?.enableContentInspect(
enabled: true,
config: ContentInspectConfig(
modules: [
ContentInspectModule(
type: ContentInspectType.contentInspectSupervision,
interval: 15
)
],
moduleCount: 1
)
);
print("截图开启成功");
} catch (e){
print("截图开启失败");
print(e);
}
await RTMManager.instance.publishChannelMessage( await RTMManager.instance.publishChannelMessage(
channelName: _currentChannelId ?? '', channelName: _currentChannelId ?? '',
message: json.encode({ message: json.encode({

2
lib/widget/user_agreement_dialog.dart

@ -126,7 +126,7 @@ class _UserAgreementDialogState extends State<UserAgreementDialog> {
), ),
children: [ children: [
const TextSpan(text: '欢迎使用趣恋恋。\n\n'), const TextSpan(text: '欢迎使用趣恋恋。\n\n'),
const TextSpan(text: '在使用本应用前,请你仔细阅读并充分理解\n'),
const TextSpan(text: '在使用本应用前,请你仔细阅读并充分理解'),
TextSpan( TextSpan(
text: '《用户协议》', text: '《用户协议》',
style: TextStyle( style: TextStyle(

Loading…
Cancel
Save