Skip to content

Commit ecd9d71

Browse files
committed
feat: add examples app
1 parent a30d49c commit ecd9d71

File tree

89 files changed

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

89 files changed

+5923
-0
lines changed

examples/.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
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: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
6+
<supports-screens
7+
android:smallScreens="true"
8+
android:normalScreens="true"
9+
android:largeScreens="true"
10+
android:xlargeScreens="true" />
11+
12+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
13+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
14+
<uses-permission android:name="android.permission.INTERNET" />
15+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
16+
17+
<!-- Required to broadcast demo mode settings + requires manually granting the permission via adb -->
18+
<uses-permission
19+
android:name="android.permission.DUMP"
20+
tools:ignore="ProtectedPermissions" />
21+
22+
23+
<application
24+
android:name="com.tns.NativeScriptApplication"
25+
android:allowBackup="true"
26+
android:icon="@mipmap/ic_launcher"
27+
android:label="@string/app_name"
28+
android:theme="@style/AppTheme"
29+
android:hardwareAccelerated="true">
30+
31+
<activity
32+
android:name="com.tns.NativeScriptActivity"
33+
android:label="@string/title_activity_kimera"
34+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
35+
android:theme="@style/LaunchScreenTheme"
36+
android:hardwareAccelerated="true"
37+
android:launchMode="singleTask"
38+
android:exported="true">
39+
40+
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
41+
42+
<intent-filter>
43+
<action android:name="android.intent.action.MAIN" />
44+
<category android:name="android.intent.category.LAUNCHER" />
45+
</intent-filter>
46+
47+
<intent-filter>
48+
<action android:name="android.intent.action.VIEW" />
49+
<category android:name="android.intent.category.DEFAULT" />
50+
<category android:name="android.intent.category.BROWSABLE" />
51+
<data android:scheme="ns-examples" />
52+
</intent-filter>
53+
</activity>
54+
<activity android:name="com.tns.ErrorReportActivity" />
55+
</application>
56+
</manifest>
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)