Răsfoiți Sursa

rename `pkpy` to `pocket`

blueloveTH 1 an în urmă
părinte
comite
4ebe09fc82

+ 2 - 2
plugins/flutter/pocketpy/example/lib/main.dart

@@ -19,14 +19,14 @@ class MyApp extends StatefulWidget {
 class _MyAppState extends State<MyApp> {
   @override
   Widget build(BuildContext context) {
-    bool ok = pkpy.py_exec(
+    bool ok = pocket.py_exec(
         'import sys\nprint(sys.version)'.toNativeUtf8().cast(),
         'main.py'.toNativeUtf8().cast(),
         py_CompileMode.EXEC_MODE,
         Pointer.fromAddress(0));
 
     if (!ok) {
-      pkpy.py_printexc();
+      pocket.py_printexc();
     }
 
     return MaterialApp(

+ 1 - 1
plugins/flutter/pocketpy/lib/pocketpy.dart

@@ -11,7 +11,7 @@ void flutterPrint(Pointer<Char> text) {
   print(text.cast<Utf8>().toDartString());
 }
 
-final PocketpyBindings pkpy = () {
+final PocketpyBindings pocket = () {
   DynamicLibrary dylib;
   if (Platform.isMacOS || Platform.isIOS) {
     dylib = DynamicLibrary.open('$_libName.framework/$_libName');

+ 1 - 1
plugins/flutter/pocketpy/pubspec.yaml

@@ -1,6 +1,6 @@
 name: pocketpy
 description: A lightweight Python interpreter for game engines. It supports Android/iOS/Windows/Linux/MacOS.
-version: 2.0.1+5
+version: 2.0.1+6
 homepage: https://pocketpy.dev
 repository: https://github.com/pocketpy/pocketpy