From 6f83668167348abd201764eb637bf529520f2e07 Mon Sep 17 00:00:00 2001 From: lcy <2503978335@qq.com> Date: Sun, 25 Jun 2023 09:43:02 +0800 Subject: [PATCH] feat:原生ios端引入先声SDK --- ios/Podfile | 7 +++++-- ios/Runner.xcodeproj/project.pbxproj | 18 ++++++++++++++++++ ios/Runner/Info.plist | 2 ++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ios/Podfile b/ios/Podfile index fdcc671..c573c29 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,5 +1,7 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '11.0' +source 'https://github.com/CocoaPods/Specs.git' +source 'https://pt.singsound.com:10081/singsound-public/SingSoundSDKCocoaPodRepo.git' + +platform :ios, '11.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' @@ -30,6 +32,7 @@ flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! + pod 'SingSoundSDK' flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) target 'RunnerTests' do diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 2174872..2b01cd7 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -198,6 +198,7 @@ 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 7C15D12B84189A796384E28E /* [CP] Embed Pods Frameworks */, + 62E27B63BBBA522854453C53 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -306,6 +307,23 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; + 62E27B63BBBA522854453C53 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; 7C15D12B84189A796384E28E /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 6cf0f9e..272814f 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -31,6 +31,8 @@ NSAllowsArbitraryLoads + NSMicrophoneUsageDescription + 需要获取录音完成后续功能 UIApplicationSupportsIndirectInputEvents UILaunchStoryboardName -- libgit2 0.22.2