Skip to content

Commit

Permalink
Merge pull request #6 from BlinkID/jenkins/stable-build
Browse files Browse the repository at this point in the history
v.5.11.2
  • Loading branch information
lukavrtaric authored Apr 30, 2021
2 parents d7e732a + c841c6a commit e891554
Show file tree
Hide file tree
Showing 42 changed files with 687 additions and 645 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Release notes

## 5.11.2

### SDK changes

* We've exposed a couple of functions that are used by the SDK to determine which WebAssembly bundle to load and from which location
* Function `detectWasmType()` returns the best possible WebAssembly bundle based on the features a browser supports.
* Function `wasmFolder( WasmType )` returns the name of the resources subfolder of the provided WebAssembly bundle type.
* For more information on how to implement these functions, see [`WasmLoadUtils.ts`](src/MicroblinkSDK/WasmLoadUtils.ts) file.

### Bugfixes

* Container width size on UI component for action label (`Scan or choose from gallery`) and action buttons (`Device camera` and `From gallery`) are now responsive on Safari.

## 5.11.1

* We've fixed a broken `rollup.config.js` which resulted in unusable UMD development bundle
Expand Down
157 changes: 75 additions & 82 deletions client-library/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/blinkid-camera/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function main()
loadSettings.loadProgressCallback = ( progress ) => ( progressEl.value = progress );

// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected].1/resources/";
loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected].2/resources/";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule( loadSettings ).then
Expand Down
4 changes: 2 additions & 2 deletions examples/blinkid-camera/javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1 id="msg">Loading...</h1>
<p id="camera-guides">Point the camera towards front side of a document.</p>
</div>
</body>
<script src="https://unpkg.com/@microblink/[email protected].1/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/[email protected].1/dist/blinkid-imagecapture-sdk.js"></script>
<script src="https://unpkg.com/@microblink/[email protected].2/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/[email protected].2/dist/blinkid-imagecapture-sdk.js"></script>
<script src="app.js"></script>
</html>
2 changes: 1 addition & 1 deletion examples/blinkid-camera/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"typescript": "^3.9.5"
},
"dependencies": {
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.11.1"
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.11.2"
}
}
2 changes: 1 addition & 1 deletion examples/blinkid-camera/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function main()
*
* For more information see "Integration" section in the official documentation.
*/
loadSettings.wasmType = "BASIC";
loadSettings.wasmType = BlinkIDSDK.WasmType.Basic;

// [OPTIONAL] Change default settings

Expand Down
2 changes: 1 addition & 1 deletion examples/blinkid-file/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function main()
loadSettings.loadProgressCallback = ( progress ) => ( progressEl.value = progress );

// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected].1/resources/";
loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected].2/resources/";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule( loadSettings ).then
Expand Down
4 changes: 2 additions & 2 deletions examples/blinkid-file/javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>Processing...</h1>
<img id="target-image" />
</div>
</body>
<script src="https://unpkg.com/@microblink/[email protected].1/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/[email protected].1/dist/blinkid-imagecapture-sdk.js"></script>
<script src="https://unpkg.com/@microblink/[email protected].2/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/[email protected].2/dist/blinkid-imagecapture-sdk.js"></script>
<script src="app.js"></script>
</html>
2 changes: 1 addition & 1 deletion examples/blinkid-file/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"typescript": "^3.9.5"
},
"dependencies": {
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.11.1"
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.11.2"
}
}
2 changes: 1 addition & 1 deletion examples/blinkid-file/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function main()
*
* For more information see "Integration" section in the official documentation.
*/
loadSettings.wasmType = "BASIC";
loadSettings.wasmType = BlinkIDSDK.WasmType.Basic;

// [OPTIONAL] Change default settings

Expand Down
Loading

0 comments on commit e891554

Please sign in to comment.