48 Commits

Author SHA1 Message Date
699e6f5da8 chore: bump version to 4.0.0 (#5148) 2017-12-08 13:07:18 +02:00
6e9a99a962 chore: update repo to be compiled with TS ^2.6.1 (#5020) 2017-11-01 14:18:52 +02:00
d68ff42cc1 chore: bump version to 3.4.0 2017-10-24 15:39:06 +03:00
bafd331191 Updated platform declarations to ios 11 (#4922) 2017-10-06 11:33:20 +03:00
966a256a28 Bump version to 3.3.0 (#4771) 2017-08-29 18:51:00 +03:00
075e70e336 cache page on forward navigation (#4652)
* cache page on forward navigation
Still some failing navigation tests

* Current page is kept alive when navigating forward
Refactoring code and removing all hacks and flags
Remove one module circular reference

* Disable Page recycling because when there is transition between pages the nativeView stays animated (e.g. when transition is Fade the hidden page nativeView stays with Alpha 0)
Disable recycling if there is native anitmation

* Fix failing tests on ios & android API17
Fix wrong urls in http tests
Made some timer tests async

* Animations are not stored in BackstackEntry instead of Fragment because fragments could die (activity die) and recreated and we lose animations.

* Fix android crash when activity is recreated.
Refactoring transitionListener.
2017-08-07 17:24:12 +03:00
923a7c7813 updated instructions for tns-platform-declarations (#4496)
* updated instructions for tns-platform-declarations

* fixed TypeScrtip recommended version
2017-07-04 10:41:41 +03:00
8adb2fdfef Fix TypeScript 2.4 errors, introduced mainly due weak types and covariant checking for callbacks (#4476) 2017-07-03 11:57:00 +03:00
d1da6253c6 Bump version to 3.2.0 (#4406) 2017-06-19 16:22:43 +03:00
9e3222781a backgroundImage property now use Fetcher & Cache as Image component (#4030)
* backgroundImage property now use Fetcher & Cache as Image component
Fix GridLayout tests on iPhone Plus - actualLength wasn’t rounded
ImageCache is closed when activity is stopped

* Fix reset of background drawable.

* additional check for drawable

* imageCache init cache on activity Started
2017-04-21 16:50:12 +03:00
483df829c9 Update package.json of tns-platform-declarations 2017-04-20 18:42:08 +03:00
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
290a771ea1 add calls to the network agent (Chrome DevTools) inside http-request.android when making http requests if debugging is enabled 2017-03-17 09:44:25 +02:00
a824224cca FIX: Segmenter bar thickness 2017-03-14 14:42:54 +02:00
1d49f5f3c3 fix padding on text-view & text-field (#3758)
* fix padding on text-view & text-field
text-base is now snapshotable
view.android is now snapshotable

* createNativeView returns the nativeView for android
Fix image tests
Implement test for image loaded from res://
EffectivePaddings updated when nativeView have some from its native theme
2017-03-09 16:09:53 +02:00
33aa48bdfd Add support for snapshot
Fix Layout class getMeasuredWidth & getMeasuredHeight
Move some classes to widgets
Fix API17 tests
2017-03-06 14:05:55 +02:00
c555b5b7e1 tsconfig fix 2017-02-20 10:24:22 +02:00
91759a2ab8 update tsc 2017-02-20 10:01:31 +02:00
3056ce51c2 Upgrade to TypeScript 2.1, and latest grunt-ts.
Conflicts:
	package.json
	tests/app/ui/animation/animation-tests.ts
	tns-core-modules/lib.core.d.ts
	tns-core-modules/ui/animation/animation-common.ts
2017-02-13 14:13:33 +02:00
ef7d703498 Bump version to 3.0.0 of tns-platform-declarations 2017-02-10 17:52:03 +02:00
7b12686b18 add HttpRequestOptions.dontFollowRedirects (#3473)
This implements the option to have http.request() not follow server's 3xx redirection replies
but instead return the exact redirection code and headers.

* on iOS, it uses a different NSURLSession instance for non-following request,
  with a NSURLSessionTaskDelegate implementing URLSessinTaskWillPerformHTTPRedirection...

* on Android, it just passes the option on to org.nativescript.widgets.Async.Http;
  so this requires the respective commit in tns-core-modules-widgets to work
2017-01-12 11:21:10 +02:00
52a84b211f Fixed: Setting setTypeface() to null object
Resolves #3147
2017-01-03 12:33:36 +02:00
417064fd38 Fix Android lifecycle 2016-12-20 16:12:52 +02:00
2f9fa6f6a3 Lock all Typescript versions to ~2.0.10 2016-12-15 10:51:45 +02:00
6c3d71cadf fix modules build errors 2016-12-13 16:07:42 +02:00
19ee47ba24 got to layouts 2016-12-13 15:51:18 +02:00
645f428f59 alpha1 2016-12-13 15:51:18 +02:00
82233c6bd3 improved README
fixed add to modify for the references.d.ts
2016-11-08 12:46:48 +02:00
bb08cc1b49 Merge pull request #3011 from NativeScript/issue-3007
Fix: java.lang.NumberFormatException when applying clip-path with per…
2016-11-03 09:45:31 +02:00
28f084e7d2 Fix: java.lang.NumberFormatException when applying clip-path with percentage values
Resolves #3007
2016-11-02 16:59:06 +02:00
c5d34c3dd4 Image loading is done through native imageView so that once it is removed from window the bitmap is cleared. 2016-11-02 16:57:42 +02:00
667f33b47e Update README.md 2016-10-28 17:26:16 +03:00
9fc143ee03 Add support for TabView CSS
TabView {
    tab-text-color: green;
    tab-background-color: yellow;
    selected-tab-text-color: red;
    android-selected-tab-highlight-color: orange;
    text-transform: uppercase;
}
2016-10-24 15:07:22 +03:00
d3e5d821a5 Merge pull request #2921 from NativeScript/flexbox-ios
FlexboxLayout for iOS
2016-10-20 09:52:04 +03:00
555328e9bc Bump up version of tns-platform-declarations 2016-10-19 17:43:02 +03:00
791aab04e5 Flexbox ios initial commit
Items now appear, but they should initially shrink and they don't

Add 15-ish tests for flexbox layout

Port reasonable flexbox test set

Fixing issues, adding unit tests

Moved from .tsx to .ts and used our ui/builder.parse
2016-10-19 17:02:26 +03:00
98deeccb21 Change image.android to use the new image.Cache class from widgets. (#2832)
* Change image.android to use the new image.Cahce class from widgets.

* fix npm scripts

* npm tsc will compile all so no need for npm run dev-tsc-tests

* fix tslint error

* image-tests use memory only cache.

* fix exception in image.android

* Change image-tests so that Image won't be GC immediately.

* Change cacheMode to enum
2016-10-05 13:09:08 +03:00
702b7eadd3 Merge pull request #2822 from NativeScript/nnikolov/CameraRefactoring
Refactored image loading from camera.
2016-10-03 17:54:07 +03:00
1f84274182 Refactored image loading from camera. 2016-10-03 17:23:18 +03:00
943e67a4c8 Add flexbox, we have to figure out layout params 2016-09-30 12:20:07 +03:00
3a92da65db Point TypeScript 2.0.3+ required for the platform declarations 2016-09-28 14:15:01 +03:00
fae210d050 Update iOS platform declarations with readonly modifier 2016-09-28 11:18:47 +03:00
a4916d7246 added tns-core-modules.es2016.d.ts for declarations references 2016-09-27 14:24:56 +03:00
ae4e091b16 Ignore test and .tgz and package 2016-09-27 09:48:22 +03:00
27fb82c546 Add package-tag npm script so CI can easily patch the package.json tag 2016-09-26 16:31:27 +03:00
1c05786ffd Added tests for npm-platform-declarations 2016-09-26 15:14:42 +03:00
0e23f47a04 Update the .travis.yml to npm pack the tns-platform-declarations, add lib: [] config in the tsconfig.json 2016-09-26 11:53:40 +03:00
299203901e Move platform .d.ts-es to separate plugin folder
Add dev-setup to figure out links

Update development workflow

Update package.json and dts-ios

Update the iOS declarations

grunt is now fine
2016-09-26 11:53:39 +03:00