Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 85c57d4

Browse files
author
liuweimin
committed
ios flutter打点
1 parent d1e462f commit 85c57d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+344
-18
lines changed

‎example/ios/Flutter/AppFrameworkInfo.plist‎

100644100755
File mode changed.

‎example/ios/Flutter/Debug.xcconfig‎

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "Generated.xcconfig"

‎example/ios/Flutter/Release.xcconfig‎

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "Generated.xcconfig"

‎example/ios/Podfile‎

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Uncomment this line to define a global platform for your project
2+
# platform :ios, '9.0'
3+
4+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6+
7+
def parse_KV_file(file, separator='=')
8+
file_abs_path = File.expand_path(file)
9+
if !File.exists? file_abs_path
10+
return [];
11+
end
12+
pods_ary = []
13+
skip_line_start_symbols = ["#", "/"]
14+
File.foreach(file_abs_path) { |line|
15+
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
16+
plugin = line.split(pattern=separator)
17+
if plugin.length == 2
18+
podname = plugin[0].strip()
19+
path = plugin[1].strip()
20+
podpath = File.expand_path("#{path}", file_abs_path)
21+
pods_ary.push({:name => podname, :path => podpath});
22+
else
23+
puts "Invalid plugin specification: #{line}"
24+
end
25+
}
26+
return pods_ary
27+
end
28+
29+
target 'Runner' do
30+
pod 'GrowingCoreKit'
31+
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
32+
# referring to absolute paths on developers' machines.
33+
system('rm -rf .symlinks')
34+
system('mkdir -p .symlinks/plugins')
35+
36+
# Flutter Pods
37+
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
38+
if generated_xcode_build_settings.empty?
39+
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
40+
end
41+
generated_xcode_build_settings.map { |p|
42+
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
43+
symlink = File.join('.symlinks', 'flutter')
44+
File.symlink(File.dirname(p[:path]), symlink)
45+
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
46+
end
47+
}
48+
49+
# Plugin Pods
50+
plugin_pods = parse_KV_file('../.flutter-plugins')
51+
plugin_pods.map { |p|
52+
symlink = File.join('.symlinks', 'plugins', p[:name])
53+
File.symlink(p[:path], symlink)
54+
pod p[:name], :path => File.join(symlink, 'ios')
55+
}
56+
end
57+
58+
post_install do |installer|
59+
installer.pods_project.targets.each do |target|
60+
target.build_configurations.each do |config|
61+
config.build_settings['ENABLE_BITCODE'] = 'NO'
62+
end
63+
end
64+
end

‎example/ios/Runner.xcodeproj/project.pbxproj‎

Lines changed: 73 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1110
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
1211
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
1312
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
1413
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14+
423FC5AA21830F7B0067BC84 /* GrowingCoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 423FC5A921830F7B0067BC84 /* GrowingCoreKit.framework */; };
15+
423FC5AD21830FC70067BC84 /* FlutterGrowingIOTrack.m in Sources */ = {isa = PBXBuildFile; fileRef = 423FC5AC21830FC70067BC84 /* FlutterGrowingIOTrack.m */; };
1516
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
1617
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1718
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
@@ -20,6 +21,7 @@
2021
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
2122
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
2223
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
24+
CC5D2BC8955B47BF1914BCC7 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 223A084EAF848EC3C6C135DC /* libPods-Runner.a */; };
2325
/* End PBXBuildFile section */
2426

2527
/* Begin PBXCopyFilesBuildPhase section */
@@ -38,11 +40,13 @@
3840
/* End PBXCopyFilesBuildPhase section */
3941

4042
/* Begin PBXFileReference section */
41-
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
42-
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
43+
223A084EAF848EC3C6C135DC /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4344
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
4445
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
4546
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
47+
423FC5A921830F7B0067BC84 /* GrowingCoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GrowingCoreKit.framework; path = Pods/GrowingCoreKit/GrowingCoreKit/GrowingCoreKit.framework; sourceTree = "<group>"; };
48+
423FC5AB21830FC70067BC84 /* FlutterGrowingIOTrack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FlutterGrowingIOTrack.h; sourceTree = "<group>"; };
49+
423FC5AC21830FC70067BC84 /* FlutterGrowingIOTrack.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FlutterGrowingIOTrack.m; sourceTree = "<group>"; };
4650
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
4751
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
4852
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
@@ -62,14 +66,25 @@
6266
isa = PBXFrameworksBuildPhase;
6367
buildActionMask = 2147483647;
6468
files = (
69+
423FC5AA21830F7B0067BC84 /* GrowingCoreKit.framework in Frameworks */,
6570
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
6671
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
72+
CC5D2BC8955B47BF1914BCC7 /* libPods-Runner.a in Frameworks */,
6773
);
6874
runOnlyForDeploymentPostprocessing = 0;
6975
};
7076
/* End PBXFrameworksBuildPhase section */
7177

7278
/* Begin PBXGroup section */
79+
48E767E36FD833C059CBBFE4 /* Frameworks */ = {
80+
isa = PBXGroup;
81+
children = (
82+
423FC5A921830F7B0067BC84 /* GrowingCoreKit.framework */,
83+
223A084EAF848EC3C6C135DC /* libPods-Runner.a */,
84+
);
85+
name = Frameworks;
86+
sourceTree = "<group>";
87+
};
7388
9740EEB11CF90186004384FC /* Flutter */ = {
7489
isa = PBXGroup;
7590
children = (
@@ -90,7 +105,8 @@
90105
9740EEB11CF90186004384FC /* Flutter */,
91106
97C146F01CF9000F007C117D /* Runner */,
92107
97C146EF1CF9000F007C117D /* Products */,
93-
CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
108+
ABD512E55A6E9836AABED24A /* Pods */,
109+
48E767E36FD833C059CBBFE4 /* Frameworks */,
94110
);
95111
sourceTree = "<group>";
96112
};
@@ -107,13 +123,13 @@
107123
children = (
108124
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
109125
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
126+
423FC5AB21830FC70067BC84 /* FlutterGrowingIOTrack.h */,
127+
423FC5AC21830FC70067BC84 /* FlutterGrowingIOTrack.m */,
110128
97C146FA1CF9000F007C117D /* Main.storyboard */,
111129
97C146FD1CF9000F007C117D /* Assets.xcassets */,
112130
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
113131
97C147021CF9000F007C117D /* Info.plist */,
114132
97C146F11CF9000F007C117D /* Supporting Files */,
115-
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
116-
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
117133
);
118134
path = Runner;
119135
sourceTree = "<group>";
@@ -126,19 +142,28 @@
126142
name = "Supporting Files";
127143
sourceTree = "<group>";
128144
};
145+
ABD512E55A6E9836AABED24A /* Pods */ = {
146+
isa = PBXGroup;
147+
children = (
148+
);
149+
name = Pods;
150+
sourceTree = "<group>";
151+
};
129152
/* End PBXGroup section */
130153

131154
/* Begin PBXNativeTarget section */
132155
97C146ED1CF9000F007C117D /* Runner */ = {
133156
isa = PBXNativeTarget;
134157
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
135158
buildPhases = (
159+
8487A63651D8FB04F1FF7094 /* [CP] Check Pods Manifest.lock */,
136160
9740EEB61CF901F6004384FC /* Run Script */,
137161
97C146EA1CF9000F007C117D /* Sources */,
138162
97C146EB1CF9000F007C117D /* Frameworks */,
139163
97C146EC1CF9000F007C117D /* Resources */,
140164
9705A1C41CF9048500538489 /* Embed Frameworks */,
141165
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
166+
86C2BB1E47AFE9AFE76C5B6C /* [CP] Embed Pods Frameworks */,
142167
);
143168
buildRules = (
144169
);
@@ -160,6 +185,7 @@
160185
TargetAttributes = {
161186
97C146ED1CF9000F007C117D = {
162187
CreatedOnToolsVersion = 7.3.1;
188+
DevelopmentTeam = 3W9Y8XVXQ9;
163189
};
164190
};
165191
};
@@ -212,6 +238,42 @@
212238
shellPath = /bin/sh;
213239
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
214240
};
241+
8487A63651D8FB04F1FF7094 /* [CP] Check Pods Manifest.lock */ = {
242+
isa = PBXShellScriptBuildPhase;
243+
buildActionMask = 2147483647;
244+
files = (
245+
);
246+
inputPaths = (
247+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
248+
"${PODS_ROOT}/Manifest.lock",
249+
);
250+
name = "[CP] Check Pods Manifest.lock";
251+
outputPaths = (
252+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
253+
);
254+
runOnlyForDeploymentPostprocessing = 0;
255+
shellPath = /bin/sh;
256+
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";
257+
showEnvVarsInLog = 0;
258+
};
259+
86C2BB1E47AFE9AFE76C5B6C /* [CP] Embed Pods Frameworks */ = {
260+
isa = PBXShellScriptBuildPhase;
261+
buildActionMask = 2147483647;
262+
files = (
263+
);
264+
inputPaths = (
265+
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
266+
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
267+
);
268+
name = "[CP] Embed Pods Frameworks";
269+
outputPaths = (
270+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
271+
);
272+
runOnlyForDeploymentPostprocessing = 0;
273+
shellPath = /bin/sh;
274+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
275+
showEnvVarsInLog = 0;
276+
};
215277
9740EEB61CF901F6004384FC /* Run Script */ = {
216278
isa = PBXShellScriptBuildPhase;
217279
buildActionMask = 2147483647;
@@ -235,7 +297,7 @@
235297
files = (
236298
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
237299
97C146F31CF9000F007C117D /* main.m in Sources */,
238-
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
300+
423FC5AD21830FC70067BC84 /* FlutterGrowingIOTrack.m in Sources */,
239301
);
240302
runOnlyForDeploymentPostprocessing = 0;
241303
};
@@ -369,10 +431,12 @@
369431
buildSettings = {
370432
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
371433
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434+
DEVELOPMENT_TEAM = 3W9Y8XVXQ9;
372435
ENABLE_BITCODE = NO;
373436
FRAMEWORK_SEARCH_PATHS = (
374437
"$(inherited)",
375438
"$(PROJECT_DIR)/Flutter",
439+
"$(PROJECT_DIR)/Pods/GrowingCoreKit/GrowingCoreKit",
376440
);
377441
INFOPLIST_FILE = Runner/Info.plist;
378442
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -392,10 +456,12 @@
392456
buildSettings = {
393457
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
394458
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
459+
DEVELOPMENT_TEAM = 3W9Y8XVXQ9;
395460
ENABLE_BITCODE = NO;
396461
FRAMEWORK_SEARCH_PATHS = (
397462
"$(inherited)",
398463
"$(PROJECT_DIR)/Flutter",
464+
"$(PROJECT_DIR)/Pods/GrowingCoreKit/GrowingCoreKit",
399465
);
400466
INFOPLIST_FILE = Runner/Info.plist;
401467
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";

‎example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata‎

100644100755
File mode changed.

‎example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme‎

100644100755
File mode changed.

‎example/ios/Runner.xcworkspace/contents.xcworkspacedata‎

100644100755
Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>BuildSystemType</key>
6+
<string>Original</string>
7+
</dict>
8+
</plist>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /