Skip to content

Commit fc1454f

Browse files
committed
init
0 parents  commit fc1454f

File tree

79 files changed

+19626
-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.

79 files changed

+19626
-0
lines changed

‎.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
[*.js]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.ts]
18+
indent_style = space
19+
indent_size = 2

‎.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# NativeScript
2+
hooks/
3+
node_modules/
4+
platforms/
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
# General
14+
.DS_Store
15+
.AppleDouble
16+
.LSOverride
17+
.idea
18+
.cloud
19+
.project
20+
tmp/
21+
typings/
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json

‎.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["nativescript.nativescript"]
3+
}

‎App_Resources/Android/app.gradle

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// You can add your native dependencies here
2+
dependencies {
3+
// implementation 'androidx.multidex:multidex:2.0.1'
4+
}
5+
6+
android {
7+
// compileSdkVersion 32
8+
// buildToolsVersion "32.0.0"
9+
// ndkVersion ""
10+
11+
defaultConfig {
12+
minSdkVersion 17
13+
// targetSdkVersion 32
14+
15+
// Version Information
16+
versionCode 1
17+
versionName "1.0.0"
18+
19+
generatedDensities = []
20+
}
21+
22+
aaptOptions {
23+
additionalParameters "--no-version-vectors"
24+
}
25+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// this configurations is loaded before building plugins, as well as before building
2+
// the app - this is where you can apply global settings and overrides
3+
4+
project.ext {
5+
// androidXAppCompat = "1.4.1"
6+
// androidXExifInterface = "1.3.3"
7+
// androidXFragment = "1.4.1"
8+
// androidXMaterial = "1.5.0"
9+
// androidXMultidex = "2.0.1"
10+
// androidXTransition = "1.4.1"
11+
// androidXViewPager = "1.0.0"
12+
13+
// useKotlin = true
14+
// kotlinVersion = "1.6.0"
15+
}
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+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="__PACKAGE__">
4+
5+
<supports-screens
6+
android:smallScreens="true"
7+
android:normalScreens="true"
8+
android:largeScreens="true"
9+
android:xlargeScreens="true"/>
10+
11+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
12+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
13+
<uses-permission android:name="android.permission.INTERNET"/>
14+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
15+
16+
<application
17+
android:name="com.tns.NativeScriptApplication"
18+
android:allowBackup="true"
19+
android:icon="@mipmap/ic_launcher"
20+
android:label="@string/app_name"
21+
android:theme="@style/AppTheme"
22+
android:hardwareAccelerated="true">
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+
android:hardwareAccelerated="true"
30+
android:launchMode="singleTask"
31+
android:exported="true">
32+
33+
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
34+
35+
<intent-filter>
36+
<action android:name="android.intent.action.MAIN" />
37+
<category android:name="android.intent.category.LAUNCHER" />
38+
</intent-filter>
39+
</activity>
40+
<activity android:name="com.tns.ErrorReportActivity"/>
41+
</application>
42+
</manifest>
Loading
Loading
Loading
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>
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="108dp"
3+
android:height="108dp"
4+
android:viewportWidth="108"
5+
android:viewportHeight="108">
6+
<group android:scaleX="0.07382812"
7+
android:scaleY="0.07382812"
8+
android:translateX="16.2"
9+
android:translateY="16.2">
10+
<path
11+
android:pathData="M843,511.86L843,512.96C843,513.22 842.8,513.43 842.55,513.46C809.18,516.58 783.07,543.69 783.07,577.86L783.07,714.8C783.07,724.37 781.06,733.6 777.43,742.03C767.08,766.1 743.59,783.6 716.27,783.6L647.07,783.6L646.59,783L377.41,445.68L377.41,783.6L307.73,783.6C270.84,783.6 240.93,753.7 240.93,716.8L240.93,577.86C240.93,543.69 214.82,516.58 181.45,513.46C181.2,513.43 181,513.22 181,512.96L181,511.86C181,511.61 181.19,511.4 181.45,511.37C214.69,508.14 240.67,480.35 240.67,446.26L240.67,307.2C240.67,297.91 242.57,289.05 246,281.01C256.18,257.14 279.87,240.39 307.47,240.39L377.13,240.39L377.41,240.74L646.59,578.07L646.59,240.39L716.53,240.39C753.42,240.39 783.33,270.3 783.33,307.2L783.33,446.26C783.33,480.35 809.31,508.14 842.55,511.37C842.81,511.4 843,511.61 843,511.86"
12+
android:fillColor="#65ADF1"
13+
android:fillType="nonZero"/>
14+
</group>
15+
</vector>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
5+
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<resources>
3+
<!-- You can override base colors from values/colors.xml here, for example: -->
4+
<!-- <color name="ns_accent">#65ADF1</color> -->
5+
</resources>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
<!-- Uncomment this to make the app show underneat the status bar -->
7+
<!-- <item name="android:windowTranslucentStatus">true</item> -->
8+
9+
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
10+
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
11+
</style>
12+
13+
<style name="AppTheme" parent="AppThemeBase21">
14+
</style>
15+
16+
<!-- Default style for DatePicker - in spinner mode -->
17+
<style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker">
18+
<!-- set the default mode for the date picker (supported values: spinner, calendar) -->
19+
<item name="android:datePickerMode">spinner</item>
20+
</style>
21+
22+
<!-- Default style for TimePicker - in spinner mode -->
23+
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker">
24+
<!-- set the default mode for the time picker (supported values: spinner, clock) -->
25+
<item name="android:timePickerMode">spinner</item>
26+
</style>
27+
28+
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
29+
<item name="android:elevation">4dp</item>
30+
31+
<!-- Add padding to the ActionBar - useful when android:windowTranslucentStatus is set to true -->
32+
<!-- <item name="android:paddingTop">24dp</item> -->
33+
</style>
34+
</resources>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
7+
<!--
8+
Disable forced dark mode on newer devices.
9+
Enabling this will make your app appear in dark-mode,
10+
but the way the app is converted may lead to visual issues
11+
-->
12+
<item name="android:forceDarkAllowed">false</item>
13+
</style>
14+
15+
<style name="AppTheme" parent="AppThemeBase29">
16+
</style>
17+
18+
</resources>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<resources>
3+
<!-- The default color of the ActionBar -->
4+
<color name="ns_primary">#F5F5F5</color>
5+
6+
<!-- (API21+) The color of the status bar and contextual app bars; this is normally a dark version of colorPrimary. -->
7+
<color name="ns_primaryDark">#757575</color>
8+
9+
<!-- The color of UI controls such as check boxes, radio buttons, and edit text boxes. -->
10+
<color name="ns_accent">#65ADF1</color>
11+
12+
<!-- this is unused in the default themes, so we might want to remove it? -->
13+
<!-- <color name="ns_blue">#272734</color> -->
14+
</resources>
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="ic_launcher_background">#FFFFFF</color>
4+
</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>

0 commit comments

Comments
 (0)