Skip to content

Commit d058e1c

Browse files
committed
Add Podfile back to make ci happy
1 parent 1c5ed7e commit d058e1c

File tree

5 files changed

+112
-29
lines changed

5 files changed

+112
-29
lines changed

example/ios/Podfile

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Uncomment this line to define a global platform for your project
2+
# platform :ios, '12.0'
3+
4+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6+
7+
project 'Runner', {
8+
'Debug' => :debug,
9+
'Profile' => :release,
10+
'Release' => :release,
11+
}
12+
13+
def flutter_root
14+
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15+
unless File.exist?(generated_xcode_build_settings_path)
16+
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17+
end
18+
19+
File.foreach(generated_xcode_build_settings_path) do |line|
20+
matches = line.match(/FLUTTER_ROOT\=(.*)/)
21+
return matches[1].strip if matches
22+
end
23+
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24+
end
25+
26+
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27+
28+
flutter_ios_podfile_setup
29+
30+
target 'Runner' do
31+
use_frameworks!
32+
use_modular_headers!
33+
34+
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35+
end
36+
37+
post_install do |installer|
38+
installer.pods_project.targets.each do |target|
39+
flutter_additional_ios_build_settings(target)
40+
end
41+
end

example/ios/Podfile.lock

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PODS:
2+
- Flutter (1.0.0)
3+
4+
DEPENDENCIES:
5+
- Flutter (from `Flutter`)
6+
7+
EXTERNAL SOURCES:
8+
Flutter:
9+
:path: Flutter
10+
11+
SPEC CHECKSUMS:
12+
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
13+
14+
PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011
15+
16+
COCOAPODS: 1.16.2

example/ios/Runner.xcodeproj/project.pbxproj

+52-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1515
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
1616
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17+
E58C8BA72341A6FDA9D194F8 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C0443C20940C009428DBFC8 /* Pods_Runner.framework */; };
1718
/* End PBXBuildFile section */
1819

1920
/* Begin PBXCopyFilesBuildPhase section */
@@ -32,8 +33,11 @@
3233
/* Begin PBXFileReference section */
3334
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3435
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
36+
21B301EF0FC0C3405BEEB5B5 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
3537
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
38+
3CA721E826034CE6B499F060 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
3639
52D42AC623D2C3710063AB8B /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
40+
5C0443C20940C009428DBFC8 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3741
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
3842
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3943
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
@@ -44,6 +48,7 @@
4448
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4549
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4650
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
51+
CC17078EABDEF174C9DEB078 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
4752
/* End PBXFileReference section */
4853

4954
/* Begin PBXFrameworksBuildPhase section */
@@ -52,6 +57,7 @@
5257
buildActionMask = 2147483647;
5358
files = (
5459
78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */,
60+
E58C8BA72341A6FDA9D194F8 /* Pods_Runner.framework in Frameworks */,
5561
);
5662
runOnlyForDeploymentPostprocessing = 0;
5763
};
@@ -75,6 +81,8 @@
7581
9740EEB11CF90186004384FC /* Flutter */,
7682
97C146F01CF9000F007C117D /* Runner */,
7783
97C146EF1CF9000F007C117D /* Products */,
84+
F893C2497E8F1D360BEBEB7F /* Pods */,
85+
AA8E6B8C7207A8A364AEEA84 /* Frameworks */,
7886
);
7987
sourceTree = "<group>";
8088
};
@@ -110,13 +118,33 @@
110118
name = "Supporting Files";
111119
sourceTree = "<group>";
112120
};
121+
AA8E6B8C7207A8A364AEEA84 /* Frameworks */ = {
122+
isa = PBXGroup;
123+
children = (
124+
5C0443C20940C009428DBFC8 /* Pods_Runner.framework */,
125+
);
126+
name = Frameworks;
127+
sourceTree = "<group>";
128+
};
129+
F893C2497E8F1D360BEBEB7F /* Pods */ = {
130+
isa = PBXGroup;
131+
children = (
132+
3CA721E826034CE6B499F060 /* Pods-Runner.debug.xcconfig */,
133+
CC17078EABDEF174C9DEB078 /* Pods-Runner.release.xcconfig */,
134+
21B301EF0FC0C3405BEEB5B5 /* Pods-Runner.profile.xcconfig */,
135+
);
136+
name = Pods;
137+
path = Pods;
138+
sourceTree = "<group>";
139+
};
113140
/* End PBXGroup section */
114141

115142
/* Begin PBXNativeTarget section */
116143
97C146ED1CF9000F007C117D /* Runner */ = {
117144
isa = PBXNativeTarget;
118145
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
119146
buildPhases = (
147+
F90AEBACCBF7EA4B435EAF97 /* [CP] Check Pods Manifest.lock */,
120148
9740EEB61CF901F6004384FC /* Run Script */,
121149
97C146EA1CF9000F007C117D /* Sources */,
122150
97C146EB1CF9000F007C117D /* Frameworks */,
@@ -161,7 +189,7 @@
161189
);
162190
mainGroup = 97C146E51CF9000F007C117D;
163191
packageReferences = (
164-
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,
192+
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */,
165193
);
166194
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
167195
projectDirPath = "";
@@ -218,6 +246,28 @@
218246
shellPath = /bin/sh;
219247
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
220248
};
249+
F90AEBACCBF7EA4B435EAF97 /* [CP] Check Pods Manifest.lock */ = {
250+
isa = PBXShellScriptBuildPhase;
251+
buildActionMask = 2147483647;
252+
files = (
253+
);
254+
inputFileListPaths = (
255+
);
256+
inputPaths = (
257+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
258+
"${PODS_ROOT}/Manifest.lock",
259+
);
260+
name = "[CP] Check Pods Manifest.lock";
261+
outputFileListPaths = (
262+
);
263+
outputPaths = (
264+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
265+
);
266+
runOnlyForDeploymentPostprocessing = 0;
267+
shellPath = /bin/sh;
268+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
269+
showEnvVarsInLog = 0;
270+
};
221271
/* End PBXShellScriptBuildPhase section */
222272

223273
/* Begin PBXSourcesBuildPhase section */
@@ -531,7 +581,7 @@
531581
/* End XCConfigurationList section */
532582

533583
/* Begin XCLocalSwiftPackageReference section */
534-
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {
584+
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */ = {
535585
isa = XCLocalSwiftPackageReference;
536586
relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;
537587
};

example/ios/Runner.xcworkspace/contents.xcworkspacedata

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/test/widget_test.dart

-27
This file was deleted.

0 commit comments

Comments
 (0)