Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nativescript/types-android

Package Overview
Dependencies
Maintainers
18
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript/types-android - npm Package Versions

23

8.9.0-alpha.0

Diff

nativescript-bot
published 8.8.0 •

Changelog

Source

8.8.1 (2024-07-12)

Bug Fixes

  • android: targetSdk 34 registerBroadcastReceiver (#10585) (4c70596)

Bug Fixes

  • action-bar: provide correct page during navigation when title change occurs (#10563) (12dd329)
  • android: dont add to parent from _setupAsRootView (#10554) (88a0472)
  • android: prevent error on navigation back after using page transition (#10439) (7036f12)
  • android: prevent error while opening modal from background (#10570) (7e9be32)
  • android: transition state handling (#10528) (632a348)
  • core: clean up event handling in Observable (#10531) (53e958e)
  • core: clean up event handling in ViewCommon (#10534) (4a7e40d)
  • core: drop support for plural event/gesture names (#10539) (9be392f)
  • core: handle GestureObservers same as event listeners (#10538) (d323672)
  • core: stop accepting GestureTypes enum as an eventName (#10537) (3b77fff)
  • crypto: error expectation (2bfe8b3)
  • embed: use factory only when it's available (#10579) (9541b1b)
  • gestures: lowercase gesture handling and add deprecation notice when using non-string events (#10581) (6041b2d)
  • view: modal stack tracking (#10557) (84e1a67)
  • webpack: union type (#10575) (0e2db6e)
  • winter-cg: crypto (#10580) (41f938c)

Features

  • android: background color/image handling improvements (#10451) (4abcb21)
  • config: embed options for existing platform host projects (#10568) (c736f72)
  • core: ability to embed into platform host projects (#10465) (779d792)
  • core: add sys:// support for SF Symbol usage on images with effects (#10555) (d678915)
  • core: css media query support (#10530) (9fd361c)
  • core: css-what parser for CSS selectors + support for :not(), :is(), and :where() Level 4 and ~ (#10514) (2fb4f23)
  • ios: SF Symbol scale support via iosSymbolScale (#10569) (80f3ff2)
  • types-ios: iOS 18 (#10558) (893b858)
  • types: iOS 18 beta 3 (492eef0)
  • webpack: allow custom 'projectName' on Xcode project name from config (#10550) (b8fff38)
  • winter-cg: crypto, atob, btoa (#10577) (f7679d7)

Performance Improvements

  • android: gridlayout with less JNI calls (#10402) (6dd441d)
  • improve attribute selectors by adding single listeners (#10384) (bb83add)

Reverts

  • "perf: improve attribute selectors by adding single listeners (#10384)" (7f2d51e)
nativescript-bot
published 8.7.0 •

Changelog

Source

8.7.0 (2024-04-08)

Bug Fixes

  • android: crash on writeText on Android > 29 (#10466) (02e2801)
  • android: getInputStream around "content://" paths (#10469) (41759c1)
  • android: prevent errors on filesystem operations while using "content://" uris (#10461) (c15820b)
  • android: sustain native error stack (#10467) (b226066)
  • color: setAlpha and other methods return proper Color class (#10441) (4f12fee)
  • core: profile decorator (#10476) (135d37b)
  • inspector_modules (ae62725)
  • ios: live-sync handling for plain js/ts apps (#10500) (7370912)
  • ios: unset cached frame before updating origin point (#10499) (3a486e5)

Features

  • android: devtools for elements & network requests (#10506) (5324e50)
  • android: expanded layout constructors so they can be instantiated within android layouts(#10444) (ca886b9)
  • ios: allow custom navigationBar and toolbar on frame (#10495) (d67d297)
  • ios: allow disabling text animations (#10505) (9ca4902)
  • SegmentedBar: selectedTextColor added and selectedBackgroundColor improvements (#10474) (3a0afdb)
  • types-ios: add interop type for stringFromCString (#10494) (0c8c945)
  • visionos: ui-mobile-base supporting xros plus improvements to window handling (#10478) (01d537b)
  • wepback: custom buildPathsupport (#10477) (4293284)

Performance Improvements

nativescript-bot
published 8.7.0-rc.0 •

nativescript-bot
published 8.6.1 •

Changelog

Source

8.6.1 (2023-11-02)

Bug Fixes

  • android: prevent rehydration on destroyed dialogs (#10414) (7563549)
  • core: box-shadow 'none' handling (#10405) (c23695c)
  • core: font variation settings parser invalid axis (#10427) (0847855)
  • core: page frame reference not unset on native view disposal (#10417) (22c21b7)
  • css: prevent shorthand parse error on 'unset' and 'inset' (#10424) (d70b48b)
  • ios: add/remove shadow for reusable views (#10409) (ee87b52)
  • ios: property mask on 'undefined' during view disposal (#10404) (212d086)
  • ios: shadow position after translate transform (#10413) (c78ea79)

Features

  • android: allow shared element transitions to work with ListView/CollectionView/Pager (#10411) (e8c093d)
nativescript-bot
published 8.6.0 •

Changelog

Source

8.6.0 (2023-10-10)

Bug Fixes

  • android: Utils.dismissKeyboard() not working with modal (#10375) (6d44c2d)
  • android: outline path is only supported on api >=33 (#10389) (ff66b1b)
  • class name typo (#10364) (f5f4666)
  • core: Scroll listener register failure after unregister (#10368) (e4fe276)
  • css: prevent duplicate system classes (#10355) (74e6814)
  • ios: Shadow layer origin point update (#10376) (f54ebbb)
  • testing: e2e flag no longer needed, testID is now applicable in dev or prod builds (#10396) (0a2b220)
  • webpack: handle single appComponents env flag (#10401) (0b5393d)
  • webpack: set keep_quoted_props: true in TerserOptions (#10382) (2cb26c2)
  • webpack: force experimentalDecorators on NativeClass (#10356) (0efb84f)

Features

Performance Improvements

  • android: batch setupAccessibleView calls to improve TTI (#10391) (a4bfbda)
  • core: cache default view paddings on android (#10390) (6f599fe)
nativescript-bot
published 8.5.0 •

Changelog

Source

8.5.0 (2023-03-28)

Bug Fixes

Features

Performance Improvements

Breaking Changes

  1. Event binding callbacks prefer a properly typed argument:

Potential issue:

error TS2339: Property 'newValue' does not exist on type 'EventData'.

2611       if (e.newValue) {

Possible causes:

Application.on(Application.orientationChangedEvent, (event) => {

Solution:

Application.on(Application.orientationChangedEvent, (event: OrientationChangedEventData) => {
  1. Android labels are vertical align middle by default.

This means that potentially if you were using margins to position, for example on font icon labels, they may appear mis-positioned intially after updating. You should be able to remove custom margin handling to simplify.

  1. Page transitions have improved their API to provide more platform control and introduced a breaking change to the method signatures on iOS. If you had created a custom by extending the Transition class:
  • BEFORE:
animateIOSTransition(containerView: UIView, fromView: UIView, toView: UIView, operation: UINavigationControllerOperation, completion: (finished: boolean) => void): void {
    toView.transform = CGAffineTransformMakeScale(0, 0);
    fromView.transform = CGAffineTransformIdentity;

    switch (operation) {
        case UINavigationControllerOperation.Push:
            containerView.insertSubviewAboveSubview(toView, fromView);
            break;
        case UINavigationControllerOperation.Pop:
            containerView.insertSubviewBelowSubview(toView, fromView);
            break;
    }

    var duration = this.getDuration();
    var curve = this.getCurve();
    UIView.animateWithDurationAnimationsCompletion(
        duration,
        () => {
            UIView.setAnimationCurve(curve);
            toView.transform = CGAffineTransformIdentity;
            fromView.transform = CGAffineTransformMakeScale(0, 0);
        },
        completion
    );
}
  • AFTER:
animateIOSTransition(transitionContext: UIViewControllerContextTransitioning, fromViewCtrl: UIViewController, toViewCtrl: UIViewController, operation: UINavigationControllerOperation): void {
    const toView = toViewCtrl.view;
    const fromView = fromViewCtrl.view;
    toView.transform = CGAffineTransformMakeScale(0, 0);
    fromView.transform = CGAffineTransformIdentity;

    switch (operation) {
        case UINavigationControllerOperation.Push:
            transitionContext.containerView.insertSubviewAboveSubview(toView, fromView);
            break;
        case UINavigationControllerOperation.Pop:
            transitionContext.containerView.insertSubviewBelowSubview(toView, fromView);
            break;
    }

    var duration = this.getDuration();
    var curve = this.getCurve();
    UIView.animateWithDurationAnimationsCompletion(
        duration,
        () => {
            UIView.setAnimationCurve(curve);
            toView.transform = CGAffineTransformIdentity;
            fromView.transform = CGAffineTransformMakeScale(0, 0);
        },
        (finished) => {
            transitionContext.completeTransition(finished);
        }
    );
}
Notes
  • Android WeakRef usage is now standardized and aligned with iOS and latest JavaScript standards to universally use deref instead of the deprecated get API. In 8.4, iOS allowed usage of deref but Android still required get. With 8.5 you can now use deref the same everywhere.
  • If you were using an iterator over an iOS NSArray, always make sure it's using proper platform API, for example:

Incorrect:

// collection: NSArray
for (var i = 0; i < collection.count; i++) {
    const obj = collection[i];

Correct:

// collection: NSArray
for (var i = 0; i < collection.count; i++) {
    const obj = collection.objectAtIndex(i);
nativescript-bot
published 8.4.0 •

Changelog

Source

8.4.0 (2022-11-30)

Features

  • android: support drawable in ImageSource (#10098) (75eefa6)
  • android: use NestedScrollView for vertical ScrollView (#9199) (cfaa813)
  • core: support css font-variation-settings (#9995) (a5e3e22)
  • core: support for external XML UI compilers (#10008) (75503ef)
  • HtmlView: selectable property (#10057) (ca9c092)
  • types-android: API Level 33 (#10113) (c1187fe)
  • types-ios: 16.1 (#10114) (da78e0b)
  • utils: dismissKeyboard, copyToClipboard, setWindowBackgroundColor, getCurrentActivity and getResource (#10089) (2e1d2c1)
  • webview: adds iosAllowInlineMediaPlayback property (#10014) (4a0e1c9)
  • TypeScript 4.8+ support and NativeClass decorator improvements (#10081) (7f069a7)

Bug Fixes

  • android: application fallback for startActivity (#10062) (f3a5c16)
  • android: file manipulation threw exception inside worker (#10076) (25c862e)
  • android: file system normalizePath (#10077) (497a9db)
  • android: modal status bar props applied to wrong window (#10049) (6934645)
  • android: normalize for API >= 26 (#10083) (e687e9d)
  • android: tappable spans aren't visible on single-line labels (#10055) (5765707)
  • android: ApplicationSettings return precise stored numbers (#10094) (fd98690)
  • android: memory leak with EditableTextBase (#10052) (501d310)
  • android: prevent flashing activity on app start (#9190) (6a9484a)
  • android: shared SDK_VERSION (#10090) (0226f47)
  • core: ellipsis at the end for Labels with maxLines (#10005) (6c60eab)
  • core: prevent a circular reference because of SDK_VERSION (#10097) (c957b48)
  • core: Color.isValid returned true for null/undefined (#10040) (9091e43)
  • core: font-weight allow passing number (#10072) (5f3f1ac)
  • core: windows build (#10056) (7860d51)
  • color: floating point color values (66e8e39)
  • core: deprecation notes for WeakRef clear and get (3019181)
  • core: WeakRef deprecation notes (b83ed39)
  • ios: animation layer resilience (#10060) (6cabcab)
  • ios: Color.fromIosColor returns wrong value (#10059) (b7d340f)
  • ios: ensure autocorrect not applied silently on IOS16 (#10032) (40b9e35)
  • ios: frame navigatingTo event (#10096) (6148955)
  • ios: stability around canceling an animation (b8d5372)
  • webpack: prevent hmr from patching __onLiveSync multiple times (#10103) (42f5dc5)
  • webpack: support angular 15.x (#10106) (f100109)
  • webpack: close compiler after run (#10080) (59ca35b)
  • webpack: make NativeClass transformer backwards compatible (59624a4)

Performance Improvements

nativescript-bot
published 8.3.1 •

Changelog

Source

8.3.1 (2022-07-21)

Bug Fixes

nativescript-bot
published 8.3.0 •

Changelog

Source

8.3.0 (2022-07-14)

Bug Fixes

  • android: connectivity reporting none on resume (#9915) (413fa2e)
  • android: content uri handling improvements (#9936) (9fcd440)
  • android: device language and region from system configuration. (#9868) (ad01e6b)
  • android: font icons had incorrect fallback size (#9914) (e8bed44)
  • android: Textfield focus fix (#9885) (fbd1e23)
  • core: allow View subclass to force onLayoutChangeListener (#9886) (6ccf5a2)
  • core: android wrong background state + current value accessors (#9883) (58a7206)
  • core: ensure platforms/android/core.aar is not included in pack (a1dff9a)
  • core: import fix (45dcada)
  • core: metadata filtering (#9946) (4a5e2e2)
  • core: navigatingToEvent allows access to resolvedPage now (#9954) (38142a6)
  • core: trace log using a wrong parameter (#9951) (cd5d2c2)
  • ensure reusable ProxyViewContainer re-adds native children (#9882) (0a082b3)
  • export 'dataSerialize' from utils (#9909) (a85a72d)
  • incorrect font icon size conversion to device pixels. (#9910) (d3718e5)
  • ios: apply proper border radius to box shadow and view sublayers (#9881) (b7e6128)
  • ios: do not convert tap event data to device pixels twice (#9935) (3681fd4)
  • ios: label measure correct height when using custom numberOfLines (#9945) (2ff0891)
  • ios: memory leak after using 'showModal' passing any Page as parameter (#9939) (4db4e4a)
  • ios: memory leak after using the 'presentViewControllerNavigation' (#9934) (957af32)
  • ios: proper disposal and recreation of iOS native views (#9879) (f548fdc)
  • live-sync: navigation history is now maintained (#9889) (665009b)
  • RootLayout: resilience around shadeCover options (e5fffa1)
  • TabView: item styling improvements for iOS 15+ (#9888) (7ccc949)
  • ui-mobile-base: Android http request body was not sent if method was DELETE (#9887) (57e4973)
  • webpack: NativeClass decorator should run after angular transformers in AOT mode (#9908) (c9f77a0)
  • webpack: unit test runner with node 18+ (#9952) (97a21bb)

Features

  • android: runOnMain, postFrameCallback & removeFrameCallback (#9943) (49343cb)
  • application: expose inBackground and suspended (#9897) (8987bab)
  • core: iterable ObservableArray (#9824) (df74a8b)
  • core: maxLines support for all text components (#9884) (7ff7233)
  • ios: Utils.getRootViewController (29004d9)
  • mac: support for Mac Catalyst with ui-mobile-base (fc77c92)
  • RootLayout: add opened and closed events (#9893) (7b11b6a)
  • types-minimal: paired down typings optimized for smaller footprint editing environments (#9947) (f49e412)
  • Utils: dataSerialize, dataDeserialize, numberHasDecimals, numberIs64Bit (cab5947)

Performance Improvements

  • cache UIFont construction based on FontDescriptor (#9948) (8756df3)

BREAKING CHANGES

  • core: Method push will now handle arguments just like Array.prototype.push. Certain existing methods will now return ObservableArray instance instead. Callback arguments that contained an array argument themselves will now contain an ObservableArray argument.
  • android: Exposes language and region values from android system configuration. If you were working around locale handling because this wasn't originally the case you can likely remove extra conditions as this should reflect more accurately now.
  • ios: tapData.getX() and tapData.getY() will now return correctly in DIP, so any extra conversions (like calling toDevicePixels) twice must be changed.
  • core: When using navigatingToEvent event.entry, the backstackEntry object is now returned which has an entry property on it if you still need it.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc