Skip to content

Commit e81c500

Browse files
committed
fix ios build
1 parent e95e3b6 commit e81c500

File tree

9 files changed

+1341
-795
lines changed

9 files changed

+1341
-795
lines changed

.gitignore

+139
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,142 @@ ios/Flutter/flutter_export_environment.sh
8282
.firebase/*.cache
8383
macos/Flutter/ephemeral/**
8484
lib/generated_plugin_registrant.dart
85+
**/GeneratedPluginRegistrant.*
86+
87+
# Copied from https://raw.githubusercontent.com/flutter/flutter/master/.gitignore
88+
89+
# Miscellaneous
90+
*.class
91+
*.lock
92+
*.log
93+
*.pyc
94+
*.swp
95+
.DS_Store
96+
.atom/
97+
.buildlog/
98+
.history
99+
.svn/
100+
101+
# IntelliJ related
102+
*.iml
103+
*.ipr
104+
*.iws
105+
.idea/
106+
107+
# Visual Studio Code related
108+
.classpath
109+
.project
110+
.settings/
111+
.vscode/*
112+
113+
# Flutter repo-specific
114+
/bin/cache/
115+
/bin/internal/bootstrap.bat
116+
/bin/internal/bootstrap.sh
117+
/bin/mingit/
118+
/dev/benchmarks/mega_gallery/
119+
/dev/bots/.recipe_deps
120+
/dev/bots/android_tools/
121+
/dev/devicelab/ABresults*.json
122+
/dev/docs/doc/
123+
/dev/docs/api_docs.zip
124+
/dev/docs/flutter.docs.zip
125+
/dev/docs/lib/
126+
/dev/docs/pubspec.yaml
127+
/dev/integration_tests/**/xcuserdata
128+
/dev/integration_tests/**/Pods
129+
/packages/flutter/coverage/
130+
version
131+
analysis_benchmark.json
132+
133+
# packages file containing multi-root paths
134+
.packages.generated
135+
136+
# Flutter/Dart/Pub related
137+
**/doc/api/
138+
.dart_tool/
139+
.flutter-plugins
140+
.flutter-plugins-dependencies
141+
**/generated_plugin_registrant.dart
142+
.packages
143+
.pub-preload-cache/
144+
.pub-cache/
145+
.pub/
146+
build/
147+
flutter_*.png
148+
linked_*.ds
149+
unlinked.ds
150+
unlinked_spec.ds
151+
152+
# Android related
153+
**/android/**/gradle-wrapper.jar
154+
.gradle/
155+
**/android/captures/
156+
**/android/gradlew
157+
**/android/gradlew.bat
158+
**/android/local.properties
159+
**/android/**/GeneratedPluginRegistrant.java
160+
**/android/key.properties
161+
*.jks
162+
163+
# iOS/XCode related
164+
**/ios/**/*.mode1v3
165+
**/ios/**/*.mode2v3
166+
**/ios/**/*.moved-aside
167+
**/ios/**/*.pbxuser
168+
**/ios/**/*.perspectivev3
169+
**/ios/**/*sync/
170+
**/ios/**/.sconsign.dblite
171+
**/ios/**/.tags*
172+
**/ios/**/.vagrant/
173+
**/ios/**/DerivedData/
174+
**/ios/**/Icon?
175+
**/ios/**/Pods/
176+
**/ios/**/.symlinks/
177+
**/ios/**/profile
178+
**/ios/**/xcuserdata
179+
**/ios/.generated/
180+
**/ios/Flutter/.last_build_id
181+
**/ios/Flutter/App.framework
182+
**/ios/Flutter/Flutter.framework
183+
**/ios/Flutter/Flutter.podspec
184+
**/ios/Flutter/Generated.xcconfig
185+
**/ios/Flutter/ephemeral
186+
**/ios/Flutter/app.flx
187+
**/ios/Flutter/app.zip
188+
**/ios/Flutter/flutter_assets/
189+
**/ios/Flutter/flutter_export_environment.sh
190+
**/ios/ServiceDefinitions.json
191+
**/ios/Runner/GeneratedPluginRegistrant.*
192+
193+
# macOS
194+
**/Flutter/ephemeral/
195+
**/Pods/
196+
**/macos/Flutter/GeneratedPluginRegistrant.swift
197+
**/macos/Flutter/ephemeral
198+
**/xcuserdata/
199+
200+
# Windows
201+
**/windows/flutter/generated_plugin_registrant.cc
202+
**/windows/flutter/generated_plugin_registrant.h
203+
**/windows/flutter/generated_plugins.cmake
204+
205+
# Linux
206+
**/linux/flutter/generated_plugin_registrant.cc
207+
**/linux/flutter/generated_plugin_registrant.h
208+
**/linux/flutter/generated_plugins.cmake
209+
210+
# Coverage
211+
coverage/
212+
213+
# Symbols
214+
app.*.symbols
215+
216+
# Exceptions to above rules.
217+
!**/ios/**/default.mode1v3
218+
!**/ios/**/default.mode2v3
219+
!**/ios/**/default.pbxuser
220+
!**/ios/**/default.perspectivev3
221+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
222+
!/dev/ci/**/Gemfile.lock
223+
!.vscode/settings.json

ios/Flutter/AppFrameworkInfo.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

ios/Podfile

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ target 'Runner' do
3333
use_modular_headers!
3434
# https://pub.dev/packages/edge_detection
3535
pod 'WeScan', :path => '.symlinks/plugins/edge_detection/ios/WeScan-3.0.0'
36+
37+
# Copied from https://github.com/flutter-ml/google_ml_kit_flutter/blob/develop/packages/example/ios/Podfile
38+
# Add language package you need to use
39+
pod 'GoogleMLKit/TextRecognitionChinese', '~> 5.0.0'
40+
pod 'GoogleMLKit/TextRecognitionDevanagari', '~> 5.0.0'
41+
pod 'GoogleMLKit/TextRecognitionJapanese', '~> 5.0.0'
42+
pod 'GoogleMLKit/TextRecognitionKorean', '~> 5.0.0'
43+
3644
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3745
end
3846

0 commit comments

Comments
 (0)