Skip to content

Commit

Permalink
Drop support for Node.js 10
Browse files Browse the repository at this point in the history
  • Loading branch information
niklashigi committed Apr 17, 2021
1 parent 6452436 commit 6966f75
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: E2E Test / ${{ matrix.os.name }} / Node.js ${{ matrix.node }}
strategy:
matrix:
node: [10, 14]
node: [14]
os:
- name: Linux
runner: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can also use `apk-mitm` to [patch apps using Android App Bundle](#patching-a

## Usage

If you have an up-to-date version of [Node.js][node] (10+) and [Java][java] (8+), you can run this command to patch an app:
If you have an up-to-date version of [Node.js][node] (14+) and [Java][java] (8+), you can run this command to patch an app:

```shell
$ npx apk-mitm <path-to-apk>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dist"
],
"engines": {
"node": ">=10"
"node": ">=14"
},
"dependencies": {
"@tybys/cross-zip": "^3.1.0",
Expand All @@ -45,7 +45,7 @@
"devDependencies": {
"@types/follow-redirects": "^1.13.0",
"@types/listr": "^0.14.2",
"@types/node": "10",
"@types/node": "14.14.41",
"@types/yargs-parser": "^15.0.0",
"prettier": "^2.2.1",
"typescript": "^4.1.2"
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/check-prerequisites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { TaskOptions } from '../cli'
import getJavaVersion from '../utils/get-java-version'
import downloadTools from './download-tools'

const MIN_NODE_VERSION = 10
const MIN_NODE_VERSION = 14
const MIN_JAVA_VERSION = 8

export default function checkPrerequisites(options: TaskOptions) {
Expand Down
4 changes: 1 addition & 3 deletions src/tasks/smali/parse-head.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import matchAll from '../../utils/match-all'

const CLASS_PATTERN = /\.class(?<keywords>.+)? L(?<name>[^\s]+);/
const IMPLEMENTS_PATTERN = /\.implements L(?<name>[^\s]+);/g

Expand Down Expand Up @@ -27,7 +25,7 @@ export default function parseSmaliHead(contents: string): SmaliHead {

return {
name,
implements: Array.from(matchAll(contents, IMPLEMENTS_PATTERN)).map(
implements: Array.from(contents.matchAll(IMPLEMENTS_PATTERN)).map(
match => match.groups!.name,
),
isInterface: keywords?.trim().split(' ').includes('interface') ?? false,
Expand Down
17 changes: 0 additions & 17 deletions src/utils/match-all.ts

This file was deleted.

8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.10.tgz#5958a82e41863cfc71f2307b3748e3491ba03785"
integrity sha512-J32dgx2hw8vXrSbu4ZlVhn1Nm3GbeCFNw2FWL8S5QKucHGY0cyNwjdQdO+KMBZ4wpmC7KhLCiNsdk1RFRIYUQQ==

"@types/node@10":
version "10.17.51"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.51.tgz#639538575befbcf3d3861f95c41de8e47124d674"
integrity sha512-KANw+MkL626tq90l++hGelbl67irOJzGhUJk6a1Bt8QHOeh9tztJx+L0AqttraWKinmZn7Qi5lJZJzx45Gq0dg==
"@types/node@14.14.41":
version "14.14.41"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.41.tgz#d0b939d94c1d7bd53d04824af45f1139b8c45615"
integrity sha512-dueRKfaJL4RTtSa7bWeTK1M+VH+Gns73oCgzvYfHZywRCoPSd8EkXBL0mZ9unPTveBn+D9phZBaxuzpwjWkW0g==

"@types/yargs-parser@^15.0.0":
version "15.0.0"
Expand Down

0 comments on commit 6966f75

Please sign in to comment.