From 9eab402551fde8bcb1310453893b573ad9787400 Mon Sep 17 00:00:00 2001 From: Songzex <2402265378@qq.com> Date: Tue, 2 Jun 2026 08:31:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=97=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/src/main/AndroidManifest.xml | 59 +++++------------------- android/build.gradle.kts | 5 ++ android/gradle.properties | 16 ++++++- ios/Podfile | 2 +- ios/Runner/Info.plist | 16 +++++++ 5 files changed, 49 insertions(+), 49 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 69a1d9d2..dddd736c 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,68 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - + android:name="io.flutter.embedding.android.NormalTheme" + android:resource="@style/NormalTheme"/> - - - + android:value="2"/> - - - - - - - diff --git a/android/build.gradle.kts b/android/build.gradle.kts index dbee657b..0236d04c 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -2,6 +2,11 @@ allprojects { repositories { google() mavenCentral() + // 火山引擎 RTC 仓库已禁用 + // maven { + // url = uri("https://artifact.bytedance.com/repository/Volcengine/") + // allowInsecureProtocol = true + // } } } diff --git a/android/gradle.properties b/android/gradle.properties index fbee1d8c..224d0d8c 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,2 +1,16 @@ -org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dhttps.protocols=TLSv1.2,TLSv1.1 -Djava.net.preferIPv4Stack=true android.useAndroidX=true + +# \u4F7F\u7528\u963F\u91CC\u4E91\u955C\u50CF\u52A0\u901F +android.enableJetifier=true + +# \u7981\u7528\u4EE3\u7406\uFF08\u8986\u76D6\u5168\u5C40\u914D\u7F6E\uFF09 +systemProp.http.proxyHost= +systemProp.http.proxyPort= +systemProp.https.proxyHost= +systemProp.https.proxyPort= + +# \u653E\u884CSSL\u8BC1\u4E66\u4E0E\u534F\u8BAE\uFF0C\u89E3\u51B3TLS\u63E1\u624B\u5F02\u5E38 +systemProp.http.ssl.insecure=true +systemProp.http.ssl.allowall=true +systemProp.http.ssl.ignore.validity.dates=true \ No newline at end of file diff --git a/ios/Podfile b/ios/Podfile index 620e46eb..1eefd3d3 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,6 +1,6 @@ # Uncomment this line to define a global platform for your project # platform :ios, '13.0' - +source 'https://github.com/volcengine/volcengine-specs.git' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 5bd423f2..9da7cc29 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -77,5 +77,21 @@ NSMicrophoneUsageDescription 录像时需要使用麦克风录制声音 + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + + +NSCameraUsageDescription +需要使用相机 +NSMicrophoneUsageDescription +需要使用麦克风 +NSAppTransportSecurity + + NSAllowsArbitraryLoads +