diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index d3293b9..b1f51f7 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,12 @@
-
+
+
+
+
+
+
@@ -55,13 +60,13 @@
- {
+ "keyToString": {
+ "dart.analysis.tool.window.visible": "false",
+ "io.flutter.reload.alreadyRun": "true",
+ "show.migrate.to.gradle.popup": "false"
}
-}]]>
+}
diff --git a/android/src/main/java/com/dj/printer/dj_printer/Blutooth.java b/android/src/main/java/com/dj/printer/dj_printer/Blutooth.java
index 85e66b0..a38fc25 100644
--- a/android/src/main/java/com/dj/printer/dj_printer/Blutooth.java
+++ b/android/src/main/java/com/dj/printer/dj_printer/Blutooth.java
@@ -155,7 +155,7 @@ public class Blutooth {
public void btConn(final String address) throws IOException {
// bluetoothPort.connect(address);
-
+ System.out.println("btConn");
new connBT().execute(address);
}
@@ -240,9 +240,11 @@ public class Blutooth {
try {
bluetoothPort.connect(strings[0]);
+ System.out.println("connBT "+strings[0]);
retVal = Integer.valueOf(0);
} catch (IOException e) {
e.printStackTrace();
+ System.out.println("connBt"+e.toString());
retVal = Integer.valueOf(-1);
}
diff --git a/android/src/main/java/com/dj/printer/dj_printer/DjPrinterPlugin.java b/android/src/main/java/com/dj/printer/dj_printer/DjPrinterPlugin.java
index 9ab9729..4f60bd5 100644
--- a/android/src/main/java/com/dj/printer/dj_printer/DjPrinterPlugin.java
+++ b/android/src/main/java/com/dj/printer/dj_printer/DjPrinterPlugin.java
@@ -31,6 +31,7 @@ public class DjPrinterPlugin implements FlutterPlugin, MethodCallHandler {
private static final String CONNECT = "com.connect";
Blutooth blutooth = new Blutooth();
+ private Result re;
@Override
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {
@@ -71,6 +72,7 @@ public class DjPrinterPlugin implements FlutterPlugin, MethodCallHandler {
} else if (call.method.equals("connect")) {
String arg = call.argument("address");
try {
+ System.out.println("打印机连接");
blutooth.btConn(arg);
result.success(true);
} catch (IOException e) {
diff --git a/example/pubspec.lock b/example/pubspec.lock
index 3d9865d..d5bce16 100644
--- a/example/pubspec.lock
+++ b/example/pubspec.lock
@@ -42,21 +42,14 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
- version: "1.2.0"
- charcode:
- dependency: transitive
- description:
- name: charcode
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.3.1"
+ version: "1.2.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.0"
+ version: "1.1.1"
collection:
dependency: transitive
description:
@@ -84,7 +77,7 @@ packages:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
- version: "1.3.0"
+ version: "1.3.1"
flutter:
dependency: "direct main"
description: flutter
@@ -122,28 +115,28 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
- version: "0.12.11"
+ version: "0.12.12"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
- version: "0.1.4"
+ version: "0.1.5"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
- version: "1.7.0"
+ version: "1.8.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
- version: "1.8.1"
+ version: "1.8.2"
permission_handler:
dependency: "direct main"
description:
@@ -204,7 +197,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
- version: "1.8.2"
+ version: "1.9.0"
stack_trace:
dependency: transitive
description:
@@ -225,21 +218,21 @@ packages:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.0"
+ version: "1.1.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
- version: "1.2.0"
+ version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
- version: "0.4.9"
+ version: "0.4.12"
vector_math:
dependency: transitive
description: