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
1e1a8c7e
Commit
1e1a8c7e
authored
Sep 13, 2020
by
andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump esc_pos_utils
parent
5b5f5cec
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
84 deletions
+34
-84
CHANGELOG.md
CHANGELOG.md
+4
-0
.last_build_id
example/discover_printers/ios/Flutter/.last_build_id
+1
-0
Podfile
example/discover_printers/ios/Podfile
+15
-64
Podfile.lock
example/discover_printers/ios/Podfile.lock
+2
-14
project.pbxproj
...le/discover_printers/ios/Runner.xcodeproj/project.pbxproj
+9
-3
pubspec.yaml
example/discover_printers/pubspec.yaml
+1
-1
pubspec.yaml
pubspec.yaml
+2
-2
No files found.
CHANGELOG.md
View file @
1e1a8c7e
## [3.2.6]
-
Bump esc_pos_utils
## [3.2.5]
## [3.2.5]
-
Updated example and README (using CapabilityProfiles)
-
Updated example and README (using CapabilityProfiles)
...
...
example/discover_printers/ios/Flutter/.last_build_id
0 → 100644
View file @
1e1a8c7e
6d52d4ce4fb1beead3ee79b19e241be0
\ No newline at end of file
example/discover_printers/ios/Podfile
View file @
1e1a8c7e
...
@@ -10,81 +10,32 @@ project 'Runner', {
...
@@ -10,81 +10,32 @@ project 'Runner', {
'Release'
=>
:release
,
'Release'
=>
:release
,
}
}
def
parse_KV_file
(
file
,
separator
=
'='
)
def
flutter_root
file_abs_path
=
File
.
expand_path
(
file
)
generated_xcode_build_settings_path
=
File
.
expand_path
(
File
.
join
(
'..'
,
'Flutter'
,
'Generated.xcconfig'
),
__FILE__
)
if
!
File
.
exists?
file_abs_path
unless
File
.
exist?
(
generated_xcode_build_settings_path
)
return
[];
raise
"
#{
generated_xcode_build_settings_path
}
must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
generated_key_values
=
{}
skip_line_start_symbols
=
[
"#"
,
"/"
]
File
.
foreach
(
file_abs_path
)
do
|
line
|
next
if
skip_line_start_symbols
.
any?
{
|
symbol
|
line
=~
/^\s*
#{
symbol
}
/
}
plugin
=
line
.
split
(
pattern
=
separator
)
if
plugin
.
length
==
2
podname
=
plugin
[
0
].
strip
()
path
=
plugin
[
1
].
strip
()
podpath
=
File
.
expand_path
(
"
#{
path
}
"
,
file_abs_path
)
generated_key_values
[
podname
]
=
podpath
else
puts
"Invalid plugin specification:
#{
line
}
"
end
end
File
.
foreach
(
generated_xcode_build_settings_path
)
do
|
line
|
matches
=
line
.
match
(
/FLUTTER_ROOT\=(.*)/
)
return
matches
[
1
].
strip
if
matches
end
end
generated_key_values
raise
"FLUTTER_ROOT not found in
#{
generated_xcode_build_settings_path
}
. Try deleting Generated.xcconfig, then run flutter pub get"
end
end
require
File
.
expand_path
(
File
.
join
(
'packages'
,
'flutter_tools'
,
'bin'
,
'podhelper'
),
flutter_root
)
flutter_ios_podfile_setup
target
'Runner'
do
target
'Runner'
do
use_frameworks!
use_frameworks!
use_modular_headers!
use_modular_headers!
# Flutter Pod
flutter_install_all_ios_pods
File
.
dirname
(
File
.
realpath
(
__FILE__
))
copied_flutter_dir
=
File
.
join
(
__dir__
,
'Flutter'
)
copied_framework_path
=
File
.
join
(
copied_flutter_dir
,
'Flutter.framework'
)
copied_podspec_path
=
File
.
join
(
copied_flutter_dir
,
'Flutter.podspec'
)
unless
File
.
exist?
(
copied_framework_path
)
&&
File
.
exist?
(
copied_podspec_path
)
# Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
# That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
# CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
generated_xcode_build_settings_path
=
File
.
join
(
copied_flutter_dir
,
'Generated.xcconfig'
)
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
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
# 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
.
each
do
|
name
,
path
|
symlink
=
File
.
join
(
'.symlinks'
,
'plugins'
,
name
)
File
.
symlink
(
path
,
symlink
)
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
|
flutter_additional_ios_build_settings
(
target
)
config
.
build_settings
[
'ENABLE_BITCODE'
]
=
'NO'
end
end
end
end
end
example/discover_printers/ios/Podfile.lock
View file @
1e1a8c7e
...
@@ -4,10 +4,6 @@ PODS:
...
@@ -4,10 +4,6 @@ PODS:
- Flutter (1.0.0)
- Flutter (1.0.0)
- path_provider (0.0.1):
- path_provider (0.0.1):
- Flutter
- Flutter
- path_provider_linux (0.0.1):
- Flutter
- path_provider_macos (0.0.1):
- Flutter
- wifi (0.0.1):
- wifi (0.0.1):
- Flutter
- Flutter
...
@@ -15,8 +11,6 @@ DEPENDENCIES:
...
@@ -15,8 +11,6 @@ DEPENDENCIES:
- charset_converter (from `.symlinks/plugins/charset_converter/ios`)
- charset_converter (from `.symlinks/plugins/charset_converter/ios`)
- Flutter (from `Flutter`)
- Flutter (from `Flutter`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`)
- path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
- wifi (from `.symlinks/plugins/wifi/ios`)
- wifi (from `.symlinks/plugins/wifi/ios`)
EXTERNAL SOURCES:
EXTERNAL SOURCES:
...
@@ -26,10 +20,6 @@ EXTERNAL SOURCES:
...
@@ -26,10 +20,6 @@ EXTERNAL SOURCES:
:path: Flutter
:path: Flutter
path_provider:
path_provider:
:path: ".symlinks/plugins/path_provider/ios"
:path: ".symlinks/plugins/path_provider/ios"
path_provider_linux:
:path: ".symlinks/plugins/path_provider_linux/ios"
path_provider_macos:
:path: ".symlinks/plugins/path_provider_macos/ios"
wifi:
wifi:
:path: ".symlinks/plugins/wifi/ios"
:path: ".symlinks/plugins/wifi/ios"
...
@@ -37,10 +27,8 @@ SPEC CHECKSUMS:
...
@@ -37,10 +27,8 @@ SPEC CHECKSUMS:
charset_converter: 215c7b04932ec2b9ba43be96a9bc34afed3e5322
charset_converter: 215c7b04932ec2b9ba43be96a9bc34afed3e5322
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4
path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
wifi: d7d77c94109e36c4175d845f0a5964eadba71060
wifi: d7d77c94109e36c4175d845f0a5964eadba71060
PODFILE CHECKSUM:
1b66dae606f75376c5f2135a8290850eeb09ae83
PODFILE CHECKSUM:
aafe91acc616949ddb318b77800a7f51bffa2a4c
COCOAPODS: 1.
8.4
COCOAPODS: 1.
9.3
example/discover_printers/ios/Runner.xcodeproj/project.pbxproj
View file @
1e1a8c7e
...
@@ -262,9 +262,18 @@
...
@@ -262,9 +262,18 @@
files
=
(
files
=
(
);
);
inputPaths
=
(
inputPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh"
,
"${PODS_ROOT}/../Flutter/Flutter.framework"
,
"${BUILT_PRODUCTS_DIR}/charset_converter/charset_converter.framework"
,
"${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework"
,
"${BUILT_PRODUCTS_DIR}/wifi/wifi.framework"
,
);
);
name
=
"[CP] Embed Pods Frameworks"
;
name
=
"[CP] Embed Pods Frameworks"
;
outputPaths
=
(
outputPaths
=
(
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework"
,
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/charset_converter.framework"
,
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework"
,
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/wifi.framework"
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellPath
=
/bin/sh
;
...
@@ -307,7 +316,6 @@
...
@@ -307,7 +316,6 @@
/* Begin XCBuildConfiguration section */
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9
/* Profile */
=
{
249021D3217E4FDB00AE95B9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
@@ -385,7 +393,6 @@
...
@@ -385,7 +393,6 @@
};
};
97C147031CF9000F007C117D
/* Debug */
=
{
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
@@ -441,7 +448,6 @@
...
@@ -441,7 +448,6 @@
};
};
97C147041CF9000F007C117D
/* Release */
=
{
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
example/discover_printers/pubspec.yaml
View file @
1e1a8c7e
...
@@ -18,7 +18,7 @@ dependencies:
...
@@ -18,7 +18,7 @@ dependencies:
intl
:
^0.16.1
intl
:
^0.16.1
qr_flutter
:
^3.2.0
qr_flutter
:
^3.2.0
path_provider
:
^1.6.5
path_provider
:
^1.6.5
esc_pos_utils
:
^0.4.
5
esc_pos_utils
:
^0.4.
6
# esc_pos_utils:
# esc_pos_utils:
# path: ../../../esc_pos_utils
# path: ../../../esc_pos_utils
charset_converter
:
^1.0.3
charset_converter
:
^1.0.3
...
...
pubspec.yaml
View file @
1e1a8c7e
name
:
esc_pos_printer
name
:
esc_pos_printer
description
:
The library allows to print receipts using an ESC/POS thermal WiFi printer.
description
:
The library allows to print receipts using an ESC/POS thermal WiFi printer.
version
:
3.2.
5
version
:
3.2.
6
homepage
:
https://github.com/andrey-ushakov/esc_pos_printer
homepage
:
https://github.com/andrey-ushakov/esc_pos_printer
environment
:
environment
:
...
@@ -9,7 +9,7 @@ environment:
...
@@ -9,7 +9,7 @@ environment:
dependencies
:
dependencies
:
flutter
:
flutter
:
sdk
:
flutter
sdk
:
flutter
esc_pos_utils
:
^0.4.
5
esc_pos_utils
:
^0.4.
6
# esc_pos_utils:
# esc_pos_utils:
# path: ../esc_pos_utils
# path: ../esc_pos_utils
charset_converter
:
^1.0.3
charset_converter
:
^1.0.3
...
...
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