Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
esc_pos_print_plus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
esc_pos_print_plus
Commits
e3607b55
Commit
e3607b55
authored
Mar 10, 2020
by
Andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios podfile update
parent
0116eb53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
44 deletions
+59
-44
Podfile
example/discover_printers/ios/Podfile
+52
-34
Podfile.lock
example/discover_printers/ios/Podfile.lock
+3
-3
project.pbxproj
...le/discover_printers/ios/Runner.xcodeproj/project.pbxproj
+4
-7
No files found.
example/discover_printers/ios/Podfile
View file @
e3607b55
...
@@ -15,51 +15,69 @@ def parse_KV_file(file, separator='=')
...
@@ -15,51 +15,69 @@ def parse_KV_file(file, separator='=')
if
!
File
.
exists?
file_abs_path
if
!
File
.
exists?
file_abs_path
return
[];
return
[];
end
end
pods_ary
=
[]
generated_key_values
=
{}
skip_line_start_symbols
=
[
"#"
,
"/"
]
skip_line_start_symbols
=
[
"#"
,
"/"
]
File
.
foreach
(
file_abs_path
)
{
|
line
|
File
.
foreach
(
file_abs_path
)
do
|
line
|
next
if
skip_line_start_symbols
.
any?
{
|
symbol
|
line
=~
/^\s*
#{
symbol
}
/
}
next
if
skip_line_start_symbols
.
any?
{
|
symbol
|
line
=~
/^\s*
#{
symbol
}
/
}
plugin
=
line
.
split
(
pattern
=
separator
)
plugin
=
line
.
split
(
pattern
=
separator
)
if
plugin
.
length
==
2
if
plugin
.
length
==
2
podname
=
plugin
[
0
].
strip
()
podname
=
plugin
[
0
].
strip
()
path
=
plugin
[
1
].
strip
()
path
=
plugin
[
1
].
strip
()
podpath
=
File
.
expand_path
(
"
#{
path
}
"
,
file_abs_path
)
podpath
=
File
.
expand_path
(
"
#{
path
}
"
,
file_abs_path
)
pods_ary
.
push
({
:name
=>
podname
,
:path
=>
podpath
});
generated_key_values
[
podname
]
=
podpath
else
else
puts
"Invalid plugin specification:
#{
line
}
"
puts
"Invalid plugin specification:
#{
line
}
"
end
end
}
end
return
pods_ary
generated_key_values
end
end
target
'Runner'
do
target
'Runner'
do
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# Flutter Pod
# referring to absolute paths on developers' machines.
system
(
'rm -rf .symlinks'
)
system
(
'mkdir -p .symlinks/plugins'
)
# Flutter Pods
copied_flutter_dir
=
File
.
join
(
__dir__
,
'Flutter'
)
generated_xcode_build_settings
=
parse_KV_file
(
'./Flutter/Generated.xcconfig'
)
copied_framework_path
=
File
.
join
(
copied_flutter_dir
,
'Flutter.framework'
)
if
generated_xcode_build_settings
.
empty?
copied_podspec_path
=
File
.
join
(
copied_flutter_dir
,
'Flutter.podspec'
)
puts
"Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
unless
File
.
exist?
(
copied_framework_path
)
&&
File
.
exist?
(
copied_podspec_path
)
end
# Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
generated_xcode_build_settings
.
map
{
|
p
|
# That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
if
p
[
:name
]
==
'FLUTTER_FRAMEWORK_DIR'
# CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
symlink
=
File
.
join
(
'.symlinks'
,
'flutter'
)
File
.
symlink
(
File
.
dirname
(
p
[
:path
]),
symlink
)
generated_xcode_build_settings_path
=
File
.
join
(
copied_flutter_dir
,
'Generated.xcconfig'
)
pod
'Flutter'
,
:path
=>
File
.
join
(
symlink
,
File
.
basename
(
p
[
:path
]))
unless
File
.
exist?
(
generated_xcode_build_settings_path
)
raise
"Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
generated_xcode_build_settings
=
parse_KV_file
(
generated_xcode_build_settings_path
)
cached_framework_dir
=
generated_xcode_build_settings
[
'FLUTTER_FRAMEWORK_DIR'
];
unless
File
.
exist?
(
copied_framework_path
)
FileUtils
.
cp_r
(
File
.
join
(
cached_framework_dir
,
'Flutter.framework'
),
copied_flutter_dir
)
end
end
}
unless
File
.
exist?
(
copied_podspec_path
)
FileUtils
.
cp
(
File
.
join
(
cached_framework_dir
,
'Flutter.podspec'
),
copied_flutter_dir
)
end
end
# Keep pod path relative so it can be checked into Podfile.lock.
pod
'Flutter'
,
:path
=>
'Flutter'
# Plugin Pods
# Plugin Pods
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system
(
'rm -rf .symlinks'
)
system
(
'mkdir -p .symlinks/plugins'
)
plugin_pods
=
parse_KV_file
(
'../.flutter-plugins'
)
plugin_pods
=
parse_KV_file
(
'../.flutter-plugins'
)
plugin_pods
.
map
{
|
p
|
plugin_pods
.
each
do
|
name
,
path
|
symlink
=
File
.
join
(
'.symlinks'
,
'plugins'
,
p
[
:name
]
)
symlink
=
File
.
join
(
'.symlinks'
,
'plugins'
,
name
)
File
.
symlink
(
p
[
:path
]
,
symlink
)
File
.
symlink
(
p
ath
,
symlink
)
pod
p
[
:name
]
,
:path
=>
File
.
join
(
symlink
,
'ios'
)
pod
name
,
:path
=>
File
.
join
(
symlink
,
'ios'
)
}
end
end
end
# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
install!
'cocoapods'
,
:disable_input_output_paths
=>
true
post_install
do
|
installer
|
post_install
do
|
installer
|
installer
.
pods_project
.
targets
.
each
do
|
target
|
installer
.
pods_project
.
targets
.
each
do
|
target
|
target
.
build_configurations
.
each
do
|
config
|
target
.
build_configurations
.
each
do
|
config
|
...
...
example/discover_printers/ios/Podfile.lock
View file @
e3607b55
...
@@ -6,13 +6,13 @@ PODS:
...
@@ -6,13 +6,13 @@ PODS:
- Flutter
- Flutter
DEPENDENCIES:
DEPENDENCIES:
- Flutter (from `
.symlinks/flutter/ios
`)
- Flutter (from `
Flutter
`)
- flutter_bluetooth_basic (from `.symlinks/plugins/flutter_bluetooth_basic/ios`)
- flutter_bluetooth_basic (from `.symlinks/plugins/flutter_bluetooth_basic/ios`)
- wifi (from `.symlinks/plugins/wifi/ios`)
- wifi (from `.symlinks/plugins/wifi/ios`)
EXTERNAL SOURCES:
EXTERNAL SOURCES:
Flutter:
Flutter:
:path:
".symlinks/flutter/ios"
:path:
Flutter
flutter_bluetooth_basic:
flutter_bluetooth_basic:
:path: ".symlinks/plugins/flutter_bluetooth_basic/ios"
:path: ".symlinks/plugins/flutter_bluetooth_basic/ios"
wifi:
wifi:
...
@@ -23,6 +23,6 @@ SPEC CHECKSUMS:
...
@@ -23,6 +23,6 @@ SPEC CHECKSUMS:
flutter_bluetooth_basic: 0e4e27e22b50b3a25cc1d1e131953feb4af414f4
flutter_bluetooth_basic: 0e4e27e22b50b3a25cc1d1e131953feb4af414f4
wifi: d7d77c94109e36c4175d845f0a5964eadba71060
wifi: d7d77c94109e36c4175d845f0a5964eadba71060
PODFILE CHECKSUM:
aff02bfeed411c636180d6812254b2daeea14d09
PODFILE CHECKSUM:
3dbe063e9c90a5d7c9e4e76e70a821b9e2c1d271
COCOAPODS: 1.8.4
COCOAPODS: 1.8.4
example/discover_printers/ios/Runner.xcodeproj/project.pbxproj
View file @
e3607b55
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
TargetAttributes
=
{
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
97C146ED1CF9000F007C117D
=
{
CreatedOnToolsVersion
=
7.3.1
;
CreatedOnToolsVersion
=
7.3.1
;
DevelopmentTeam
=
S8Y9FJWJR6
;
DevelopmentTeam
=
8YA3WTV6AF
;
};
};
};
};
};
};
...
@@ -234,12 +234,9 @@
...
@@ -234,12 +234,9 @@
files
=
(
files
=
(
);
);
inputPaths
=
(
inputPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh"
,
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework"
,
);
);
name
=
"[CP] Embed Pods Frameworks"
;
name
=
"[CP] Embed Pods Frameworks"
;
outputPaths
=
(
outputPaths
=
(
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework"
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellPath
=
/bin/sh
;
...
@@ -374,7 +371,7 @@
...
@@ -374,7 +371,7 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CURRENT_PROJECT_VERSION
=
"$(FLUTTER_BUILD_NUMBER)"
;
CURRENT_PROJECT_VERSION
=
"$(FLUTTER_BUILD_NUMBER)"
;
DEVELOPMENT_TEAM
=
S8Y9FJWJR6
;
DEVELOPMENT_TEAM
=
8YA3WTV6AF
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
...
@@ -506,7 +503,7 @@
...
@@ -506,7 +503,7 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CURRENT_PROJECT_VERSION
=
"$(FLUTTER_BUILD_NUMBER)"
;
CURRENT_PROJECT_VERSION
=
"$(FLUTTER_BUILD_NUMBER)"
;
DEVELOPMENT_TEAM
=
S8Y9FJWJR6
;
DEVELOPMENT_TEAM
=
8YA3WTV6AF
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
...
@@ -530,7 +527,7 @@
...
@@ -530,7 +527,7 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CURRENT_PROJECT_VERSION
=
"$(FLUTTER_BUILD_NUMBER)"
;
CURRENT_PROJECT_VERSION
=
"$(FLUTTER_BUILD_NUMBER)"
;
DEVELOPMENT_TEAM
=
S8Y9FJWJR6
;
DEVELOPMENT_TEAM
=
8YA3WTV6AF
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment