mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-24 05:20:17 +00:00
update flutter package
This commit is contained in:
parent
ff50f6fb49
commit
885274b2a1
4
plugins/flutter/pocketpy/.gitignore
vendored
4
plugins/flutter/pocketpy/.gitignore
vendored
@ -28,4 +28,6 @@ migrate_working_dir/
|
|||||||
.dart_tool/
|
.dart_tool/
|
||||||
build/
|
build/
|
||||||
|
|
||||||
*.xcframework/
|
ios/pocketpy/
|
||||||
|
macos/pocketpy/
|
||||||
|
|
||||||
|
|||||||
@ -2,4 +2,12 @@
|
|||||||
|
|
||||||
Official FFI bindings for pocketpy.
|
Official FFI bindings for pocketpy.
|
||||||
|
|
||||||
https://github.com/pocketpy/pocketpy
|
https://github.com/pocketpy/pocketpy
|
||||||
|
|
||||||
|
## Special Notes
|
||||||
|
|
||||||
|
For MacOS and iOS, when you install this plugin,
|
||||||
|
there is a script that will clone the pocketpy repository and build
|
||||||
|
necessary binaries. This could take several minutes.
|
||||||
|
|
||||||
|
This plugin only works for iOS real device, not simulator.
|
||||||
|
|||||||
@ -15,7 +15,7 @@ EXTERNAL SOURCES:
|
|||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
|
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
|
||||||
pocketpy: dcb5d109e54bc958a4bff38624013094ce193214
|
pocketpy: 6bad04d7bd05a4408d335d6ad6813d31d1496124
|
||||||
|
|
||||||
PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
|
PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ EXTERNAL SOURCES:
|
|||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
|
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
|
||||||
pocketpy: b4fdf42a775d9d6498ce13a2dde7fc8f462ea034
|
pocketpy: 575448ea94df6d7281990c5b6020728e795fd046
|
||||||
|
|
||||||
PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367
|
PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
void py_initialize();
|
void py_initialize();
|
||||||
|
|
||||||
__attribute__((used)) void ensure_no_tree_shaking() {
|
__attribute__((used)) void ensure_no_tree_shaking(void) {
|
||||||
py_initialize();
|
py_initialize();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,6 +30,14 @@ A new Flutter FFI plugin project.
|
|||||||
s.pod_target_xcconfig = {
|
s.pod_target_xcconfig = {
|
||||||
'DEFINES_MODULE' => 'YES',
|
'DEFINES_MODULE' => 'YES',
|
||||||
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
|
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
|
||||||
'OTHER_LDFLAGS' => '-force_load ' + __dir__ + '/Frameworks/pocketpy.xcframework/ios-arm64/libpocketpy.a',
|
'OTHER_LDFLAGS' => '-force_load ' + __dir__ + '/pocketpy/build/pocketpy.xcframework/ios-arm64/libpocketpy.a',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.prepare_command = <<-CMD
|
||||||
|
rm -rf pocketpy
|
||||||
|
git clone --branch v2.1.3-patch --depth 1 https://github.com/pocketpy/pocketpy.git
|
||||||
|
cd pocketpy
|
||||||
|
git submodule update --init --recursive --depth 1
|
||||||
|
bash build_ios_libs.sh
|
||||||
|
CMD
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
void py_initialize();
|
void py_initialize();
|
||||||
|
|
||||||
__attribute__((used)) void ensure_no_tree_shaking() {
|
__attribute__((used)) void ensure_no_tree_shaking(void) {
|
||||||
py_initialize();
|
py_initialize();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,7 +27,15 @@ A new Flutter FFI plugin project.
|
|||||||
s.library = 'c'
|
s.library = 'c'
|
||||||
s.pod_target_xcconfig = {
|
s.pod_target_xcconfig = {
|
||||||
'DEFINES_MODULE' => 'YES',
|
'DEFINES_MODULE' => 'YES',
|
||||||
'OTHER_LDFLAGS' => '-force_load ' + __dir__ + '/Frameworks/libpocketpy.a',
|
'OTHER_LDFLAGS' => '-force_load ' + __dir__ + '/pocketpy/build/libpocketpy.a',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.prepare_command = <<-CMD
|
||||||
|
rm -rf pocketpy
|
||||||
|
git clone --branch v2.1.3-patch --depth 1 https://github.com/pocketpy/pocketpy.git
|
||||||
|
cd pocketpy
|
||||||
|
git submodule update --init --recursive --depth 1
|
||||||
|
bash build_darwin_libs.sh
|
||||||
|
CMD
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@ include(FetchContent)
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
pocketpy
|
pocketpy
|
||||||
GIT_REPOSITORY https://github.com/pocketpy/pocketpy.git
|
GIT_REPOSITORY https://github.com/pocketpy/pocketpy.git
|
||||||
GIT_TAG v2.1.3
|
GIT_TAG v2.1.3-patch
|
||||||
)
|
)
|
||||||
|
|
||||||
set(PK_ENABLE_OS OFF CACHE BOOL "" FORCE)
|
set(PK_ENABLE_OS OFF CACHE BOOL "" FORCE)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user