12 Commits

Author SHA1 Message Date
0a2b2202f3 fix(testing): e2e flag no longer needed, testID is now applicable in dev or prod builds (#10396)
- you can now test on development or production with testID set
- for android, this changes testID to use resource id instead of content description
- you no longer need to pass `--env.e2e`. e2e is simply usable if testID is set
- the `testID` property will also set `accessibilityIdentifier` and `accessibilityIdentifier` property will set `testID` only if there is a `testID` already set
2023-10-04 08:49:26 -07:00
a4bfbdaaa9 perf(android): batch setupAccessibleView calls to improve TTI (#10391) 2023-09-27 17:57:17 -07:00
f64355ba7a refactor: improved core barrel exports and Application class (#10286)
BREAKING CHANGES:

`Application.orientation` is no longer a function.

Migration: Remove `()` from the `Application.orientation()` call:
```diff
import { Application } from "@nativescript/core";

-console.log(Application.orientation());
+console.log(Application.orientation);
```


`Application.systemAppearance` is no longer a function.

Migration: Remove `()` from the `Application.systemAppearance()` call:
```diff
import { Application } from "@nativescript/core";

-console.log(Application.systemAppearance());
+console.log(Application.systemAppearance);
```
2023-05-25 07:45:39 -07:00
485fb61947 fix(core): Observable event types consistency (#10181) 2023-01-31 07:42:09 -08:00
82d60ae057 fix(core): circular imports of SDK_VERSION 2022-11-30 09:14:10 -08:00
abd722cd3d perf(core): android sdk check (#10084) 2022-11-12 10:09:45 -08:00
8be543bcc7 feat: testID property for use with e2e testing without interfering with a11y (#9793)
* fix(android): nested frames were sometimes not recreated (#9748)

Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>

* feat: testID property for use with e2e testing without interfering with a11y

* feat: better testID support along a11y

wip

* fix: make sure we have a defined id

* feat: --env.e2e to enable testID

* chore: return if using testID

* chore: cleanup

Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2022-03-08 23:25:05 +01:00
dbaf203a59 fix(android): a11y - do not provide content description for TextView elements (#9673)
Android accessibility services automatically announce the text itself as the description (see https://developer.android.com/guide/topics/ui/accessibility/apps#describe-ui-element)

If an a11y property is provided, the content description should also be set for TextView elements to keep the support for Labels/Buttons that only have a font icon as text and therefore need to have an accessibilityLabel.

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>

closes #9588
2022-03-01 12:32:39 -08:00
fde666de28 fix(android): accessibility crash on View not extending android.view.View (#9303) 2021-04-06 16:39:52 -07:00
a822f2affb chore: a11y polish (#9259) 2021-04-06 11:18:36 -07:00
e9b5eb934d chore: cleanup a11y and add demo page 2021-04-06 11:18:36 -07:00
d5a8a25aba feat(core): first class a11y support (#8909) 2021-04-06 11:18:36 -07:00