Fangjun Kuang
Committed by GitHub

Fix flutter ios (#1563)

  1 +## 1.10.32
  2 +
  3 +* Support cross-compiling for HarmonyOS (#1553)
  4 +* HarmonyOS support for VAD. (#1561)
  5 +* Fix publishing flutter iOS app to appstore.
  6 +
1 ## 1.10.31 7 ## 1.10.31
2 8
3 * Publish pre-built wheels for Python 3.13 (#1485) 9 * Publish pre-built wheels for Python 3.13 (#1485)
@@ -10,7 +10,7 @@ project(sherpa-onnx) @@ -10,7 +10,7 @@ project(sherpa-onnx)
10 # Remember to update 10 # Remember to update
11 # ./CHANGELOG.md 11 # ./CHANGELOG.md
12 # ./new-release.sh 12 # ./new-release.sh
13 -set(SHERPA_ONNX_VERSION "1.10.31") 13 +set(SHERPA_ONNX_VERSION "1.10.32")
14 14
15 # Disable warning about 15 # Disable warning about
16 # 16 #
@@ -242,7 +242,7 @@ for d in ios-arm64_x86_64-simulator ios-arm64; do @@ -242,7 +242,7 @@ for d in ios-arm64_x86_64-simulator ios-arm64; do
242 <key>CFBundlePackageType</key> 242 <key>CFBundlePackageType</key>
243 <string>FMWK</string> 243 <string>FMWK</string>
244 <key>CFBundleShortVersionString</key> 244 <key>CFBundleShortVersionString</key>
245 - <string>1.10.31</string> 245 + <string>1.10.32</string>
246 <key>CFBundleSupportedPlatforms</key> 246 <key>CFBundleSupportedPlatforms</key>
247 <array> 247 <array>
248 <string>iPhoneOS</string> 248 <string>iPhoneOS</string>
@@ -258,7 +258,7 @@ for d in ios-arm64_x86_64-simulator ios-arm64; do @@ -258,7 +258,7 @@ for d in ios-arm64_x86_64-simulator ios-arm64; do
258 <string>arm64</string> 258 <string>arm64</string>
259 </array> 259 </array>
260 <key>MinimumOSVersion</key> 260 <key>MinimumOSVersion</key>
261 - <string>12.0</string> 261 + <string>13.0</string>
262 <key>CFBundleIdentifier</key> 262 <key>CFBundleIdentifier</key>
263 <string>com.k2fsa.sherpa.onnx</string> 263 <string>com.k2fsa.sherpa.onnx</string>
264 <key>UIDeviceFamily</key> 264 <key>UIDeviceFamily</key>
@@ -274,6 +274,13 @@ for d in ios-arm64_x86_64-simulator ios-arm64; do @@ -274,6 +274,13 @@ for d in ios-arm64_x86_64-simulator ios-arm64; do
274 <string>15A507</string> 274 <string>15A507</string>
275 <key>DTPlatformBuild</key> 275 <key>DTPlatformBuild</key>
276 <string>21A326</string> 276 <string>21A326</string>
  277 + <key>SupportedArchitectures</key>
  278 + <array>
  279 + <string>arm64</string>
  280 + <string>x86_64</string>
  281 + </array>
  282 + <key>SupportedPlatform</key>
  283 + <string>ios</string>
277 </dict> 284 </dict>
278 </plist> 285 </plist>
279 EOF 286 EOF
@@ -9,7 +9,7 @@ environment: @@ -9,7 +9,7 @@ environment:
9 sdk: ">=3.0.0 <4.0.0" 9 sdk: ">=3.0.0 <4.0.0"
10 10
11 dependencies: 11 dependencies:
12 - sherpa_onnx: ^1.10.31 12 + sherpa_onnx: ^1.10.32
13 path: ^1.9.0 13 path: ^1.9.0
14 args: ^2.5.0 14 args: ^2.5.0
15 15
@@ -9,7 +9,7 @@ environment: @@ -9,7 +9,7 @@ environment:
9 sdk: ">=3.0.0 <4.0.0" 9 sdk: ">=3.0.0 <4.0.0"
10 10
11 dependencies: 11 dependencies:
12 - sherpa_onnx: ^1.10.31 12 + sherpa_onnx: ^1.10.32
13 path: ^1.9.0 13 path: ^1.9.0
14 args: ^2.5.0 14 args: ^2.5.0
15 15
@@ -9,7 +9,7 @@ environment: @@ -9,7 +9,7 @@ environment:
9 sdk: ">=3.0.0 <4.0.0" 9 sdk: ">=3.0.0 <4.0.0"
10 10
11 dependencies: 11 dependencies:
12 - sherpa_onnx: ^1.10.31 12 + sherpa_onnx: ^1.10.32
13 # sherpa_onnx: 13 # sherpa_onnx:
14 # path: ../../flutter/sherpa_onnx 14 # path: ../../flutter/sherpa_onnx
15 path: ^1.9.0 15 path: ^1.9.0
@@ -10,7 +10,7 @@ environment: @@ -10,7 +10,7 @@ environment:
10 10
11 # Add regular dependencies here. 11 # Add regular dependencies here.
12 dependencies: 12 dependencies:
13 - sherpa_onnx: ^1.10.31 13 + sherpa_onnx: ^1.10.32
14 path: ^1.9.0 14 path: ^1.9.0
15 args: ^2.5.0 15 args: ^2.5.0
16 16
@@ -8,7 +8,7 @@ environment: @@ -8,7 +8,7 @@ environment:
8 sdk: ">=3.0.0 <4.0.0" 8 sdk: ">=3.0.0 <4.0.0"
9 9
10 dependencies: 10 dependencies:
11 - sherpa_onnx: ^1.10.31 11 + sherpa_onnx: ^1.10.32
12 # sherpa_onnx: 12 # sherpa_onnx:
13 # path: ../../flutter/sherpa_onnx 13 # path: ../../flutter/sherpa_onnx
14 path: ^1.9.0 14 path: ^1.9.0
@@ -9,7 +9,7 @@ environment: @@ -9,7 +9,7 @@ environment:
9 sdk: ">=3.0.0 <4.0.0" 9 sdk: ">=3.0.0 <4.0.0"
10 10
11 dependencies: 11 dependencies:
12 - sherpa_onnx: ^1.10.31 12 + sherpa_onnx: ^1.10.32
13 path: ^1.9.0 13 path: ^1.9.0
14 args: ^2.5.0 14 args: ^2.5.0
15 15
@@ -11,7 +11,7 @@ environment: @@ -11,7 +11,7 @@ environment:
11 11
12 # Add regular dependencies here. 12 # Add regular dependencies here.
13 dependencies: 13 dependencies:
14 - sherpa_onnx: ^1.10.31 14 + sherpa_onnx: ^1.10.32
15 path: ^1.9.0 15 path: ^1.9.0
16 args: ^2.5.0 16 args: ^2.5.0
17 17
@@ -8,7 +8,7 @@ environment: @@ -8,7 +8,7 @@ environment:
8 8
9 # Add regular dependencies here. 9 # Add regular dependencies here.
10 dependencies: 10 dependencies:
11 - sherpa_onnx: ^1.10.31 11 + sherpa_onnx: ^1.10.32
12 path: ^1.9.0 12 path: ^1.9.0
13 args: ^2.5.0 13 args: ^2.5.0
14 14
@@ -10,7 +10,7 @@ environment: @@ -10,7 +10,7 @@ environment:
10 sdk: ">=3.0.0 <4.0.0" 10 sdk: ">=3.0.0 <4.0.0"
11 11
12 dependencies: 12 dependencies:
13 - sherpa_onnx: ^1.10.31 13 + sherpa_onnx: ^1.10.32
14 path: ^1.9.0 14 path: ^1.9.0
15 args: ^2.5.0 15 args: ^2.5.0
16 16
@@ -9,7 +9,7 @@ environment: @@ -9,7 +9,7 @@ environment:
9 sdk: ">=3.0.0 <4.0.0" 9 sdk: ">=3.0.0 <4.0.0"
10 10
11 dependencies: 11 dependencies:
12 - sherpa_onnx: ^1.10.31 12 + sherpa_onnx: ^1.10.32
13 path: ^1.9.0 13 path: ^1.9.0
14 args: ^2.5.0 14 args: ^2.5.0
15 15
@@ -5,7 +5,7 @@ description: > @@ -5,7 +5,7 @@ description: >
5 5
6 publish_to: 'none' 6 publish_to: 'none'
7 7
8 -version: 1.10.31 8 +version: 1.10.32
9 9
10 topics: 10 topics:
11 - speech-recognition 11 - speech-recognition
@@ -31,7 +31,7 @@ dependencies: @@ -31,7 +31,7 @@ dependencies:
31 record: ^5.1.0 31 record: ^5.1.0
32 url_launcher: ^6.2.6 32 url_launcher: ^6.2.6
33 33
34 - sherpa_onnx: ^1.10.31 34 + sherpa_onnx: ^1.10.32
35 # sherpa_onnx: 35 # sherpa_onnx:
36 # path: ../../flutter/sherpa_onnx 36 # path: ../../flutter/sherpa_onnx
37 37
@@ -5,7 +5,7 @@ description: > @@ -5,7 +5,7 @@ description: >
5 5
6 publish_to: 'none' # Remove this line if you wish to publish to pub.dev 6 publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 7
8 -version: 1.10.31 8 +version: 1.10.32
9 9
10 environment: 10 environment:
11 sdk: ">=2.17.0 <4.0.0" 11 sdk: ">=2.17.0 <4.0.0"
@@ -18,7 +18,7 @@ dependencies: @@ -18,7 +18,7 @@ dependencies:
18 cupertino_icons: ^1.0.6 18 cupertino_icons: ^1.0.6
19 path_provider: ^2.1.3 19 path_provider: ^2.1.3
20 path: ^1.9.0 20 path: ^1.9.0
21 - sherpa_onnx: ^1.10.31 21 + sherpa_onnx: ^1.10.32
22 # sherpa_onnx: 22 # sherpa_onnx:
23 # path: ../../flutter/sherpa_onnx 23 # path: ../../flutter/sherpa_onnx
24 url_launcher: 6.2.6 24 url_launcher: 6.2.6
@@ -17,7 +17,7 @@ topics: @@ -17,7 +17,7 @@ topics:
17 - voice-activity-detection 17 - voice-activity-detection
18 18
19 # remember to change the version in ../sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec 19 # remember to change the version in ../sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec
20 -version: 1.10.31 20 +version: 1.10.32
21 21
22 homepage: https://github.com/k2-fsa/sherpa-onnx 22 homepage: https://github.com/k2-fsa/sherpa-onnx
23 23
@@ -30,23 +30,23 @@ dependencies: @@ -30,23 +30,23 @@ dependencies:
30 flutter: 30 flutter:
31 sdk: flutter 31 sdk: flutter
32 32
33 - sherpa_onnx_android: ^1.10.31 33 + sherpa_onnx_android: ^1.10.32
34 # sherpa_onnx_android: 34 # sherpa_onnx_android:
35 # path: ../sherpa_onnx_android 35 # path: ../sherpa_onnx_android
36 36
37 - sherpa_onnx_macos: ^1.10.31 37 + sherpa_onnx_macos: ^1.10.32
38 # sherpa_onnx_macos: 38 # sherpa_onnx_macos:
39 # path: ../sherpa_onnx_macos 39 # path: ../sherpa_onnx_macos
40 40
41 - sherpa_onnx_linux: ^1.10.31 41 + sherpa_onnx_linux: ^1.10.32
42 # sherpa_onnx_linux: 42 # sherpa_onnx_linux:
43 # path: ../sherpa_onnx_linux 43 # path: ../sherpa_onnx_linux
44 44
45 - sherpa_onnx_windows: ^1.10.31 45 + sherpa_onnx_windows: ^1.10.32
46 # sherpa_onnx_windows: 46 # sherpa_onnx_windows:
47 # path: ../sherpa_onnx_windows 47 # path: ../sherpa_onnx_windows
48 48
49 - sherpa_onnx_ios: ^1.10.31 49 + sherpa_onnx_ios: ^1.10.32
50 # sherpa_onnx_ios: 50 # sherpa_onnx_ios:
51 # path: ../sherpa_onnx_ios 51 # path: ../sherpa_onnx_ios
52 52
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 # https://groups.google.com/g/dart-ffi/c/nUATMBy7r0c 7 # https://groups.google.com/g/dart-ffi/c/nUATMBy7r0c
8 Pod::Spec.new do |s| 8 Pod::Spec.new do |s|
9 s.name = 'sherpa_onnx_ios' 9 s.name = 'sherpa_onnx_ios'
10 - s.version = '1.10.31' 10 + s.version = '1.10.32'
11 s.summary = 'A new Flutter FFI plugin project.' 11 s.summary = 'A new Flutter FFI plugin project.'
12 s.description = <<-DESC 12 s.description = <<-DESC
13 A new Flutter FFI plugin project. 13 A new Flutter FFI plugin project.
@@ -22,7 +22,7 @@ A new Flutter FFI plugin project. @@ -22,7 +22,7 @@ A new Flutter FFI plugin project.
22 # `../src/*` so that the C sources can be shared among all target platforms. 22 # `../src/*` so that the C sources can be shared among all target platforms.
23 s.source = { :path => '.' } 23 s.source = { :path => '.' }
24 s.dependency 'Flutter' 24 s.dependency 'Flutter'
25 - s.platform = :ios, '12.0' 25 + s.platform = :ios, '13.0'
26 s.preserve_paths = 'sherpa_onnx.xcframework/**/*' 26 s.preserve_paths = 'sherpa_onnx.xcframework/**/*'
27 s.vendored_frameworks = 'sherpa_onnx.xcframework' 27 s.vendored_frameworks = 'sherpa_onnx.xcframework'
28 28
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 # 4 #
5 Pod::Spec.new do |s| 5 Pod::Spec.new do |s|
6 s.name = 'sherpa_onnx_macos' 6 s.name = 'sherpa_onnx_macos'
7 - s.version = '1.10.31' 7 + s.version = '1.10.32'
8 s.summary = 'sherpa-onnx Flutter FFI plugin project.' 8 s.summary = 'sherpa-onnx Flutter FFI plugin project.'
9 s.description = <<-DESC 9 s.description = <<-DESC
10 sherpa-onnx Flutter FFI plugin project. 10 sherpa-onnx Flutter FFI plugin project.
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 2
3 -sed -i.bak 's/1\.10\.30/1\.10\.31/g' ./build-ios-shared.sh  
4 -find flutter -name *.yaml -type f -exec sed -i.bak 's/1\.10\.30/1\.10\.31/g' {} \;  
5 -find dart-api-examples -name *.yaml -type f -exec sed -i.bak 's/1\.10\.30/1\.10\.31/g' {} \;  
6 -find flutter-examples -name *.yaml -type f -exec sed -i.bak 's/1\.10\.30/1\.10\.31/g' {} \;  
7 -find flutter -name *.podspec -type f -exec sed -i.bak 's/1\.10\.30/1\.10\.31/g' {} \;  
8 -find nodejs-addon-examples -name package.json -type f -exec sed -i.bak 's/1\.10\.30/1\.10\.31/g' {} \; 3 +sed -i.bak 's/1\.10\.31/1\.10\.32/g' ./build-ios-shared.sh
  4 +find flutter -name *.yaml -type f -exec sed -i.bak 's/1\.10\.31/1\.10\.32/g' {} \;
  5 +find dart-api-examples -name *.yaml -type f -exec sed -i.bak 's/1\.10\.31/1\.10\.32/g' {} \;
  6 +find flutter-examples -name *.yaml -type f -exec sed -i.bak 's/1\.10\.31/1\.10\.32/g' {} \;
  7 +find flutter -name *.podspec -type f -exec sed -i.bak 's/1\.10\.31/1\.10\.32/g' {} \;
  8 +find nodejs-addon-examples -name package.json -type f -exec sed -i.bak 's/1\.10\.31/1\.10\.32/g' {} \;
1 { 1 {
2 "dependencies": { 2 "dependencies": {
3 - "sherpa-onnx-node": "^1.10.31" 3 + "sherpa-onnx-node": "^1.10.32"
4 } 4 }
5 } 5 }