Commit Graph

7 Commits

Author SHA1 Message Date
Dimitar Tachev
a94ec9946f Improve ImageAsset scaling (#5110)
* Do not depend on current device screen while calculating Image Asset size.

* Scale the image asset to the exact requested size.

* Process image assets natively, pass keepAspectRatio based on the stretch property and Asset options.

* Fixed the splashscreen resource name as it cannot be read when containing a dot.

* Updated the Image Asset scale and rotate logic based on the Native one.

* Make the ImageAsset size more important than the Image decode size as its more specific.

* Fixed tslint errors.

* Added filePath support in the ImageAsset constructor for iOS in order to unify it with the Android implementation, support for relative files and file not found support errors.

* Added unit tests for ImageAssets.

* Added a sample app for UI testing of image-view with ImageAsset src.

* chore: apply PR comments
2018-02-28 14:04:01 +02:00
SvetoslavTsenov
e7d0824421 Rename tests to UnitTestApp (#4520) 2017-07-06 18:26:34 +03:00
Hristo Hristov
7b5ef052fd Tests moved into separate folders (#3794)
Fix android crash on application exit
2017-03-15 12:26:54 +02:00
Hristo Hristov
3da84ce27d Added permission for location. Without it Location tests fails on some devices (Samsung S4) (#2567) 2016-08-11 09:13:39 +03:00
Rossen Hristov
e2f1e272b4 Fixed: Android layerType should not be changed if there is no need
Resolves #1899
2016-05-30 16:53:09 +03:00
Panayot Cankov
7118e117c8 Revive TKUnit.assert 2016-05-26 14:30:26 +03:00
Panayot Cankov
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00