Skip to content

Commit fbc63ff

Browse files
committed
flutter_woo_commerce_getx_learn-Commit020: 按照 01-9-launcher.mp4 进行操作,已经实现修改 Android、iOS App 的桌面图片名称
1 parent 6327bad commit fbc63ff

File tree

11 files changed

+170
-2
lines changed

11 files changed

+170
-2
lines changed

Diff for: android/app/src/main/AndroidManifest.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.ducafecat.woo_commerce.flutter_woo_commerce_getx_learn">
3+
<!-- 修改 Android App 桌面图标名称: android:label="flutter_woo_commerce_getx_learn" -->
34
<application
4-
android:label="flutter_woo_commerce_getx_learn"
5+
android:label="woo"
56
android:name="${applicationName}"
67
android:icon="@mipmap/ic_launcher">
78
<activity

Diff for: ios/Flutter/Debug.xcconfig

+1
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"

Diff for: ios/Flutter/Release.xcconfig

+1
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"

Diff for: ios/Podfile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
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+
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
32+
end
33+
34+
post_install do |installer|
35+
installer.pods_project.targets.each do |target|
36+
flutter_additional_ios_build_settings(target)
37+
end
38+
end

Diff for: ios/Podfile.lock

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
PODS:
2+
- Flutter (1.0.0)
3+
- package_info_plus (0.4.5):
4+
- Flutter
5+
- shared_preferences_ios (0.0.1):
6+
- Flutter
7+
8+
DEPENDENCIES:
9+
- Flutter (from `Flutter`)
10+
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
11+
- shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
12+
13+
EXTERNAL SOURCES:
14+
Flutter:
15+
:path: Flutter
16+
package_info_plus:
17+
:path: ".symlinks/plugins/package_info_plus/ios"
18+
shared_preferences_ios:
19+
:path: ".symlinks/plugins/shared_preferences_ios/ios"
20+
21+
SPEC CHECKSUMS:
22+
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
23+
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
24+
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
25+
26+
PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d
27+
28+
COCOAPODS: 1.11.3

Diff for: ios/Runner.xcodeproj/project.pbxproj

+50
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12+
7092D08948424E3A58409801 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BBB98FC6FAECA1878CC63005 /* libPods-Runner.a */; };
1213
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
1314
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
1415
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
@@ -32,6 +33,7 @@
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+
15FA5FF9B27C70C22F10DF48 /* 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>"; };
3537
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
3638
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
3739
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
@@ -44,19 +46,31 @@
4446
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4547
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4648
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
49+
A4C882219E36AED93C567683 /* 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>"; };
50+
BBB98FC6FAECA1878CC63005 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
51+
E8F608AA825435A9855DB805 /* 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 */
5055
97C146EB1CF9000F007C117D /* Frameworks */ = {
5156
isa = PBXFrameworksBuildPhase;
5257
buildActionMask = 2147483647;
5358
files = (
59+
7092D08948424E3A58409801 /* libPods-Runner.a in Frameworks */,
5460
);
5561
runOnlyForDeploymentPostprocessing = 0;
5662
};
5763
/* End PBXFrameworksBuildPhase section */
5864

5965
/* Begin PBXGroup section */
66+
80840C49C14CBD243E83E78A /* Frameworks */ = {
67+
isa = PBXGroup;
68+
children = (
69+
BBB98FC6FAECA1878CC63005 /* libPods-Runner.a */,
70+
);
71+
name = Frameworks;
72+
sourceTree = "<group>";
73+
};
6074
9740EEB11CF90186004384FC /* Flutter */ = {
6175
isa = PBXGroup;
6276
children = (
@@ -74,6 +88,8 @@
7488
9740EEB11CF90186004384FC /* Flutter */,
7589
97C146F01CF9000F007C117D /* Runner */,
7690
97C146EF1CF9000F007C117D /* Products */,
91+
CFC2EA20965BB2892C3F05E9 /* Pods */,
92+
80840C49C14CBD243E83E78A /* Frameworks */,
7793
);
7894
sourceTree = "<group>";
7995
};
@@ -109,13 +125,25 @@
109125
name = "Supporting Files";
110126
sourceTree = "<group>";
111127
};
128+
CFC2EA20965BB2892C3F05E9 /* Pods */ = {
129+
isa = PBXGroup;
130+
children = (
131+
15FA5FF9B27C70C22F10DF48 /* Pods-Runner.debug.xcconfig */,
132+
E8F608AA825435A9855DB805 /* Pods-Runner.release.xcconfig */,
133+
A4C882219E36AED93C567683 /* Pods-Runner.profile.xcconfig */,
134+
);
135+
name = Pods;
136+
path = Pods;
137+
sourceTree = "<group>";
138+
};
112139
/* End PBXGroup section */
113140

114141
/* Begin PBXNativeTarget section */
115142
97C146ED1CF9000F007C117D /* Runner */ = {
116143
isa = PBXNativeTarget;
117144
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
118145
buildPhases = (
146+
C1E1D828250090C311FD408F /* [CP] Check Pods Manifest.lock */,
119147
9740EEB61CF901F6004384FC /* Run Script */,
120148
97C146EA1CF9000F007C117D /* Sources */,
121149
97C146EB1CF9000F007C117D /* Frameworks */,
@@ -207,6 +235,28 @@
207235
shellPath = /bin/sh;
208236
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
209237
};
238+
C1E1D828250090C311FD408F /* [CP] Check Pods Manifest.lock */ = {
239+
isa = PBXShellScriptBuildPhase;
240+
buildActionMask = 2147483647;
241+
files = (
242+
);
243+
inputFileListPaths = (
244+
);
245+
inputPaths = (
246+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
247+
"${PODS_ROOT}/Manifest.lock",
248+
);
249+
name = "[CP] Check Pods Manifest.lock";
250+
outputFileListPaths = (
251+
);
252+
outputPaths = (
253+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
254+
);
255+
runOnlyForDeploymentPostprocessing = 0;
256+
shellPath = /bin/sh;
257+
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";
258+
showEnvVarsInLog = 0;
259+
};
210260
/* End PBXShellScriptBuildPhase section */
211261

212262
/* Begin PBXSourcesBuildPhase section */

Diff for: ios/Runner.xcworkspace/contents.xcworkspacedata

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

Diff for: ios/Runner/Info.plist

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4+
<!-- 修改 iOS App 桌面图标名称:
5+
<key>CFBundleDisplayName</key>
6+
<string>Flutter Woo Commerce Getx Learn</string>
7+
-->
48
<dict>
59
<key>CFBundleDevelopmentRegion</key>
610
<string>$(DEVELOPMENT_LANGUAGE)</string>
711
<key>CFBundleDisplayName</key>
8-
<string>Flutter Woo Commerce Getx Learn</string>
12+
<string>woo</string>
913
<key>CFBundleExecutable</key>
1014
<string>$(EXECUTABLE_NAME)</string>
1115
<key>CFBundleIdentifier</key>

Diff for: macos/Flutter/Flutter-Debug.xcconfig

+1
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 "ephemeral/Flutter-Generated.xcconfig"

Diff for: macos/Flutter/Flutter-Release.xcconfig

+1
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 "ephemeral/Flutter-Generated.xcconfig"

Diff for: macos/Podfile

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

0 commit comments

Comments
 (0)