Update gitignore (sorry)
21
electron/node_modules/native-run/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Drifty Co
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
39
electron/node_modules/native-run/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
[](https://github.com/ionic-team/native-run/actions?query=workflow%3ACI)
|
||||
[](https://github.com/semantic-release/semantic-release)
|
||||
[](https://www.npmjs.com/package/native-run)
|
||||
|
||||
# native-run
|
||||
|
||||
`native-run` is a cross-platform command-line utility for running native app binaries (`.ipa` and `.apk` files) on iOS and Android devices. It can be used for both hardware and virtual devices.
|
||||
|
||||
This tool is used by the Ionic CLI, but it can be used standalone as part of a development or testing pipeline for launching apps. It doesn't matter whether the `.apk` or `.ipa` is created with Cordova or native IDEs, `native-run` will be able to deploy it.
|
||||
|
||||
## Install
|
||||
|
||||
`native-run` is written entirely in TypeScript/NodeJS, so there are no native dependencies.
|
||||
|
||||
To install, run:
|
||||
|
||||
```
|
||||
npm install -g native-run
|
||||
```
|
||||
|
||||
:memo: Requires NodeJS 16+
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
native-run <platform> [options]
|
||||
```
|
||||
|
||||
See the help documentation with the `--help` flag.
|
||||
|
||||
```
|
||||
native-run --help
|
||||
native-run ios --help
|
||||
native-run android --help
|
||||
```
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
Much more information can be printed to the screen with the `--verbose` flag.
|
||||
10
electron/node_modules/native-run/assets/android/skins/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Copyright (C) 2013 The Android Open Source Project Licensed under the Apache
|
||||
License, Version 2.0 (the "License"); you may not use this file except in
|
||||
compliance with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed
|
||||
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations under the License.
|
||||
4
electron/node_modules/native-run/assets/android/skins/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Android Skins
|
||||
|
||||
These skins are copied from the Android Plugin for IntelliJ IDEA:
|
||||
https://github.com/JetBrains/android/tree/master/artwork/resources/device-art-resources
|
||||
BIN
electron/node_modules/native-run/assets/android/skins/nexus_5x/land_back.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/nexus_5x/land_fore.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/nexus_5x/land_shadow.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 14 KiB |
59
electron/node_modules/native-run/assets/android/skins/nexus_5x/layout
generated
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
parts {
|
||||
device {
|
||||
display {
|
||||
width 1080
|
||||
height 1920
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
}
|
||||
portrait {
|
||||
background {
|
||||
image port_back.webp
|
||||
}
|
||||
onion {
|
||||
image port_fore.webp
|
||||
}
|
||||
}
|
||||
landscape {
|
||||
background {
|
||||
image land_back.webp
|
||||
}
|
||||
onion {
|
||||
image land_fore.webp
|
||||
}
|
||||
}
|
||||
}
|
||||
layouts {
|
||||
portrait {
|
||||
width 1370
|
||||
height 2446
|
||||
event EV_SW:0:1
|
||||
part1 {
|
||||
name portrait
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
part2 {
|
||||
name device
|
||||
x 147
|
||||
y 233
|
||||
}
|
||||
}
|
||||
landscape {
|
||||
width 2497
|
||||
height 1234
|
||||
event EV_SW:0:0
|
||||
part1 {
|
||||
name landscape
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
part2 {
|
||||
name device
|
||||
x 278
|
||||
y 1143
|
||||
rotation 3
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
electron/node_modules/native-run/assets/android/skins/nexus_5x/port_back.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/nexus_5x/port_fore.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/nexus_5x/port_shadow.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/pixel/land_back.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/pixel/land_fore.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/pixel/land_shadow.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 24 KiB |
59
electron/node_modules/native-run/assets/android/skins/pixel/layout
generated
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
parts {
|
||||
device {
|
||||
display {
|
||||
width 1080
|
||||
height 1920
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
}
|
||||
portrait {
|
||||
background {
|
||||
image port_back.webp
|
||||
}
|
||||
onion {
|
||||
image port_fore.webp
|
||||
}
|
||||
}
|
||||
landscape {
|
||||
background {
|
||||
image land_back.webp
|
||||
}
|
||||
onion {
|
||||
image land_fore.webp
|
||||
}
|
||||
}
|
||||
}
|
||||
layouts {
|
||||
portrait {
|
||||
width 1370
|
||||
height 2534
|
||||
event EV_SW:0:1
|
||||
part1 {
|
||||
name portrait
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
part2 {
|
||||
name device
|
||||
x 139
|
||||
y 285
|
||||
}
|
||||
}
|
||||
landscape {
|
||||
width 2596
|
||||
height 1258
|
||||
event EV_SW:0:0
|
||||
part1 {
|
||||
name landscape
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
part2 {
|
||||
name device
|
||||
x 338
|
||||
y 1158
|
||||
rotation 3
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
electron/node_modules/native-run/assets/android/skins/pixel/port_back.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/pixel/port_fore.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/pixel/port_shadow.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/pixel_2/land_back.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 198 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/pixel_2/land_fore.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 176 B |
BIN
electron/node_modules/native-run/assets/android/skins/pixel_2/land_shadow.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 17 KiB |
59
electron/node_modules/native-run/assets/android/skins/pixel_2/layout
generated
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
parts {
|
||||
device {
|
||||
display {
|
||||
width 1080
|
||||
height 1920
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
}
|
||||
portrait {
|
||||
background {
|
||||
image port_back.webp
|
||||
}
|
||||
onion {
|
||||
image port_fore.webp
|
||||
}
|
||||
}
|
||||
landscape {
|
||||
background {
|
||||
image land_back.webp
|
||||
}
|
||||
onion {
|
||||
image land_fore.webp
|
||||
}
|
||||
}
|
||||
}
|
||||
layouts {
|
||||
portrait {
|
||||
width 1370
|
||||
height 2534
|
||||
event EV_SW:0:1
|
||||
part1 {
|
||||
name portrait
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
part2 {
|
||||
name device
|
||||
x 140
|
||||
y 280
|
||||
}
|
||||
}
|
||||
landscape {
|
||||
width 2596
|
||||
height 1258
|
||||
event EV_SW:0:0
|
||||
part1 {
|
||||
name landscape
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
part2 {
|
||||
name device
|
||||
x 338
|
||||
y 68
|
||||
rotation 3
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
electron/node_modules/native-run/assets/android/skins/pixel_2/port_back.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 202 KiB |
BIN
electron/node_modules/native-run/assets/android/skins/pixel_2/port_fore.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 188 B |
BIN
electron/node_modules/native-run/assets/android/skins/pixel_2/port_shadow.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 26 KiB |
38
electron/node_modules/native-run/assets/android/skins/pixel_3/layout
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
parts {
|
||||
device {
|
||||
display {
|
||||
width 1080
|
||||
height 2160
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
}
|
||||
portrait {
|
||||
background {
|
||||
image port_back.webp
|
||||
}
|
||||
foreground {
|
||||
mask round_corners.webp
|
||||
}
|
||||
onion {
|
||||
image port_fore.webp
|
||||
}
|
||||
}
|
||||
}
|
||||
layouts {
|
||||
portrait {
|
||||
width 1194
|
||||
height 2532
|
||||
event EV_SW:0:1
|
||||
part1 {
|
||||
name portrait
|
||||
x 0
|
||||
y 0
|
||||
}
|
||||
part2 {
|
||||
name device
|
||||
x 54
|
||||
y 196
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
electron/node_modules/native-run/assets/android/skins/pixel_3/port_back.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
electron/node_modules/native-run/assets/android/skins/pixel_3/round_corners.webp
generated
vendored
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
11
electron/node_modules/native-run/bin/native-run
generated
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
'use strict';
|
||||
|
||||
process.title = 'native-run';
|
||||
|
||||
if (process.argv.includes('--verbose')) {
|
||||
process.env.DEBUG = '*';
|
||||
}
|
||||
|
||||
require('../').run();
|
||||
106
electron/node_modules/native-run/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
{
|
||||
"name": "native-run",
|
||||
"version": "2.0.3",
|
||||
"description": "A CLI for running apps on iOS/Android devices and simulators/emulators",
|
||||
"bin": {
|
||||
"native-run": "bin/native-run"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf dist",
|
||||
"build": "npm run clean && tsc",
|
||||
"watch": "tsc -w",
|
||||
"test": "jest --maxWorkers=4",
|
||||
"lint": "npm run eslint && npm run prettier -- --check",
|
||||
"fmt": "npm run eslint -- --fix && npm run prettier -- --write",
|
||||
"prettier": "prettier \"**/*.ts\"",
|
||||
"eslint": "eslint . --ext .ts",
|
||||
"publish:ci": "semantic-release",
|
||||
"publish:testing": "npm version prerelease --preid=testing --no-git-tag-version && npm publish --tag=testing && git stash",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"files": [
|
||||
"assets",
|
||||
"bin",
|
||||
"dist"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=16.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ionic-team/native-run.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ionic/utils-fs": "^3.1.7",
|
||||
"@ionic/utils-terminal": "^2.3.4",
|
||||
"bplist-parser": "^0.3.2",
|
||||
"debug": "^4.3.4",
|
||||
"elementtree": "^0.1.7",
|
||||
"ini": "^4.1.1",
|
||||
"plist": "^3.1.0",
|
||||
"split2": "^4.2.0",
|
||||
"through2": "^4.0.2",
|
||||
"tslib": "^2.6.2",
|
||||
"yauzl": "^2.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ionic/eslint-config": "^0.4.0",
|
||||
"@ionic/prettier-config": "^4.0.0",
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"@types/debug": "^4.1.10",
|
||||
"@types/elementtree": "^0.1.3",
|
||||
"@types/ini": "^1.3.32",
|
||||
"@types/jest": "^26.0.13",
|
||||
"@types/node": "^16.0.0",
|
||||
"@types/plist": "^3.0.4",
|
||||
"@types/split2": "^4.2.2",
|
||||
"@types/through2": "^2.0.40",
|
||||
"@types/yauzl": "^2.10.2",
|
||||
"eslint": "^8.57.0",
|
||||
"jest": "^26.4.2",
|
||||
"prettier": "^3.0.3",
|
||||
"semantic-release": "^19.0.5",
|
||||
"ts-jest": "^26.3.0",
|
||||
"typescript": "~4.9.5"
|
||||
},
|
||||
"prettier": "@ionic/prettier-config",
|
||||
"eslintConfig": {
|
||||
"extends": "@ionic/eslint-config/recommended",
|
||||
"rules": {
|
||||
"@typescript-eslint/explicit-module-boundary-types": [
|
||||
"warn",
|
||||
{
|
||||
"allowArgumentsExplicitlyTypedAsAny": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"release": {
|
||||
"branches": "stable",
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/changelog",
|
||||
"@semantic-release/npm",
|
||||
"@semantic-release/github",
|
||||
"@semantic-release/git"
|
||||
]
|
||||
},
|
||||
"keywords": [
|
||||
"android",
|
||||
"ios",
|
||||
"cli",
|
||||
"mobile",
|
||||
"app",
|
||||
"hybrid",
|
||||
"native"
|
||||
],
|
||||
"author": "Ionic Team <hi@ionicframework.com> (https://ionicframework.com)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ionic-team/native-run/issues"
|
||||
},
|
||||
"homepage": "https://github.com/ionic-team/native-run#readme"
|
||||
}
|
||||