-
Notifications
You must be signed in to change notification settings - Fork 5
feat: NativeScript support (native overlay, example app, standalone server fixes) #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
NathanWalker
wants to merge
7
commits into
santoshyadavdev:main
Choose a base branch
from
NathanWalker:feat/nativescript
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+16,440
−296
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ed9c33c
refactor(overlay): share the collectors between platforms
NathanWalker 154cabf
feat(overlay): add a NativeScript overlay
NathanWalker 52127c3
fix(ui): connect from the page's own base
NathanWalker eb6725c
feat: add a NativeScript example app
NathanWalker 1ed1f54
feat(ui): replace the NativeScript coming-soon card with setup steps
NathanWalker 057aab6
chore(examples): move the NativeScript example app to examples/native…
NathanWalker 9f0a1ca
fix: address CodeRabbit review on NativeScript support
NathanWalker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
| charset = utf-8 | ||
|
|
||
| [*.json] | ||
| indent_style = space | ||
| indent_size = 2 | ||
|
|
||
| [*.js] | ||
| indent_style = space | ||
| indent_size = 2 | ||
|
|
||
| [*.ts] | ||
| indent_style = space | ||
| indent_size = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # NativeScript | ||
| hooks/ | ||
| node_modules/ | ||
| platforms/ | ||
|
|
||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
|
|
||
| # General | ||
| .DS_Store | ||
| .AppleDouble | ||
| .LSOverride | ||
| .idea | ||
| .cloud | ||
| .project | ||
| tmp/ | ||
| typings/ | ||
|
|
||
| # Visual Studio Code | ||
| .vscode/* | ||
| !.vscode/settings.json | ||
| !.vscode/tasks.json | ||
| !.vscode/launch.json | ||
| !.vscode/extensions.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "recommendations": ["nativescript.nativescript"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| // You can add your native dependencies here | ||
| dependencies { | ||
| // implementation 'androidx.multidex:multidex:2.0.1' | ||
| } | ||
|
|
||
| android { | ||
| compileSdkVersion 36 | ||
| buildToolsVersion "36" | ||
| // ndkVersion "" | ||
|
|
||
| defaultConfig { | ||
| minSdkVersion 24 | ||
| targetSdkVersion 36 | ||
|
|
||
| // Version Information | ||
| versionCode 1 | ||
| versionName "1.0.0" | ||
|
|
||
| generatedDensities = [] | ||
| } | ||
|
|
||
| aaptOptions { | ||
| additionalParameters "--no-version-vectors" | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
examples/nativescript/App_Resources/Android/before-plugins.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| // this configurations is loaded before building plugins, as well as before building | ||
| // the app - this is where you can apply global settings and overrides | ||
|
|
||
| project.ext { | ||
| // androidXAppCompat = "1.4.1" | ||
| // androidXExifInterface = "1.3.3" | ||
| // androidXFragment = "1.4.1" | ||
| // androidXMaterial = "1.5.0" | ||
| // androidXMultidex = "2.0.1" | ||
| // androidXTransition = "1.4.1" | ||
| // androidXViewPager = "1.0.0" | ||
|
|
||
| // useKotlin = true | ||
| // kotlinVersion = "1.6.0" | ||
| } |
44 changes: 44 additions & 0 deletions
44
examples/nativescript/App_Resources/Android/src/main/AndroidManifest.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| package="__PACKAGE__"> | ||
|
|
||
| <supports-screens | ||
| android:smallScreens="true" | ||
| android:normalScreens="true" | ||
| android:largeScreens="true" | ||
| android:xlargeScreens="true"/> | ||
|
|
||
| <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
| <uses-permission android:name="android.permission.INTERNET"/> | ||
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
|
|
||
| <application | ||
| android:usesCleartextTraffic="true" | ||
| android:name="com.tns.NativeScriptApplication" | ||
| android:networkSecurityConfig="@xml/network_security" | ||
| android:allowBackup="true" | ||
| android:icon="@mipmap/ic_launcher" | ||
| android:label="@string/app_name" | ||
| android:theme="@style/AppTheme" | ||
| android:hardwareAccelerated="true"> | ||
|
|
||
| <activity | ||
| android:name="com.tns.NativeScriptActivity" | ||
| android:label="@string/title_activity_kimera" | ||
| android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode" | ||
| android:theme="@style/LaunchScreenTheme" | ||
| android:hardwareAccelerated="true" | ||
| android:launchMode="singleTask" | ||
| android:exported="true"> | ||
|
|
||
| <meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" /> | ||
|
|
||
| <intent-filter> | ||
| <action android:name="android.intent.action.MAIN" /> | ||
| <category android:name="android.intent.category.LAUNCHER" /> | ||
| </intent-filter> | ||
| </activity> | ||
| <activity android:name="com.tns.ErrorReportActivity"/> | ||
| </application> | ||
| </manifest> |
Binary file added
BIN
+3.58 KB
...es/nativescript/App_Resources/Android/src/main/res/drawable-hdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.04 KB
examples/nativescript/App_Resources/Android/src/main/res/drawable-hdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.57 KB
...es/nativescript/App_Resources/Android/src/main/res/drawable-ldpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.45 KB
examples/nativescript/App_Resources/Android/src/main/res/drawable-ldpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.17 KB
...es/nativescript/App_Resources/Android/src/main/res/drawable-mdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.35 KB
examples/nativescript/App_Resources/Android/src/main/res/drawable-mdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
examples/nativescript/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="fill"> | ||
| <item> | ||
| <bitmap android:gravity="fill" android:src="@drawable/background" /> | ||
| </item> | ||
| <item> | ||
| <bitmap android:gravity="center" android:src="@drawable/logo" /> | ||
| </item> | ||
| </layer-list> |
Binary file added
BIN
+5.34 KB
...s/nativescript/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.74 KB
examples/nativescript/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.72 KB
.../nativescript/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.1 KB
examples/nativescript/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.3 KB
...nativescript/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.6 KB
examples/nativescript/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions
15
examples/nativescript/App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="108dp" | ||
| android:height="108dp" | ||
| android:viewportWidth="108" | ||
| android:viewportHeight="108"> | ||
| <group android:scaleX="0.07382812" | ||
| android:scaleY="0.07382812" | ||
| android:translateX="16.2" | ||
| android:translateY="16.2"> | ||
| <path | ||
| 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" | ||
| android:fillColor="#65ADF1" | ||
| android:fillType="nonZero"/> | ||
| </group> | ||
| </vector> |
5 changes: 5 additions & 0 deletions
5
examples/nativescript/App_Resources/Android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <background android:drawable="@color/ic_launcher_background"/> | ||
| <foreground android:drawable="@drawable/ic_launcher_foreground"/> | ||
| </adaptive-icon> |
Binary file added
BIN
+3.02 KB
...les/nativescript/App_Resources/Android/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.91 KB
...les/nativescript/App_Resources/Android/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.38 KB
...es/nativescript/App_Resources/Android/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.02 KB
...s/nativescript/App_Resources/Android/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.1 KB
.../nativescript/App_Resources/Android/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
examples/nativescript/App_Resources/Android/src/main/res/values-v21/colors.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <resources> | ||
| <!-- You can override base colors from values/colors.xml here, for example: --> | ||
| <!-- <color name="ns_accent">#65ADF1</color> --> | ||
| </resources> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.