From 2b8b0c03c10ec956a524b5d0e1929407266c733f Mon Sep 17 00:00:00 2001 From: First-Terraner Date: Thu, 11 Apr 2024 19:35:06 +0200 Subject: [PATCH] add expo-updates lib, add beta expo-build scripts, lint --- config/app.config.ts | 6 ++ package-lock.json | 221 ++++++++++++++++++++++++++++++++++++++++++- package.json | 5 +- 3 files changed, 229 insertions(+), 3 deletions(-) diff --git a/config/app.config.ts b/config/app.config.ts index 3630f12c..e0cf4696 100644 --- a/config/app.config.ts +++ b/config/app.config.ts @@ -60,6 +60,12 @@ const config: ExpoConfig = { 'android', ], version: `${version}${!IS_PROD && !IS_BETA ? `-${_appVariant}` : ''}`, + updates: { + url: 'https://u.expo.dev/edb75ccd-71ac-4934-9147-baf1c7f2b068' + }, + runtimeVersion: { + policy: 'appVersion' + }, scheme: ['cashu', 'lightning'], orientation: 'portrait', icon: './assets/app-icon-all.png', diff --git a/package-lock.json b/package-lock.json index 41dcf614..a4ee86fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "enuts", - "version": "0.3.1", + "version": "0.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "enuts", - "version": "0.3.1", + "version": "0.4.0", "license": "AGPL-3.0-only", "dependencies": { "@cashu/cashu-ts": "^0.9.0", @@ -34,6 +34,7 @@ "expo-splash-screen": "~0.26.4", "expo-sqlite": "~13.4.0", "expo-status-bar": "~1.11.1", + "expo-updates": "~0.24.12", "i18next": "^23.10.1", "lottie-react-native": "6.5.1", "nostr-tools": "^1.17.0", @@ -12714,6 +12715,11 @@ "expo": "*" } }, + "node_modules/expo-json-utils": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/expo-json-utils/-/expo-json-utils-0.12.3.tgz", + "integrity": "sha512-4pypQdinpNc6XY9wsZk56njvzDh+B/9mISr7FPP3CVk1QGB1nSLh883/BCDSgnsephATZkC5HG+cdE60kCAR6A==" + }, "node_modules/expo-keep-awake": { "version": "12.8.2", "resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-12.8.2.tgz", @@ -12733,6 +12739,18 @@ "expo": "*" } }, + "node_modules/expo-manifests": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/expo-manifests/-/expo-manifests-0.13.2.tgz", + "integrity": "sha512-l0Sia1WmLULx8V41K8RzGLsFoTe4qqthPRGpHjItsYn8ZB6lRrdTBM9OYp2McIflgqN1HAimUCQMFIwJyH+UmA==", + "dependencies": { + "@expo/config": "~8.5.0", + "expo-json-utils": "~0.12.0" + }, + "peerDependencies": { + "expo": "*" + } + }, "node_modules/expo-modules-autolinking": { "version": "1.10.3", "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-1.10.3.tgz", @@ -12889,6 +12907,112 @@ "resolved": "https://registry.npmjs.org/expo-status-bar/-/expo-status-bar-1.11.1.tgz", "integrity": "sha512-ddQEtCOgYHTLlFUe/yH67dDBIoct5VIULthyT3LRJbEwdpzAgueKsX2FYK02ldh440V87PWKCamh7R9evk1rrg==" }, + "node_modules/expo-structured-headers": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/expo-structured-headers/-/expo-structured-headers-3.7.2.tgz", + "integrity": "sha512-/nGOyeWUXSUy4aIYKJTwQOznRNs0yKqKPAyEE6jtwvOl9qvfDWx9xskNtShioggBhFAssFkV6RBbPn+xZMQtvw==" + }, + "node_modules/expo-updates": { + "version": "0.24.12", + "resolved": "https://registry.npmjs.org/expo-updates/-/expo-updates-0.24.12.tgz", + "integrity": "sha512-35ZpAMSqHIyVGT5mEptaZJBxytu0mv4PIG28i3BQe+GG4ifQtY94aCOCrUwZe8Myzaf4dNVGEUXWTPo+JPCgcw==", + "dependencies": { + "@expo/code-signing-certificates": "0.0.5", + "@expo/config": "~8.5.0", + "@expo/config-plugins": "~7.8.0", + "arg": "4.1.0", + "chalk": "^4.1.2", + "expo-eas-client": "~0.11.0", + "expo-manifests": "~0.13.0", + "expo-structured-headers": "~3.7.0", + "expo-updates-interface": "~0.15.1", + "fbemitter": "^3.0.0", + "resolve-from": "^5.0.0" + }, + "bin": { + "expo-updates": "bin/cli.js" + }, + "peerDependencies": { + "expo": "*" + } + }, + "node_modules/expo-updates-interface": { + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/expo-updates-interface/-/expo-updates-interface-0.15.3.tgz", + "integrity": "sha512-uLvsbaCmUsXgJqeen8rYH/jPr874ZUCXEvWpKHxrCv5/XATPlYEaDuecbNSGQ+cu78i6MdtB4BHOwZmoH2d47A==", + "peerDependencies": { + "expo": "*" + } + }, + "node_modules/expo-updates/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/expo-updates/node_modules/arg": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.0.tgz", + "integrity": "sha512-ZWc51jO3qegGkVh8Hwpv636EkbesNV5ZNQPCtRa+0qytRYPEs9IYT9qITY9buezqUH5uqyzlWLcufrzU2rffdg==" + }, + "node_modules/expo-updates/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/expo-updates/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/expo-updates/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/expo-updates/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/expo-updates/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -32881,6 +33005,11 @@ "expo-eas-client": "~0.11.0" } }, + "expo-json-utils": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/expo-json-utils/-/expo-json-utils-0.12.3.tgz", + "integrity": "sha512-4pypQdinpNc6XY9wsZk56njvzDh+B/9mISr7FPP3CVk1QGB1nSLh883/BCDSgnsephATZkC5HG+cdE60kCAR6A==" + }, "expo-keep-awake": { "version": "12.8.2", "resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-12.8.2.tgz", @@ -32895,6 +33024,15 @@ "rtl-detect": "^1.0.2" } }, + "expo-manifests": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/expo-manifests/-/expo-manifests-0.13.2.tgz", + "integrity": "sha512-l0Sia1WmLULx8V41K8RzGLsFoTe4qqthPRGpHjItsYn8ZB6lRrdTBM9OYp2McIflgqN1HAimUCQMFIwJyH+UmA==", + "requires": { + "@expo/config": "~8.5.0", + "expo-json-utils": "~0.12.0" + } + }, "expo-modules-autolinking": { "version": "1.10.3", "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-1.10.3.tgz", @@ -33013,6 +33151,85 @@ "resolved": "https://registry.npmjs.org/expo-status-bar/-/expo-status-bar-1.11.1.tgz", "integrity": "sha512-ddQEtCOgYHTLlFUe/yH67dDBIoct5VIULthyT3LRJbEwdpzAgueKsX2FYK02ldh440V87PWKCamh7R9evk1rrg==" }, + "expo-structured-headers": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/expo-structured-headers/-/expo-structured-headers-3.7.2.tgz", + "integrity": "sha512-/nGOyeWUXSUy4aIYKJTwQOznRNs0yKqKPAyEE6jtwvOl9qvfDWx9xskNtShioggBhFAssFkV6RBbPn+xZMQtvw==" + }, + "expo-updates": { + "version": "0.24.12", + "resolved": "https://registry.npmjs.org/expo-updates/-/expo-updates-0.24.12.tgz", + "integrity": "sha512-35ZpAMSqHIyVGT5mEptaZJBxytu0mv4PIG28i3BQe+GG4ifQtY94aCOCrUwZe8Myzaf4dNVGEUXWTPo+JPCgcw==", + "requires": { + "@expo/code-signing-certificates": "0.0.5", + "@expo/config": "~8.5.0", + "@expo/config-plugins": "~7.8.0", + "arg": "4.1.0", + "chalk": "^4.1.2", + "expo-eas-client": "~0.11.0", + "expo-manifests": "~0.13.0", + "expo-structured-headers": "~3.7.0", + "expo-updates-interface": "~0.15.1", + "fbemitter": "^3.0.0", + "resolve-from": "^5.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "arg": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.0.tgz", + "integrity": "sha512-ZWc51jO3qegGkVh8Hwpv636EkbesNV5ZNQPCtRa+0qytRYPEs9IYT9qITY9buezqUH5uqyzlWLcufrzU2rffdg==" + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "expo-updates-interface": { + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/expo-updates-interface/-/expo-updates-interface-0.15.3.tgz", + "integrity": "sha512-uLvsbaCmUsXgJqeen8rYH/jPr874ZUCXEvWpKHxrCv5/XATPlYEaDuecbNSGQ+cu78i6MdtB4BHOwZmoH2d47A==", + "requires": {} + }, "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", diff --git a/package.json b/package.json index 1cfa49a5..5b81881e 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,8 @@ "build:preview:ios": "npx -y eas-cli@latest build -e preview -p ios -m manualPreview --no-wait", "build:prod:android": "npx -y eas-cli@latest build -e production -p android -m manualProduction --no-wait", "build:prod:ios": "npx -y eas-cli@latest build -e production -p ios -m manualProduction --no-wait", + "build:beta:android": "npx -y eas-cli@latest build -e beta -p android -m manualBeta --no-wait", + "build:beta:ios": "npx -y eas-cli@latest build -e beta -p ios -m manualBeta --no-wait", "build:ci:preview:android": "npx -y eas-cli@latest build --non-interactive -e preview -p android -m ciPreview --no-wait", "build:ci:preview:ios": "npx -y eas-cli@latest build --non-interactive -e preview -p ios -m ciPreview --no-wait", "build:ci:prod:android": "npx -y eas-cli@latest build --non-interactive -e production -p android -m ciProduction --no-wait", @@ -81,7 +83,8 @@ "react-native-screens": "~3.29.0", "react-native-size-matters": "^0.4.2", "react-native-svg": "14.1.0", - "text-encoding-polyfill": "^0.6.7" + "text-encoding-polyfill": "^0.6.7", + "expo-updates": "~0.24.12" }, "devDependencies": { "@babel/core": "^7.24.3",