Commit Graph

51 Commits

Author SHA1 Message Date
Nathan Walker
3dec0a5e99 chore: use vitest for unit testing plus workspace updates (#10662) 2025-01-12 11:52:13 -08:00
Nathan Walker
f184d5b814 chore: workspace updates 2024-07-10 09:15:48 -07:00
Nathan Walker
415ff34660 chore: nx migrate plus keep lock files (#10536) 2024-05-06 10:20:01 -07:00
Nathan Walker
2237c9be4f chore: Nx 17+ (#10449) 2023-11-25 10:58:41 -08:00
Nathan Walker
9a779dfa8a chore: nx-cloud setup (#10110) 2022-11-29 13:26:51 -08:00
Nathan Walker
638388244e chore: ignore local .npmrc 2022-03-01 12:32:38 -08:00
Igor Randjelovic
a88cacab89 chore(migrate): apps/* to webpack5 (#9606) 2021-12-21 09:47:33 -08:00
Igor Randjelovic
9f436695ad feat(webpack5): initial project files 2021-03-02 20:23:04 -08:00
Igor Randjelovic
d7b2c84da8 feat: add npm scripts for different package managers, ie: yarn, pnpm (#9230) 2021-02-20 10:40:12 -08:00
Nathan Walker
9aad2dbdbc feat(ios): types for latest ios 14.3 with Xcode 12.3 (#9118) 2020-12-30 07:57:10 -08:00
Nathan Walker
020ad4da37 chore(core): monorepo, esm targeting, improved management (#8707) 2020-08-25 20:00:59 -07:00
Vasko
5c3ba11d95 chore: git ignore fix 2020-03-26 16:21:00 +02:00
Vasil Trifonov
270988d26e Added iconClass property to TabStripItem (#8440)
* chore: ignore e2e folder's other subfolders

* feat: added iconClass to tabStripItem
2020-03-16 14:22:24 +02:00
Sidhya Tikku
904590ee7d chore: update .gitignore (#7981) 2019-10-21 18:03:35 +03:00
Alexander Vakrilov
cc97a16800 feat: Scoped Packages (#7911)
* chore: move tns-core-modules to nativescript-core

* chore: preparing compat generate script

* chore: add missing definitions

* chore: no need for http-request to be private

* chore: packages chore

* test: generate tests for tns-core-modules

* chore: add anroid module for consistency

* chore: add .npmignore

* chore: added privateModulesWhitelist

* chore(webpack): added bundle-entry-points

* chore: scripts

* chore: tests changed to use @ns/core

* test: add scoped-packages test project

* test: fix types

* test: update test project

* chore: build scripts

* chore: update build script

* chore: npm scripts cleanup

* chore: make the compat pgk work with old wp config

* test: generate diff friendly tests

* chore: create barrel exports

* chore: move files after rebase

* chore: typedoc config

* chore: compat mode

* chore: review of barrels

* chore: remove tns-core-modules import after rebase

* chore: dev workflow setup

* chore: update developer-workflow

* docs: experiment with API extractor

* chore: api-extractor and barrel exports

* chore: api-extractor configs

* chore: generate d.ts rollup with api-extractor

* refactor: move methods inside Frame

* chore: fic tests to use Frame static methods

* refactor: create Builder class

* refactor: use Builder class in tests

* refactor: include Style in ui barrel

* chore: separate compat build script

* chore: fix tslint errors

* chore: update NATIVESCRIPT_CORE_ARGS

* chore: fix compat pack

* chore: fix ui-test-app build with linked modules

* chore: Application, ApplicationSettings, Connectivity and Http

* chore: export Trace, Profiling and Utils

* refactor: Static create methods for ImageSource

* chore: fix deprecated usages of ImageSource

* chore: move Span and FormattedString to ui

* chore: add events-args and ImageSource to index files

* chore: check for CLI >= 6.2 when building for IOS

* chore: update travis build

* chore: copy Pod file to compat package

* chore: update error msg ui-tests-app

* refactor: Apply suggestions from code review

Co-Authored-By: Martin Yankov <m.i.yankov@gmail.com>

* chore: typings and refs

* chore: add missing d.ts files for public API

* chore: adress code review FB

* chore: update api-report

* chore: dev-workflow for other apps

* chore: api update

* chore: update api-report
2019-10-17 00:45:33 +03:00
Alexander Vakrilov
82f2ccbdfb chore: remove grunt and clean-up (#7845)
* chore: remove grunt files and deps

* chore: npm scripts cleanup

* chore: more deps clean-up

* chore: tsconfig clean-up

* chore: remove unneed file

* chore: move tsinfig.unit-tests

* chore: add dist/ exclude
2019-10-03 14:50:59 +03:00
Vasil Chimev
3e8d6350b9 feat(platform-declarations): generate typings from iOS 13.0 SDK (#7817)
* feat(platform-declarations): generate typings from iOS 13.0 SDK

* fix(platform-declarations): typings generation script

Delete Material Components typings from `tns-platform-declarations`,
they are part of `tns-core-modules` package.

* refactor(platform-declarations): workaround a TypeScript error

Error:
```
tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts(178,15): error TS2417: Class static side 'typeof OSLogEnumerator' incorrectly extends base class static side 'typeof NSEnumerator'.
  Types of property 'alloc' are incompatible.
    Type '() => OSLogEnumerator' is not assignable to type '<ObjectType>() => NSEnumerator<ObjectType>'.
      Type 'OSLogEnumerator' is not assignable to type 'NSEnumerator<ObjectType>'.
        Types of property 'allObjects' are incompatible.
          Type 'NSArray<NSObject>' is not assignable to type 'NSArray<ObjectType>'.
            Type 'NSObject' is not assignable to type 'ObjectType'.
              'NSObject' is assignable to the constraint of type 'ObjectType', but 'ObjectType' could be instantiated with a different subtype of constraint '{}'.
```

References:
https://github.com/Microsoft/TypeScript/issues/17575
https://stackoverflow.com/questions/52518125/workaround-for-accessing-class-type-arguments-in-static-method-in-typescript

* docs(platform-declarations): note a manual step on generating typings

* chore(platform-declarations): exclude ios-typings-prj from transpilation

* refactor(platform-declarations): delete references to MDC types

```
ios/objc-x86_64/objc!QuartzCore.d.ts:676:36 - error TS2304: Cannot find name 'MDCAnimationTimingFunction'.

676  static mdc_functionWithType(type: MDCAnimationTimingFunction): CAMediaTimingFunction;

ios/objc-x86_64/objc!UIKit.d.ts:7717:54 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7717  static mdc_preferredFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont;

ios/objc-x86_64/objc!UIKit.d.ts:7719:53 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7719  static mdc_standardFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont;

ios/objc-x86_64/objc!UIKit.d.ts:7771:63 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7771  mdc_fontSizedForMaterialTextStyleScaledForDynamicType(style: MDCFontTextStyle, scaled: boolean): UIFont;

ios/objc-x86_64/objc!UIKit.d.ts:7794:64 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7794  static mdc_preferredFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor;

ios/objc-x86_64/objc!UIKit.d.ts:7796:63 - error TS2304: Cannot find name 'MDCFontTextStyle'.

7796  static mdc_standardFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor;
```
2019-09-19 22:18:08 +03:00
Nicu
b6ff4d376a fix: dots can now be used in module names (#7655)
Only known extensions are stripped from the end of module names
2019-08-21 00:01:53 +03:00
Vasil Chimev
70f8d70f07 chore(e2e): update config files (#7677)
* chore(e2e): update config files

* chore: update .gitignore file

* chore: update references.d.ts file

* chore: remove npm scripts

* chore: update travis config
2019-08-18 23:16:35 +03:00
Martin Yankov
d3dee98116 chore: remove e2e resources and ignore (#7575) 2019-07-26 14:40:10 +03:00
Manol Donev
ecd9fc3e9d feat: bundle workflow support (#7337) 2019-06-20 15:58:36 +03:00
Vasil Chimev
982acdc168 feat(iOS): Safe Area Support (#6230) 2018-09-28 18:21:50 +03:00
Teodor Dermendjiev
05c2460fc4 feat: Pass NS app to the native app instead of presenting it over the root VC (#5967)
* feat: Pass NS app native controller to the native app instead of presenting it over the rootViewController

When NativeScript embedded app is created from the native one we check for whether the topmost UIViewController has NativeScriptEmbedder protocol (implemented in the iOS Runtime) method 'presentNativeScriptApp:'. If yes, we call it with the NS app viewcontroller as a parameter so the embedder has control over the NS app (where and how to present it etc.) For backwards compatibility we present the NS app on top of the topmost UIViewController as a fallback.

* style: Fix lint errors

* feat: Check for protocol instead of selector in embedding

I

* Check for rootController instead of topViewController to prevent crash if !rootController

* feat: Introduce NativeScriptEmbedder singleton

NativeScriptEmbedder is responsive for communication between the NS and the native iOS app. His delegate will implement methods which we can call from javascript such as "presentNativeScriptApp:".
2018-06-27 16:48:11 +03:00
Vasil Chimev
83382f8f5a refactor(e2e): rename modal-layout to modal-layout-root (#5867)
* chore(e2e): register `layout` files in bundle-config

* refactor(e2e): rename modal-layout to modal-layout-root

Similar to `modal-tab-root`:
https://github.com/NativeScript/NativeScript/tree/4.0.0/e2e/modal-navigation/app/modal-tab

This avoid the need to explicitly register it to webpack modules.

* refactor(e2e): rename mocha describes to contain a dash

* refactor: remove bundle-config

It is no more as `nativescript-dev-webpack@0.12.0` registers default application modules.
2018-05-29 10:49:13 +03:00
Vasil Chimev
3bb0f4a8cd chore(e2e): clean up webpack files (#5807)
* chore(e2e): clean up webpack files

* chore(gitignore): clean up and add webpack files

* chore(gitignore): clean up webpack files

* chore(deps): clean up devDependencies
2018-05-14 14:12:46 +03:00
Vasil Chimev
e1a1d643c8 test(e2e): add modal-navigation app tests (#5445)
* test(e2e): modal-navigation app webpack support

* test(e2e): add modal-navigation app smoke test

* chore(e2e): tslint disable next line

* chore(e2e): modal-navigation app compilation

* refactor(e2e): modal-nabivation app pages

* test(e2e): add app root modal frame tests

* test(e2e): add app root modal frame background tests

* refactor(e2e): app root modal frame tests

* test(e2e): add tab root modal frame tests

* refactor(e2e): modal frame tests

* test(e2e): add modal page tests

* docs(e2e): add scenarios

* refactor(e2e): modal-navigation app tests

* test(e2e): turn on/off "Don't keep activities"

* test(e2e): delete no background tests

* test(e2e): add modal tab tests

* refactor(e2e): quit driver after all tests

* refactor(e2e): config files

* fix(e2e): tab root tests

* refactor(e2e): skip tab root tests until fix app

* chore(e2e): config files
2018-03-13 09:06:12 +02:00
Manol Donev
e1eea8efe7 test(e2e): add modal-navigation app (#5393)
* chore(apps): add modal-navigation-app for ui testing

* test(e2e): add modal-navigation app

* test(apps): remove modal-navigation-app

The app has been moved to `e2e/modal-navigation`.

* chore: include e2e folder to npm scripts

* docs: include e2e folder to DevelopmentWorkflow.md

* chore(e2e): update .gitignore

* fix(e2e): relative paths

* chore(e2e): update package.json

* test(e2e): add change root view to modal-navigation

* test(e2e): set androidTabsPosition to botton

* chore(e2e): add VSCode launch.json config

* docs(e2e): delete LICENSE and README.md files

* refactor(e2e): rename modal-tab-page to modal-tab-root

* test(e2e): update iOS launch screen
2018-02-14 16:51:51 +02:00
Panayot Cankov
12c0199fb5 UIScrollViews will now report 'scroll' events and the background in ios will adjust added layers (#4762) 2017-08-29 10:25:45 +03:00
Panayot Cankov
c199b31000 Git ignore package-lock.json (#4600) 2017-07-26 17:07:15 +03:00
Nedyalko Nikolov
303b609573 Adding request for write storage permissions. 2016-11-22 14:34:14 +02:00
vB Results, LLC
aca8926b1d Ignore .idea from IntelliJ-based IDEs. (#2988) 2016-10-31 15:35:20 +02:00
Rossen Hristov
39050861f3 Add NavigationEntry.bindingContext property
Resolves Issue  #731
2016-07-19 12:06:29 +03:00
Rossen Hristov
a18d5e7622 Create a single NS app for cuteness.io, gallery-app and ui-tests-app in apps/
Move all other apps to https://github.com/NativeScript/tns-apps-graveyard
2016-07-11 15:34:28 +03:00
Rossen Hristov
4e678a06ff Fix: Images have margin when added to Layout
Resolves #1425
2016-06-14 10:53:07 +03:00
Rossen Hristov
51e00d4dd3 Add .log to .gitignore 2016-06-07 14:31:53 +03:00
Panayot Cankov
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00
Erjan Gavalji
1485abaa8b Run tests in travis-CI
Add android definitions to check if they will get downloaded
Set the language to android
Attempt starting the app
Add a new redirection to the testapp-runner - a runOnly verb
Disable the install prompt
Enable the buildOnly- and runOnly- commands
Fix the version of the packages
Comment cleanup code. Workflow to be reworked
Install android 23 to make the app build
Build the test app with the @next android runtime
Add @next ability. Build with it
Specify oracle java version 8
Use switcher to switch to oraclejdk8
Switch to a single step so that build breaks on first failure
Reorder attempting to use higher nodejs
Attempt using node 5.10.1
Detect test failure
Add detection for test failures
Decrease verbosity
Extract the test checkers to a separate script
Unignore the build folder recursively. Add the fixed script
Remove the redundant node-version messages
Run the tests with Api level 21
2016-03-04 16:53:30 +02:00
Nedyalko Nikolov
8c6f2c697f Introducing DatePicker date property. 2016-03-07 15:58:36 +02:00
Panayot Cankov
6fdb999a94 Let TS compile in-place
Add 'grunt inplace' to tsc and build d.ts-es
2016-02-26 17:47:54 +02:00
Erjan Gavalji
7bb773374e Ignore the .testsapprun intermediate folder. It will remain if test run fails 2015-10-19 10:42:42 +03:00
Erjan Gavalji
a875096b08 Start moving the code to grunt 2015-10-16 16:56:43 +03:00
Erjan Gavalji
f04fc617a0 Change the output file to be an argument to the expect script. Pass it from the runner. Ignore the output file name 2015-10-15 17:42:17 +03:00
Hristo Deshev
e3778dd48f Unignore js files in CSS lib dirs. 2015-10-14 15:08:09 +03:00
Vladimir Enchev
d8758f9801 fetch.js added 2015-07-16 16:52:04 +03:00
Hristo Deshev
b3fbd4a265 Gitignore *.js again. 2015-06-19 15:43:09 +03:00
Hristo Deshev
7e09183d23 gitignore .baseDir.ts 2015-06-17 15:53:11 +03:00
Hristo Deshev
4879b26683 Update gitignore. Exclude tags and allow *.js in root. 2015-06-17 15:53:11 +03:00
Vladimir Enchev
eca3f9ca2e everlive lib added 2015-03-24 14:52:24 +02:00
Nedyalko Nikolov
3b206c772d Fixed issue: Update list-view in iOS when adding items. 2015-03-19 16:18:30 +02:00
Erjan Gavalji
cc829e0152 definitions fixed 2015-03-03 10:34:40 +02:00