Skip to content

Commit ee2673b

Browse files
authored
Merge pull request #282 from NativeScript/update-autocomplete-demo
chore: update 'autocomplete' demo for nativescript-ui-autocomplete v6.0.0
2 parents 2a7a6f2 + d8e2319 commit ee2673b

5 files changed

Lines changed: 15 additions & 14 deletions

File tree

autocomplete/app/App_Resources/Android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<activity
2929
android:name="com.tns.NativeScriptActivity"
3030
android:label="@string/title_activity_kimera"
31-
android:configChanges="keyboardHidden|orientation|screenSize"
31+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
3232
android:theme="@style/LaunchScreenTheme">
3333

3434
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />

autocomplete/app/App_Resources/Android/src/main/res/values/styles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
<!-- theme to use AFTER launch screen is loaded-->
2323
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
24+
<item name="android:forceDarkAllowed">true</item>
2425
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item>
2526

2627
<item name="colorPrimary">@color/ns_primary</item>

autocomplete/app/navigation/examples-list/examples-list.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, OnInit, OnDestroy } from "@angular/core";
22
import { ExampleItem } from "../exampleItem";
33
import { ExampleItemService } from "../exampleItemService.service";
4-
import * as frameModule from "tns-core-modules/ui/frame";
4+
import { Frame } from "tns-core-modules/ui/frame";
55
import { ActivatedRoute, Router } from '@angular/router';
66
import { ItemEventData } from "tns-core-modules/ui/list-view";
77

@@ -60,7 +60,7 @@ export class ExamplesListDepth1Component implements OnInit, OnDestroy {
6060
}
6161

6262
public onNavigationButtonTap() {
63-
frameModule.topmost().goBack();
63+
Frame.topmost().goBack();
6464
}
6565
}
6666

@@ -121,7 +121,7 @@ export class ExamplesListDepth2Component implements OnInit, OnDestroy {
121121
}
122122

123123
public onNavigationButtonTap() {
124-
frameModule.topmost().goBack();
124+
Frame.topmost().goBack();
125125
}
126126
}
127127

@@ -177,7 +177,7 @@ export class ExamplesListDepth3Component implements OnInit, OnDestroy {
177177
}
178178

179179
public onNavigationButtonTap() {
180-
frameModule.topmost().goBack();
180+
Frame.topmost().goBack();
181181
}
182182
}
183183

autocomplete/app/navigation/options/options.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, OnInit, OnDestroy, Injectable, ViewChild } from "@angular/core";
22
import { ObservableArray } from "tns-core-modules/data/observable-array";
33
import { ActivatedRoute } from '@angular/router';
4-
import * as frameModule from "tns-core-modules/ui/frame";
4+
import { Frame } from "tns-core-modules/ui/frame";
55
import { Page } from "tns-core-modules/ui/page";
66
import { OptionsService } from "../../navigation/options/options.service";
77

@@ -59,6 +59,6 @@ export class OptionsComponent implements OnInit, OnDestroy {
5959
public onItemTap(args) {
6060
const selectedItems = this._listView.nativeElement.getSelectedItems() as Array<string>;
6161
this._optionsService.paramValue = selectedItems[0];
62-
frameModule.topmost().goBack();
62+
Frame.topmost().goBack();
6363
}
6464
}

autocomplete/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"nativescript": {
77
"id": "org.nativescript.demoangular",
88
"tns-ios": {
9-
"version": "6.1.0"
9+
"version": "6.2.0"
1010
},
1111
"tns-android": {
12-
"version": "6.1.0"
12+
"version": "6.2.0"
1313
}
1414
},
1515
"dependencies": {
@@ -21,12 +21,12 @@
2121
"@angular/platform-browser": "~8.2.0",
2222
"@angular/platform-browser-dynamic": "~8.2.0",
2323
"@angular/router": "~8.2.0",
24-
"nativescript-angular": "~8.2.0",
24+
"nativescript-angular": "~8.20.0",
2525
"nativescript-theme-core": "~1.0.4",
2626
"nativescript-ui-autocomplete": "*",
2727
"reflect-metadata": "~0.1.10",
2828
"rxjs": "^6.4.0",
29-
"tns-core-modules": "^6.0.0",
29+
"tns-core-modules": "^6.2.0",
3030
"zone.js": "^0.9.1"
3131
},
3232
"devDependencies": {
@@ -45,12 +45,12 @@
4545
"markdown-snippet-injector": "^0.2.4",
4646
"mocha": "5.2.0",
4747
"mocha-junit-reporter": "^1.18.0",
48-
"mocha-multi": "1.1.0",
48+
"mocha-multi-reporters": "^1.1.0",
4949
"mochawesome": "^3.1.1",
5050
"nativescript-css-loader": "~0.26.0",
5151
"nativescript-dev-appium": "6.0.1-2019-08-30-02",
52-
"nativescript-dev-webpack": "^1.0.0",
53-
"tns-platform-declarations": "^6.1.1",
52+
"nativescript-dev-webpack": "^1.3.0",
53+
"tns-platform-declarations": "^6.2.0",
5454
"tslint": "~5.11.0",
5555
"typescript": "~3.5.3"
5656
}

0 commit comments

Comments
 (0)