* fix(android/application): org.nativescript.widgets.Utils::getDrawable
* chore: fix spacing
* fix(android/application): do not load empty path
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
* test: Add tests for empty image sources
* chore: add a few more test cases
These make the app crash without the fix in place
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
Changes the behavior of android fragment transactions to use `add` instead of `replace` on forward navigation.
BREAKING CHANGE:
Changes the internal behavior of Android navigation:
* while navigating forward, the page navigated from is not unloaded anymore
* events order is changed in the sense that now `unloaded` happens after `navigatedFrom` instead of before
There are multiple plus sides to this:
* no more black views on navigation when using opengl (maps, ...)
* navigation is faster, especially the navigation back! No longer need to recreate the page anymore. Navigation forward also gets faster as we no longer unload the previous page
* navigatedFrom event happens faster
* this the default behavior used by most of the android native apps
Cleanup type symbol usage by consolidating to manage in one spot. This makes them easier to use as well by providing a single rollup of all the common type symbol's used throughout core.
Cocoapods no longer required with @nativescript/core out of the box and users are no longer taxed with MaterialTabs even if they didn't use those components.
BREAKING CHANGES
If using `BottomNavigation`, just install `@nativescript-community/ui-material-bottom-navigation` and update your imports to use it. API is exactly the same.
If using `Tabs`, just install `@nativescript-community/ui-material-tabs` and update your imports to use it. API is exactly the same.
original pr credit to @farfromrefug
https://github.com/NativeScript/NativeScript/pull/8519
BREAKING CHANGE
Long standing inconsistency with color handling here.
BEFORE:
```
// #aarrggbb
const color = new Color('#ff00ff00');
Label {
background-color: #ff00ff00;
}
```
AFTER:
```
// #rrggbbaa
const color = new Color('#00ff00ff');
Label {
background-color: #00ff00ff;
}
```
BREAKING CHANGE:
AndroidTransitionType is now a static member of the Transition class.
BEFORE:
```
import { AndroidTransitionType } from '@nativescript/core/ui/transition';
```
AFTER:
```
import { Transition } from '@nativescript/core';
Transition.AndroidTransitionType.enter; // etc.
```