diff --git a/packages/example/ios/Runner.xcodeproj/project.pbxproj b/packages/example/ios/Runner.xcodeproj/project.pbxproj index 49d5e18e..4aecb370 100644 --- a/packages/example/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/example/ios/Runner.xcodeproj/project.pbxproj @@ -59,13 +59,6 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 5AF1CF50FEB2DDD24045D4DC /* Pods */ = { - isa = PBXGroup; - children = ( - ); - path = Pods; - sourceTree = ""; - }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( @@ -85,7 +78,6 @@ 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, - 5AF1CF50FEB2DDD24045D4DC /* Pods */, ); sourceTree = ""; }; diff --git a/packages/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/example/ios/Runner.xcworkspace/contents.xcworkspacedata index 21a3cc14..d78288eb 100644 --- a/packages/example/ios/Runner.xcworkspace/contents.xcworkspacedata +++ b/packages/example/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -4,7 +4,5 @@ - - + diff --git a/packages/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/packages/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/packages/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c5..00000000 --- a/packages/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/packages/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved b/packages/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index 20a3c5f1..00000000 --- a/packages/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,59 +0,0 @@ -{ - "pins" : [ - { - "identity" : "google-mlkit-swiftpm", - "kind" : "remoteSourceControl", - "location" : "https://github.com/d-date/google-mlkit-swiftpm", - "state" : { - "revision" : "7aefa43c5105f28b9a8f9a48f7a115524a101186", - "version" : "9.0.0" - } - }, - { - "identity" : "googledatatransport", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/GoogleDataTransport.git", - "state" : { - "revision" : "617af071af9aa1d6a091d59a202910ac482128f9", - "version" : "10.1.0" - } - }, - { - "identity" : "googleutilities", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/GoogleUtilities.git", - "state" : { - "revision" : "60da361632d0de02786f709bdc0c4df340f7613e", - "version" : "8.1.0" - } - }, - { - "identity" : "gtm-session-fetcher", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/gtm-session-fetcher.git", - "state" : { - "revision" : "a2ab612cb980066ee56d90d60d8462992c07f24b", - "version" : "3.5.0" - } - }, - { - "identity" : "nanopb", - "kind" : "remoteSourceControl", - "location" : "https://github.com/firebase/nanopb.git", - "state" : { - "revision" : "b7e1104502eca3a213b46303391ca4d3bc8ddec1", - "version" : "2.30910.0" - } - }, - { - "identity" : "promises", - "kind" : "remoteSourceControl", - "location" : "https://github.com/google/promises.git", - "state" : { - "revision" : "540318ecedd63d883069ae7f1ed811a2df00b6ac", - "version" : "2.4.0" - } - } - ], - "version" : 2 -} diff --git a/packages/google_mlkit_barcode_scanning/ios/google_mlkit_barcode_scanning.podspec b/packages/google_mlkit_barcode_scanning/ios/google_mlkit_barcode_scanning.podspec deleted file mode 100644 index 1c30162f..00000000 --- a/packages/google_mlkit_barcode_scanning/ios/google_mlkit_barcode_scanning.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_barcode_scanning/Sources/google_mlkit_barcode_scanning/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/BarcodeScanning', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_commons/ios/google_mlkit_commons.podspec b/packages/google_mlkit_commons/ios/google_mlkit_commons.podspec deleted file mode 100644 index fd03678d..00000000 --- a/packages/google_mlkit_commons/ios/google_mlkit_commons.podspec +++ /dev/null @@ -1,25 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_commons/Sources/google_mlkit_commons/**/*.swift' - s.dependency 'Flutter' - s.dependency 'MLKitVision', '~> 10.0.0' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_commons/ios/scripts/apple_silicon_simulator.rb b/packages/google_mlkit_commons/ios/scripts/apple_silicon_simulator.rb deleted file mode 100644 index d4e1f4c1..00000000 --- a/packages/google_mlkit_commons/ios/scripts/apple_silicon_simulator.rb +++ /dev/null @@ -1,80 +0,0 @@ -# Opt-in Podfile helper that lets Google ML Kit pods build and run on Apple -# Silicon iOS 26+ simulators *and* physical devices from the same Pods install. -# A per-build script phase relabels the arm64 slice to match the target, so no -# manual revert is ever needed. See packages/google_mlkit_commons/README.md -# (iOS section). Upstream Google bug: -# https://issuetracker.google.com/issues/178965151 - -require 'fileutils' - -MLKIT_STATE_DIR = 'MLKitAppleSiliconSimulator'.freeze -MLKIT_PATCHER = 'patch_arm64_simulator.py'.freeze -MLKIT_PHASE_NAME = '[ML Kit] Relabel arm64 slice for current platform'.freeze -MLKIT_EXCLUDED_RE = /^(\s*EXCLUDED_ARCHS\[sdk=iphonesimulator\*\]\s*=\s*)(.*?)\s*$/ - -def mlkit_apple_silicon_simulator_patch(installer) - pods_dir = File.expand_path(installer.sandbox.root.to_s) - - framework_dirs = Dir.glob(File.join(pods_dir, '{MLKit*,MLImage*}')) - .select { |d| File.directory?(d) } - return if framework_dirs.empty? - - _mlkit_copy_patcher(pods_dir) - _mlkit_strip_simulator_arm64_exclusion(pods_dir) - _mlkit_install_build_phase(installer) - installer.pods_project.save - - Pod::UI.puts '' - Pod::UI.puts "[ml_kit] Apple Silicon simulator support enabled for " \ - "#{framework_dirs.size} framework(s) (auto-toggles per build)." -rescue => e - raise "[ml_kit] failed to enable Apple Silicon simulator support: #{e.message}" -end - -def _mlkit_copy_patcher(pods_dir) - state_dir = File.join(pods_dir, MLKIT_STATE_DIR) - FileUtils.rm_rf(state_dir) - FileUtils.mkdir_p(state_dir) - FileUtils.cp(File.expand_path(MLKIT_PATCHER, __dir__), state_dir) -end - -def _mlkit_strip_simulator_arm64_exclusion(pods_dir) - Dir.glob(File.join(pods_dir, 'Target Support Files', '**', '*.xcconfig')) - .each do |xcconfig| - changed = false - new_text = File.read(xcconfig).each_line.map do |line| - match = line.match(MLKIT_EXCLUDED_RE) - next line unless match - - tokens = match[2].split(/\s+/).reject(&:empty?) - next line unless tokens.include?('arm64') - - changed = true - kept = tokens.reject { |t| t == 'arm64' } - kept.empty? ? '' : "#{match[1]}#{kept.join(' ')}\n" - end.join - File.write(xcconfig, new_text) if changed - end -end - -def _mlkit_install_build_phase(installer) - script = <<~SH - set -euo pipefail - : "${PLATFORM_NAME:?PLATFORM_NAME is not set}" - : "${SRCROOT:?SRCROOT is not set}" - /usr/bin/env python3 "${SRCROOT}/#{MLKIT_STATE_DIR}/#{MLKIT_PATCHER}" \\ - --platform "${PLATFORM_NAME}" \\ - --pods-root "${SRCROOT}" - SH - - installer.aggregate_targets.each do |aggregate| - target = installer.pods_project.targets.find { |t| t.name == aggregate.label } - next unless target - - phase = target.shell_script_build_phases.find { |p| p.name == MLKIT_PHASE_NAME } - phase ||= target.new_shell_script_build_phase(MLKIT_PHASE_NAME) - phase.shell_path = '/bin/sh' - phase.shell_script = script - phase.always_out_of_date = '1' if phase.respond_to?(:always_out_of_date=) - end -end diff --git a/packages/google_mlkit_commons/ios/scripts/patch_arm64_simulator.py b/packages/google_mlkit_commons/ios/scripts/patch_arm64_simulator.py deleted file mode 100644 index c042e1ff..00000000 --- a/packages/google_mlkit_commons/ios/scripts/patch_arm64_simulator.py +++ /dev/null @@ -1,185 +0,0 @@ -#!/usr/bin/env python3 -"""Relabel the arm64 slice of Google ML Kit static frameworks to match the -build's target platform. Flips each arm64 Mach-O object's -LC_BUILD_VERSION.platform between 2 (iOS) and 7 (iOS Simulator) in place, so the -single arm64 slice Google ships works for whichever target is being built; no -instructions, symbols, sizes or offsets change. Idempotent and reversible. See -packages/google_mlkit_commons/README.md (iOS section). - -Run from an Xcode build phase: - patch_arm64_simulator.py --platform "$PLATFORM_NAME" --pods-root "$SRCROOT" -""" - -import argparse -import glob -import mmap -import os -import struct -import sys - -FAT_MAGIC = 0xCAFEBABE -FAT_MAGIC_64 = 0xCAFEBABF -MH_MAGIC_64 = 0xFEEDFACF -LC_BUILD_VERSION = 0x32 -PLATFORM_IOS = 2 -PLATFORM_IOS_SIMULATOR = 7 -CPU_TYPE_ARM64 = 0x0100000c - -PLATFORM_BY_SDK = { - 'iphoneos': PLATFORM_IOS, - 'iphonesimulator': PLATFORM_IOS_SIMULATOR, -} - - -def _relabel_macho(buf, base, target_platform): - """Flip LC_BUILD_VERSION.platform of the Mach-O object at ``base`` in place. - Returns True only when a byte was actually changed.""" - if base + 32 > len(buf): - return False - if struct.unpack_from(' end: - break - cmd, cmdsize = struct.unpack_from(' end: - break - if cmd == LC_BUILD_VERSION: - if offset + 12 <= end: - platform = struct.unpack_from('\n': - return 1 if _relabel_macho(buf, start, target_platform) else 0 - pos = start + 8 - n = 0 - while pos + 60 <= region_end: - try: - member_size = int( - bytes(buf[pos + 48:pos + 58]).decode('ascii', 'replace').strip()) - except ValueError: - break - name = bytes(buf[pos:pos + 16]).rstrip() - body = pos + 60 - obj = body - if name.startswith(b'#1/'): # BSD long-name extension - try: - obj = body + int(name[3:]) - except ValueError: - obj = body - if _relabel_macho(buf, obj, target_platform): - n += 1 - pos = body + member_size + (member_size & 1) # 2-byte alignment - return n - - -def _relabel_buffer(buf, target_platform): - if len(buf) < 8: - return 0 - fat_magic = struct.unpack_from('>I', buf, 0)[0] - if fat_magic in (FAT_MAGIC, FAT_MAGIC_64): - nfat = struct.unpack_from('>I', buf, 4)[0] - is64 = fat_magic == FAT_MAGIC_64 - entry = 8 - n = 0 - for _ in range(nfat): - if is64: - if entry + 32 > len(buf): - break - cputype, _cpusub, offset, size = struct.unpack_from('>iIQQ', buf, entry) - entry += 32 - else: - if entry + 20 > len(buf): - break - cputype, _cpusub, offset, size, _align = \ - struct.unpack_from('>iIIII', buf, entry) - entry += 20 - if cputype == CPU_TYPE_ARM64: - n += _relabel_archive_region(buf, offset, size, target_platform) - return n - if struct.unpack_from('\n': - return _relabel_archive_region(buf, 0, len(buf), target_platform) - return 0 - - -def _relabel_file(path, target_platform): - if os.path.getsize(path) == 0: - return 0 - with open(path, 'r+b') as f: - with mmap.mmap(f.fileno(), 0) as buf: - n = _relabel_buffer(buf, target_platform) - if n: - buf.flush() - return n - - -def _find_framework_binary(pod_dir): - fw_dir = os.path.join(pod_dir, 'Frameworks') - if not os.path.isdir(fw_dir): - return None - for name in os.listdir(fw_dir): - if name.endswith('.framework'): - base = name[:-len('.framework')] - binary = os.path.join(fw_dir, name, base) - if os.path.isfile(binary): - return binary - return None - - -def _iter_framework_binaries(pods_root): - for pattern in ('MLKit*', 'MLImage*'): - for pod_dir in sorted(glob.glob(os.path.join(pods_root, pattern))): - if os.path.isdir(pod_dir): - binary = _find_framework_binary(pod_dir) - if binary: - yield binary - - -def main(argv): - parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument('--platform', default=os.environ.get('PLATFORM_NAME', '')) - parser.add_argument('--pods-root', required=True) - args = parser.parse_args(argv) - - target_platform = PLATFORM_BY_SDK.get(args.platform) - if target_platform is None: - print(f'[ml_kit] skipping arm64 relabel: platform {args.platform!r} is ' - 'not iphoneos/iphonesimulator', file=sys.stderr) - return 0 - - binaries = list(_iter_framework_binaries(args.pods_root)) - if not binaries: - print('[ml_kit] ERROR: no ML Kit framework binaries found under ' - f'{args.pods_root!r}; arm64 slice not relabeled', file=sys.stderr) - return 1 - - total = sum(_relabel_file(b, target_platform) for b in binaries) - if total: - print(f'[ml_kit] relabeled {total} arm64 object(s) for {args.platform}') - return 0 - - -if __name__ == '__main__': - try: - sys.exit(main(sys.argv[1:])) - except Exception as exc: # surface a tagged, actionable build-phase error - print(f'[ml_kit] ERROR: arm64 relabel failed: {exc}', file=sys.stderr) - sys.exit(1) diff --git a/packages/google_mlkit_digital_ink_recognition/ios/google_mlkit_digital_ink_recognition.podspec b/packages/google_mlkit_digital_ink_recognition/ios/google_mlkit_digital_ink_recognition.podspec deleted file mode 100644 index 52352e6d..00000000 --- a/packages/google_mlkit_digital_ink_recognition/ios/google_mlkit_digital_ink_recognition.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_digital_ink_recognition/Sources/google_mlkit_digital_ink_recognition/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/DigitalInkRecognition', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_document_scanner/ios/google_mlkit_document_scanner.podspec b/packages/google_mlkit_document_scanner/ios/google_mlkit_document_scanner.podspec deleted file mode 100644 index caee2f15..00000000 --- a/packages/google_mlkit_document_scanner/ios/google_mlkit_document_scanner.podspec +++ /dev/null @@ -1,25 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.author = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_document_scanner/Sources/google_mlkit_document_scanner/**/*.swift' - s.dependency 'Flutter' - # s.dependency 'GoogleMLKit/DocumentScanner', '~> 5.0.0' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_entity_extraction/ios/google_mlkit_entity_extraction.podspec b/packages/google_mlkit_entity_extraction/ios/google_mlkit_entity_extraction.podspec deleted file mode 100644 index 5b1ee4da..00000000 --- a/packages/google_mlkit_entity_extraction/ios/google_mlkit_entity_extraction.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_entity_extraction/Sources/google_mlkit_entity_extraction/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/EntityExtraction', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_face_detection/ios/google_mlkit_face_detection.podspec b/packages/google_mlkit_face_detection/ios/google_mlkit_face_detection.podspec deleted file mode 100644 index 656fc14f..00000000 --- a/packages/google_mlkit_face_detection/ios/google_mlkit_face_detection.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_face_detection/Sources/google_mlkit_face_detection/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/FaceDetection', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_face_mesh_detection/ios/google_mlkit_face_mesh_detection.podspec b/packages/google_mlkit_face_mesh_detection/ios/google_mlkit_face_mesh_detection.podspec deleted file mode 100644 index 53763115..00000000 --- a/packages/google_mlkit_face_mesh_detection/ios/google_mlkit_face_mesh_detection.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_face_mesh_detection/Sources/google_mlkit_face_mesh_detection/**/*.swift' - s.dependency 'Flutter' - # s.dependency 'GoogleMLKit/FaceMeshDetection', '~> 5.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_genai_image_description/ios/google_mlkit_genai_image_description.podspec b/packages/google_mlkit_genai_image_description/ios/google_mlkit_genai_image_description.podspec deleted file mode 100644 index fdaccad0..00000000 --- a/packages/google_mlkit_genai_image_description/ios/google_mlkit_genai_image_description.podspec +++ /dev/null @@ -1,24 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_genai_image_description/Sources/google_mlkit_genai_image_description/**/*.swift' - s.dependency 'Flutter' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_genai_prompt/ios/google_mlkit_genai_prompt.podspec b/packages/google_mlkit_genai_prompt/ios/google_mlkit_genai_prompt.podspec deleted file mode 100644 index ceeec86b..00000000 --- a/packages/google_mlkit_genai_prompt/ios/google_mlkit_genai_prompt.podspec +++ /dev/null @@ -1,24 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_genai_prompt/Sources/google_mlkit_genai_prompt/**/*.swift' - s.dependency 'Flutter' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_genai_proofreading/ios/google_mlkit_genai_proofreading.podspec b/packages/google_mlkit_genai_proofreading/ios/google_mlkit_genai_proofreading.podspec deleted file mode 100644 index 227967f1..00000000 --- a/packages/google_mlkit_genai_proofreading/ios/google_mlkit_genai_proofreading.podspec +++ /dev/null @@ -1,24 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_genai_proofreading/Sources/google_mlkit_genai_proofreading/**/*.swift' - s.dependency 'Flutter' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_genai_rewriting/ios/google_mlkit_genai_rewriting.podspec b/packages/google_mlkit_genai_rewriting/ios/google_mlkit_genai_rewriting.podspec deleted file mode 100644 index 2cf9a873..00000000 --- a/packages/google_mlkit_genai_rewriting/ios/google_mlkit_genai_rewriting.podspec +++ /dev/null @@ -1,24 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_genai_rewriting/Sources/google_mlkit_genai_rewriting/**/*.swift' - s.dependency 'Flutter' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_genai_speech_recognition/ios/google_mlkit_genai_speech_recognition.podspec b/packages/google_mlkit_genai_speech_recognition/ios/google_mlkit_genai_speech_recognition.podspec deleted file mode 100644 index 71d711fe..00000000 --- a/packages/google_mlkit_genai_speech_recognition/ios/google_mlkit_genai_speech_recognition.podspec +++ /dev/null @@ -1,24 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_genai_speech_recognition/Sources/google_mlkit_genai_speech_recognition/**/*.swift' - s.dependency 'Flutter' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_genai_summarization/ios/google_mlkit_genai_summarization.podspec b/packages/google_mlkit_genai_summarization/ios/google_mlkit_genai_summarization.podspec deleted file mode 100644 index a5c5fe53..00000000 --- a/packages/google_mlkit_genai_summarization/ios/google_mlkit_genai_summarization.podspec +++ /dev/null @@ -1,24 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_genai_summarization/Sources/google_mlkit_genai_summarization/**/*.swift' - s.dependency 'Flutter' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_image_labeling/ios/google_mlkit_image_labeling.podspec b/packages/google_mlkit_image_labeling/ios/google_mlkit_image_labeling.podspec deleted file mode 100644 index f5e6e11c..00000000 --- a/packages/google_mlkit_image_labeling/ios/google_mlkit_image_labeling.podspec +++ /dev/null @@ -1,27 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_image_labeling/Sources/google_mlkit_image_labeling/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/ImageLabeling', '~> 9.0.0' - s.dependency 'GoogleMLKit/ImageLabelingCustom', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_language_id/ios/google_mlkit_language_id.podspec b/packages/google_mlkit_language_id/ios/google_mlkit_language_id.podspec deleted file mode 100644 index 867a63d4..00000000 --- a/packages/google_mlkit_language_id/ios/google_mlkit_language_id.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_language_id/Sources/google_mlkit_language_id/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/LanguageID', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_object_detection/ios/google_mlkit_object_detection.podspec b/packages/google_mlkit_object_detection/ios/google_mlkit_object_detection.podspec deleted file mode 100644 index a8faae21..00000000 --- a/packages/google_mlkit_object_detection/ios/google_mlkit_object_detection.podspec +++ /dev/null @@ -1,27 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_object_detection/Sources/google_mlkit_object_detection/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/ObjectDetection', '~> 9.0.0' - s.dependency 'GoogleMLKit/ObjectDetectionCustom', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_pose_detection/ios/google_mlkit_pose_detection.podspec b/packages/google_mlkit_pose_detection/ios/google_mlkit_pose_detection.podspec deleted file mode 100644 index 79900c36..00000000 --- a/packages/google_mlkit_pose_detection/ios/google_mlkit_pose_detection.podspec +++ /dev/null @@ -1,27 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_pose_detection/Sources/google_mlkit_pose_detection/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/PoseDetection', '~> 9.0.0' - s.dependency 'GoogleMLKit/PoseDetectionAccurate', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_selfie_segmentation/ios/google_mlkit_selfie_segmentation.podspec b/packages/google_mlkit_selfie_segmentation/ios/google_mlkit_selfie_segmentation.podspec deleted file mode 100644 index 5df6c65a..00000000 --- a/packages/google_mlkit_selfie_segmentation/ios/google_mlkit_selfie_segmentation.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_selfie_segmentation/Sources/google_mlkit_selfie_segmentation/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/SegmentationSelfie', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_smart_reply/ios/google_mlkit_smart_reply.podspec b/packages/google_mlkit_smart_reply/ios/google_mlkit_smart_reply.podspec deleted file mode 100644 index 43bf7889..00000000 --- a/packages/google_mlkit_smart_reply/ios/google_mlkit_smart_reply.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_smart_reply/Sources/google_mlkit_smart_reply/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/SmartReply', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_subject_segmentation/ios/google_mlkit_subject_segmentation.podspec b/packages/google_mlkit_subject_segmentation/ios/google_mlkit_subject_segmentation.podspec deleted file mode 100644 index 694524a7..00000000 --- a/packages/google_mlkit_subject_segmentation/ios/google_mlkit_subject_segmentation.podspec +++ /dev/null @@ -1,25 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.author = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_subject_segmentation/Sources/google_mlkit_subject_segmentation/**/*.swift' - s.dependency 'Flutter' - # s.dependency 'GoogleMLKit/SubjectSegmentation', '~> 6.0.0' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_text_recognition/ios/google_mlkit_text_recognition.podspec b/packages/google_mlkit_text_recognition/ios/google_mlkit_text_recognition.podspec deleted file mode 100644 index d29bb474..00000000 --- a/packages/google_mlkit_text_recognition/ios/google_mlkit_text_recognition.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_text_recognition/Sources/google_mlkit_text_recognition/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/TextRecognition', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end diff --git a/packages/google_mlkit_translation/ios/google_mlkit_translation.podspec b/packages/google_mlkit_translation/ios/google_mlkit_translation.podspec deleted file mode 100644 index ea514947..00000000 --- a/packages/google_mlkit_translation/ios/google_mlkit_translation.podspec +++ /dev/null @@ -1,26 +0,0 @@ -require 'yaml' - -pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) -library_version = pubspec['version'].gsub('+', '-') - -Pod::Spec.new do |s| - s.name = pubspec['name'] - s.version = library_version - s.summary = pubspec['description'] - s.description = pubspec['description'] - s.homepage = pubspec['homepage'] - s.license = { :file => '../LICENSE' } - s.authors = 'flutter-ml.dev' - s.source = { :path => '.' } - s.source_files = 'google_mlkit_translation/Sources/google_mlkit_translation/**/*.swift' - s.dependency 'Flutter' - s.dependency 'GoogleMLKit/Translate', '~> 9.0.0' - s.dependency 'google_mlkit_commons' - s.platform = :ios, '15.5' - s.ios.deployment_target = '15.5' - s.static_framework = true - s.swift_version = '5.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } -end