Skip to content

Commit be5ac28

Browse files
feat: add svelte support (#170)
* feat: add svelte support * chore: don't ignore js files * fix: add svelte config js * docs: fix npm link * chore: add svelte in readme * chore: remove duplicated App_Resources * chore: add hook Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
1 parent 04dabbf commit be5ac28

Some content is hidden

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

79 files changed

+798
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
npm-debug.log
2+
.DS_Store
3+
4+
*.js.map
5+
hooks/*
6+
!hooks/after-createProject/after-createProject.js
7+
lib/
8+
node_modules/
9+
platforms/
10+
tmp/
11+
typings/
12+
.idea
13+
.cloud
14+
.project
15+
.vscode
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
npm-debug.log
2+
.DS_Store
3+
4+
*.js.map
5+
hooks/*
6+
!hooks/after-createProject/after-createProject.js
7+
lib/
8+
node_modules/
9+
platforms/
10+
tmp/
11+
typings/
12+
.idea
13+
.cloud
14+
.project
15+
.vscode
16+
.npmrc
17+
18+
tools/assets/
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
}
17+
aaptOptions {
18+
additionalParameters "--no-version-vectors"
19+
}
20+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="__PACKAGE__"
4+
android:versionCode="10000"
5+
android:versionName="1.0">
6+
7+
<supports-screens
8+
android:smallScreens="true"
9+
android:normalScreens="true"
10+
android:largeScreens="true"
11+
android:xlargeScreens="true"/>
12+
13+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
14+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
15+
<uses-permission android:name="android.permission.INTERNET"/>
16+
17+
<application
18+
android:name="com.tns.NativeScriptApplication"
19+
android:allowBackup="true"
20+
android:icon="@drawable/icon"
21+
android:label="@string/app_name"
22+
android:theme="@style/AppTheme">
23+
24+
<activity
25+
android:name="com.tns.NativeScriptActivity"
26+
android:label="@string/title_activity_kimera"
27+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
28+
android:theme="@style/LaunchScreenTheme">
29+
30+
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
31+
32+
<intent-filter>
33+
<action android:name="android.intent.action.MAIN" />
34+
<category android:name="android.intent.category.LAUNCHER" />
35+
</intent-filter>
36+
</activity>
37+
<activity android:name="com.tns.ErrorReportActivity"/>
38+
</application>
39+
</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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<!-- Application theme -->
5+
<style name="AppThemeBase21" parent="AppThemeBase">
6+
<item name="android:windowTranslucentStatus">true</item>
7+
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
8+
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
9+
</style>
10+
11+
<style name="AppTheme" parent="AppThemeBase21">
12+
</style>
13+
14+
<!-- Default style for DatePicker - in spinner mode -->
15+
<style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker">
16+
<item name="android:datePickerMode">spinner</item>
17+
</style>
18+
19+
<!-- Default style for TimePicker - in spinner mode -->
20+
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker">
21+
<item name="android:timePickerMode">spinner</item>
22+
</style>
23+
24+
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
25+
<item name="android:elevation">4dp</item>
26+
<item name="android:paddingTop">24dp</item>
27+
</style>
28+
</resources>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<!-- Application theme -->
5+
<style name="AppThemeBase29" parent="AppThemeBase21">
6+
<item name="android:forceDarkAllowed">true</item>
7+
</style>
8+
9+
<style name="AppTheme" parent="AppThemeBase29">
10+
</style>
11+
12+
</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" : "icon-20@2x.png",
7+
"scale" : "2x"
8+
},
9+
{
10+
"size" : "20x20",
11+
"idiom" : "iphone",
12+
"filename" : "icon-20@3x.png",
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" : "icon-29@2x.png",
25+
"scale" : "2x"
26+
},
27+
{
28+
"size" : "29x29",
29+
"idiom" : "iphone",
30+
"filename" : "icon-29@3x.png",
31+
"scale" : "3x"
32+
},
33+
{
34+
"size" : "40x40",
35+
"idiom" : "iphone",
36+
"filename" : "icon-40@2x.png",
37+
"scale" : "2x"
38+
},
39+
{
40+
"size" : "40x40",
41+
"idiom" : "iphone",
42+
"filename" : "icon-40@3x.png",
43+
"scale" : "3x"
44+
},
45+
{
46+
"size" : "60x60",
47+
"idiom" : "iphone",
48+
"filename" : "icon-60@2x.png",
49+
"scale" : "2x"
50+
},
51+
{
52+
"size" : "60x60",
53+
"idiom" : "iphone",
54+
"filename" : "icon-60@3x.png",
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" : "icon-20@2x.png",
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" : "icon-29@2x.png",
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" : "icon-40@2x.png",
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" : "icon-76@2x.png",
103+
"scale" : "2x"
104+
},
105+
{
106+
"size" : "83.5x83.5",
107+
"idiom" : "ipad",
108+
"filename" : "icon-83.5@2x.png",
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "LaunchScreen-AspectFill.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"filename" : "LaunchScreen-AspectFill@2x.png",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "universal",
15+
"filename" : "LaunchScreen-AspectFill@3x.png",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"version" : 1,
21+
"author" : "xcode"
22+
}
23+
}

0 commit comments

Comments
 (0)