fix(ci): add babel-preset-expo dep and make Android SDK setup idempotent #4
@@ -29,10 +29,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Android SDK
|
- name: Install Android SDK
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$ANDROID_HOME/cmdline-tools"
|
if [ -x "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" ]; then
|
||||||
wget -q https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O /tmp/cmdtools.zip
|
echo "Android SDK already present in cache"
|
||||||
unzip -q /tmp/cmdtools.zip -d "$ANDROID_HOME/cmdline-tools"
|
else
|
||||||
mv "$ANDROID_HOME/cmdline-tools/cmdline-tools" "$ANDROID_HOME/cmdline-tools/latest"
|
rm -rf "$ANDROID_HOME/cmdline-tools"
|
||||||
|
mkdir -p "$ANDROID_HOME/cmdline-tools"
|
||||||
|
wget -q https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O /tmp/cmdtools.zip
|
||||||
|
unzip -q /tmp/cmdtools.zip -d "$ANDROID_HOME/cmdline-tools"
|
||||||
|
mv "$ANDROID_HOME/cmdline-tools/cmdline-tools" "$ANDROID_HOME/cmdline-tools/latest"
|
||||||
|
fi
|
||||||
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses > /dev/null
|
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses > /dev/null
|
||||||
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" \
|
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" \
|
||||||
"platform-tools" \
|
"platform-tools" \
|
||||||
|
|||||||
Generated
+68
-67
@@ -41,6 +41,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.20.0",
|
"@babel/core": "^7.20.0",
|
||||||
"@types/react": "~19.2.2",
|
"@types/react": "~19.2.2",
|
||||||
|
"babel-preset-expo": "~57.0.0",
|
||||||
"electron": "^41.7.1",
|
"electron": "^41.7.1",
|
||||||
"electron-builder": "^26.15.3",
|
"electron-builder": "^26.15.3",
|
||||||
"eslint": "^9.0.0",
|
"eslint": "^9.0.0",
|
||||||
@@ -4986,6 +4987,73 @@
|
|||||||
"@babel/plugin-syntax-flow": "^7.12.1"
|
"@babel/plugin-syntax-flow": "^7.12.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/babel-preset-expo": {
|
||||||
|
"version": "57.0.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-57.0.7.tgz",
|
||||||
|
"integrity": "sha512-/1RLnZTJVoTNo6nCdSv27BSA2LBzM/qEkNLznwWvztg64DhsAz7ByZIiAqdbau9FK3YqF+IV5a2ZsPXFclwq4A==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/generator": "^7.20.5",
|
||||||
|
"@babel/helper-module-imports": "^7.25.9",
|
||||||
|
"@babel/plugin-proposal-decorators": "^7.12.9",
|
||||||
|
"@babel/plugin-proposal-export-default-from": "^7.24.7",
|
||||||
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||||
|
"@babel/plugin-syntax-export-default-from": "^7.24.7",
|
||||||
|
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
|
||||||
|
"@babel/plugin-syntax-optional-chaining": "^7.8.3",
|
||||||
|
"@babel/plugin-transform-async-generator-functions": "^7.25.4",
|
||||||
|
"@babel/plugin-transform-async-to-generator": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-block-scoping": "^7.25.0",
|
||||||
|
"@babel/plugin-transform-class-properties": "^7.25.4",
|
||||||
|
"@babel/plugin-transform-class-static-block": "^7.27.1",
|
||||||
|
"@babel/plugin-transform-classes": "^7.25.4",
|
||||||
|
"@babel/plugin-transform-destructuring": "^7.24.8",
|
||||||
|
"@babel/plugin-transform-export-namespace-from": "^7.25.9",
|
||||||
|
"@babel/plugin-transform-flow-strip-types": "^7.25.2",
|
||||||
|
"@babel/plugin-transform-for-of": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-logical-assignment-operators": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
|
||||||
|
"@babel/plugin-transform-named-capturing-groups-regex": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-object-rest-spread": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-optional-catch-binding": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-optional-chaining": "^7.24.8",
|
||||||
|
"@babel/plugin-transform-parameters": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-private-methods": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-react-display-name": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-react-jsx": "^7.28.6",
|
||||||
|
"@babel/plugin-transform-react-jsx-development": "^7.27.1",
|
||||||
|
"@babel/plugin-transform-react-pure-annotations": "^7.27.1",
|
||||||
|
"@babel/plugin-transform-runtime": "^7.24.7",
|
||||||
|
"@babel/plugin-transform-typescript": "^7.25.2",
|
||||||
|
"@babel/plugin-transform-unicode-regex": "^7.24.7",
|
||||||
|
"@babel/preset-typescript": "^7.23.0",
|
||||||
|
"@react-native/babel-plugin-codegen": "0.86.2",
|
||||||
|
"babel-plugin-react-compiler": "^1.0.0",
|
||||||
|
"babel-plugin-react-native-web": "~0.21.0",
|
||||||
|
"babel-plugin-syntax-hermes-parser": "^0.36.0",
|
||||||
|
"babel-plugin-transform-flow-enums": "^0.0.2",
|
||||||
|
"debug": "^4.3.4"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@babel/runtime": "^7.20.0",
|
||||||
|
"expo": "*",
|
||||||
|
"expo-widgets": "^57.0.10",
|
||||||
|
"react-refresh": ">=0.14.0 <1.0.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@babel/runtime": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"expo": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"expo-widgets": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/badgin": {
|
"node_modules/badgin": {
|
||||||
"version": "1.2.3",
|
"version": "1.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/badgin/-/badgin-1.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/badgin/-/badgin-1.2.3.tgz",
|
||||||
@@ -8104,73 +8172,6 @@
|
|||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/expo/node_modules/babel-preset-expo": {
|
|
||||||
"version": "57.0.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-57.0.5.tgz",
|
|
||||||
"integrity": "sha512-sz9ZBTiUAlu5P9VORVNKoeAaY2qKFQRC6eQV5Y8aMkqcorvXKEv97UeCkFMLmMBEPKA+QeWImREKkX9/H21WQA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/generator": "^7.20.5",
|
|
||||||
"@babel/helper-module-imports": "^7.25.9",
|
|
||||||
"@babel/plugin-proposal-decorators": "^7.12.9",
|
|
||||||
"@babel/plugin-proposal-export-default-from": "^7.24.7",
|
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
||||||
"@babel/plugin-syntax-export-default-from": "^7.24.7",
|
|
||||||
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
|
|
||||||
"@babel/plugin-syntax-optional-chaining": "^7.8.3",
|
|
||||||
"@babel/plugin-transform-async-generator-functions": "^7.25.4",
|
|
||||||
"@babel/plugin-transform-async-to-generator": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-block-scoping": "^7.25.0",
|
|
||||||
"@babel/plugin-transform-class-properties": "^7.25.4",
|
|
||||||
"@babel/plugin-transform-class-static-block": "^7.27.1",
|
|
||||||
"@babel/plugin-transform-classes": "^7.25.4",
|
|
||||||
"@babel/plugin-transform-destructuring": "^7.24.8",
|
|
||||||
"@babel/plugin-transform-export-namespace-from": "^7.25.9",
|
|
||||||
"@babel/plugin-transform-flow-strip-types": "^7.25.2",
|
|
||||||
"@babel/plugin-transform-for-of": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-logical-assignment-operators": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
|
|
||||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-object-rest-spread": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-optional-catch-binding": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-optional-chaining": "^7.24.8",
|
|
||||||
"@babel/plugin-transform-parameters": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-private-methods": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-react-display-name": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-react-jsx": "^7.28.6",
|
|
||||||
"@babel/plugin-transform-react-jsx-development": "^7.27.1",
|
|
||||||
"@babel/plugin-transform-react-pure-annotations": "^7.27.1",
|
|
||||||
"@babel/plugin-transform-runtime": "^7.24.7",
|
|
||||||
"@babel/plugin-transform-typescript": "^7.25.2",
|
|
||||||
"@babel/plugin-transform-unicode-regex": "^7.24.7",
|
|
||||||
"@babel/preset-typescript": "^7.23.0",
|
|
||||||
"@react-native/babel-plugin-codegen": "0.86.2",
|
|
||||||
"babel-plugin-react-compiler": "^1.0.0",
|
|
||||||
"babel-plugin-react-native-web": "~0.21.0",
|
|
||||||
"babel-plugin-syntax-hermes-parser": "^0.36.0",
|
|
||||||
"babel-plugin-transform-flow-enums": "^0.0.2",
|
|
||||||
"debug": "^4.3.4"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@babel/runtime": "^7.20.0",
|
|
||||||
"expo": "*",
|
|
||||||
"expo-widgets": "^57.0.7",
|
|
||||||
"react-refresh": ">=0.14.0 <1.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@babel/runtime": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"expo": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"expo-widgets": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/expo/node_modules/ci-info": {
|
"node_modules/expo/node_modules/ci-info": {
|
||||||
"version": "3.9.0",
|
"version": "3.9.0",
|
||||||
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
|
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
"name": "carry-your-live",
|
"name": "carry-your-live",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "expo-router/entry",
|
"main": "expo-router/entry",
|
||||||
"homepage": "http://localhost:8081",
|
|
||||||
"homepage": "https://gitea.techmos.org/tech08mag/carry-your-live",
|
"homepage": "https://gitea.techmos.org/tech08mag/carry-your-live",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hookform/resolvers": "^3.3.4",
|
"@hookform/resolvers": "^3.3.4",
|
||||||
@@ -37,6 +36,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.20.0",
|
"@babel/core": "^7.20.0",
|
||||||
"@types/react": "~19.2.2",
|
"@types/react": "~19.2.2",
|
||||||
|
"babel-preset-expo": "~57.0.0",
|
||||||
"electron": "^41.7.1",
|
"electron": "^41.7.1",
|
||||||
"electron-builder": "^26.15.3",
|
"electron-builder": "^26.15.3",
|
||||||
"eslint": "^9.0.0",
|
"eslint": "^9.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user