Commit 6f83668167348abd201764eb637bf529520f2e07
1 parent
2b55d503
feat:原生ios端引入先声SDK
Showing
3 changed files
with
25 additions
and
2 deletions
ios/Podfile
1 | -# Uncomment this line to define a global platform for your project | ||
2 | -# platform :ios, '11.0' | 1 | +source 'https://github.com/CocoaPods/Specs.git' |
2 | +source 'https://pt.singsound.com:10081/singsound-public/SingSoundSDKCocoaPodRepo.git' | ||
3 | + | ||
4 | +platform :ios, '11.0' | ||
3 | 5 | ||
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. | 6 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. |
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' | 7 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' |
@@ -30,6 +32,7 @@ flutter_ios_podfile_setup | @@ -30,6 +32,7 @@ flutter_ios_podfile_setup | ||
30 | target 'Runner' do | 32 | target 'Runner' do |
31 | use_frameworks! | 33 | use_frameworks! |
32 | use_modular_headers! | 34 | use_modular_headers! |
35 | + pod 'SingSoundSDK' | ||
33 | 36 | ||
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) | 37 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) |
35 | target 'RunnerTests' do | 38 | target 'RunnerTests' do |
ios/Runner.xcodeproj/project.pbxproj
@@ -198,6 +198,7 @@ | @@ -198,6 +198,7 @@ | ||
198 | 9705A1C41CF9048500538489 /* Embed Frameworks */, | 198 | 9705A1C41CF9048500538489 /* Embed Frameworks */, |
199 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, | 199 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, |
200 | 7C15D12B84189A796384E28E /* [CP] Embed Pods Frameworks */, | 200 | 7C15D12B84189A796384E28E /* [CP] Embed Pods Frameworks */, |
201 | + 62E27B63BBBA522854453C53 /* [CP] Copy Pods Resources */, | ||
201 | ); | 202 | ); |
202 | buildRules = ( | 203 | buildRules = ( |
203 | ); | 204 | ); |
@@ -306,6 +307,23 @@ | @@ -306,6 +307,23 @@ | ||
306 | shellPath = /bin/sh; | 307 | shellPath = /bin/sh; |
307 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; | 308 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; |
308 | }; | 309 | }; |
310 | + 62E27B63BBBA522854453C53 /* [CP] Copy Pods Resources */ = { | ||
311 | + isa = PBXShellScriptBuildPhase; | ||
312 | + buildActionMask = 2147483647; | ||
313 | + files = ( | ||
314 | + ); | ||
315 | + inputFileListPaths = ( | ||
316 | + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", | ||
317 | + ); | ||
318 | + name = "[CP] Copy Pods Resources"; | ||
319 | + outputFileListPaths = ( | ||
320 | + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", | ||
321 | + ); | ||
322 | + runOnlyForDeploymentPostprocessing = 0; | ||
323 | + shellPath = /bin/sh; | ||
324 | + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; | ||
325 | + showEnvVarsInLog = 0; | ||
326 | + }; | ||
309 | 7C15D12B84189A796384E28E /* [CP] Embed Pods Frameworks */ = { | 327 | 7C15D12B84189A796384E28E /* [CP] Embed Pods Frameworks */ = { |
310 | isa = PBXShellScriptBuildPhase; | 328 | isa = PBXShellScriptBuildPhase; |
311 | buildActionMask = 2147483647; | 329 | buildActionMask = 2147483647; |
ios/Runner/Info.plist
@@ -31,6 +31,8 @@ | @@ -31,6 +31,8 @@ | ||
31 | <key>NSAllowsArbitraryLoads</key> | 31 | <key>NSAllowsArbitraryLoads</key> |
32 | <true/> | 32 | <true/> |
33 | </dict> | 33 | </dict> |
34 | + <key>NSMicrophoneUsageDescription</key> | ||
35 | + <string>需要获取录音完成后续功能</string> | ||
34 | <key>UIApplicationSupportsIndirectInputEvents</key> | 36 | <key>UIApplicationSupportsIndirectInputEvents</key> |
35 | <true/> | 37 | <true/> |
36 | <key>UILaunchStoryboardName</key> | 38 | <key>UILaunchStoryboardName</key> |