├── .editorconfig
├── .github
└── workflows
│ └── lint-and-build.yml
├── .gitignore
├── .husky
├── .gitignore
└── pre-commit
├── .npsrc
├── .nxignore
├── .prettierignore
├── .prettierrc
├── LICENSE
├── README.md
├── apps
├── demo-angular
│ ├── .gitignore
│ ├── eslint.config.mjs
│ ├── nativescript.config.ts
│ ├── package.json
│ ├── project.json
│ ├── references.d.ts
│ ├── src
│ │ ├── app-routing.module.ts
│ │ ├── app.component.ts
│ │ ├── app.module.ts
│ │ ├── app.scss
│ │ ├── fonts
│ │ │ ├── ._IndieFlower.ttf
│ │ │ ├── IndieFlower.ttf
│ │ │ ├── SourceSansPro-Bold.otf
│ │ │ └── SourceSansPro.otf
│ │ ├── home.component.html
│ │ ├── home.component.ts
│ │ ├── main.ts
│ │ ├── plugin-demos
│ │ │ ├── .gitkeep
│ │ │ ├── nativescript-barcodescanner.component.html
│ │ │ ├── nativescript-barcodescanner.component.ts
│ │ │ ├── nativescript-barcodescanner.module.ts
│ │ │ ├── nativescript-feedback.component.css
│ │ │ ├── nativescript-feedback.component.html
│ │ │ ├── nativescript-feedback.component.ts
│ │ │ ├── nativescript-feedback.module.ts
│ │ │ ├── nativescript-in-app-review.component.html
│ │ │ ├── nativescript-in-app-review.component.ts
│ │ │ ├── nativescript-in-app-review.module.ts
│ │ │ ├── nativescript-ngrx-devtools.module.ts
│ │ │ ├── nativescript-ngrx-devtools.ngrx.ts
│ │ │ ├── nativescript-view-shot.component.html
│ │ │ ├── nativescript-view-shot.component.ts
│ │ │ ├── nativescript-view-shot.module.ts
│ │ │ ├── nativescript-websockets.component.html
│ │ │ ├── nativescript-websockets.component.ts
│ │ │ └── nativescript-websockets.module.ts
│ │ └── polyfills.ts
│ ├── tsconfig.json
│ └── webpack.config.js
└── demo
│ ├── .gitignore
│ ├── eslint.config.mjs
│ ├── nativescript.config.ts
│ ├── package.json
│ ├── project.json
│ ├── references.d.ts
│ ├── src
│ ├── app-root.xml
│ ├── app.scss
│ ├── app.ts
│ ├── fonts
│ │ ├── ._IndieFlower.ttf
│ │ ├── IndieFlower.ttf
│ │ ├── SourceSansPro-Bold.otf
│ │ └── SourceSansPro.otf
│ ├── main-page.ts
│ ├── main-page.xml
│ ├── main-view-model.ts
│ └── plugin-demos
│ │ ├── .gitkeep
│ │ ├── nativescript-barcodescanner.ts
│ │ ├── nativescript-barcodescanner.xml
│ │ ├── nativescript-feedback.css
│ │ ├── nativescript-feedback.ts
│ │ ├── nativescript-feedback.xml
│ │ ├── nativescript-in-app-review.ts
│ │ ├── nativescript-in-app-review.xml
│ │ ├── nativescript-view-shot.ts
│ │ ├── nativescript-view-shot.xml
│ │ ├── nativescript-websockets.ts
│ │ └── nativescript-websockets.xml
│ ├── tsconfig.json
│ └── webpack.config.js
├── eslint.config.mjs
├── jest.config.ts
├── jest.preset.js
├── nx.json
├── package.json
├── packages
├── .gitkeep
├── nativescript-barcodescanner
│ ├── README.md
│ ├── common.ts
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── native-src
│ │ └── ios
│ │ │ ├── BarcodeScannerFramework.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ └── project.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ │ ├── BarcodeScannerFramework
│ │ │ ├── BarcodeScannerFramework.h
│ │ │ ├── QRCameraSwitchButton.h
│ │ │ ├── QRCameraSwitchButton.m
│ │ │ ├── QRCodeReader.h
│ │ │ ├── QRCodeReader.m
│ │ │ ├── QRCodeReaderDelegate.h
│ │ │ ├── QRCodeReaderView.h
│ │ │ ├── QRCodeReaderView.m
│ │ │ ├── QRCodeReaderViewController.h
│ │ │ ├── QRCodeReaderViewController.m
│ │ │ ├── QRToggleTorchButton.h
│ │ │ └── QRToggleTorchButton.m
│ │ │ └── build.sh
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── AndroidManifest.xml
│ │ │ └── barcodescanner-release-2.1.6.aar
│ │ └── ios
│ │ │ ├── BarcodeScannerFramework.xcframework
│ │ │ ├── Info.plist
│ │ │ ├── ios-arm64
│ │ │ │ ├── BarcodeScannerFramework.framework
│ │ │ │ │ ├── BarcodeScannerFramework
│ │ │ │ │ ├── Headers
│ │ │ │ │ │ ├── BarcodeScannerFramework.h
│ │ │ │ │ │ ├── QRCameraSwitchButton.h
│ │ │ │ │ │ ├── QRCodeReader.h
│ │ │ │ │ │ ├── QRCodeReaderDelegate.h
│ │ │ │ │ │ ├── QRCodeReaderView.h
│ │ │ │ │ │ ├── QRCodeReaderViewController.h
│ │ │ │ │ │ └── QRToggleTorchButton.h
│ │ │ │ │ ├── Info.plist
│ │ │ │ │ └── Modules
│ │ │ │ │ │ └── module.modulemap
│ │ │ │ └── dSYMs
│ │ │ │ │ └── BarcodeScannerFramework.framework.dSYM
│ │ │ │ │ └── Contents
│ │ │ │ │ ├── Info.plist
│ │ │ │ │ └── Resources
│ │ │ │ │ ├── DWARF
│ │ │ │ │ └── BarcodeScannerFramework
│ │ │ │ │ └── Relocations
│ │ │ │ │ └── aarch64
│ │ │ │ │ └── BarcodeScannerFramework.yml
│ │ │ └── ios-arm64_x86_64-simulator
│ │ │ │ ├── BarcodeScannerFramework.framework
│ │ │ │ ├── BarcodeScannerFramework
│ │ │ │ ├── Headers
│ │ │ │ │ ├── BarcodeScannerFramework.h
│ │ │ │ │ ├── QRCameraSwitchButton.h
│ │ │ │ │ ├── QRCodeReader.h
│ │ │ │ │ ├── QRCodeReaderDelegate.h
│ │ │ │ │ ├── QRCodeReaderView.h
│ │ │ │ │ ├── QRCodeReaderViewController.h
│ │ │ │ │ └── QRToggleTorchButton.h
│ │ │ │ ├── Info.plist
│ │ │ │ ├── Modules
│ │ │ │ │ └── module.modulemap
│ │ │ │ └── _CodeSignature
│ │ │ │ │ └── CodeResources
│ │ │ │ └── dSYMs
│ │ │ │ └── BarcodeScannerFramework.framework.dSYM
│ │ │ │ └── Contents
│ │ │ │ ├── Info.plist
│ │ │ │ └── Resources
│ │ │ │ ├── DWARF
│ │ │ │ └── BarcodeScannerFramework
│ │ │ │ └── Relocations
│ │ │ │ ├── aarch64
│ │ │ │ └── BarcodeScannerFramework.yml
│ │ │ │ └── x86_64
│ │ │ │ └── BarcodeScannerFramework.yml
│ │ │ └── Info.plist
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── types
│ │ └── BarcodeScannerFramework.d.ts
├── nativescript-feedback
│ ├── README.md
│ ├── common.ts
│ ├── eslint.config.mjs
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ ├── android
│ │ │ ├── include.gradle
│ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ └── erroricon.png
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── erroricon.png
│ │ │ │ ├── infoicon.png
│ │ │ │ ├── successicon.png
│ │ │ │ └── warningicon.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── erroricon.png
│ │ │ │ ├── infoicon.png
│ │ │ │ ├── successicon.png
│ │ │ │ └── warningicon.png
│ │ │ │ └── drawable
│ │ │ │ ├── erroricon.png
│ │ │ │ ├── infoicon.png
│ │ │ │ ├── successicon.png
│ │ │ │ └── warningicon.png
│ │ └── ios
│ │ │ └── Podfile
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── types
│ │ ├── ISMessages.d.ts
│ │ └── android.d.ts
├── nativescript-in-app-review
│ ├── CHANGELOG.md
│ ├── README.md
│ ├── common.ts
│ ├── eslint.config.mjs
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── platforms
│ │ └── android
│ │ │ └── include.gradle
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── types
│ │ ├── play-review.d.ts
│ │ └── play-services-tasks.d.ts
├── nativescript-ngrx-devtools
│ ├── .browserslistrc
│ ├── README.md
│ ├── eslint.config.mjs
│ ├── jest.config.ts
│ ├── nativescript.webpack.js
│ ├── ng-package.json
│ ├── package-alias-plugin.js
│ ├── package.json
│ ├── project.json
│ ├── src
│ │ ├── index.ts
│ │ ├── lib
│ │ │ ├── nativescript-ngrx-devtools.module.ts
│ │ │ └── remotedev
│ │ │ │ ├── model.ts
│ │ │ │ ├── proxy.ts
│ │ │ │ └── remotedev.ts
│ │ └── test-setup.ts
│ ├── tsconfig.json
│ ├── tsconfig.lib.json
│ ├── tsconfig.lib.prod.json
│ └── tsconfig.spec.json
├── nativescript-view-shot
│ ├── README.md
│ ├── angular
│ │ ├── .eslintrc.json
│ │ ├── index.ts
│ │ ├── ng-package.json
│ │ ├── package.json
│ │ ├── tsconfig.angular.json
│ │ ├── tsconfig.json
│ │ └── view-shot.service.ts
│ ├── common.ts
│ ├── eslint.config.mjs
│ ├── index.android.ts
│ ├── index.d.ts
│ ├── index.ios.ts
│ ├── package.json
│ ├── project.json
│ ├── references.d.ts
│ └── tsconfig.json
└── nativescript-websockets
│ ├── README.md
│ ├── bridge.android.ts
│ ├── bridge.d.ts
│ ├── bridge.ios.ts
│ ├── common.ts
│ ├── eslint.config.mjs
│ ├── index.ts
│ ├── native-src
│ └── ios
│ │ ├── NativeScriptWebSockets.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ │ ├── NativeScriptWebSockets
│ │ ├── NativeScriptWebSockets.h
│ │ ├── RCTImplementations.h
│ │ ├── RCTImplementations.m
│ │ ├── RCTSRWebSocket.h
│ │ └── RCTSRWebSocket.m
│ │ ├── NativeScriptWebSocketsTests
│ │ └── NativeScriptWebSocketsTests.m
│ │ └── build.sh
│ ├── package.json
│ ├── platforms
│ ├── android
│ │ └── include.gradle
│ └── ios
│ │ └── NativeScriptWebSockets.xcframework
│ │ ├── Info.plist
│ │ ├── ios-arm64-maccatalyst
│ │ ├── NativeScriptWebSockets.framework
│ │ │ ├── Headers
│ │ │ ├── Modules
│ │ │ ├── NativeScriptWebSockets
│ │ │ ├── PrivateHeaders
│ │ │ ├── Resources
│ │ │ └── Versions
│ │ │ │ ├── A
│ │ │ │ ├── Headers
│ │ │ │ │ ├── NativeScriptWebSockets.h
│ │ │ │ │ └── RCTSRWebSocket.h
│ │ │ │ ├── Modules
│ │ │ │ │ └── module.modulemap
│ │ │ │ ├── NativeScriptWebSockets
│ │ │ │ ├── PrivateHeaders
│ │ │ │ │ └── RCTImplementations.h
│ │ │ │ └── Resources
│ │ │ │ │ └── Info.plist
│ │ │ │ └── Current
│ │ └── dSYMs
│ │ │ └── NativeScriptWebSockets.framework.dSYM
│ │ │ └── Contents
│ │ │ ├── Info.plist
│ │ │ └── Resources
│ │ │ ├── DWARF
│ │ │ └── NativeScriptWebSockets
│ │ │ └── Relocations
│ │ │ └── aarch64
│ │ │ └── NativeScriptWebSockets.yml
│ │ ├── ios-arm64
│ │ ├── NativeScriptWebSockets.framework
│ │ │ ├── Headers
│ │ │ │ ├── NativeScriptWebSockets.h
│ │ │ │ └── RCTSRWebSocket.h
│ │ │ ├── Info.plist
│ │ │ ├── Modules
│ │ │ │ └── module.modulemap
│ │ │ ├── NativeScriptWebSockets
│ │ │ └── PrivateHeaders
│ │ │ │ └── RCTImplementations.h
│ │ └── dSYMs
│ │ │ └── NativeScriptWebSockets.framework.dSYM
│ │ │ └── Contents
│ │ │ ├── Info.plist
│ │ │ └── Resources
│ │ │ ├── DWARF
│ │ │ └── NativeScriptWebSockets
│ │ │ └── Relocations
│ │ │ └── aarch64
│ │ │ └── NativeScriptWebSockets.yml
│ │ ├── ios-arm64_x86_64-simulator
│ │ ├── NativeScriptWebSockets.framework
│ │ │ ├── Headers
│ │ │ │ ├── NativeScriptWebSockets.h
│ │ │ │ └── RCTSRWebSocket.h
│ │ │ ├── Info.plist
│ │ │ ├── Modules
│ │ │ │ └── module.modulemap
│ │ │ ├── NativeScriptWebSockets
│ │ │ ├── PrivateHeaders
│ │ │ │ └── RCTImplementations.h
│ │ │ └── _CodeSignature
│ │ │ │ └── CodeResources
│ │ └── dSYMs
│ │ │ └── NativeScriptWebSockets.framework.dSYM
│ │ │ └── Contents
│ │ │ ├── Info.plist
│ │ │ └── Resources
│ │ │ ├── DWARF
│ │ │ └── NativeScriptWebSockets
│ │ │ └── Relocations
│ │ │ ├── aarch64
│ │ │ └── NativeScriptWebSockets.yml
│ │ │ └── x86_64
│ │ │ └── NativeScriptWebSockets.yml
│ │ ├── xros-arm64-simulator
│ │ ├── NativeScriptWebSockets.framework
│ │ │ ├── Headers
│ │ │ │ ├── NativeScriptWebSockets.h
│ │ │ │ └── RCTSRWebSocket.h
│ │ │ ├── Info.plist
│ │ │ ├── Modules
│ │ │ │ └── module.modulemap
│ │ │ ├── NativeScriptWebSockets
│ │ │ ├── PrivateHeaders
│ │ │ │ └── RCTImplementations.h
│ │ │ └── _CodeSignature
│ │ │ │ └── CodeResources
│ │ └── dSYMs
│ │ │ └── NativeScriptWebSockets.framework.dSYM
│ │ │ └── Contents
│ │ │ ├── Info.plist
│ │ │ └── Resources
│ │ │ ├── DWARF
│ │ │ └── NativeScriptWebSockets
│ │ │ └── Relocations
│ │ │ └── aarch64
│ │ │ └── NativeScriptWebSockets.yml
│ │ └── xros-arm64
│ │ ├── NativeScriptWebSockets.framework
│ │ ├── Headers
│ │ │ ├── NativeScriptWebSockets.h
│ │ │ └── RCTSRWebSocket.h
│ │ ├── Info.plist
│ │ ├── Modules
│ │ │ └── module.modulemap
│ │ ├── NativeScriptWebSockets
│ │ └── PrivateHeaders
│ │ │ └── RCTImplementations.h
│ │ └── dSYMs
│ │ └── NativeScriptWebSockets.framework.dSYM
│ │ └── Contents
│ │ ├── Info.plist
│ │ └── Resources
│ │ ├── DWARF
│ │ └── NativeScriptWebSockets
│ │ └── Relocations
│ │ └── aarch64
│ │ └── NativeScriptWebSockets.yml
│ ├── project.json
│ ├── references.d.ts
│ ├── tsconfig.json
│ ├── types
│ ├── android.d.ts
│ └── objc!NativeScriptWebSockets.d.ts
│ ├── websocket.definition.ts
│ └── websocket.ts
├── references.d.ts
├── tools
├── assets
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── app.gradle
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ └── iOS
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── icon-1024.png
│ │ │ │ ├── icon-20.png
│ │ │ │ ├── icon-20@2x.png
│ │ │ │ ├── icon-20@3x.png
│ │ │ │ ├── icon-29.png
│ │ │ │ ├── icon-29@2x.png
│ │ │ │ ├── icon-29@3x.png
│ │ │ │ ├── icon-40.png
│ │ │ │ ├── icon-40@2x.png
│ │ │ │ ├── icon-40@3x.png
│ │ │ │ ├── icon-60@2x.png
│ │ │ │ ├── icon-60@3x.png
│ │ │ │ ├── icon-76.png
│ │ │ │ ├── icon-76@2x.png
│ │ │ │ └── icon-83.5@2x.png
│ │ │ ├── Contents.json
│ │ │ ├── LaunchScreen.AspectFill.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-AspectFill.png
│ │ │ │ ├── LaunchScreen-AspectFill@2x.png
│ │ │ │ └── LaunchScreen-AspectFill@3x.png
│ │ │ └── LaunchScreen.Center.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-Center.png
│ │ │ │ ├── LaunchScreen-Center@2x.png
│ │ │ │ └── LaunchScreen-Center@3x.png
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ ├── Podfile
│ │ │ ├── build.xcconfig
│ │ │ ├── icon.png
│ │ │ └── icon@2x.png
│ ├── README.md
│ └── publishing
│ │ └── .npmignore
├── demo
│ ├── index.ts
│ ├── nativescript-barcodescanner
│ │ └── index.ts
│ ├── nativescript-feedback
│ │ └── index.ts
│ ├── nativescript-in-app-review
│ │ └── index.ts
│ ├── nativescript-view-shot
│ │ └── index.ts
│ ├── nativescript-websockets
│ │ └── index.ts
│ ├── references.d.ts
│ ├── tsconfig.json
│ └── utils
│ │ ├── demo-base.ts
│ │ └── index.ts
├── package-settings.json
├── schematics
│ └── .gitkeep
├── scripts
│ └── build-finish.ts
├── tsconfig.tools.json
└── workspace-scripts.js
├── tsconfig.base.json
└── yarn.lock
/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see http://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | max_line_length = off
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/.github/workflows/lint-and-build.yml:
--------------------------------------------------------------------------------
1 | name: Lint and Build (PR)
2 |
3 | env:
4 | NX_BRANCH: ${{ github.event.number || github.ref_name }}
5 | NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
6 |
7 | on:
8 | push:
9 | branches: ['master']
10 | pull_request:
11 | branches: ['master']
12 |
13 | jobs:
14 | lint:
15 | name: Lint affected projects
16 | runs-on: ubuntu-latest
17 | steps:
18 | - name: Checkout
19 | uses: actions/checkout@v4
20 | with:
21 | fetch-depth: 0
22 | - uses: actions/setup-node@v4
23 | with:
24 | node-version: lts/*
25 | cache: 'yarn'
26 | - uses: nrwl/nx-set-shas@v4
27 | with:
28 | main-branch-name: 'master'
29 | - name: yarn install
30 | run: yarn --immutable
31 | - name: Lint affected
32 | run: yarn nx affected:lint
33 | build:
34 | name: Build affected projects
35 | needs: lint
36 | runs-on: macos-latest
37 |
38 | steps:
39 | - name: Checkout
40 | uses: actions/checkout@v4
41 | with:
42 | fetch-depth: 0
43 | - uses: actions/setup-node@v4
44 | with:
45 | node-version: lts/*
46 | cache: 'yarn'
47 | - uses: nrwl/nx-set-shas@v4
48 | with:
49 | main-branch-name: 'master'
50 | - name: Xcode Select Version
51 | # see available xcode versions in https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
52 | uses: mobiledevops/xcode-select-version-action@v1
53 | with:
54 | xcode-select-version: 15.4
55 | - name: Install visionOS platform
56 | run: |
57 | defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
58 | defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
59 | xcodebuild -downloadPlatform visionOS
60 | - name: yarn install
61 | run: yarn --immutable
62 | - name: Build.all affected
63 | run: yarn nx affected --target=build.all
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # compiled output
4 | /dist
5 | /tmp
6 | /out-tsc
7 |
8 | # dependencies
9 | node_modules
10 | package-lock.json
11 |
12 | # IDEs and editors
13 | /.idea
14 | .project
15 | .classpath
16 | .c9/
17 | *.launch
18 | .settings/
19 | *.sublime-workspace
20 |
21 | # IDE - VSCode
22 | .vscode/*
23 | !.vscode/settings.json
24 | !.vscode/tasks.json
25 | !.vscode/launch.json
26 | !.vscode/extensions.json
27 |
28 | # misc
29 | /.sass-cache
30 | /connect.lock
31 | /coverage
32 | /libpeerconnection.log
33 | npm-debug.log
34 | yarn-error.log
35 | testem.log
36 | /typings
37 |
38 | # System Files
39 | .DS_Store
40 | Thumbs.db
41 |
42 | *.tgz
43 | packages/**/angular/dist
44 | packages/*/native-src/ios/build
45 | .angular
46 |
47 | /.env
48 |
49 |
50 | # Xcode uneeded files
51 | *.xcuserstate
52 | xcuserdata/
53 |
54 | .nx/cache
55 | .nx/workspace-data
--------------------------------------------------------------------------------
/.husky/.gitignore:
--------------------------------------------------------------------------------
1 | _
2 |
--------------------------------------------------------------------------------
/.husky/pre-commit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | npx lint-staged --allow-empty --relative
5 |
--------------------------------------------------------------------------------
/.npsrc:
--------------------------------------------------------------------------------
1 | {
2 | "config": "./tools/workspace-scripts.js"
3 | }
--------------------------------------------------------------------------------
/.nxignore:
--------------------------------------------------------------------------------
1 | apps/**/*_off
2 | .nx/cache/**
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | # Add files here to ignore them from prettier formatting
2 |
3 | /dist
4 | /coverage
5 | native-src
6 | packages/*/types
7 |
8 | /.nx/cache
9 | /.nx/workspace-data
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "useTabs": false,
3 | "printWidth": 800,
4 | "tabWidth": 2,
5 | "singleQuote": true
6 | }
7 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Valor Software
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/apps/demo-angular/.gitignore:
--------------------------------------------------------------------------------
1 | hooks
2 | platforms
3 | !webpack.config.js
--------------------------------------------------------------------------------
/apps/demo-angular/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | import baseConfig from '../../eslint.config.mjs';
2 |
3 | export default [
4 | {
5 | ignores: ['**/dist'],
6 | },
7 | ...baseConfig,
8 | {
9 | files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
10 | // Override or add rules here
11 | rules: {},
12 | },
13 | {
14 | files: ['**/*.ts', '**/*.tsx'],
15 | // Override or add rules here
16 | rules: {},
17 | },
18 | {
19 | files: ['**/*.js', '**/*.jsx'],
20 | // Override or add rules here
21 | rules: {},
22 | },
23 | {
24 | ignores: ['node_modules/**/*'],
25 | },
26 | ];
27 |
--------------------------------------------------------------------------------
/apps/demo-angular/nativescript.config.ts:
--------------------------------------------------------------------------------
1 | import { NativeScriptConfig } from '@nativescript/core';
2 |
3 | export default {
4 | id: 'org.nativescript.plugindemoangular',
5 | appResourcesPath: '../../tools/assets/App_Resources',
6 | android: {
7 | v8Flags: '--expose_gc',
8 | markingMode: 'none',
9 | },
10 | appPath: 'src',
11 | cli: {
12 | packageManager: 'npm'
13 | }
14 | } as NativeScriptConfig;
15 |
--------------------------------------------------------------------------------
/apps/demo-angular/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": "./src/main.ts",
3 | "dependencies": {
4 | "@nativescript/core": "file:../../node_modules/@nativescript/core",
5 | "@valor/nativescript-websockets": "file:../../dist/packages/nativescript-websockets",
6 | "@valor/nativescript-ngrx-devtools": "file:../../dist/packages/nativescript-ngrx-devtools",
7 | "@valor/nativescript-barcodescanner": "file:../../dist/packages/nativescript-barcodescanner",
8 | "@valor/nativescript-feedback": "file:../../dist/packages/nativescript-feedback",
9 | "@valor/nativescript-view-shot": "file:../../dist/packages/nativescript-view-shot",
10 | "@valor/nativescript-in-app-review": "file:../../dist/packages/nativescript-in-app-review"
11 | },
12 | "devDependencies": {
13 | "@nativescript/android": "~8.8.0",
14 | "@nativescript/ios": "~8.8.0"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/apps/demo-angular/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "demo-angular",
3 | "$schema": "../../node_modules/nx/schemas/project-schema.json",
4 | "sourceRoot": "apps/demo-angular/src",
5 | "projectType": "application",
6 | "prefix": "demo",
7 | "targets": {
8 | "build": {
9 | "executor": "@nativescript/nx:build",
10 | "options": {
11 | "noHmr": true,
12 | "production": true,
13 | "uglify": true,
14 | "release": true,
15 | "forDevice": true,
16 | "tsConfig": "apps/demo-angular/tsconfig.json"
17 | },
18 | "dependsOn": ["^build.all"]
19 | },
20 | "clean": {
21 | "executor": "@nativescript/nx:clean",
22 | "options": {}
23 | },
24 | "lint": {
25 | "executor": "@nx/eslint:lint"
26 | },
27 | "debug": {
28 | "executor": "@nativescript/nx:debug",
29 | "options": {
30 | "noHmr": true,
31 | "uglify": false,
32 | "release": false,
33 | "forDevice": false,
34 | "prepare": false
35 | },
36 | "dependsOn": ["^build.all"]
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/apps/demo-angular/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/app-routing.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 | import { Routes } from '@angular/router';
3 | import { NativeScriptRouterModule } from '@nativescript/angular';
4 |
5 | import { HomeComponent } from './home.component';
6 |
7 | const routes: Routes = [
8 | { path: '', redirectTo: '/home', pathMatch: 'full' },
9 | { path: 'home', component: HomeComponent },
10 | { path: 'nativescript-barcodescanner', loadChildren: () => import('./plugin-demos/nativescript-barcodescanner.module').then((m) => m.NativescriptBarcodescannerModule) },
11 | { path: 'nativescript-feedback', loadChildren: () => import('./plugin-demos/nativescript-feedback.module').then((m) => m.NativescriptFeedbackModule) },
12 | { path: 'nativescript-in-app-review', loadChildren: () => import('./plugin-demos/nativescript-in-app-review.module').then((m) => m.NativescriptInAppReviewModule) },
13 | { path: 'nativescript-ngrx-devtools', loadChildren: () => import('./plugin-demos/nativescript-ngrx-devtools.module').then((m) => m.NativeScriptNgRxDevtoolsDemoModule) },
14 | { path: 'nativescript-view-shot', loadChildren: () => import('./plugin-demos/nativescript-view-shot.module').then((m) => m.NativescriptViewShotModule) },
15 | { path: 'nativescript-websockets', loadChildren: () => import('./plugin-demos/nativescript-websockets.module').then((m) => m.NativescriptWebsocketsModule) },
16 | ];
17 |
18 | @NgModule({
19 | imports: [NativeScriptRouterModule.forRoot(routes)],
20 | exports: [NativeScriptRouterModule],
21 | })
22 | export class AppRoutingModule {}
23 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'demo-app',
5 | template: `
6 |
7 | `,
8 | standalone: false,
9 | })
10 | export class AppComponent {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/app.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptModule } from '@nativescript/angular';
3 |
4 | import { AppRoutingModule } from './app-routing.module';
5 | import { AppComponent } from './app.component';
6 | import { HomeComponent } from './home.component';
7 | import { AppNgRxModule } from './plugin-demos/nativescript-ngrx-devtools.ngrx';
8 |
9 | @NgModule({
10 | schemas: [NO_ERRORS_SCHEMA],
11 | declarations: [AppComponent, HomeComponent],
12 | bootstrap: [AppComponent],
13 | imports: [NativeScriptModule, AppRoutingModule, AppNgRxModule],
14 | })
15 | export class AppModule {}
16 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/app.scss:
--------------------------------------------------------------------------------
1 | @import 'nativescript-theme-core/scss/light';
2 | @import 'nativescript-theme-core/scss/index';
3 |
4 | button,
5 | label,
6 | stack-layout {
7 | horizontal-align: center;
8 | }
9 |
10 | button {
11 | font-size: 36;
12 | }
13 |
14 | .title {
15 | font-size: 30;
16 | margin: 20;
17 | }
18 |
19 | .message {
20 | font-size: 20;
21 | color: #284848;
22 | text-align: center;
23 | margin: 0 20;
24 | }
25 |
26 | .view-shot {
27 | .child-label {
28 | color: blue;
29 | }
30 | }
31 | .child-label {
32 | color: red;
33 | }
34 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/fonts/._IndieFlower.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo-angular/src/fonts/._IndieFlower.ttf
--------------------------------------------------------------------------------
/apps/demo-angular/src/fonts/IndieFlower.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo-angular/src/fonts/IndieFlower.ttf
--------------------------------------------------------------------------------
/apps/demo-angular/src/fonts/SourceSansPro-Bold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo-angular/src/fonts/SourceSansPro-Bold.otf
--------------------------------------------------------------------------------
/apps/demo-angular/src/fonts/SourceSansPro.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo-angular/src/fonts/SourceSansPro.otf
--------------------------------------------------------------------------------
/apps/demo-angular/src/home.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/home.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'demo-home',
5 | templateUrl: 'home.component.html',
6 | standalone: false,
7 | })
8 | export class HomeComponent {
9 | demos = [
10 | {
11 | name: 'nativescript-barcodescanner',
12 | },
13 | {
14 | name: 'nativescript-feedback',
15 | },
16 | {
17 | name: 'nativescript-in-app-review',
18 | },
19 | {
20 | name: 'nativescript-ngrx-devtools',
21 | },
22 | {
23 | name: 'nativescript-view-shot',
24 | },
25 | {
26 | name: 'nativescript-websockets',
27 | },
28 | ];
29 | }
30 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/main.ts:
--------------------------------------------------------------------------------
1 | import { runNativeScriptAngularApp, platformNativeScript } from '@nativescript/angular';
2 | import { AppModule } from './app.module';
3 |
4 | runNativeScriptAngularApp({
5 | appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule),
6 | });
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo-angular/src/plugin-demos/.gitkeep
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-barcodescanner.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-barcodescanner.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedNativescriptBarcodescanner } from '@demo/shared';
3 | import {} from '@valor/nativescript-barcodescanner';
4 |
5 | @Component({
6 | selector: 'demo-nativescript-barcodescanner',
7 | templateUrl: 'nativescript-barcodescanner.component.html',
8 | standalone: false,
9 | })
10 | export class NativescriptBarcodescannerComponent {
11 | demoShared: DemoSharedNativescriptBarcodescanner;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedNativescriptBarcodescanner();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-barcodescanner.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { NativescriptBarcodescannerComponent } from './nativescript-barcodescanner.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptBarcodescannerComponent }])],
7 | declarations: [NativescriptBarcodescannerComponent],
8 | schemas: [NO_ERRORS_SCHEMA],
9 | })
10 | export class NativescriptBarcodescannerModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-feedback.component.css:
--------------------------------------------------------------------------------
1 | .message {
2 | color: #333;
3 | font-size: 18;
4 | horizontal-align: center;
5 | padding-top: 30;
6 | padding-bottom: 20;
7 | }
8 |
9 | button {
10 | background-color: #6494aa;
11 | padding: 10 12;
12 | margin: 10;
13 | font-size: 14;
14 | border-radius: 4;
15 | }
16 |
17 | Image {
18 | margin: 20 0;
19 | }
20 |
21 | .button {
22 | color: #ffffff;
23 | }
24 |
25 | .button-success {
26 | background-color: #51ae8c;
27 | }
28 |
29 | .button-success-alt {
30 | background-color: lightskyblue;
31 | }
32 |
33 | .button-info {
34 | background-color: #516a78;
35 | }
36 |
37 | .button-warning {
38 | background-color: #f18b34;
39 | }
40 |
41 | .button-error {
42 | background-color: #ee664c;
43 | }
44 |
45 | .button-custom {
46 | background-color: #73b7e8;
47 | }
48 |
49 | .button-font {
50 | background-color: #c71fe8;
51 | }
52 |
53 | .button-custom-alt {
54 | background-color: yellowgreen;
55 | }
56 |
57 | .button-hide {
58 | background-color: black;
59 | }
60 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-feedback.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-feedback.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { DemoSharedNativescriptFeedback } from '@demo/shared';
3 |
4 | @Component({
5 | selector: 'demo-nativescript-feedback',
6 | styleUrls: ['./nativescript-feedback.component.css'],
7 | templateUrl: 'nativescript-feedback.component.html',
8 | standalone: false,
9 | })
10 | export class NativescriptFeedbackComponent {
11 | demoShared: DemoSharedNativescriptFeedback;
12 |
13 | ngOnInit() {
14 | this.demoShared = new DemoSharedNativescriptFeedback();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-feedback.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { NativescriptFeedbackComponent } from './nativescript-feedback.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptFeedbackComponent }])],
7 | declarations: [NativescriptFeedbackComponent],
8 | schemas: [NO_ERRORS_SCHEMA],
9 | })
10 | export class NativescriptFeedbackModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-in-app-review.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-in-app-review.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedNativescriptInAppReview } from '@demo/shared';
3 | import {} from '@valor/nativescript-in-app-review';
4 |
5 | @Component({
6 | selector: 'demo-nativescript-in-app-review',
7 | templateUrl: 'nativescript-in-app-review.component.html',
8 | standalone: false,
9 | })
10 | export class NativescriptInAppReviewComponent {
11 | demoShared: DemoSharedNativescriptInAppReview;
12 |
13 | constructor(private _ngZone: NgZone) {}
14 |
15 | ngOnInit() {
16 | this.demoShared = new DemoSharedNativescriptInAppReview();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-in-app-review.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { NativescriptInAppReviewComponent } from './nativescript-in-app-review.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptInAppReviewComponent }])],
7 | declarations: [NativescriptInAppReviewComponent],
8 | schemas: [NO_ERRORS_SCHEMA],
9 | })
10 | export class NativescriptInAppReviewModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-ngrx-devtools.module.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { Label } from '@nativescript/core';
4 | import { Store } from '@ngrx/store';
5 | import { decrement, increment, incrementWithDelay, RootState, selectCount, unserializableAction } from './nativescript-ngrx-devtools.ngrx';
6 |
7 | @Component({
8 | selector: 'nativescript-ngrx-devtools',
9 | template: `
10 |
11 |
12 |
13 |
14 |
15 | `,
16 | styles: [
17 | `
18 | button {
19 | font-size: 20;
20 | }
21 | `,
22 | ],
23 | standalone: false,
24 | })
25 | export class NativeScriptNgRxDevtoolsComponent {
26 | count$ = this.store.select(selectCount);
27 | constructor(public store: Store) {}
28 |
29 | increment() {
30 | this.store.dispatch(increment());
31 | }
32 |
33 | decrement() {
34 | this.store.dispatch(decrement());
35 | }
36 |
37 | incrementWithDelay(delay: number) {
38 | this.store.dispatch(incrementWithDelay(delay));
39 | }
40 |
41 | unserializableAction() {
42 | const label = new Label();
43 | this.store.dispatch(unserializableAction(label));
44 | }
45 | }
46 |
47 | @NgModule({
48 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativeScriptNgRxDevtoolsComponent }])],
49 | declarations: [NativeScriptNgRxDevtoolsComponent],
50 | schemas: [NO_ERRORS_SCHEMA],
51 | })
52 | export class NativeScriptNgRxDevtoolsDemoModule {}
53 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-view-shot.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-view-shot.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, inject, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
2 | import { DemoSharedNativescriptViewShot } from '@demo/shared';
3 | import { ImageSource, isIOS, Screen, View } from '@nativescript/core';
4 | import { renderToImageSource } from '@valor/nativescript-view-shot';
5 | import { ViewShotService } from '@valor/nativescript-view-shot/angular';
6 |
7 | @Component({
8 | selector: 'demo-nativescript-view-shot',
9 | templateUrl: 'nativescript-view-shot.component.html',
10 | standalone: false,
11 | })
12 | export class NativescriptViewShotComponent {
13 | demoShared: DemoSharedNativescriptViewShot;
14 |
15 | viewShotService = inject(ViewShotService);
16 | @ViewChild('viewHost', { read: ViewContainerRef }) vcRef: ViewContainerRef;
17 | srcUrl = `https://picsum.photos/${Screen.mainScreen.widthPixels}/200`;
18 | webImage$ = ImageSource.fromUrl(this.srcUrl);
19 | webImage2: ImageSource;
20 | imgSrc: ImageSource;
21 | loading = false;
22 | targetWidth = `${Screen.mainScreen.widthDIPs}`;
23 |
24 | async renderTemplate(template: TemplateRef, attached: boolean) {
25 | let width = parseInt(this.targetWidth, 10);
26 | if (isNaN(width)) {
27 | width = Screen.mainScreen.widthDIPs;
28 | }
29 | this.loading = true;
30 | const image = await this.webImage$;
31 | // reusing imageSource on iOS sometimes doesn't work, so we create a new one each time
32 | this.webImage2 = isIOS ? new ImageSource((await this.webImage$).ios) : image;
33 | this.loading = false;
34 | this.imgSrc = await this.viewShotService.captureInBackground(template, {
35 | logicalHost: attached ? this.vcRef : undefined,
36 | width,
37 | delay: 0,
38 | });
39 | }
40 |
41 | screenshotView(view: View) {
42 | this.imgSrc = renderToImageSource(view);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-view-shot.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptFormsModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { NativescriptViewShotComponent } from './nativescript-view-shot.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptViewShotComponent }]), NativeScriptFormsModule],
7 | declarations: [NativescriptViewShotComponent],
8 | schemas: [NO_ERRORS_SCHEMA],
9 | })
10 | export class NativescriptViewShotModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-websockets.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-websockets.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, NgZone } from '@angular/core';
2 | import { DemoSharedNativescriptWebsockets } from '@demo/shared';
3 |
4 | @Component({
5 | selector: 'demo-nativescript-websockets',
6 | templateUrl: 'nativescript-websockets.component.html',
7 | standalone: false,
8 | })
9 | export class NativescriptWebsocketsComponent {
10 | demoShared: DemoSharedNativescriptWebsockets;
11 |
12 | constructor(private _ngZone: NgZone) {}
13 |
14 | ngOnInit() {
15 | this.demoShared = new DemoSharedNativescriptWebsockets();
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/plugin-demos/nativescript-websockets.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3 | import { NativescriptWebsocketsComponent } from './nativescript-websockets.component';
4 |
5 | @NgModule({
6 | imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptWebsocketsComponent }])],
7 | declarations: [NativescriptWebsocketsComponent],
8 | schemas: [ NO_ERRORS_SCHEMA]
9 | })
10 | export class NativescriptWebsocketsModule {}
11 |
--------------------------------------------------------------------------------
/apps/demo-angular/src/polyfills.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * NativeScript Polyfills
3 | */
4 |
5 | // Install @nativescript/core polyfills (XHR, setTimeout, requestAnimationFrame)
6 | import '@nativescript/core/globals';
7 | import '@valor/nativescript-websockets';
8 | // Install @nativescript/angular specific polyfills
9 | import '@nativescript/angular/polyfills';
10 |
11 | /**
12 | * Zone.js and patches
13 | */
14 | // Add pre-zone.js patches needed for the NativeScript platform
15 | import '@nativescript/zone-js/dist/pre-zone-polyfills';
16 |
17 | // Zone JS is required by default for Angular itself
18 | import 'zone.js';
19 |
20 | // Add NativeScript specific Zone JS patches
21 | import '@nativescript/zone-js';
22 |
--------------------------------------------------------------------------------
/apps/demo-angular/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "paths": {
5 | "~/*": ["src/*"],
6 | "@demo/shared": ["tools/demo/index.ts"],
7 | "@valor/nativescript-ngrx-devtools": ["packages/nativescript-ngrx-devtools/src/index.ts"],
8 | "@valor/nativescript-websockets": ["packages/nativescript-websockets/index.ts"],
9 | "@valor/nativescript-barcodescanner": ["packages/nativescript-barcodescanner"],
10 | "@valor/nativescript-feedback": ["packages/nativescript-feedback"],
11 | "@valor/nativescript-in-app-review": ["packages/nativescript-in-app-review"],
12 | "@valor/nativescript-view-shot": ["packages/nativescript-view-shot"],
13 | "@valor/nativescript-view-shot/angular": ["packages/nativescript-view-shot/angular"]
14 | }
15 | },
16 | "files": ["./references.d.ts", "./src/main.ts", "./src/polyfills.ts"],
17 | "include": ["../../packages/**/references.d.ts", "../../**/*.android.ts", "../../**/*.ios.ts"]
18 | }
19 |
--------------------------------------------------------------------------------
/apps/demo-angular/webpack.config.js:
--------------------------------------------------------------------------------
1 | const webpack = require('@nativescript/webpack');
2 | const { resolve } = require('path');
3 |
4 | module.exports = (env) => {
5 |
6 | webpack.init(env);
7 | webpack.useConfig('angular');
8 |
9 | webpack.chainWebpack((config) => {
10 | // shared demo code
11 | config.resolve.alias.set('@demo/shared', resolve(__dirname, '..', '..', 'tools', 'demo'));
12 | });
13 |
14 | // Example if you need to share images across demo apps:
15 | // webpack.Utils.addCopyRule({
16 | // from: '../../../tools/images',
17 | // to: 'images',
18 | // context: webpack.Utils.project.getProjectFilePath('node_modules')
19 | // });
20 |
21 | return webpack.resolveConfig();
22 | };
23 |
--------------------------------------------------------------------------------
/apps/demo/.gitignore:
--------------------------------------------------------------------------------
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 | # misc
29 | npm-debug.log
30 |
31 | # app
32 | !*.d.ts
33 | !src/assets/fontawesome.min.css
34 | /report/
35 | .nsbuildinfo
36 | /temp/
37 | /src/tns_modules/
38 |
39 | # app uses platform specific scss which can inadvertently get renamed which will cause problems
40 | app/app.scss
41 |
42 | package-lock.json
43 |
--------------------------------------------------------------------------------
/apps/demo/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | import baseConfig from '../../eslint.config.mjs';
2 |
3 | export default [
4 | {
5 | ignores: ['**/dist'],
6 | },
7 | ...baseConfig,
8 | {
9 | files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
10 | // Override or add rules here
11 | rules: {},
12 | },
13 | {
14 | files: ['**/*.ts', '**/*.tsx'],
15 | // Override or add rules here
16 | rules: {},
17 | },
18 | {
19 | files: ['**/*.js', '**/*.jsx'],
20 | // Override or add rules here
21 | rules: {},
22 | },
23 | {
24 | ignores: ['node_modules/**/*'],
25 | },
26 | ];
27 |
--------------------------------------------------------------------------------
/apps/demo/nativescript.config.ts:
--------------------------------------------------------------------------------
1 | import { NativeScriptConfig } from '@nativescript/core';
2 |
3 | export default {
4 | id: 'org.nativescript.plugindemo',
5 | appResourcesPath: '../../tools/assets/App_Resources',
6 | android: {
7 | v8Flags: '--expose_gc',
8 | markingMode: 'none',
9 | },
10 | appPath: 'src',
11 | cli: {
12 | packageManager: 'npm'
13 | }
14 | } as NativeScriptConfig;
15 |
--------------------------------------------------------------------------------
/apps/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": "./src/app.ts",
3 | "description": "NativeScript Application",
4 | "license": "SEE LICENSE IN ",
5 | "repository": "",
6 | "dependencies": {
7 | "@nativescript/core": "file:../../node_modules/@nativescript/core",
8 | "@valor/nativescript-websockets": "file:../../packages/nativescript-websockets",
9 | "@valor/nativescript-barcodescanner": "file:../../packages/nativescript-barcodescanner",
10 | "@valor/nativescript-feedback": "file:../../packages/nativescript-feedback",
11 | "@valor/nativescript-view-shot": "file:../../packages/nativescript-view-shot",
12 | "@valor/nativescript-in-app-review": "file:../../packages/nativescript-in-app-review"
13 | },
14 | "devDependencies": {
15 | "@nativescript/android": "~8.8.0",
16 | "@nativescript/ios": "~8.8.0"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/apps/demo/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "demo",
3 | "$schema": "../../node_modules/nx/schemas/project-schema.json",
4 | "sourceRoot": "apps/demo/src",
5 | "projectType": "application",
6 | "prefix": "demo",
7 | "targets": {
8 | "build": {
9 | "executor": "@nativescript/nx:build",
10 | "options": {
11 | "noHmr": true,
12 | "production": true,
13 | "uglify": true,
14 | "release": true,
15 | "forDevice": true,
16 | "tsConfig": "apps/demo/tsconfig.json"
17 | },
18 | "dependsOn": [
19 | {
20 | "target": "build.all",
21 | "dependencies": true
22 | }
23 | ]
24 | },
25 | "clean": {
26 | "executor": "@nativescript/nx:clean",
27 | "options": {}
28 | },
29 | "lint": {
30 | "executor": "@nx/eslint:lint"
31 | },
32 | "debug": {
33 | "executor": "@nativescript/nx:debug",
34 | "options": {
35 | "noHmr": true,
36 | "uglify": false,
37 | "release": false,
38 | "forDevice": false,
39 | "prepare": false
40 | }
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/apps/demo/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/apps/demo/src/app-root.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/apps/demo/src/app.scss:
--------------------------------------------------------------------------------
1 | @import 'nativescript-theme-core/scss/light';
2 | @import 'nativescript-theme-core/scss/index';
--------------------------------------------------------------------------------
/apps/demo/src/app.ts:
--------------------------------------------------------------------------------
1 | import { Application } from '@nativescript/core';
2 |
3 | Application.run({ moduleName: 'app-root' });
4 |
--------------------------------------------------------------------------------
/apps/demo/src/fonts/._IndieFlower.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo/src/fonts/._IndieFlower.ttf
--------------------------------------------------------------------------------
/apps/demo/src/fonts/IndieFlower.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo/src/fonts/IndieFlower.ttf
--------------------------------------------------------------------------------
/apps/demo/src/fonts/SourceSansPro-Bold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo/src/fonts/SourceSansPro-Bold.otf
--------------------------------------------------------------------------------
/apps/demo/src/fonts/SourceSansPro.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo/src/fonts/SourceSansPro.otf
--------------------------------------------------------------------------------
/apps/demo/src/main-page.ts:
--------------------------------------------------------------------------------
1 | import { EventData, Page } from '@nativescript/core';
2 | import { MainViewModel } from "./main-view-model";
3 |
4 | export function navigatingTo(args: EventData) {
5 | const page = args.object;
6 | page.bindingContext = new MainViewModel();
7 | }
8 |
--------------------------------------------------------------------------------
/apps/demo/src/main-page.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/apps/demo/src/main-view-model.ts:
--------------------------------------------------------------------------------
1 | import { Observable, Frame } from '@nativescript/core';
2 |
3 | export class MainViewModel extends Observable {
4 |
5 | viewDemo(args) {
6 | Frame.topmost().navigate({
7 | moduleName: `plugin-demos/${args.object.text}`,
8 | });
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/apps/demo/src/plugin-demos/.gitkeep
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-barcodescanner.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedNativescriptBarcodescanner } from '@demo/shared';
3 | import {} from '@valor/nativescript-barcodescanner';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedNativescriptBarcodescanner {}
11 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-barcodescanner.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-feedback.css:
--------------------------------------------------------------------------------
1 | .message {
2 | color: #333;
3 | font-size: 18;
4 | horizontal-align: center;
5 | padding-top: 30;
6 | padding-bottom: 20;
7 | }
8 |
9 | button {
10 | background-color: #6494aa;
11 | padding: 10 12;
12 | margin: 10;
13 | font-size: 14;
14 | border-radius: 4;
15 | }
16 |
17 | Image {
18 | margin: 20 0;
19 | }
20 |
21 | .button {
22 | color: #ffffff;
23 | }
24 |
25 | .button-success {
26 | background-color: #51ae8c;
27 | }
28 |
29 | .button-success-alt {
30 | background-color: lightskyblue;
31 | }
32 |
33 | .button-info {
34 | background-color: #516a78;
35 | }
36 |
37 | .button-warning {
38 | background-color: #f18b34;
39 | }
40 |
41 | .button-error {
42 | background-color: #ee664c;
43 | }
44 |
45 | .button-custom {
46 | background-color: #73b7e8;
47 | }
48 |
49 | .button-font {
50 | background-color: #c71fe8;
51 | }
52 |
53 | .button-custom-alt {
54 | background-color: yellowgreen;
55 | }
56 |
57 | .button-hide {
58 | background-color: black;
59 | }
60 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-feedback.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedNativescriptFeedback } from '@demo/shared';
3 | import {} from '@valor/nativescript-feedback';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedNativescriptFeedback {}
11 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-feedback.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-in-app-review.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedNativescriptInAppReview } from '@demo/shared';
3 | import {} from '@valor/nativescript-in-app-review';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedNativescriptInAppReview {}
11 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-in-app-review.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-view-shot.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page, Frame, View, GridLayout, ImageSource, Screen } from '@nativescript/core';
2 | import { DemoSharedNativescriptViewShot } from '@demo/shared';
3 | import { measureAndLayout, renderToImageSource } from '@valor/nativescript-view-shot';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel(page);
8 | }
9 |
10 | export class DemoModel extends DemoSharedNativescriptViewShot {
11 | declare imgSrc: ImageSource;
12 | constructor(private page: Page) {
13 | super();
14 | }
15 | render() {
16 | const hostView: GridLayout = this.page.getViewById('hostView');
17 | // this view is detached, so we need to measure and layout it according to the sizes we want
18 | measureAndLayout(hostView, Screen.mainScreen.widthDIPs);
19 | this.set('imgSrc', renderToImageSource(hostView));
20 | }
21 | renderVisible() {
22 | const hostView: GridLayout = this.page.getViewById('visibleView');
23 | this.set('imgSrc', renderToImageSource(hostView));
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-view-shot.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-websockets.ts:
--------------------------------------------------------------------------------
1 | import { Observable, EventData, Page } from '@nativescript/core';
2 | import { DemoSharedNativescriptWebsockets } from '@demo/shared';
3 | import {} from '@valor/nativescript-websockets';
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new DemoModel();
8 | }
9 |
10 | export class DemoModel extends DemoSharedNativescriptWebsockets {}
11 |
--------------------------------------------------------------------------------
/apps/demo/src/plugin-demos/nativescript-websockets.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/apps/demo/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDirs": [".", "../.."],
5 | "baseUrl": ".",
6 | "paths": {
7 | "~/*": ["src/*"],
8 | "@demo/shared": ["../../tools/demo/index.ts"]
9 | }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/apps/demo/webpack.config.js:
--------------------------------------------------------------------------------
1 | const webpack = require('@nativescript/webpack');
2 | const { resolve } = require('path');
3 |
4 | module.exports = (env) => {
5 |
6 | webpack.init(env);
7 | webpack.useConfig('typescript');
8 |
9 | webpack.chainWebpack((config) => {
10 | // shared demo code
11 | config.resolve.alias.set('@demo/shared', resolve(__dirname, '..', '..', 'tools', 'demo'));
12 | });
13 |
14 | // Example if you need to share images across demo apps:
15 | // webpack.Utils.addCopyRule({
16 | // from: '../../../tools/images',
17 | // to: 'images',
18 | // context: webpack.Utils.project.getProjectFilePath('node_modules')
19 | // });
20 |
21 | return webpack.resolveConfig();
22 | };
23 |
--------------------------------------------------------------------------------
/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | import { FlatCompat } from '@eslint/eslintrc';
2 | import { dirname } from 'path';
3 | import { fileURLToPath } from 'url';
4 | import js from '@eslint/js';
5 | import nxEslintPlugin from '@nx/eslint-plugin';
6 |
7 | const compat = new FlatCompat({
8 | baseDirectory: dirname(fileURLToPath(import.meta.url)),
9 | recommendedConfig: js.configs.recommended,
10 | });
11 |
12 | export default [
13 | {
14 | ignores: ['**/dist', '**/types/*.d.ts', '**/platforms/ios/**', '**/platforms/android/**'],
15 | },
16 | { plugins: { '@nx': nxEslintPlugin } },
17 | {
18 | files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
19 | rules: {
20 | '@nx/enforce-module-boundaries': [
21 | 'error',
22 | {
23 | enforceBuildableLibDependency: true,
24 | allow: [],
25 | depConstraints: [
26 | {
27 | sourceTag: '*',
28 | onlyDependOnLibsWithTags: ['*'],
29 | },
30 | ],
31 | },
32 | ],
33 | },
34 | },
35 | ...compat
36 | .config({
37 | extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:@nx/typescript'],
38 | })
39 | .map((config) => ({
40 | ...config,
41 | files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],
42 | rules: {
43 | ...config.rules,
44 | },
45 | })),
46 | ...compat
47 | .config({
48 | extends: ['plugin:@nx/javascript'],
49 | })
50 | .map((config) => ({
51 | ...config,
52 | files: ['**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs'],
53 | rules: {
54 | ...config.rules,
55 | },
56 | })),
57 | {
58 | files: ['**/references.d.ts'],
59 | rules: {
60 | '@typescript-eslint/triple-slash-reference': 'off',
61 | },
62 | },
63 | ];
64 |
--------------------------------------------------------------------------------
/jest.config.ts:
--------------------------------------------------------------------------------
1 | const { getJestProjects } = require('@nx/jest');
2 |
3 | export default { projects: [...getJestProjects()] };
4 |
--------------------------------------------------------------------------------
/jest.preset.js:
--------------------------------------------------------------------------------
1 | const nxPreset = require('@nx/jest/preset').default;
2 |
3 | module.exports = { ...nxPreset };
4 |
--------------------------------------------------------------------------------
/nx.json:
--------------------------------------------------------------------------------
1 | {
2 | "workspaceLayout": {
3 | "appsDir": "apps",
4 | "libsDir": "packages"
5 | },
6 | "tasksRunnerOptions": {
7 | "default": {
8 | "options": {
9 | "runtimeCacheInputs": ["node -v"]
10 | }
11 | }
12 | },
13 | "$schema": "./node_modules/nx/schemas/nx-schema.json",
14 | "namedInputs": {
15 | "default": ["{projectRoot}/**/*", "sharedGlobals"],
16 | "sharedGlobals": ["{workspaceRoot}/workspace.json", "{workspaceRoot}/tsconfig.base.json", "{workspaceRoot}/tslint.json", "{workspaceRoot}/nx.json"],
17 | "production": ["default", "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", "!{projectRoot}/tsconfig.spec.json", "!{projectRoot}/jest.config.[jt]s", "!{projectRoot}/.eslintrc.json", "!{projectRoot}/src/test-setup.[jt]s", "!{projectRoot}/eslint.config.mjs"]
18 | },
19 | "targetDefaults": {
20 | "build": {
21 | "inputs": ["production", "^production"],
22 | "cache": true
23 | },
24 | "test": {
25 | "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
26 | "cache": true
27 | },
28 | "lint": {
29 | "inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/eslint.config.mjs"],
30 | "cache": true
31 | },
32 | "build.all": {
33 | "cache": true
34 | },
35 | "build.native": {
36 | "cache": true
37 | },
38 | "e2e": {
39 | "cache": true
40 | }
41 | },
42 | "useDaemonProcess": false,
43 | "nxCloudAccessToken": "M2YzM2ViYzctZWNiMC00Y2MyLWI3ZmYtMDMwZTAxZjUwZGUwfHJlYWQ=",
44 | "useInferencePlugins": false,
45 | "defaultBase": "master",
46 | "release": {
47 | "releaseTagPattern": "release/{projectName}/{version}",
48 | "projects": ["packages/*"],
49 | "projectsRelationship": "independent",
50 | "changelog": {
51 | "workspaceChangelog": false,
52 | "projectChangelogs": {
53 | "renderOptions": {
54 | "authors": true,
55 | "commitReferences": true,
56 | "versionTitleDate": true
57 | }
58 | }
59 | }
60 | },
61 | "useLegacyCache": true
62 | }
63 |
--------------------------------------------------------------------------------
/packages/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/.gitkeep
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './common';
2 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/native-src/ios/BarcodeScannerFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/native-src/ios/BarcodeScannerFramework.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/native-src/ios/BarcodeScannerFramework/BarcodeScannerFramework.h:
--------------------------------------------------------------------------------
1 | //
2 | // BarcodeScannerFramework.h
3 | // BarcodeScannerFramework
4 | //
5 | // Created by Eduardo Speroni on 5/17/22.
6 | //
7 |
8 | #import "QRCodeReaderViewController.h"
9 |
10 | //! Project version number for BarcodeScannerFramework.
11 | FOUNDATION_EXPORT double BarcodeScannerFrameworkVersionNumber;
12 |
13 | //! Project version string for BarcodeScannerFramework.
14 | FOUNDATION_EXPORT const unsigned char BarcodeScannerFrameworkVersionString[];
15 |
16 | // In this header, you should import all the public headers of your framework using statements like #import
17 |
18 |
19 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/native-src/ios/BarcodeScannerFramework/QRCameraSwitchButton.h:
--------------------------------------------------------------------------------
1 | /*
2 | * QRCodeReaderViewController
3 | *
4 | * Copyright 2014-present Yannick Loriot.
5 | * http://yannickloriot.com
6 | *
7 | * Permission is hereby granted, free of charge, to any person obtaining a copy
8 | * of this software and associated documentation files (the "Software"), to deal
9 | * in the Software without restriction, including without limitation the rights
10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | * copies of the Software, and to permit persons to whom the Software is
12 | * furnished to do so, subject to the following conditions:
13 | *
14 | * The above copyright notice and this permission notice shall be included in
15 | * all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | * THE SOFTWARE.
24 | *
25 | */
26 |
27 | #import
28 |
29 | /**
30 | * The camera switch button.
31 | * @since 2.0.0
32 | */
33 | @interface QRCameraSwitchButton : UIButton
34 |
35 | #pragma mark - Managing Properties
36 | /** @name Managing Properties */
37 |
38 | /**
39 | * @abstract The edge color of the drawing.
40 | * @discussion The default color is the white.
41 | * @since 2.0.0
42 | */
43 | @property (nonatomic, strong) UIColor *edgeColor;
44 |
45 | /**
46 | * @abstract The fill color of the drawing.
47 | * @discussion The default color is the darkgray.
48 | * @since 2.0.0
49 | */
50 | @property (nonatomic, strong) UIColor *fillColor;
51 |
52 | /**
53 | * @abstract The edge color of the drawing when the button is touched.
54 | * @discussion The default color is the white.
55 | * @since 2.0.0
56 | */
57 | @property (nonatomic, strong) UIColor *edgeHighlightedColor;
58 |
59 | /**
60 | * @abstract The fill color of the drawing when the button is touched.
61 | * @discussion The default color is the black.
62 | * @since 2.0.0
63 | */
64 | @property (nonatomic, strong) UIColor *fillHighlightedColor;
65 |
66 | @end
67 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/native-src/ios/BarcodeScannerFramework/QRCodeReaderView.h:
--------------------------------------------------------------------------------
1 | /*
2 | * QRCodeReaderViewController
3 | *
4 | * Copyright 2014-present Yannick Loriot.
5 | * http://yannickloriot.com
6 | *
7 | * Permission is hereby granted, free of charge, to any person obtaining a copy
8 | * of this software and associated documentation files (the "Software"), to deal
9 | * in the Software without restriction, including without limitation the rights
10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | * copies of the Software, and to permit persons to whom the Software is
12 | * furnished to do so, subject to the following conditions:
13 | *
14 | * The above copyright notice and this permission notice shall be included in
15 | * all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | * THE SOFTWARE.
24 | *
25 | */
26 |
27 | #import
28 |
29 | /**
30 | * Overlay over the camera view to display the area (a square) where to scan the
31 | * code.
32 | * @since 2.0.0
33 | */
34 | @interface QRCodeReaderView : UIView
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/native-src/ios/BarcodeScannerFramework/QRToggleTorchButton.h:
--------------------------------------------------------------------------------
1 | /*
2 | * QRCodeReaderViewController
3 | *
4 | * Copyright 2014-present Yannick Loriot.
5 | * http://yannickloriot.com
6 | *
7 | * Permission is hereby granted, free of charge, to any person obtaining a copy
8 | * of this software and associated documentation files (the "Software"), to deal
9 | * in the Software without restriction, including without limitation the rights
10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | * copies of the Software, and to permit persons to whom the Software is
12 | * furnished to do so, subject to the following conditions:
13 | *
14 | * The above copyright notice and this permission notice shall be included in
15 | * all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | * THE SOFTWARE.
24 | *
25 | */
26 |
27 | #import
28 |
29 | /**
30 | * The toggle toch button.
31 | * @since 4.0.0
32 | */
33 | @interface QRToggleTorchButton : UIButton
34 |
35 | #pragma mark - Managing Properties
36 | /** @name Managing Properties */
37 |
38 | /**
39 | * @abstract The edge color of the drawing.
40 | * @discussion The default color is the white.
41 | * @since 2.0.0
42 | */
43 | @property (nonatomic, strong) UIColor *edgeColor;
44 |
45 | /**
46 | * @abstract The fill color of the drawing.
47 | * @discussion The default color is the darkgray.
48 | * @since 2.0.0
49 | */
50 | @property (nonatomic, strong) UIColor *fillColor;
51 |
52 | /**
53 | * @abstract The edge color of the drawing when the button is touched.
54 | * @discussion The default color is the white.
55 | * @since 2.0.0
56 | */
57 | @property (nonatomic, strong) UIColor *edgeHighlightedColor;
58 |
59 | /**
60 | * @abstract The fill color of the drawing when the button is touched.
61 | * @discussion The default color is the black.
62 | * @since 2.0.0
63 | */
64 | @property (nonatomic, strong) UIColor *fillHighlightedColor;
65 |
66 | @end
67 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/native-src/ios/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | echo "Set exit on simple errors"
4 | set -e
5 |
6 | PACKAGENAME=BarcodeScannerFramework
7 | OUTPUTPATH=$(PWD)/build
8 | COPYPATH=$(PWD)/../../platforms/ios/
9 | # make xcode builds deterministic
10 | export ZERO_AR_DATE=1
11 |
12 | rm -rf $OUTPUTPATH
13 |
14 | echo "Build for iphonesimulator"
15 | xcodebuild \
16 | -project $PACKAGENAME.xcodeproj \
17 | -scheme $PACKAGENAME \
18 | -sdk iphonesimulator \
19 | -configuration Release \
20 | clean build \
21 | BUILD_DIR=$OUTPUTPATH \
22 | SKIP_INSTALL=NO \
23 | -quiet
24 |
25 | echo "Build for iphoneos"
26 | xcodebuild \
27 | -project $PACKAGENAME.xcodeproj \
28 | -scheme $PACKAGENAME \
29 | -sdk iphoneos \
30 | -configuration Release \
31 | clean build \
32 | BUILD_DIR=$OUTPUTPATH \
33 | CODE_SIGN_IDENTITY="" \
34 | CODE_SIGNING_REQUIRED=NO \
35 | SKIP_INSTALL=NO \
36 | -quiet
37 |
38 | echo "Creating XCFramework"
39 | xcodebuild \
40 | -create-xcframework \
41 | -framework $OUTPUTPATH/Release-iphoneos/$PACKAGENAME.framework \
42 | -debug-symbols $OUTPUTPATH/Release-iphoneos/$PACKAGENAME.framework.dSYM \
43 | -framework $OUTPUTPATH/Release-iphonesimulator/$PACKAGENAME.framework \
44 | -debug-symbols $OUTPUTPATH/Release-iphonesimulator/$PACKAGENAME.framework.dSYM \
45 | -output $OUTPUTPATH/$PACKAGENAME.xcframework
46 |
47 |
48 | mkdir -p $COPYPATH
49 | rm -rf $COPYPATH/$PACKAGENAME.xcframework
50 | cp -R $OUTPUTPATH/$PACKAGENAME.xcframework $COPYPATH/
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@valor/nativescript-barcodescanner",
3 | "version": "4.1.5",
4 | "description": "Scan QR/barcodes with your NativeScript app.",
5 | "main": "index",
6 | "typings": "index.d.ts",
7 | "nativescript": {
8 | "platforms": {
9 | "ios": "6.0.0",
10 | "android": "6.0.0"
11 | }
12 | },
13 | "repository": {
14 | "type": "git",
15 | "url": "https://github.com/valor-software/nativescript-plugins.git"
16 | },
17 | "keywords": [
18 | "NativeScript",
19 | "JavaScript",
20 | "TypeScript",
21 | "iOS",
22 | "Android"
23 | ],
24 | "author": {
25 | "name": "Eduardo Speroni",
26 | "email": "eduardo.speroni@valor-software.com"
27 | },
28 | "bugs": {
29 | "url": "https://github.com/valor-software/nativescript-plugins/issues"
30 | },
31 | "license": "MIT",
32 | "homepage": "https://github.com/valor-software/nativescript-plugins",
33 | "readmeFilename": "README.md",
34 | "bootstrapper": "@nativescript/plugin-seed"
35 | }
36 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/android/barcodescanner-release-2.1.6.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-barcodescanner/platforms/android/barcodescanner-release-2.1.6.aar
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AvailableLibraries
6 |
7 |
8 | BinaryPath
9 | BarcodeScannerFramework.framework/BarcodeScannerFramework
10 | DebugSymbolsPath
11 | dSYMs
12 | LibraryIdentifier
13 | ios-arm64_x86_64-simulator
14 | LibraryPath
15 | BarcodeScannerFramework.framework
16 | SupportedArchitectures
17 |
18 | arm64
19 | x86_64
20 |
21 | SupportedPlatform
22 | ios
23 | SupportedPlatformVariant
24 | simulator
25 |
26 |
27 | BinaryPath
28 | BarcodeScannerFramework.framework/BarcodeScannerFramework
29 | DebugSymbolsPath
30 | dSYMs
31 | LibraryIdentifier
32 | ios-arm64
33 | LibraryPath
34 | BarcodeScannerFramework.framework
35 | SupportedArchitectures
36 |
37 | arm64
38 |
39 | SupportedPlatform
40 | ios
41 |
42 |
43 | CFBundlePackageType
44 | XFWK
45 | XCFrameworkFormatVersion
46 | 1.0
47 |
48 |
49 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/BarcodeScannerFramework.framework/BarcodeScannerFramework:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/BarcodeScannerFramework.framework/BarcodeScannerFramework
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/BarcodeScannerFramework.framework/Headers/BarcodeScannerFramework.h:
--------------------------------------------------------------------------------
1 | //
2 | // BarcodeScannerFramework.h
3 | // BarcodeScannerFramework
4 | //
5 | // Created by Eduardo Speroni on 5/17/22.
6 | //
7 |
8 | #import "QRCodeReaderViewController.h"
9 |
10 | //! Project version number for BarcodeScannerFramework.
11 | FOUNDATION_EXPORT double BarcodeScannerFrameworkVersionNumber;
12 |
13 | //! Project version string for BarcodeScannerFramework.
14 | FOUNDATION_EXPORT const unsigned char BarcodeScannerFrameworkVersionString[];
15 |
16 | // In this header, you should import all the public headers of your framework using statements like #import
17 |
18 |
19 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/BarcodeScannerFramework.framework/Headers/QRCodeReaderView.h:
--------------------------------------------------------------------------------
1 | /*
2 | * QRCodeReaderViewController
3 | *
4 | * Copyright 2014-present Yannick Loriot.
5 | * http://yannickloriot.com
6 | *
7 | * Permission is hereby granted, free of charge, to any person obtaining a copy
8 | * of this software and associated documentation files (the "Software"), to deal
9 | * in the Software without restriction, including without limitation the rights
10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | * copies of the Software, and to permit persons to whom the Software is
12 | * furnished to do so, subject to the following conditions:
13 | *
14 | * The above copyright notice and this permission notice shall be included in
15 | * all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | * THE SOFTWARE.
24 | *
25 | */
26 |
27 | #import
28 |
29 | /**
30 | * Overlay over the camera view to display the area (a square) where to scan the
31 | * code.
32 | * @since 2.0.0
33 | */
34 | @interface QRCodeReaderView : UIView
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/BarcodeScannerFramework.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/BarcodeScannerFramework.framework/Info.plist
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/BarcodeScannerFramework.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module BarcodeScannerFramework {
2 | umbrella header "BarcodeScannerFramework.h"
3 | export *
4 |
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/dSYMs/BarcodeScannerFramework.framework.dSYM/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleIdentifier
8 | com.apple.xcode.dsym.com.telerik.BarcodeScannerFramework
9 | CFBundleInfoDictionaryVersion
10 | 6.0
11 | CFBundlePackageType
12 | dSYM
13 | CFBundleSignature
14 | ????
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleVersion
18 | 1
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/dSYMs/BarcodeScannerFramework.framework.dSYM/Contents/Resources/DWARF/BarcodeScannerFramework:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64/dSYMs/BarcodeScannerFramework.framework.dSYM/Contents/Resources/DWARF/BarcodeScannerFramework
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/BarcodeScannerFramework.framework/BarcodeScannerFramework:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/BarcodeScannerFramework.framework/BarcodeScannerFramework
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/BarcodeScannerFramework.framework/Headers/BarcodeScannerFramework.h:
--------------------------------------------------------------------------------
1 | //
2 | // BarcodeScannerFramework.h
3 | // BarcodeScannerFramework
4 | //
5 | // Created by Eduardo Speroni on 5/17/22.
6 | //
7 |
8 | #import "QRCodeReaderViewController.h"
9 |
10 | //! Project version number for BarcodeScannerFramework.
11 | FOUNDATION_EXPORT double BarcodeScannerFrameworkVersionNumber;
12 |
13 | //! Project version string for BarcodeScannerFramework.
14 | FOUNDATION_EXPORT const unsigned char BarcodeScannerFrameworkVersionString[];
15 |
16 | // In this header, you should import all the public headers of your framework using statements like #import
17 |
18 |
19 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/BarcodeScannerFramework.framework/Headers/QRCodeReaderView.h:
--------------------------------------------------------------------------------
1 | /*
2 | * QRCodeReaderViewController
3 | *
4 | * Copyright 2014-present Yannick Loriot.
5 | * http://yannickloriot.com
6 | *
7 | * Permission is hereby granted, free of charge, to any person obtaining a copy
8 | * of this software and associated documentation files (the "Software"), to deal
9 | * in the Software without restriction, including without limitation the rights
10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | * copies of the Software, and to permit persons to whom the Software is
12 | * furnished to do so, subject to the following conditions:
13 | *
14 | * The above copyright notice and this permission notice shall be included in
15 | * all copies or substantial portions of the Software.
16 | *
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | * THE SOFTWARE.
24 | *
25 | */
26 |
27 | #import
28 |
29 | /**
30 | * Overlay over the camera view to display the area (a square) where to scan the
31 | * code.
32 | * @since 2.0.0
33 | */
34 | @interface QRCodeReaderView : UIView
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/BarcodeScannerFramework.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/BarcodeScannerFramework.framework/Info.plist
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/BarcodeScannerFramework.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module BarcodeScannerFramework {
2 | umbrella header "BarcodeScannerFramework.h"
3 | export *
4 |
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/dSYMs/BarcodeScannerFramework.framework.dSYM/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleIdentifier
8 | com.apple.xcode.dsym.com.telerik.BarcodeScannerFramework
9 | CFBundleInfoDictionaryVersion
10 | 6.0
11 | CFBundlePackageType
12 | dSYM
13 | CFBundleSignature
14 | ????
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleVersion
18 | 1
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/dSYMs/BarcodeScannerFramework.framework.dSYM/Contents/Resources/DWARF/BarcodeScannerFramework:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.xcframework/ios-arm64_x86_64-simulator/dSYMs/BarcodeScannerFramework.framework.dSYM/Contents/Resources/DWARF/BarcodeScannerFramework
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/platforms/ios/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | NSCameraUsageDescription
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-barcodescanner",
3 | "$schema": "../../node_modules/nx/schemas/project-schema.json",
4 | "projectType": "library",
5 | "sourceRoot": "packages/nativescript-barcodescanner",
6 | "tags": [],
7 | "targets": {
8 | "build": {
9 | "executor": "@nx/js:tsc",
10 | "options": {
11 | "outputPath": "dist/packages/nativescript-barcodescanner",
12 | "tsConfig": "packages/nativescript-barcodescanner/tsconfig.json",
13 | "packageJson": "packages/nativescript-barcodescanner/package.json",
14 | "main": "packages/nativescript-barcodescanner/index.d.ts",
15 | "assets": [
16 | "packages/nativescript-barcodescanner/*.md",
17 | "packages/nativescript-barcodescanner/index.d.ts",
18 | "LICENSE",
19 | {
20 | "glob": "**/*",
21 | "input": "packages/nativescript-barcodescanner/platforms/",
22 | "output": "./platforms/"
23 | },
24 | {
25 | "glob": "*.d.ts",
26 | "input": "packages/nativescript-barcodescanner/types/",
27 | "output": "./types/"
28 | }
29 | ],
30 | "dependsOn": ["build.native"]
31 | }
32 | },
33 | "build.all": {
34 | "executor": "nx:run-commands",
35 | "outputs": ["{workspaceRoot}/dist/packages/nativescript-barcodescanner"],
36 | "options": {
37 | "commands": ["node tools/scripts/build-finish.ts nativescript-barcodescanner"],
38 | "parallel": false
39 | },
40 | "dependsOn": ["^build.all", "build.native", "build"]
41 | },
42 | "build.native": {
43 | "executor": "nx:run-commands",
44 | "inputs": ["{projectRoot}/native-src/ios"],
45 | "outputs": ["{projectRoot}/platforms/ios"],
46 | "options": {
47 | "commands": ["./build.sh"],
48 | "parallel": false,
49 | "cwd": "packages/nativescript-barcodescanner/native-src/ios"
50 | }
51 | },
52 | "focus": {
53 | "executor": "nx:run-commands",
54 | "options": {
55 | "commands": ["nx g @nativescript/plugin-tools:focus-packages nativescript-barcodescanner"],
56 | "parallel": false
57 | }
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/nativescript-barcodescanner/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "**/*.test.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/nativescript-feedback/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | import baseConfig from '../../eslint.config.mjs';
2 |
3 | export default [
4 | {
5 | ignores: ['**/dist'],
6 | },
7 | ...baseConfig,
8 | {
9 | files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
10 | // Override or add rules here
11 | rules: {},
12 | },
13 | {
14 | files: ['**/*.ts', '**/*.tsx'],
15 | // Override or add rules here
16 | rules: {},
17 | },
18 | {
19 | files: ['**/*.js', '**/*.jsx'],
20 | // Override or add rules here
21 | rules: {},
22 | },
23 | {
24 | ignores: ['node_modules/**/*', 'types/**/*'],
25 | },
26 | ];
27 |
--------------------------------------------------------------------------------
/packages/nativescript-feedback/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './common';
2 |
3 | export * from './index.ios';
4 |
--------------------------------------------------------------------------------
/packages/nativescript-feedback/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@valor/nativescript-feedback",
3 | "version": "2.0.2",
4 | "description": "Non-blocking textual feedback for your NativeScript app. AKA superfancy Toasts!",
5 | "main": "index",
6 | "typings": "index.d.ts",
7 | "nativescript": {
8 | "platforms": {
9 | "ios": "8.0.0",
10 | "android": "8.0.0"
11 | }
12 | },
13 | "repository": {
14 | "type": "git",
15 | "url": "https://github.com/valor-software/nativescript-plugins.git"
16 | },
17 | "keywords": [
18 | "NativeScript",
19 | "JavaScript",
20 | "TypeScript",
21 | "iOS",
22 | "Android"
23 | ],
24 | "author": {
25 | "name": "Eduardo Speroni",
26 | "email": "eduardo.speroni@valor-software.com"
27 | },
28 | "bugs": {
29 | "url": "https://github.com/valor-software/nativescript-plugins/issues"
30 | },
31 | "license": "MIT",
32 | "homepage": "https://github.com/valor-software/nativescript-plugins",
33 | "readmeFilename": "README.md",
34 | "bootstrapper": "@nativescript/plugin-seed"
35 | }
36 |
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | repositories {
2 | maven { url "https://jitpack.io" }
3 | }
4 |
5 | dependencies {
6 | def supportVer = "27.0.1"
7 | if (project.hasProperty("supportVersion")) {
8 | supportVer = supportVersion
9 | }
10 | implementation "com.android.support:appcompat-v7:$supportVer"
11 | implementation 'com.github.tapadoo:alerter:7.2.4'
12 | }
13 |
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable-hdpi/erroricon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable-hdpi/erroricon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable-xhdpi/erroricon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable-xhdpi/erroricon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable-xhdpi/infoicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable-xhdpi/infoicon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable-xhdpi/successicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable-xhdpi/successicon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable-xhdpi/warningicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable-xhdpi/warningicon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable-xxhdpi/erroricon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable-xxhdpi/erroricon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable-xxhdpi/infoicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable-xxhdpi/infoicon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable-xxhdpi/successicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable-xxhdpi/successicon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable-xxhdpi/warningicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable-xxhdpi/warningicon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable/erroricon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable/erroricon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable/infoicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable/infoicon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable/successicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable/successicon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/android/res/drawable/warningicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-feedback/platforms/android/res/drawable/warningicon.png
--------------------------------------------------------------------------------
/packages/nativescript-feedback/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | pod 'ISMessages', :git => 'https://github.com/EddyVerbruggen/ISMessages.git', :commit => '9cda6db2fcb11e62b0332eedb24dbefcbb69435f'
--------------------------------------------------------------------------------
/packages/nativescript-feedback/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-feedback",
3 | "$schema": "../../node_modules/nx/schemas/project-schema.json",
4 | "projectType": "library",
5 | "sourceRoot": "packages/nativescript-feedback",
6 | "tags": [],
7 | "targets": {
8 | "build": {
9 | "executor": "@nx/js:tsc",
10 | "options": {
11 | "outputPath": "dist/packages/nativescript-feedback",
12 | "tsConfig": "packages/nativescript-feedback/tsconfig.json",
13 | "packageJson": "packages/nativescript-feedback/package.json",
14 | "main": "packages/nativescript-feedback/index.d.ts",
15 | "assets": [
16 | "packages/nativescript-feedback/*.md",
17 | "packages/nativescript-feedback/index.d.ts",
18 | "LICENSE",
19 | {
20 | "glob": "**/*",
21 | "input": "packages/nativescript-feedback/platforms/",
22 | "output": "./platforms/"
23 | }
24 | ],
25 | "dependsOn": ["^build.all"]
26 | }
27 | },
28 | "build.all": {
29 | "executor": "nx:run-commands",
30 | "options": {
31 | "commands": ["node tools/scripts/build-finish.ts nativescript-feedback"],
32 | "parallel": false
33 | },
34 | "outputs": ["{workspaceRoot}/dist/packages/nativescript-feedback"],
35 | "dependsOn": ["^build.all", "build"]
36 | },
37 | "focus": {
38 | "executor": "nx:run-commands",
39 | "options": {
40 | "commands": ["nx g @nativescript/plugin-tools:focus-packages nativescript-feedback"],
41 | "parallel": false
42 | }
43 | },
44 | "lint": {
45 | "executor": "@nx/eslint:lint"
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/packages/nativescript-feedback/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/nativescript-feedback/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "**/*.test.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/nativescript-feedback/types/ISMessages.d.ts:
--------------------------------------------------------------------------------
1 | declare const enum ISAlertPosition {
2 |
3 | Top = 0,
4 |
5 | Bottom = 1
6 | }
7 |
8 | declare const enum ISAlertType {
9 |
10 | Success = 0,
11 |
12 | Error = 1,
13 |
14 | Warning = 2,
15 |
16 | Info = 3,
17 |
18 | Custom = 4
19 | }
20 |
21 | declare class ISMessages extends UIViewController {
22 |
23 | static alloc(): ISMessages; // inherited from NSObject
24 |
25 | static cardAlertWithTitleMessageIconImageDurationHideOnSwipeHideOnTapAlertTypeAlertPosition(title: string, message: string, iconImage: UIImage, duration: number, hideOnSwipe: boolean, hideOnTap: boolean, type: ISAlertType, position: ISAlertPosition): ISMessages;
26 |
27 | static hideAlertAnimated(animated: boolean): void;
28 |
29 | static new(): ISMessages; // inherited from NSObject
30 |
31 | static showCardAlertWithTitleMessageDurationHideOnSwipeHideOnTapAlertTypeAlertPositionDidHide(title: string, message: string, duration: number, hideOnSwipe: boolean, hideOnTap: boolean, type: ISAlertType, position: ISAlertPosition, didHide: (p1: boolean) => void): ISMessages;
32 |
33 | alertViewBackgroundColor: UIColor;
34 |
35 | messageLabelFont: UIFont;
36 |
37 | messageLabelTextColor: UIColor;
38 |
39 | titleLabelFont: UIFont;
40 |
41 | titleLabelTextColor: UIColor;
42 |
43 | showDidBeginDidHide(handler: () => void, didBegin: (animating: boolean) => void, didHide: (p1: boolean) => void): void;
44 | }
45 |
46 | declare var ISMessagesVersionNumber: number;
47 |
48 | declare var ISMessagesVersionString: interop.Reference;
49 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 1.1.1 (2025-04-30)
2 |
3 | ### 🚀 Features
4 |
5 | - add @valor/nativescript-in-app-review ([#9](https://github.com/valor-software/nativescript-plugins/pull/9))
6 |
7 | ### 🩹 Fixes
8 |
9 | - **android:** use current activity ([#22](https://github.com/valor-software/nativescript-plugins/pull/22))
10 | - **in-app-review:** use split play core services ([#12](https://github.com/valor-software/nativescript-plugins/pull/12))
11 |
12 | ### ❤️ Thank You
13 |
14 | - Nathan Walker
15 | - Samuel Schultze
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/README.md:
--------------------------------------------------------------------------------
1 | # @valor/nativescript-in-app-review
2 |
3 |
4 |
5 |
6 | ```javascript
7 | ns plugin add @valor/nativescript-in-app-review
8 | ```
9 |
10 | ## Usage
11 |
12 | ```ts
13 | import { InAppReview } from '@valor/nativescript-in-app-review';
14 |
15 | InAppReview.requestReviewPopup();
16 | ```
17 |
18 | ## Quotas and limitations
19 |
20 | Due to limitations on both Android and iOS, there are no guarantees that the user will be presented with the popup after
21 | invoking the `requestReviewPopup()` method. And there's no way of knowing if the user was prompted for a review or not,
22 | nor if they left a review. Because of that, it's not recommended to invoke the method upon an user action (like a button
23 | tap).
24 |
25 | ### Android
26 |
27 | - **Production builds** have a quota of around 1 prompt per month;
28 | - **Development builds** will never show the popup;
29 | - **Internal testing builds** will always show the popup, however, there's a bug on the play store that requires its app
30 | data to be cleaned up after a successful prompt. You can read more about the issue and the workaround
31 | [here](https://stackoverflow.com/questions/70954925/in-app-review-opens-only-once-when-testing-for-the-same-account);
32 |
33 | You can read more about quotas and testing for Android [here](https://developer.android.com/guide/playcore/in-app-review/test).
34 |
35 | ### iOS
36 |
37 | - **Production builds** have a quota of 3 prompts per year for each unique build number (i.e., bundle id).
38 | - **Development builds** will always show the popup.
39 | - **TestFlight builds** will never show the popup.
40 |
41 | You can read more about quotas and testing for iOS [here](https://developer.apple.com/documentation/storekit/requesting_app_store_reviews?language=objc).
42 |
43 | ## License
44 |
45 | Apache License Version 2.0
46 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/common.ts:
--------------------------------------------------------------------------------
1 | export class InAppReviewCommon {}
2 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | import baseConfig from '../../eslint.config.mjs';
2 |
3 | export default [
4 | {
5 | ignores: ['**/dist'],
6 | },
7 | ...baseConfig,
8 | {
9 | files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
10 | // Override or add rules here
11 | rules: {},
12 | },
13 | {
14 | files: ['**/*.ts', '**/*.tsx'],
15 | // Override or add rules here
16 | rules: {},
17 | },
18 | {
19 | files: ['**/*.js', '**/*.jsx'],
20 | // Override or add rules here
21 | rules: {},
22 | },
23 | {
24 | ignores: ['node_modules/**/*', 'types/**/*'],
25 | },
26 | ];
27 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/index.android.ts:
--------------------------------------------------------------------------------
1 | import { Application, Utils } from '@nativescript/core';
2 | import { InAppReviewCommon } from './common';
3 |
4 | export class InAppReview extends InAppReviewCommon {
5 | static requestReviewPopup() {
6 | const context = Utils.android.getApplicationContext() as android.content.Context;
7 | const manager = com.google.android.play.core.review.ReviewManagerFactory.create(context);
8 | const request = manager.requestReviewFlow();
9 |
10 | return new Promise((resolve, reject) =>
11 | request.addOnCompleteListener(
12 | new com.google.android.gms.tasks.OnCompleteListener({
13 | onComplete: (task) => {
14 | if (!task.isSuccessful()) {
15 | reject(new Error(task.getException()?.getMessage()));
16 | return;
17 | }
18 |
19 | const reviewInfo = task.getResult();
20 | const flow = manager.launchReviewFlow(Utils.android.getCurrentActivity(), reviewInfo);
21 |
22 | flow.addOnCompleteListener(
23 | new com.google.android.gms.tasks.OnCompleteListener({
24 | onComplete: (task) => {
25 | // The flow has finished. The API does not indicate whether the
26 | // user reviewed or not, or even whether the review dialog was
27 | // shown. Thus, no matter the result, we continue our app flow.
28 | if (!task.isSuccessful()) {
29 | reject(new Error(task.getException()?.getMessage()));
30 | } else {
31 | resolve();
32 | }
33 | },
34 | })
35 | );
36 | },
37 | })
38 | )
39 | );
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/index.d.ts:
--------------------------------------------------------------------------------
1 | import { InAppReviewCommon } from './common';
2 |
3 | export declare class InAppReview extends InAppReviewCommon {
4 | /**
5 | * Request the system to show a popup asking the user to leave an app review.
6 | * Whether the popup will be shown or not depends on the system's heuristics.
7 | */
8 | static requestReviewPopup(): Promise;
9 | }
10 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/index.ios.ts:
--------------------------------------------------------------------------------
1 | import { Application, Device } from '@nativescript/core';
2 | import { InAppReviewCommon } from './common';
3 |
4 | export class InAppReview extends InAppReviewCommon {
5 | static requestReviewPopup() {
6 | if (+Device.sdkVersion < 14.0) {
7 | SKStoreReviewController.requestReview();
8 | } else {
9 | SKStoreReviewController.requestReviewInScene((Application.ios.window as UIWindow).windowScene);
10 | }
11 |
12 | return Promise.resolve();
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@valor/nativescript-in-app-review",
3 | "version": "1.1.1",
4 | "description": "Native in-app review popups for NativeScript apps",
5 | "main": "index",
6 | "typings": "index.d.ts",
7 | "nativescript": {
8 | "platforms": {
9 | "ios": "6.0.0",
10 | "android": "6.0.0"
11 | }
12 | },
13 | "repository": {
14 | "type": "git",
15 | "url": "https://github.com/valor-software/nativescript-plugins.git"
16 | },
17 | "keywords": [
18 | "NativeScript",
19 | "JavaScript",
20 | "TypeScript",
21 | "iOS",
22 | "Android"
23 | ],
24 | "author": {
25 | "name": "Samuel Schultze",
26 | "email": "samuel.schultze@valor-software.com"
27 | },
28 | "bugs": {
29 | "url": "https://github.com/valor-software/nativescript-plugins/issues"
30 | },
31 | "license": "Apache-2.0",
32 | "homepage": "https://github.com/valor-software/nativescript-plugins",
33 | "readmeFilename": "README.md",
34 | "bootstrapper": "@nativescript/plugin-seed"
35 | }
36 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | implementation 'com.google.android.play:review:2.0.1'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-in-app-review",
3 | "$schema": "../../node_modules/nx/schemas/project-schema.json",
4 | "projectType": "library",
5 | "sourceRoot": "packages/nativescript-in-app-review",
6 | "tags": [],
7 | "targets": {
8 | "build": {
9 | "executor": "@nx/js:tsc",
10 | "options": {
11 | "outputPath": "dist/packages/nativescript-in-app-review",
12 | "tsConfig": "packages/nativescript-in-app-review/tsconfig.json",
13 | "packageJson": "packages/nativescript-in-app-review/package.json",
14 | "main": "packages/nativescript-in-app-review/index.d.ts",
15 | "assets": [
16 | "packages/nativescript-in-app-review/*.md",
17 | "packages/nativescript-in-app-review/index.d.ts",
18 | "LICENSE",
19 | {
20 | "glob": "**/*",
21 | "input": "packages/nativescript-in-app-review/platforms/",
22 | "output": "./platforms/"
23 | }
24 | ],
25 | "dependsOn": ["^build.all"]
26 | }
27 | },
28 | "build.all": {
29 | "executor": "nx:run-commands",
30 | "options": {
31 | "commands": ["node tools/scripts/build-finish.ts nativescript-in-app-review"],
32 | "parallel": false
33 | },
34 | "outputs": ["{workspaceRoot}/dist/packages/nativescript-in-app-review"],
35 | "dependsOn": ["^build.all", "build"]
36 | },
37 | "focus": {
38 | "executor": "nx:run-commands",
39 | "options": {
40 | "commands": ["nx g @nativescript/plugin-tools:focus-packages nativescript-in-app-review"],
41 | "parallel": false
42 | }
43 | },
44 | "lint": {
45 | "executor": "@nx/eslint:lint"
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/packages/nativescript-in-app-review/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "**/*.test.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/.browserslistrc:
--------------------------------------------------------------------------------
1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2 | # For additional information regarding the format and rule options, please see:
3 | # https://github.com/browserslist/browserslist#queries
4 |
5 | # For the full list of supported browsers by the Angular framework, please see:
6 | # https://angular.io/guide/browser-support
7 |
8 | # You can see what browsers were selected by your queries by running:
9 | # npx browserslist
10 |
11 | last 1 Chrome version
12 | last 1 Firefox version
13 | last 2 Edge major versions
14 | last 2 Safari major versions
15 | last 2 iOS major versions
16 | Firefox ESR
17 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/README.md:
--------------------------------------------------------------------------------
1 | # nativescript-ngrx-devtools
2 |
3 | This plugin allows you to use NgRx devtools with NativeScript.
4 |
5 | ## Installation
6 |
7 | Firstly, run:
8 |
9 | ```bash
10 | npm i @valor/nativescript-ngrx-devtools @valor/nativescript-websockets
11 | ```
12 |
13 | Import `@valor/nativescript-websockets` in your `polyfills.ts`:
14 |
15 | ```ts
16 | /**
17 | * NativeScript Polyfills
18 | */
19 |
20 | // Install @nativescript/core polyfills (XHR, setTimeout, requestAnimationFrame)
21 | import '@nativescript/core/globals';
22 |
23 | import '@valor/nativescript-websockets'; // add this line!
24 |
25 | // Install @nativescript/angular specific polyfills
26 | import '@nativescript/angular/polyfills';
27 |
28 | /**
29 | * Zone.js and patches
30 | */
31 | // Add pre-zone.js patches needed for the NativeScript platform
32 | import '@nativescript/zone-js/dist/pre-zone-polyfills';
33 |
34 | // Zone JS is required by default for Angular itself
35 | import 'zone.js';
36 |
37 | // Add NativeScript specific Zone JS patches
38 | import '@nativescript/zone-js';
39 | ```
40 |
41 | Then add `NativeScriptNgRxDevtoolsModule.forRoot()` to your `AppModule` imports:
42 |
43 | ```typescript
44 | @NgModule({
45 | imports: [
46 | StoreModule.forRoot(...),
47 | StoreDevtoolsModule.instrument(),
48 | NativeScriptNgRxDevtoolsModule.forRoot(),
49 | ],
50 | exports: [StoreModule],
51 | })
52 | export class AppModule {}
53 | ```
54 |
55 | By default the plugin will try to connect to the devtools on port 8000 on the default IPs provided by NativeScript (`__NS_DEV_HOST_IPS__`), but this can be configured by passing an options object to `NativeScriptNgRxDevtoolsModule.forRoot()`.
56 |
57 | To start debugging install the latest `@redux-devtools/cli`:
58 |
59 | ```bash
60 | npm i -g @redux-devtools/cli
61 | ```
62 |
63 | Then open them:
64 |
65 | ```bash
66 | redux-devtools --open
67 | ```
68 |
69 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | import { FlatCompat } from '@eslint/eslintrc';
2 | import { dirname } from 'path';
3 | import { fileURLToPath } from 'url';
4 | import js from '@eslint/js';
5 | import baseConfig from '../../eslint.config.mjs';
6 |
7 | const compat = new FlatCompat({
8 | baseDirectory: dirname(fileURLToPath(import.meta.url)),
9 | recommendedConfig: js.configs.recommended,
10 | });
11 |
12 | export default [
13 | {
14 | ignores: ['**/dist'],
15 | },
16 | ...baseConfig,
17 | ...compat
18 | .config({
19 | extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'],
20 | })
21 | .map((config) => ({
22 | ...config,
23 | files: ['**/*.ts'],
24 | rules: {
25 | ...config.rules,
26 | '@angular-eslint/directive-selector': [
27 | 'error',
28 | {
29 | type: 'attribute',
30 | prefix: 'valorSoftware',
31 | style: 'camelCase',
32 | },
33 | ],
34 | '@angular-eslint/component-selector': [
35 | 'error',
36 | {
37 | type: 'element',
38 | prefix: 'valor',
39 | style: 'kebab-case',
40 | },
41 | ],
42 | },
43 | })),
44 | ...compat
45 | .config({
46 | extends: ['plugin:@nx/angular-template'],
47 | })
48 | .map((config) => ({
49 | ...config,
50 | files: ['**/*.html'],
51 | rules: {
52 | ...config.rules,
53 | },
54 | })),
55 | ];
56 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/jest.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | displayName: 'nativescript-ngrx-devtools',
3 | preset: '../../jest.preset.js',
4 | setupFilesAfterEnv: ['/src/test-setup.ts'],
5 | globals: {
6 | 'ts-jest': {
7 | tsconfig: '/tsconfig.spec.json',
8 | stringifyContentPathRegex: '\\.(html|svg)$',
9 | },
10 | },
11 | coverageDirectory: '../../coverage/packages/nativescript-ngrx-devtools',
12 | transform: {
13 | '^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular',
14 | },
15 | transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
16 | snapshotSerializers: ['jest-preset-angular/build/serializers/no-ng-attributes', 'jest-preset-angular/build/serializers/ng-snapshot', 'jest-preset-angular/build/serializers/html-comment'],
17 | };
18 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/nativescript.webpack.js:
--------------------------------------------------------------------------------
1 | const webpack = require('@nativescript/webpack');
2 | const PackageSpecificAliasFieldPlugin = require('./package-alias-plugin');
3 |
4 | module.exports = (env) => {
5 | webpack.chainWebpack((config) => {
6 | const packages = ['uuid', 'socketcluster-client'];
7 | config.resolve.plugin('PackageSpecificAliasFieldPlugin|ngrx-browser-fields').use(PackageSpecificAliasFieldPlugin, ['browser', packages]);
8 | });
9 | };
10 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/ng-package.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3 | "dest": "../../dist/packages/nativescript-ngrx-devtools",
4 | "lib": {
5 | "entryFile": "src/index.ts"
6 | },
7 | "assets": ["nativescript.webpack.js", "package-alias-plugin.js", "README.md"],
8 | "allowedNonPeerDependencies": ["jsan", "socketcluster-client"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@valor/nativescript-ngrx-devtools",
3 | "version": "2.0.0",
4 | "repository": {
5 | "type": "git",
6 | "url": "https://github.com/valor-software/nativescript-plugins.git"
7 | },
8 | "author": {
9 | "name": "Eduardo Speroni",
10 | "email": "eduardo.speroni@valor-software.com"
11 | },
12 | "peerDependencies": {
13 | "@angular/common": "^15.0.0",
14 | "@angular/core": "^15.0.0",
15 | "@valor/nativescript-websockets": "^1.0.4"
16 | },
17 | "dependencies": {
18 | "jsan": "^3.1.14",
19 | "socketcluster-client": "^14.3.2",
20 | "tslib": "^2.3.0"
21 | },
22 | "bugs": {
23 | "url": "https://github.com/valor-software/nativescript-plugins/issues"
24 | },
25 | "license": "MIT"
26 | }
27 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-ngrx-devtools",
3 | "$schema": "../../node_modules/nx/schemas/project-schema.json",
4 | "projectType": "library",
5 | "sourceRoot": "packages/nativescript-ngrx-devtools/src",
6 | "prefix": "valor",
7 | "tags": [],
8 | "targets": {
9 | "build.all": {
10 | "executor": "@nx/angular:package",
11 | "outputs": ["{workspaceRoot}/dist/packages/nativescript-ngrx-devtools"],
12 | "options": {
13 | "project": "packages/nativescript-ngrx-devtools/ng-package.json"
14 | },
15 | "dependsOn": ["^build.all"],
16 | "configurations": {
17 | "production": {
18 | "tsConfig": "packages/nativescript-ngrx-devtools/tsconfig.lib.prod.json"
19 | },
20 | "development": {
21 | "tsConfig": "packages/nativescript-ngrx-devtools/tsconfig.lib.json"
22 | }
23 | },
24 | "defaultConfiguration": "production"
25 | },
26 | "test": {
27 | "executor": "@nx/jest:jest",
28 | "outputs": ["{workspaceRoot}/coverage/packages/nativescript-ngrx-devtools"],
29 | "options": {
30 | "jestConfig": "packages/nativescript-ngrx-devtools/jest.config.ts",
31 | "passWithNoTests": true
32 | }
33 | },
34 | "lint": {
35 | "executor": "@nx/eslint:lint"
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/src/index.ts:
--------------------------------------------------------------------------------
1 | export * from './lib/nativescript-ngrx-devtools.module';
2 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/src/lib/nativescript-ngrx-devtools.module.ts:
--------------------------------------------------------------------------------
1 | import { ModuleWithProviders, NgModule } from '@angular/core';
2 | import { REDUX_DEVTOOLS_EXTENSION } from '@ngrx/store-devtools';
3 | import { RemoteDevToolsProxyOptions } from './remotedev/model';
4 | import { RemoteDevToolsProxy, REMOTE_DEVTOOLS_PROXY_OPTIONS } from './remotedev/proxy';
5 |
6 | @NgModule({})
7 | export class NativeScriptNgRxDevtoolsModule {
8 | public static forRoot(options: RemoteDevToolsProxyOptions = {}): ModuleWithProviders {
9 | return {
10 | ngModule: NativeScriptNgRxDevtoolsModule,
11 | providers: [
12 | {
13 | provide: REMOTE_DEVTOOLS_PROXY_OPTIONS,
14 | useValue: options,
15 | },
16 | RemoteDevToolsProxy,
17 | {
18 | provide: REDUX_DEVTOOLS_EXTENSION,
19 | useExisting: RemoteDevToolsProxy,
20 | },
21 | ],
22 | };
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/src/lib/remotedev/model.ts:
--------------------------------------------------------------------------------
1 | export interface RemoteDevToolsProxyOptions {
2 | hostname?: string;
3 | port?: number;
4 | autoReconnect?: boolean;
5 | connectTimeout?: number;
6 | ackTimeout?: number;
7 | secure?: boolean;
8 | defaultHosts?: string[];
9 | messageCacheSize?: number;
10 | delayMessageSerialization?: boolean;
11 | }
12 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/src/test-setup.ts:
--------------------------------------------------------------------------------
1 | import 'jest-preset-angular/setup-jest';
2 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "files": [],
4 | "include": [],
5 | "references": [
6 | {
7 | "path": "./tsconfig.lib.json"
8 | },
9 | {
10 | "path": "./tsconfig.lib.prod.json"
11 | },
12 | {
13 | "path": "./tsconfig.spec.json"
14 | }
15 | ],
16 | "compilerOptions": {
17 | "forceConsistentCasingInFileNames": true,
18 | "strict": true,
19 | "noImplicitOverride": true,
20 | "noPropertyAccessFromIndexSignature": true,
21 | "noImplicitReturns": true,
22 | "noFallthroughCasesInSwitch": true
23 | },
24 | "angularCompilerOptions": {
25 | "strictInjectionParameters": true,
26 | "strictInputAccessModifiers": true,
27 | "strictTemplates": true
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/tsconfig.lib.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "declaration": true,
6 | "declarationMap": true,
7 | "inlineSources": true,
8 | "types": []
9 | },
10 | "exclude": ["src/test-setup.ts", "**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
11 | "include": ["**/*.ts"]
12 | }
13 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/tsconfig.lib.prod.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.lib.json",
3 | "compilerOptions": {
4 | "declarationMap": false
5 | },
6 | "angularCompilerOptions": {
7 | "compilationMode": "partial"
8 | },
9 | "exclude": ["jest.config.ts"]
10 | }
11 |
--------------------------------------------------------------------------------
/packages/nativescript-ngrx-devtools/tsconfig.spec.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "module": "commonjs",
6 | "types": ["jest", "node"]
7 | },
8 | "files": ["src/test-setup.ts"],
9 | "include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts", "jest.config.ts"]
10 | }
11 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/angular/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["../.eslintrc.json"],
3 | "overrides": [
4 | {
5 | "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
6 | "rules": {}
7 | },
8 | {
9 | "files": ["*.ts", "*.tsx"],
10 | "rules": {
11 | "@nx/enforce-module-boundaries": [
12 | "error",
13 | {
14 | "allowCircularSelfDependency": true
15 | }
16 | ]
17 | }
18 | },
19 | {
20 | "files": ["*.js", "*.jsx"],
21 | "rules": {}
22 | }
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/angular/index.ts:
--------------------------------------------------------------------------------
1 | export * from './view-shot.service';
2 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/angular/ng-package.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3 | "lib": {
4 | "entryFile": "index.ts"
5 | },
6 | "allowedNonPeerDependencies": ["."],
7 | "dest": "../../../dist/packages/nativescript-view-shot/angular"
8 | }
9 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/angular/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@valor/nativescript-view-shot-angular"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/angular/tsconfig.angular.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../node_modules/ng-packagr/lib/ts/conf/tsconfig.ngc.json",
3 | "compilerOptions": {
4 | "types": ["node"],
5 | "baseUrl": ".",
6 | "paths": {
7 | "@valor/nativescript-view-shot": ["../../../dist/packages/nativescript-view-shot"]
8 | },
9 | "outDir": "../../../dist/out-tsc",
10 | "declarationDir": "../../../dist/out-tsc"
11 | },
12 | "files": ["index.ts"]
13 | }
14 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/angular/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../../dist/out-tsc",
5 | "rootDirs": [".", "../.."]
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | import baseConfig from '../../eslint.config.mjs';
2 |
3 | export default [
4 | {
5 | ignores: ['**/dist'],
6 | },
7 | ...baseConfig,
8 | {
9 | files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
10 | // Override or add rules here
11 | rules: {},
12 | },
13 | {
14 | files: ['**/*.ts', '**/*.tsx'],
15 | // Override or add rules here
16 | rules: {},
17 | },
18 | {
19 | files: ['**/*.js', '**/*.jsx'],
20 | // Override or add rules here
21 | rules: {},
22 | },
23 | {
24 | ignores: ['node_modules/**/*'],
25 | },
26 | ];
27 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/index.android.ts:
--------------------------------------------------------------------------------
1 | import { Application, ContentView, GridLayout, ImageSource, Utils, View } from '@nativescript/core';
2 | import { BackgroundViews, LogicalViewContainer } from './common';
3 | export * from './common';
4 |
5 | @NativeClass
6 | class DummyViewGroup extends android.view.ViewGroup {
7 | constructor(context: android.content.Context) {
8 | super(context);
9 | return global.__native(this);
10 | }
11 | public onMeasure(): void {
12 | this.setMeasuredDimension(0, 0);
13 | }
14 | public onLayout(): void {
15 | //
16 | }
17 | }
18 | class ContentViewDummy extends ContentView {
19 | createNativeView() {
20 | return new DummyViewGroup(this._context);
21 | }
22 | }
23 |
24 | export function renderToImageSource(hostView: View): ImageSource {
25 | const bitmap = android.graphics.Bitmap.createBitmap(hostView.android.getWidth(), hostView.android.getHeight(), android.graphics.Bitmap.Config.ARGB_8888);
26 | const canvas = new android.graphics.Canvas(bitmap);
27 | // ensure we start with a blank transparent canvas
28 | canvas.drawARGB(0, 0, 0, 0);
29 | hostView.android.draw(canvas);
30 | return new ImageSource(bitmap);
31 | }
32 |
33 | export function loadViewInBackground(view: View, host?: View): BackgroundViews {
34 | const logicalContainer = host ? new LogicalViewContainer() : null;
35 | const hiddenHost = new ContentViewDummy();
36 | const hostView = new GridLayout(); // use a host view to ensure margins are respected
37 | hiddenHost.content = hostView;
38 | hiddenHost.visibility = 'collapse';
39 | hostView.addChild(view);
40 |
41 | if (host) {
42 | logicalContainer.addChild(hiddenHost);
43 | host._addView(logicalContainer);
44 | hiddenHost.callLoaded();
45 | } else {
46 | hiddenHost._setupAsRootView(Utils.android.getApplicationContext());
47 | hiddenHost.callLoaded();
48 | }
49 |
50 | Application.android.startActivity.addContentView(hiddenHost.android, new android.view.ViewGroup.LayoutParams(0, 0));
51 |
52 | return {
53 | hiddenHost,
54 | hostView,
55 | logicalContainer,
56 | };
57 | }
58 |
59 | export function disposeBackgroundView({ hiddenHost, logicalContainer }: BackgroundViews) {
60 | (hiddenHost.android.getParent() as android.view.ViewGroup).removeView(hiddenHost.android);
61 | hiddenHost.parent?._removeView(hiddenHost);
62 | logicalContainer?.parent?._removeView(logicalContainer);
63 | hiddenHost.callUnloaded();
64 | hiddenHost._tearDownUI(true);
65 | }
66 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './common';
2 |
3 | import { ImageSource, View } from '@nativescript/core';
4 | import { BackgroundViews } from './common';
5 |
6 | export function renderToImageSource(hostView: View): ImageSource;
7 |
8 | export function loadViewInBackground(view: View, host?: View): BackgroundViews;
9 |
10 | export function disposeBackgroundView(backgroundViews: BackgroundViews): void;
11 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/index.ios.ts:
--------------------------------------------------------------------------------
1 | import { Application, ContentView, GridLayout, ImageSource, isAndroid, Screen, Utils, View } from '@nativescript/core';
2 | import { BackgroundViews, LogicalViewContainer } from './common';
3 | export * from './common';
4 |
5 | export function renderToImageSource(hostView: View): ImageSource {
6 | UIGraphicsBeginImageContextWithOptions(CGSizeMake(hostView.ios.frame.size.width, hostView.ios.frame.size.height), false, Screen.mainScreen.scale);
7 | (hostView.ios as UIView).layer.renderInContext(UIGraphicsGetCurrentContext());
8 | const image = UIGraphicsGetImageFromCurrentImageContext();
9 | UIGraphicsEndImageContext();
10 | return new ImageSource(image);
11 | }
12 |
13 | export function loadViewInBackground(view: View, host?: View): BackgroundViews {
14 | const logicalContainer = host ? new LogicalViewContainer() : null;
15 | const hiddenHost = new ContentView();
16 | const hostView = new GridLayout(); // use a host view to ensure margins are respected
17 | hiddenHost.content = hostView;
18 | hiddenHost.visibility = 'collapse';
19 | hostView.addChild(view);
20 |
21 | if (host) {
22 | logicalContainer.addChild(hiddenHost);
23 | host._addView(logicalContainer);
24 | hiddenHost.callLoaded();
25 | } else {
26 | hiddenHost._setupAsRootView(isAndroid ? Utils.android.getApplicationContext() : {});
27 | hiddenHost.callLoaded();
28 | }
29 | if (isAndroid) {
30 | Application.android.startActivity.addContentView(hiddenHost.android, new android.view.ViewGroup.LayoutParams(0, 0));
31 | }
32 | return {
33 | hiddenHost,
34 | hostView,
35 | logicalContainer,
36 | };
37 | }
38 |
39 | export function disposeBackgroundView({ hiddenHost, logicalContainer }: BackgroundViews) {
40 | hiddenHost.parent?._removeView(hiddenHost);
41 | logicalContainer?.parent?._removeView(logicalContainer);
42 | hiddenHost.callUnloaded();
43 | hiddenHost._tearDownUI(true);
44 | }
45 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@valor/nativescript-view-shot",
3 | "version": "1.0.0",
4 | "description": "Turn any NativeScript View into an image!",
5 | "main": "index",
6 | "typings": "index.d.ts",
7 | "nativescript": {
8 | "platforms": {
9 | "ios": "6.0.0",
10 | "android": "6.0.0"
11 | }
12 | },
13 | "repository": {
14 | "type": "git",
15 | "url": "https://github.com/valor-software/nativescript-plugins.git"
16 | },
17 | "keywords": [
18 | "NativeScript",
19 | "JavaScript",
20 | "TypeScript",
21 | "iOS",
22 | "Android"
23 | ],
24 | "author": {
25 | "name": "Eduardo Speroni",
26 | "email": "eduardo.speroni@valor-software.com"
27 | },
28 | "bugs": {
29 | "url": "https://github.com/valor-software/nativescript-plugins/issues"
30 | },
31 | "license": "Apache-2.0",
32 | "homepage": "https://github.com/valor-software/nativescript-plugins",
33 | "readmeFilename": "README.md",
34 | "bootstrapper": "@nativescript/plugin-seed"
35 | }
36 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-view-shot",
3 | "$schema": "../../node_modules/nx/schemas/project-schema.json",
4 | "projectType": "library",
5 | "sourceRoot": "packages/nativescript-view-shot",
6 | "tags": [],
7 | "targets": {
8 | "build": {
9 | "executor": "@nx/js:tsc",
10 | "options": {
11 | "outputPath": "dist/packages/nativescript-view-shot",
12 | "tsConfig": "packages/nativescript-view-shot/tsconfig.json",
13 | "packageJson": "packages/nativescript-view-shot/package.json",
14 | "main": "packages/nativescript-view-shot/index.d.ts",
15 | "assets": [
16 | "packages/nativescript-view-shot/*.md",
17 | "packages/nativescript-view-shot/index.d.ts",
18 | "LICENSE",
19 | {
20 | "glob": "**/*",
21 | "input": "packages/nativescript-view-shot/platforms/",
22 | "output": "./platforms/"
23 | }
24 | ],
25 | "dependsOn": ["^build.all"]
26 | }
27 | },
28 | "build.all": {
29 | "executor": "nx:run-commands",
30 | "options": {
31 | "commands": ["node tools/scripts/build-finish.ts nativescript-view-shot"],
32 | "parallel": false
33 | },
34 | "outputs": ["{workspaceRoot}/dist/packages/nativescript-view-shot"],
35 | "dependsOn": ["^build.all", "build"]
36 | },
37 | "focus": {
38 | "executor": "nx:run-commands",
39 | "options": {
40 | "commands": ["nx g @nativescript/plugin-tools:focus-packages nativescript-view-shot"],
41 | "parallel": false
42 | }
43 | },
44 | "lint": {
45 | "executor": "@nx/eslint:lint"
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/packages/nativescript-view-shot/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": "."
6 | },
7 | "exclude": ["**/*.spec.ts", "**/*.test.ts", "angular"],
8 | "include": ["**/*.ts", "references.d.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/README.md:
--------------------------------------------------------------------------------
1 | # @valor/nativescript-websockets
2 |
3 | ```javascript
4 | ns plugin add @valor/nativescript-websockets
5 | ```
6 |
7 | ## Usage
8 |
9 | To use this plugin simply add this to your `polyfills.ts` on angular (before importing zone.js) or on your entrypoint (app.ts, main.ts) on other flavors:
10 |
11 | ```ts
12 | import '@valor/nativescript-websockets';
13 | ```
14 |
15 | Beware that import order matters! If needed you can also add the plugin to your bundle directly with webpack.
16 |
17 |
18 | ## License
19 |
20 | Apache License Version 2.0
21 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/bridge.d.ts:
--------------------------------------------------------------------------------
1 | import { NativeBridgeDefinition } from './websocket.definition';
2 |
3 | declare class NativeBridge extends NativeBridgeDefinition {}
4 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/common.ts:
--------------------------------------------------------------------------------
1 | export type CloseEvent =
2 | | {
3 | code: number;
4 | reason: string;
5 | wasClean: boolean;
6 | }
7 | | ErrorEvent;
8 |
9 | export type ErrorEvent = { message: string };
10 |
11 | export type MessageEvent = { data: any };
12 |
13 | export type WebSocketEventType = 'open' | 'close' | 'error' | 'message' | 'ping' | 'pong';
14 |
15 | export type HeaderType = { headers: { [key: string]: unknown } };
16 |
17 | export class WebSocketEvent {
18 | constructor(type: 'open');
19 | constructor(type: 'message', eventInitDict: MessageEvent);
20 | constructor(type: 'close', eventInitDict: CloseEvent);
21 | constructor(type: 'error', eventInitDict: ErrorEvent);
22 | constructor(public type: WebSocketEventType, eventInitDict?: CloseEvent | ErrorEvent | MessageEvent) {
23 | Object.assign(this, eventInitDict);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | import baseConfig from '../../eslint.config.mjs';
2 |
3 | export default [
4 | {
5 | ignores: ['**/dist'],
6 | },
7 | ...baseConfig,
8 | {
9 | files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
10 | // Override or add rules here
11 | rules: {},
12 | },
13 | {
14 | files: ['**/*.ts', '**/*.tsx'],
15 | // Override or add rules here
16 | rules: {},
17 | },
18 | {
19 | files: ['**/*.js', '**/*.jsx'],
20 | // Override or add rules here
21 | rules: {},
22 | },
23 | {
24 | ignores: ['node_modules/**/*', 'types/**/*.d.ts'],
25 | },
26 | ];
27 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/index.ts:
--------------------------------------------------------------------------------
1 | import { WebSocket } from './websocket';
2 |
3 | global.WebSocket = WebSocket as never;
4 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/native-src/ios/NativeScriptWebSockets.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/native-src/ios/NativeScriptWebSockets.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/native-src/ios/NativeScriptWebSockets/NativeScriptWebSockets.h:
--------------------------------------------------------------------------------
1 | //
2 | // NativeScriptWebSockets.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #import
9 |
10 | //! Project version number for NativeScriptWebSockets.
11 | FOUNDATION_EXPORT double NativeScriptWebSocketsVersionNumber;
12 |
13 | //! Project version string for NativeScriptWebSockets.
14 | FOUNDATION_EXPORT const unsigned char NativeScriptWebSocketsVersionString[];
15 |
16 | // In this header, you should import all the public headers of your framework using statements like #import
17 |
18 | #import "RCTSRWebSocket.h"
19 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/native-src/ios/NativeScriptWebSockets/RCTImplementations.h:
--------------------------------------------------------------------------------
1 | //
2 | // RCTImplementations.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #ifndef RCTImplementations_h
9 | #define RCTImplementations_h
10 |
11 |
12 | // #define NS_BLOCK_ASSERTIONS
13 | #ifndef NS_BLOCK_ASSERTIONS
14 | #define RCTAssert(condition, ...) \
15 | do { \
16 | if ((condition) == 0) { \
17 | _RCTAssertFormat(#condition, __FILE__, __LINE__, __func__, __VA_ARGS__); \
18 | } \
19 | } while (false)
20 | #else
21 | #define RCTAssert(condition, ...) \
22 | do { \
23 | } while (false)
24 | #endif
25 |
26 | #define RCTAssertParam(name) RCTAssert(name, @"'%s' is a required parameter", #name)
27 |
28 | void _RCTAssertFormat(
29 | const char *condition,
30 | const char *fileName,
31 | int lineNumber,
32 | const char *function,
33 | NSString *format, ...);
34 |
35 |
36 | #endif /* RCTImplementations_h */
37 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/native-src/ios/NativeScriptWebSockets/RCTImplementations.m:
--------------------------------------------------------------------------------
1 | //
2 | // RCTImplementations.m
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #import
9 |
10 | #import "RCTImplementations.h"
11 |
12 | void _RCTAssertFormat(
13 | const char *condition,
14 | const char *fileName,
15 | int lineNumber,
16 | const char *function,
17 | NSString *format,
18 | ...)
19 | {
20 | va_list args;
21 | va_start(args, format);
22 | NSString *message = [[NSString alloc] initWithFormat:format arguments:args];
23 | va_end(args);
24 |
25 | NSLog(@"%@ %@ %@ %@ %@", @(condition), @(fileName), @(lineNumber), @(function), message);
26 |
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/native-src/ios/NativeScriptWebSocketsTests/NativeScriptWebSocketsTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // NativeScriptWebSocketsTests.m
3 | // NativeScriptWebSocketsTests
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #import
9 | @import NativeScriptWebSockets
10 |
11 | @interface NativeScriptWebSocketsTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation NativeScriptWebSocketsTests
16 |
17 | - (void)setUp {
18 | // Put setup code here. This method is called before the invocation of each test method in the class.
19 | RCTAssert(false);
20 | }
21 |
22 | - (void)tearDown {
23 | // Put teardown code here. This method is called after the invocation of each test method in the class.
24 | }
25 |
26 | - (void)testExample {
27 | // This is an example of a functional test case.
28 | // Use XCTAssert and related functions to verify your tests produce the correct results.
29 | }
30 |
31 | - (void)testPerformanceExample {
32 | // This is an example of a performance test case.
33 | [self measureBlock:^{
34 | // Put the code you want to measure the time of here.
35 | }];
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@valor/nativescript-websockets",
3 | "version": "2.0.2",
4 | "description": "WebSockets polyfill for NativeScript",
5 | "main": "index",
6 | "typings": "index.d.ts",
7 | "nativescript": {
8 | "platforms": {
9 | "ios": "6.0.0",
10 | "android": "6.0.0"
11 | }
12 | },
13 | "repository": {
14 | "type": "git",
15 | "url": "https://github.com/valor-software/nativescript-plugins.git"
16 | },
17 | "keywords": [
18 | "NativeScript",
19 | "JavaScript",
20 | "TypeScript",
21 | "iOS",
22 | "Android"
23 | ],
24 | "author": {
25 | "name": "Eduardo Speroni",
26 | "email": "eduardo.speroni@valor-software.com"
27 | },
28 | "bugs": {
29 | "url": "https://github.com/valor-software/nativescript-plugins/issues"
30 | },
31 | "license": "MIT",
32 | "homepage": "https://github.com/valor-software/nativescript-plugins",
33 | "readmeFilename": "README.md",
34 | "bootstrapper": "@nativescript/plugin-seed"
35 | }
36 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | repositories {
2 | google()
3 | mavenCentral()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | implementation "com.squareup.okhttp3:okhttp:4.9.3"
9 | }
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Headers:
--------------------------------------------------------------------------------
1 | Versions/Current/Headers
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Modules:
--------------------------------------------------------------------------------
1 | Versions/Current/Modules
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/NativeScriptWebSockets:
--------------------------------------------------------------------------------
1 | Versions/Current/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/PrivateHeaders:
--------------------------------------------------------------------------------
1 | Versions/Current/PrivateHeaders
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Resources:
--------------------------------------------------------------------------------
1 | Versions/Current/Resources
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Versions/A/Headers/NativeScriptWebSockets.h:
--------------------------------------------------------------------------------
1 | //
2 | // NativeScriptWebSockets.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #import
9 |
10 | //! Project version number for NativeScriptWebSockets.
11 | FOUNDATION_EXPORT double NativeScriptWebSocketsVersionNumber;
12 |
13 | //! Project version string for NativeScriptWebSockets.
14 | FOUNDATION_EXPORT const unsigned char NativeScriptWebSocketsVersionString[];
15 |
16 | // In this header, you should import all the public headers of your framework using statements like #import
17 |
18 | #import "RCTSRWebSocket.h"
19 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Versions/A/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module NativeScriptWebSockets {
2 | umbrella header "NativeScriptWebSockets.h"
3 | export *
4 |
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Versions/A/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Versions/A/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Versions/A/PrivateHeaders/RCTImplementations.h:
--------------------------------------------------------------------------------
1 | //
2 | // RCTImplementations.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #ifndef RCTImplementations_h
9 | #define RCTImplementations_h
10 |
11 |
12 | // #define NS_BLOCK_ASSERTIONS
13 | #ifndef NS_BLOCK_ASSERTIONS
14 | #define RCTAssert(condition, ...) \
15 | do { \
16 | if ((condition) == 0) { \
17 | _RCTAssertFormat(#condition, __FILE__, __LINE__, __func__, __VA_ARGS__); \
18 | } \
19 | } while (false)
20 | #else
21 | #define RCTAssert(condition, ...) \
22 | do { \
23 | } while (false)
24 | #endif
25 |
26 | #define RCTAssertParam(name) RCTAssert(name, @"'%s' is a required parameter", #name)
27 |
28 | void _RCTAssertFormat(
29 | const char *condition,
30 | const char *fileName,
31 | int lineNumber,
32 | const char *function,
33 | NSString *format, ...);
34 |
35 |
36 | #endif /* RCTImplementations_h */
37 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Versions/A/Resources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildMachineOSBuild
6 | 23F79
7 | CFBundleDevelopmentRegion
8 | en
9 | CFBundleExecutable
10 | NativeScriptWebSockets
11 | CFBundleIdentifier
12 | com.valor-software.NativeScriptWebSockets
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | NativeScriptWebSockets
17 | CFBundlePackageType
18 | FMWK
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSupportedPlatforms
22 |
23 | MacOSX
24 |
25 | CFBundleVersion
26 | 1
27 | DTCompiler
28 | com.apple.compilers.llvm.clang.1_0
29 | DTPlatformBuild
30 |
31 | DTPlatformName
32 | macosx
33 | DTPlatformVersion
34 | 14.4
35 | DTSDKBuild
36 | 23E208
37 | DTSDKName
38 | macosx14.4
39 | DTXcode
40 | 1530
41 | DTXcodeBuild
42 | 15E204a
43 | LSMinimumSystemVersion
44 | 10.15
45 | UIDeviceFamily
46 |
47 | 2
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/NativeScriptWebSockets.framework/Versions/Current:
--------------------------------------------------------------------------------
1 | A
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleIdentifier
8 | com.apple.xcode.dsym.com.valor-software.NativeScriptWebSockets
9 | CFBundleInfoDictionaryVersion
10 | 6.0
11 | CFBundlePackageType
12 | dSYM
13 | CFBundleSignature
14 | ????
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleVersion
18 | 1
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64-maccatalyst/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/NativeScriptWebSockets.framework/Headers/NativeScriptWebSockets.h:
--------------------------------------------------------------------------------
1 | //
2 | // NativeScriptWebSockets.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #import
9 |
10 | //! Project version number for NativeScriptWebSockets.
11 | FOUNDATION_EXPORT double NativeScriptWebSocketsVersionNumber;
12 |
13 | //! Project version string for NativeScriptWebSockets.
14 | FOUNDATION_EXPORT const unsigned char NativeScriptWebSocketsVersionString[];
15 |
16 | // In this header, you should import all the public headers of your framework using statements like #import
17 |
18 | #import "RCTSRWebSocket.h"
19 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/NativeScriptWebSockets.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/NativeScriptWebSockets.framework/Info.plist
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/NativeScriptWebSockets.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module NativeScriptWebSockets {
2 | umbrella header "NativeScriptWebSockets.h"
3 | export *
4 |
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/NativeScriptWebSockets.framework/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/NativeScriptWebSockets.framework/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/NativeScriptWebSockets.framework/PrivateHeaders/RCTImplementations.h:
--------------------------------------------------------------------------------
1 | //
2 | // RCTImplementations.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #ifndef RCTImplementations_h
9 | #define RCTImplementations_h
10 |
11 |
12 | // #define NS_BLOCK_ASSERTIONS
13 | #ifndef NS_BLOCK_ASSERTIONS
14 | #define RCTAssert(condition, ...) \
15 | do { \
16 | if ((condition) == 0) { \
17 | _RCTAssertFormat(#condition, __FILE__, __LINE__, __func__, __VA_ARGS__); \
18 | } \
19 | } while (false)
20 | #else
21 | #define RCTAssert(condition, ...) \
22 | do { \
23 | } while (false)
24 | #endif
25 |
26 | #define RCTAssertParam(name) RCTAssert(name, @"'%s' is a required parameter", #name)
27 |
28 | void _RCTAssertFormat(
29 | const char *condition,
30 | const char *fileName,
31 | int lineNumber,
32 | const char *function,
33 | NSString *format, ...);
34 |
35 |
36 | #endif /* RCTImplementations_h */
37 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleIdentifier
8 | com.apple.xcode.dsym.com.valor-software.NativeScriptWebSockets
9 | CFBundleInfoDictionaryVersion
10 | 6.0
11 | CFBundlePackageType
12 | dSYM
13 | CFBundleSignature
14 | ????
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleVersion
18 | 1
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/NativeScriptWebSockets.framework/Headers/NativeScriptWebSockets.h:
--------------------------------------------------------------------------------
1 | //
2 | // NativeScriptWebSockets.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #import
9 |
10 | //! Project version number for NativeScriptWebSockets.
11 | FOUNDATION_EXPORT double NativeScriptWebSocketsVersionNumber;
12 |
13 | //! Project version string for NativeScriptWebSockets.
14 | FOUNDATION_EXPORT const unsigned char NativeScriptWebSocketsVersionString[];
15 |
16 | // In this header, you should import all the public headers of your framework using statements like #import
17 |
18 | #import "RCTSRWebSocket.h"
19 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/NativeScriptWebSockets.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/NativeScriptWebSockets.framework/Info.plist
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/NativeScriptWebSockets.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module NativeScriptWebSockets {
2 | umbrella header "NativeScriptWebSockets.h"
3 | export *
4 |
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/NativeScriptWebSockets.framework/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/NativeScriptWebSockets.framework/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/NativeScriptWebSockets.framework/PrivateHeaders/RCTImplementations.h:
--------------------------------------------------------------------------------
1 | //
2 | // RCTImplementations.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #ifndef RCTImplementations_h
9 | #define RCTImplementations_h
10 |
11 |
12 | // #define NS_BLOCK_ASSERTIONS
13 | #ifndef NS_BLOCK_ASSERTIONS
14 | #define RCTAssert(condition, ...) \
15 | do { \
16 | if ((condition) == 0) { \
17 | _RCTAssertFormat(#condition, __FILE__, __LINE__, __func__, __VA_ARGS__); \
18 | } \
19 | } while (false)
20 | #else
21 | #define RCTAssert(condition, ...) \
22 | do { \
23 | } while (false)
24 | #endif
25 |
26 | #define RCTAssertParam(name) RCTAssert(name, @"'%s' is a required parameter", #name)
27 |
28 | void _RCTAssertFormat(
29 | const char *condition,
30 | const char *fileName,
31 | int lineNumber,
32 | const char *function,
33 | NSString *format, ...);
34 |
35 |
36 | #endif /* RCTImplementations_h */
37 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleIdentifier
8 | com.apple.xcode.dsym.com.valor-software.NativeScriptWebSockets
9 | CFBundleInfoDictionaryVersion
10 | 6.0
11 | CFBundlePackageType
12 | dSYM
13 | CFBundleSignature
14 | ????
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleVersion
18 | 1
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/ios-arm64_x86_64-simulator/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/NativeScriptWebSockets.framework/Headers/NativeScriptWebSockets.h:
--------------------------------------------------------------------------------
1 | //
2 | // NativeScriptWebSockets.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #import
9 |
10 | //! Project version number for NativeScriptWebSockets.
11 | FOUNDATION_EXPORT double NativeScriptWebSocketsVersionNumber;
12 |
13 | //! Project version string for NativeScriptWebSockets.
14 | FOUNDATION_EXPORT const unsigned char NativeScriptWebSocketsVersionString[];
15 |
16 | // In this header, you should import all the public headers of your framework using statements like #import
17 |
18 | #import "RCTSRWebSocket.h"
19 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/NativeScriptWebSockets.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/NativeScriptWebSockets.framework/Info.plist
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/NativeScriptWebSockets.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module NativeScriptWebSockets {
2 | umbrella header "NativeScriptWebSockets.h"
3 | export *
4 |
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/NativeScriptWebSockets.framework/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/NativeScriptWebSockets.framework/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/NativeScriptWebSockets.framework/PrivateHeaders/RCTImplementations.h:
--------------------------------------------------------------------------------
1 | //
2 | // RCTImplementations.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #ifndef RCTImplementations_h
9 | #define RCTImplementations_h
10 |
11 |
12 | // #define NS_BLOCK_ASSERTIONS
13 | #ifndef NS_BLOCK_ASSERTIONS
14 | #define RCTAssert(condition, ...) \
15 | do { \
16 | if ((condition) == 0) { \
17 | _RCTAssertFormat(#condition, __FILE__, __LINE__, __func__, __VA_ARGS__); \
18 | } \
19 | } while (false)
20 | #else
21 | #define RCTAssert(condition, ...) \
22 | do { \
23 | } while (false)
24 | #endif
25 |
26 | #define RCTAssertParam(name) RCTAssert(name, @"'%s' is a required parameter", #name)
27 |
28 | void _RCTAssertFormat(
29 | const char *condition,
30 | const char *fileName,
31 | int lineNumber,
32 | const char *function,
33 | NSString *format, ...);
34 |
35 |
36 | #endif /* RCTImplementations_h */
37 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleIdentifier
8 | com.apple.xcode.dsym.com.valor-software.NativeScriptWebSockets
9 | CFBundleInfoDictionaryVersion
10 | 6.0
11 | CFBundlePackageType
12 | dSYM
13 | CFBundleSignature
14 | ????
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleVersion
18 | 1
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64-simulator/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/NativeScriptWebSockets.framework/Headers/NativeScriptWebSockets.h:
--------------------------------------------------------------------------------
1 | //
2 | // NativeScriptWebSockets.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #import
9 |
10 | //! Project version number for NativeScriptWebSockets.
11 | FOUNDATION_EXPORT double NativeScriptWebSocketsVersionNumber;
12 |
13 | //! Project version string for NativeScriptWebSockets.
14 | FOUNDATION_EXPORT const unsigned char NativeScriptWebSocketsVersionString[];
15 |
16 | // In this header, you should import all the public headers of your framework using statements like #import
17 |
18 | #import "RCTSRWebSocket.h"
19 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/NativeScriptWebSockets.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/NativeScriptWebSockets.framework/Info.plist
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/NativeScriptWebSockets.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module NativeScriptWebSockets {
2 | umbrella header "NativeScriptWebSockets.h"
3 | export *
4 |
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/NativeScriptWebSockets.framework/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/NativeScriptWebSockets.framework/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/NativeScriptWebSockets.framework/PrivateHeaders/RCTImplementations.h:
--------------------------------------------------------------------------------
1 | //
2 | // RCTImplementations.h
3 | // NativeScriptWebSockets
4 | //
5 | // Created by Eduardo Speroni on 2/25/22.
6 | //
7 |
8 | #ifndef RCTImplementations_h
9 | #define RCTImplementations_h
10 |
11 |
12 | // #define NS_BLOCK_ASSERTIONS
13 | #ifndef NS_BLOCK_ASSERTIONS
14 | #define RCTAssert(condition, ...) \
15 | do { \
16 | if ((condition) == 0) { \
17 | _RCTAssertFormat(#condition, __FILE__, __LINE__, __func__, __VA_ARGS__); \
18 | } \
19 | } while (false)
20 | #else
21 | #define RCTAssert(condition, ...) \
22 | do { \
23 | } while (false)
24 | #endif
25 |
26 | #define RCTAssertParam(name) RCTAssert(name, @"'%s' is a required parameter", #name)
27 |
28 | void _RCTAssertFormat(
29 | const char *condition,
30 | const char *fileName,
31 | int lineNumber,
32 | const char *function,
33 | NSString *format, ...);
34 |
35 |
36 | #endif /* RCTImplementations_h */
37 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleIdentifier
8 | com.apple.xcode.dsym.com.valor-software.NativeScriptWebSockets
9 | CFBundleInfoDictionaryVersion
10 | 6.0
11 | CFBundlePackageType
12 | dSYM
13 | CFBundleSignature
14 | ????
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleVersion
18 | 1
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/packages/nativescript-websockets/platforms/ios/NativeScriptWebSockets.xcframework/xros-arm64/dSYMs/NativeScriptWebSockets.framework.dSYM/Contents/Resources/DWARF/NativeScriptWebSockets
--------------------------------------------------------------------------------
/packages/nativescript-websockets/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-websockets",
3 | "$schema": "../../node_modules/nx/schemas/project-schema.json",
4 | "projectType": "library",
5 | "sourceRoot": "packages/nativescript-websockets",
6 | "tags": [],
7 | "targets": {
8 | "build": {
9 | "executor": "@nx/js:tsc",
10 | "options": {
11 | "outputPath": "dist/packages/nativescript-websockets",
12 | "tsConfig": "packages/nativescript-websockets/tsconfig.json",
13 | "packageJson": "packages/nativescript-websockets/package.json",
14 | "main": "packages/nativescript-websockets/index.ts",
15 | "assets": [
16 | "packages/nativescript-websockets/*.md",
17 | "LICENSE",
18 | {
19 | "glob": "**/*",
20 | "input": "packages/nativescript-websockets/platforms/",
21 | "output": "./platforms/"
22 | }
23 | ]
24 | },
25 | "dependsOn": ["build.native"]
26 | },
27 | "build.native": {
28 | "executor": "nx:run-commands",
29 | "inputs": ["{projectRoot}/native-src/ios"],
30 | "outputs": ["{projectRoot}/platforms/ios"],
31 | "options": {
32 | "commands": ["./build.sh"],
33 | "parallel": false,
34 | "cwd": "packages/nativescript-websockets/native-src/ios"
35 | }
36 | },
37 | "build.all": {
38 | "executor": "nx:run-commands",
39 | "outputs": ["{workspaceRoot}/dist/packages/nativescript-websockets"],
40 | "options": {
41 | "commands": ["node tools/scripts/build-finish.ts nativescript-websockets"],
42 | "parallel": false
43 | },
44 | "dependsOn": ["^build.all", "build.native", "build"]
45 | },
46 | "focus": {
47 | "executor": "nx:run-commands",
48 | "options": {
49 | "commands": ["nx g @nativescript/plugin-tools:focus-packages nativescript-websockets"],
50 | "parallel": false
51 | }
52 | },
53 | "lint": {
54 | "executor": "@nx/eslint:lint"
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 | ///
5 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../../dist/out-tsc",
5 | "rootDir": ".",
6 | "strict": true
7 | },
8 | "exclude": ["**/*.spec.ts", "**/*.test.ts", "angular"],
9 | "include": ["**/*.ts", "references.d.ts"]
10 | }
11 |
--------------------------------------------------------------------------------
/packages/nativescript-websockets/websocket.definition.ts:
--------------------------------------------------------------------------------
1 | import { HeaderType } from './common';
2 |
3 | export interface WebSocketPolyfill {
4 | _websocketOpen(protocol: string): void;
5 | _websocketClosed(code: number, reason: string, wasClean: boolean): void;
6 | _websocketMessage(message: string | ArrayBuffer): void;
7 | _websocketFailed(message: string): void;
8 | }
9 |
10 | export abstract class NativeBridgeDefinition {
11 | public handleThreading = true;
12 | constructor(protected ws: WebSocketPolyfill) {}
13 | abstract connect(url: string, protocols: string | string[], headers: HeaderType): void;
14 | abstract send(data: string | ArrayBuffer | ArrayBufferView | Blob): void;
15 | abstract closeWithCodeReason(statusCode: number, closeReason: string): void;
16 | abstract sendPing(): void;
17 | }
18 |
--------------------------------------------------------------------------------
/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | // Add your native dependencies here:
2 |
3 | // Uncomment to add recyclerview-v7 dependency
4 | //dependencies {
5 | // compile 'com.android.support:recyclerview-v7:+'
6 | //}
7 |
8 | android {
9 | compileSdkVersion 31
10 | defaultConfig {
11 | minSdkVersion 21
12 | targetSdkVersion 29
13 | generatedDensities = []
14 | }
15 | aaptOptions {
16 | additionalParameters "--no-version-vectors"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
26 |
27 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/Android/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
21 |
22 |
23 |
31 |
32 |
34 |
35 |
36 |
42 |
43 |
45 |
46 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json:
--------------------------------------------------------------------------------
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 | }
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-Center.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-Center@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchScreen-Center@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiresFullScreen
28 |
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 | ITSAppUsesNonExemptEncryption
47 |
48 | NSAppTransportSecurity
49 |
50 | NSAllowsArbitraryLoads
51 |
52 | NSAllowsArbitraryLoadsForMedia
53 |
54 | NSAllowsArbitraryLoadsInWebContent
55 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '13.0'
2 |
3 | post_install do |installer|
4 | installer.pods_project.targets.each do |target|
5 | target.build_configurations.each do |config|
6 | config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/build.xcconfig:
--------------------------------------------------------------------------------
1 | // You can add custom settings here
2 | // for example you can uncomment the following line to force distribution code signing
3 | // CODE_SIGN_IDENTITY = iPhone Distribution
4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID;
6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
7 |
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/icon.png
--------------------------------------------------------------------------------
/tools/assets/App_Resources/iOS/icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/assets/App_Resources/iOS/icon@2x.png
--------------------------------------------------------------------------------
/tools/assets/README.md:
--------------------------------------------------------------------------------
1 | Assets shared across multiple targets in the workspace to reduce filesize of the repo as well as reduce maintenance costs of duplicate assets.
2 |
3 | * `App_Resources`: All `e2e` app harnesses share the same App_Resources from here.
--------------------------------------------------------------------------------
/tools/assets/publishing/.npmignore:
--------------------------------------------------------------------------------
1 | __ivy_ngcc__
2 | *.__ivy_ngcc_bak
3 | *.tgz
--------------------------------------------------------------------------------
/tools/demo/index.ts:
--------------------------------------------------------------------------------
1 | export * from './utils';
2 | export * from './nativescript-barcodescanner';
3 | export * from './nativescript-feedback';
4 | export * from './nativescript-view-shot';
5 | export * from './nativescript-in-app-review';
6 | export * from './nativescript-websockets';
7 |
--------------------------------------------------------------------------------
/tools/demo/nativescript-barcodescanner/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { BarcodeScanner } from '@valor/nativescript-barcodescanner';
3 |
4 | export class DemoSharedNativescriptBarcodescanner extends DemoSharedBase {
5 | async testIt() {
6 | console.log('test nativescript-barcodescanner!');
7 | const scanner = new BarcodeScanner();
8 |
9 | const available = await scanner.available();
10 | console.log('IsAvailable', available);
11 |
12 | if (available) {
13 | let hasPermission = await scanner.hasCameraPermission();
14 | console.log('hasPermission', hasPermission);
15 | if (!hasPermission) {
16 | try {
17 | await scanner.requestCameraPermission();
18 | hasPermission = true;
19 | console.log('got permission!');
20 | } catch (e) {
21 | console.log('Failed getting permission', e);
22 | hasPermission = false;
23 | }
24 | }
25 | if (hasPermission) {
26 | const result = await scanner.scan({});
27 | console.log('scanned', result);
28 | }
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/tools/demo/nativescript-in-app-review/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import { InAppReview } from '@valor/nativescript-in-app-review';
3 |
4 | export class DemoSharedNativescriptInAppReview extends DemoSharedBase {
5 | testIt() {
6 | InAppReview.requestReviewPopup()
7 | .then(() => console.log('In App Review success'))
8 | .catch((err) => console.error('In App Review failed', err));
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/tools/demo/nativescript-view-shot/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import {} from '@valor/nativescript-view-shot';
3 |
4 | export class DemoSharedNativescriptViewShot extends DemoSharedBase {
5 | testIt() {
6 | console.log('test nativescript-view-shot!');
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/tools/demo/nativescript-websockets/index.ts:
--------------------------------------------------------------------------------
1 | import { DemoSharedBase } from '../utils';
2 | import '@valor/nativescript-websockets';
3 | import { isAndroid } from '@nativescript/core';
4 |
5 | export class DemoSharedNativescriptWebsockets extends DemoSharedBase {
6 | testIt() {
7 | let wsSrc = 'ws://localhost:9898';
8 | if (isAndroid) {
9 | wsSrc = 'ws://10.0.2.2:9898';
10 | }
11 | console.log('test nativescript-websockets!');
12 | const ws = new WebSocket(wsSrc);
13 | ws.onopen = (ev) => {
14 | console.log('onopen', ev);
15 | ws.send('what');
16 | const enc = new TextEncoder();
17 | ws.send(enc.encode('this is an arraybuffer'));
18 | };
19 | ws.addEventListener('message', (ev) => {
20 | console.log('Received from addEventListener', ev);
21 | });
22 | ws.addEventListener(
23 | 'message',
24 | (ev) => {
25 | console.log('Received from addEventListener with { once: true }', ev);
26 | },
27 | { once: true }
28 | );
29 | ws.onmessage = (ev) => {
30 | console.log('MESSAGE RECEIVED!', ev.data);
31 | console.log(ev.data.constructor?.name, ev.data.getClass?.()?.getSimpleName(), typeof ev.data);
32 | if (ev.data instanceof ArrayBuffer) {
33 | console.log('ArrayBuffer', Array.from(new Uint8Array(ev.data)));
34 | }
35 | };
36 | ws.onclose = (ev) => {
37 | console.log('onclose', ev);
38 | };
39 | ws.onerror = (ev) => {
40 | console.log('onerror', ev);
41 | };
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/tools/demo/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/tools/demo/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "baseUrl": ".",
5 | "paths": {
6 | "@valor/*": ["../../packages/*"]
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/tools/demo/utils/demo-base.ts:
--------------------------------------------------------------------------------
1 | import { Observable } from '@nativescript/core';
2 |
3 | export class DemoSharedBase extends Observable {
4 | // in case you want to globally control how your shared demo code works across whole workspace
5 | }
6 |
--------------------------------------------------------------------------------
/tools/demo/utils/index.ts:
--------------------------------------------------------------------------------
1 | export * from './demo-base';
2 |
--------------------------------------------------------------------------------
/tools/package-settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "repository": {
3 | "type": "git",
4 | "url": "https://github.com/valor-software/nativescript-plugins.git"
5 | },
6 | "keywords": ["NativeScript", "JavaScript", "TypeScript", "iOS", "Android"],
7 | "author": {
8 | "name": "Eduardo Speroni",
9 | "email": "eduardo.speroni@valor-software.com"
10 | },
11 | "bugs": {
12 | "url": "https://github.com/valor-software/nativescript-plugins/issues"
13 | },
14 | "license": "Apache-2.0",
15 | "homepage": "https://github.com/valor-software/nativescript-plugins",
16 | "name": "@valor"
17 | }
18 |
--------------------------------------------------------------------------------
/tools/schematics/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/valor-software/nativescript-plugins/f3b15e7dbb78931556e8d49c5d2e39909638b144/tools/schematics/.gitkeep
--------------------------------------------------------------------------------
/tools/scripts/build-finish.ts:
--------------------------------------------------------------------------------
1 | const ngPackage = require('ng-packagr');
2 | const path = require('path');
3 | const fs = require('fs-extra');
4 |
5 | const rootDir = path.resolve(path.join(__dirname, '..', '..'));
6 | const nxConfigPath = path.resolve(path.join(rootDir, 'nx.json'));
7 | const nxConfig = JSON.parse(fs.readFileSync(nxConfigPath));
8 | const npmScope = nxConfig.npmScope;
9 |
10 | const cmdArgs = process.argv.slice(2);
11 | const packageName = cmdArgs[0];
12 | const publish = cmdArgs[1] === 'publish';
13 |
14 | const packagePath = path.join('packages', packageName, 'package.json');
15 | const packageJson = JSON.parse(fs.readFileSync(packagePath));
16 | const npmPackageName = packageJson.name;
17 | console.log(`Building ${npmPackageName}...${publish ? 'and publishing.' : ''}`);
18 |
19 | // build angular package
20 | function buildAngular() {
21 | ngPackage
22 | .ngPackagr()
23 | .forProject(path.join('packages', packageName, 'angular', 'ng-package.json'))
24 | .withTsConfig(path.join('packages', packageName, 'angular', 'tsconfig.angular.json'))
25 | .build()
26 | .then(() => {
27 | console.log(`${npmPackageName} angular built successfully.`);
28 | finishPreparation();
29 | })
30 | .catch((error) => {
31 | console.error(error);
32 | process.exit(1);
33 | });
34 | }
35 |
36 | // copy angular ng-packagr output to dist/packages/{name}
37 | function copyAngularDist() {
38 | fs.copy(path.join('packages', packageName, 'angular', 'dist'), path.join('dist', 'packages', packageName, 'angular'))
39 | .then(() => {
40 | console.log(`${npmPackageName} angular built successfully.`);
41 | // buildNativeSrc();
42 | finishPreparation();
43 | })
44 | .catch((err) => console.error(err));
45 | }
46 |
47 | function finishPreparation() {
48 | fs.copy(path.join('tools', 'assets', 'publishing'), path.join('dist', 'packages', packageName))
49 | .then(() => console.log(`${npmPackageName} ready to publish.`))
50 | .catch((err) => console.error(err));
51 | }
52 |
53 | if (fs.existsSync(path.join(rootDir, 'packages', packageName, 'angular'))) {
54 | // package has angular specific src, build it first
55 | buildAngular();
56 | } else {
57 | finishPreparation();
58 | }
59 |
--------------------------------------------------------------------------------
/tools/tsconfig.tools.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../dist/out-tsc/tools",
5 | "rootDir": ".",
6 | "module": "commonjs",
7 | "target": "es5",
8 | "types": ["node"]
9 | },
10 | "include": ["**/*.ts"],
11 | "exclude": [
12 | "demo"
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/tsconfig.base.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "rootDir": ".",
4 | "sourceMap": true,
5 | "declaration": true,
6 | "moduleResolution": "node",
7 | "emitDecoratorMetadata": true,
8 | "experimentalDecorators": true,
9 | "noEmitHelpers": true,
10 | "target": "ES2020",
11 | "module": "ESNext",
12 | "lib": ["ESNext", "dom"],
13 | "skipLibCheck": true,
14 | "skipDefaultLibCheck": true,
15 | "baseUrl": ".",
16 | "plugins": [
17 | {
18 | "transform": "@nativescript/webpack/dist/transformers/NativeClass",
19 | "type": "raw"
20 | }
21 | ],
22 | "paths": {
23 | "@demo/shared": ["tools/demo/index.ts"],
24 | "@valor/nativescript-barcodescanner": ["packages/nativescript-barcodescanner/index.d.ts"],
25 | "@valor/nativescript-feedback": ["packages/nativescript-feedback/index.d.ts"],
26 | "@valor/nativescript-in-app-review": ["packages/nativescript-in-app-review/index.d.ts"],
27 | "@valor/nativescript-ngrx-devtools": ["packages/nativescript-ngrx-devtools/src/index.ts"],
28 | "@valor/nativescript-view-shot": ["packages/nativescript-view-shot/index.d.ts"],
29 | "@valor/nativescript-view-shot/angular": ["packages/nativescript-view-shot/angular/index.ts"],
30 | "@valor/nativescript-websockets": ["packages/nativescript-websockets/index.d.ts"]
31 | }
32 | },
33 | "exclude": ["node_modules", "tmp"]
34 | }
35 |
--------------------------------------------------------------------------------