Skip to content

Commit

Permalink
Merge branch 'bugfix/bg_thread_scanner' into 'master'
Browse files Browse the repository at this point in the history
Bugfix: Started camera session on background thread to avoid main thread warning.

See merge request idf/esp-idf-provisioning-ios!43
  • Loading branch information
shahpiyushv committed Oct 11, 2023
2 parents a0d307a + fd2e9cc commit b38391a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ESPProvision.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "ESPProvision"
spec.version = "2.1.1"
spec.version = "2.1.2"
spec.summary = "ESP-IDF provisioning in Swift"
spec.description = "It provides mechanism to provide network credentials and/or custom data to an ESP32, ESP32-S2 or ESP8266 devices"
spec.homepage = "https://github.com/espressif/esp-idf-provisioning-ios"
Expand Down
4 changes: 3 additions & 1 deletion ESPProvision/ESPProvisionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ public class ESPProvisionManager: NSObject, AVCaptureMetadataOutputObjectsDelega
scanView.layer.addSublayer(self.previewLayer!)

ESPLog.log("Camera session started...")
self.captureSession.startRunning()
DispatchQueue.global(qos: .background).async {
self.captureSession.startRunning()
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.1.0;
MARKETING_VERSION = 2.1.2;
PRODUCT_BUNDLE_IDENTIFIER = com.espressif.provsoftap;
PRODUCT_NAME = "ESP PROV Debug";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -757,7 +757,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.1.0;
MARKETING_VERSION = 2.1.2;
PRODUCT_BUNDLE_IDENTIFIER = com.espressif.provsoftap;
PRODUCT_NAME = "ESP PROV Release";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -933,7 +933,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.1.0;
MARKETING_VERSION = 2.1.2;
PRODUCT_BUNDLE_IDENTIFIER = com.espressif.provble;
PRODUCT_NAME = "ESP BLE Prov";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -1065,7 +1065,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.1.0;
MARKETING_VERSION = 2.1.2;
PRODUCT_BUNDLE_IDENTIFIER = com.espressif.provsoftap;
PRODUCT_NAME = "ESP SoftAP Prov";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down

0 comments on commit b38391a

Please sign in to comment.