feat(android): types for API Level 30 and cleanup (#9219)

API Level 30 is now included. Also the `native` namespace used for Android/Java typings no longer collides with integrations.

BREAKING CHANGE:

If you were using`native.Array` for any of your own custom plugin typings, you can switch them to `androidNative.Array`

BEFORE:

```
public writeAsync(path: string, bytes: native.Array<number>) ...
```

AFTER:

```
public writeAsync(path: string, bytes: androidNative.Array<number>) ...
```
This commit is contained in:
Nathan Walker
2021-02-27 12:45:49 -08:00
committed by GitHub
parent c5c8615529
commit ebcc0e2cc0
27 changed files with 256952 additions and 51108 deletions

View File

@@ -204,7 +204,7 @@ function refreshBorderDrawable(this: void, view: View, borderDrawable: org.nativ
}
}
function createNativeCSSValueArray(css: string): native.Array<org.nativescript.widgets.CSSValue> {
function createNativeCSSValueArray(css: string): androidNative.Array<org.nativescript.widgets.CSSValue> {
if (!css) {
return null;
}