Merge branch 'master' of github.com:NativeScript/NativeScript

This commit is contained in:
Martin Guillon
2020-11-01 12:06:54 +01:00
4 changed files with 24 additions and 4 deletions

View File

@ -1,3 +1,18 @@
## [7.0.13](https://github.com/NativeScript/NativeScript/compare/7.0.12-core...7.0.13) (2020-10-28)
### Bug Fixes
* **core:** ListViewCell.initWithEmptyBackground ([#8985](https://github.com/NativeScript/NativeScript/issues/8985)) ([0eb2246](https://github.com/NativeScript/NativeScript/commit/0eb2246b7dfc3eda731f8cb7ee1bbfcd36551dfa))
* **ios:** UIImage.imageWithData.async is not a function ([b966542](https://github.com/NativeScript/NativeScript/commit/b96654276b8e423a21f95261449f578470e027d8))
### Features
* **core:** Repeater multiple item templates implementation ([#8981](https://github.com/NativeScript/NativeScript/issues/8981)) ([b113f19](https://github.com/NativeScript/NativeScript/commit/b113f1916db591d23327e7eead498c722ce76876))
## [7.0.12](https://github.com/NativeScript/NativeScript/compare/7.0.11-core...7.0.12) (2020-10-21) ## [7.0.12](https://github.com/NativeScript/NativeScript/compare/7.0.11-core...7.0.12) (2020-10-21)

View File

@ -1,6 +1,6 @@
{ {
"name": "nativescript", "name": "nativescript",
"version": "7.0.12", "version": "7.0.13",
"license": "MIT", "license": "MIT",
"config": { "config": {
"npm_alias": "npm" "npm_alias": "npm"

View File

@ -154,8 +154,13 @@ export class ImageSource implements ImageSourceDefinition {
return new Promise<ImageSource>((resolve, reject) => { return new Promise<ImageSource>((resolve, reject) => {
try { try {
const data = NSData.alloc().initWithBase64EncodedStringOptions(source, NSDataBase64DecodingOptions.IgnoreUnknownCharacters); const data = NSData.alloc().initWithBase64EncodedStringOptions(source, NSDataBase64DecodingOptions.IgnoreUnknownCharacters);
UIImage.imageWithData['async'](UIImage, [data]).then((uiImage) => { const main_queue = dispatch_get_current_queue();
resolve(new ImageSource(uiImage)); const background_queue = dispatch_get_global_queue(qos_class_t.QOS_CLASS_DEFAULT, 0);
dispatch_async(background_queue, () => {
const uiImage = UIImage.imageWithData(data);
dispatch_async(main_queue, () => {
resolve(new ImageSource(uiImage));
});
}); });
} catch (ex) { } catch (ex) {
reject(ex); reject(ex);

View File

@ -3,7 +3,7 @@
"main": "index", "main": "index",
"types": "index.d.ts", "types": "index.d.ts",
"description": "NativeScript Core Modules", "description": "NativeScript Core Modules",
"version": "7.0.12", "version": "7.0.13",
"homepage": "https://nativescript.org", "homepage": "https://nativescript.org",
"repository": { "repository": {
"type": "git", "type": "git",