Skip to content

Commit 738de06

Browse files
Nevaancharsleysa
authored andcommitted
feat: angular demo app (#69)
* Add angular-demo template project - used nativescript-plugin-seed - upgraded demo to nativescript 6 * Dependency updates - Angular version update - Nativescript platform & deps updates * Implemented angular demo
1 parent 5e8936c commit 738de06

File tree

93 files changed

+7702
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+7702
-0
lines changed

demo-angular/.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
9+
[*.json]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.ts]
14+
indent_style = space
15+
indent_size = 4

demo-angular/.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# NativeScript
2+
hooks/
3+
node_modules/
4+
platforms/
5+
6+
# NativeScript Template
7+
*.js.map
8+
*.js
9+
!webpack.config.js
10+
11+
# Logs
12+
logs
13+
*.log
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
18+
# General
19+
.DS_Store
20+
.AppleDouble
21+
.LSOverride
22+
.idea
23+
.cloud
24+
.project
25+
tmp/
26+
typings/
27+
28+
# Visual Studio Code
29+
.vscode/*
30+
!.vscode/settings.json
31+
!.vscode/tasks.json
32+
!.vscode/launch.json
33+
!.vscode/extensions.json
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Add your native dependencies here:
2+
3+
// Uncomment to add recyclerview-v7 dependency
4+
//dependencies {
5+
// implementation 'com.android.support:recyclerview-v7:+'
6+
//}
7+
8+
// If you want to add something to be applied before applying plugins' include.gradle files
9+
// e.g. project.ext.googlePlayServicesVersion = "15.0.1"
10+
// create a file named before-plugins.gradle in the current directory and place it there
11+
12+
android {
13+
defaultConfig {
14+
minSdkVersion 17
15+
generatedDensities = []
16+
applicationId = "org.nativescript.auth0demo"
17+
}
18+
aaptOptions {
19+
additionalParameters "--no-version-vectors"
20+
}
21+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="__PACKAGE__"
5+
android:versionCode="10000"
6+
android:versionName="1.0">
7+
8+
<supports-screens
9+
android:smallScreens="true"
10+
android:normalScreens="true"
11+
android:largeScreens="true"
12+
android:xlargeScreens="true"/>
13+
14+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
15+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
16+
<uses-permission android:name="android.permission.INTERNET"/>
17+
18+
<application
19+
android:name="com.tns.NativeScriptApplication"
20+
android:allowBackup="true"
21+
android:icon="@drawable/icon"
22+
android:label="@string/app_name"
23+
android:theme="@style/AppTheme">
24+
25+
<activity
26+
android:name="com.tns.NativeScriptActivity"
27+
android:label="@string/title_activity_kimera"
28+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
29+
android:theme="@style/LaunchScreenTheme">
30+
31+
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
32+
33+
<intent-filter>
34+
<action android:name="android.intent.action.MAIN" />
35+
<category android:name="android.intent.category.LAUNCHER" />
36+
</intent-filter>
37+
</activity>
38+
<activity android:name="com.tns.ErrorReportActivity"/>
39+
40+
<!-- Auth0 -->
41+
<activity
42+
android:name="org.nativescript.auth0.RedirectActivity"
43+
tools:node="replace">
44+
<intent-filter>
45+
<action android:name="android.intent.action.VIEW" />
46+
47+
<category android:name="android.intent.category.DEFAULT" />
48+
<category android:name="android.intent.category.BROWSABLE" />
49+
50+
<data
51+
android:host="nativescript.auth0.com"
52+
android:pathPrefix="/android/${applicationId}/callback"
53+
android:scheme="https" />
54+
</intent-filter>
55+
</activity>
56+
<!-- Auth0 -->
57+
</application>
58+
</manifest>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="fill">
2+
<item>
3+
<bitmap android:gravity="fill" android:src="@drawable/background" />
4+
</item>
5+
<item>
6+
<bitmap android:gravity="center" android:src="@drawable/logo" />
7+
</item>
8+
</layer-list>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="ns_accent">#3d5afe</color>
4+
</resources>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<!-- Application theme -->
5+
<style name="AppTheme" parent="AppThemeBase">
6+
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
7+
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
8+
</style>
9+
10+
<!-- Default style for DatePicker - in spinner mode -->
11+
<style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker">
12+
<item name="android:datePickerMode">spinner</item>
13+
</style>
14+
15+
<!-- Default style for TimePicker - in spinner mode -->
16+
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker">
17+
<item name="android:timePickerMode">spinner</item>
18+
</style>
19+
20+
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
21+
<item name="android:elevation">4dp</item>
22+
</style>
23+
</resources>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="ns_primary">#F5F5F5</color>
4+
<color name="ns_primaryDark">#757575</color>
5+
<color name="ns_accent">#33B5E5</color>
6+
<color name="ns_blue">#272734</color>
7+
</resources>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<!-- theme to use FOR launch screen-->
5+
<style name="LaunchScreenThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
6+
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item>
7+
8+
<item name="colorPrimary">@color/ns_primary</item>
9+
<item name="colorPrimaryDark">@color/ns_primaryDark</item>
10+
<item name="colorAccent">@color/ns_accent</item>
11+
12+
<item name="android:windowBackground">@drawable/splash_screen</item>
13+
14+
<item name="android:windowActionBarOverlay">true</item>
15+
<item name="android:windowTranslucentStatus">true</item>
16+
</style>
17+
18+
<style name="LaunchScreenTheme" parent="LaunchScreenThemeBase">
19+
</style>
20+
21+
<!-- theme to use AFTER launch screen is loaded-->
22+
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
23+
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item>
24+
25+
<item name="colorPrimary">@color/ns_primary</item>
26+
<item name="colorPrimaryDark">@color/ns_primaryDark</item>
27+
<item name="colorAccent">@color/ns_accent</item>
28+
</style>
29+
30+
<style name="AppTheme" parent="AppThemeBase">
31+
</style>
32+
33+
<!-- theme for action-bar -->
34+
<style name="NativeScriptToolbarStyleBase" parent="Widget.AppCompat.Toolbar">
35+
<item name="android:background">@color/ns_primary</item>
36+
<item name="theme">@style/ThemeOverlay.AppCompat.ActionBar</item>
37+
<item name="popupTheme">@style/ThemeOverlay.AppCompat</item>
38+
</style>
39+
40+
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
41+
</style>
42+
</resources>
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"images" : [
3+
{
4+
"size" : "20x20",
5+
"idiom" : "iphone",
6+
"filename" : "[email protected]",
7+
"scale" : "2x"
8+
},
9+
{
10+
"size" : "20x20",
11+
"idiom" : "iphone",
12+
"filename" : "[email protected]",
13+
"scale" : "3x"
14+
},
15+
{
16+
"size" : "29x29",
17+
"idiom" : "iphone",
18+
"filename" : "icon-29.png",
19+
"scale" : "1x"
20+
},
21+
{
22+
"size" : "29x29",
23+
"idiom" : "iphone",
24+
"filename" : "[email protected]",
25+
"scale" : "2x"
26+
},
27+
{
28+
"size" : "29x29",
29+
"idiom" : "iphone",
30+
"filename" : "[email protected]",
31+
"scale" : "3x"
32+
},
33+
{
34+
"size" : "40x40",
35+
"idiom" : "iphone",
36+
"filename" : "[email protected]",
37+
"scale" : "2x"
38+
},
39+
{
40+
"size" : "40x40",
41+
"idiom" : "iphone",
42+
"filename" : "[email protected]",
43+
"scale" : "3x"
44+
},
45+
{
46+
"size" : "60x60",
47+
"idiom" : "iphone",
48+
"filename" : "[email protected]",
49+
"scale" : "2x"
50+
},
51+
{
52+
"size" : "60x60",
53+
"idiom" : "iphone",
54+
"filename" : "[email protected]",
55+
"scale" : "3x"
56+
},
57+
{
58+
"size" : "20x20",
59+
"idiom" : "ipad",
60+
"filename" : "icon-20.png",
61+
"scale" : "1x"
62+
},
63+
{
64+
"size" : "20x20",
65+
"idiom" : "ipad",
66+
"filename" : "[email protected]",
67+
"scale" : "2x"
68+
},
69+
{
70+
"size" : "29x29",
71+
"idiom" : "ipad",
72+
"filename" : "icon-29.png",
73+
"scale" : "1x"
74+
},
75+
{
76+
"size" : "29x29",
77+
"idiom" : "ipad",
78+
"filename" : "[email protected]",
79+
"scale" : "2x"
80+
},
81+
{
82+
"size" : "40x40",
83+
"idiom" : "ipad",
84+
"filename" : "icon-40.png",
85+
"scale" : "1x"
86+
},
87+
{
88+
"size" : "40x40",
89+
"idiom" : "ipad",
90+
"filename" : "[email protected]",
91+
"scale" : "2x"
92+
},
93+
{
94+
"size" : "76x76",
95+
"idiom" : "ipad",
96+
"filename" : "icon-76.png",
97+
"scale" : "1x"
98+
},
99+
{
100+
"size" : "76x76",
101+
"idiom" : "ipad",
102+
"filename" : "[email protected]",
103+
"scale" : "2x"
104+
},
105+
{
106+
"size" : "83.5x83.5",
107+
"idiom" : "ipad",
108+
"filename" : "[email protected]",
109+
"scale" : "2x"
110+
},
111+
{
112+
"size" : "1024x1024",
113+
"idiom" : "ios-marketing",
114+
"filename" : "icon-1024.png",
115+
"scale" : "1x"
116+
}
117+
],
118+
"info" : {
119+
"version" : 1,
120+
"author" : "xcode"
121+
}
122+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}

0 commit comments

Comments
 (0)