Skip to content

Commit

Permalink
feat: expo 52
Browse files Browse the repository at this point in the history
  • Loading branch information
bpouzet committed Dec 30, 2024
1 parent 7793391 commit 1314f49
Show file tree
Hide file tree
Showing 18 changed files with 254 additions and 11,092 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/eas-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18"]
node: ["20"]
name: Install and build with Node ${{ matrix.node }}
steps:
- name: Check for EXPO_TOKEN
Expand All @@ -20,36 +20,39 @@ jobs:
fi
- name: 🏗 Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: 🏗 Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
cache: bun

- name: 🏗 Setup Expo and EAS
uses: expo/expo-github-action@v7
uses: expo/expo-github-action@v8
with:
expo-version: latest
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Find yarn cache
id: yarn-cache-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Find bun cache
id: bun-cache-path
run: echo "dir=$(bun cache dir)" >> $GITHUB_OUTPUT

- name: Restore cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
path: ${{ steps.bun-cache-path.outputs.dir }}
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: ${{ runner.os }}-bun-

- name: 📦 Install dependencies
run: yarn install --immutable
use: oven-sh/setup-bun@v2
with:
bun-version: 1.1.42
run: bun install

- name: 🚀 Build on EAS
run: eas build --platform all --non-interactive --auto-submit
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,34 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18"]
node: ["20"]
name: Run linters with Node ${{ matrix.node }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
cache: bun

- name: Find yarn cache
id: yarn-cache-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Find bun cache
id: bun-cache-path
run: echo "dir=$(bun cache dir)" >> $GITHUB_OUTPUT

- name: Restore cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
path: ${{ steps.bun-cache-path.outputs.dir }}
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: ${{ runner.os }}-bun-

- name: Install dependencies
run: yarn install --immutable
use: oven-sh/setup-bun@v2
with:
bun-version: 1.1.42
run: bun install

- name: Run ESLint
uses: wearerequired/lint-action@v2
Expand Down
61 changes: 33 additions & 28 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ export default ({ config }: ConfigContext): MyExpoConfig => ({
foregroundImage: ADAPTIVE_ICON,
monochromeImage: './assets/images/adaptive-monochrome-icon.png'
},
blockedPermissions: [
'android.permission.READ_CALENDAR',
'android.permission.WRITE_CALENDAR',
'android.permission.SYSTEM_ALERT_WINDOW',
'android.permission.READ_EXTERNAL_STORAGE',
'android.permission.WRITE_EXTERNAL_STORAGE',
'android.permission.VIBRATE',
],
blockedPermissions: [],
package: PACKAGE,
permissions: [],
softwareKeyboardLayoutMode: 'pan',
Expand All @@ -45,9 +38,6 @@ export default ({ config }: ConfigContext): MyExpoConfig => ({
barStyle: 'light-content',
translucent: false,
},
assetBundlePatterns: [
'src/assets/**/*',
],
extra: {
api: {
key: process.env.API_KEY,
Expand All @@ -64,8 +54,17 @@ export default ({ config }: ConfigContext): MyExpoConfig => ({
bundleIdentifier: PACKAGE,
infoPlist: {
CFBundleAllowMixedLocalizations: true,
CFBundleLocalizations: ['en', 'fr'],
LSApplicationQueriesSchemes: [ 'itms-apps' ],
},
privacyManifests: {
NSPrivacyAccessedAPITypes: [
{
NSPrivacyAccessedAPIType: 'NSPrivacyAccessedAPICategoryUserDefaults',
NSPrivacyAccessedAPITypeReasons: ['CA92.1'],
},
],
},
supportsTablet: true,
},
jsEngine: 'hermes',
Expand All @@ -74,31 +73,29 @@ export default ({ config }: ConfigContext): MyExpoConfig => ({
fr: './assets/translations/fr.json',
},
name: 'NC Domain Finder' + (IS_STAGING ? ' (staging)' : IS_DEV ? '(dev)' : ''),
newArchEnabled: false,
orientation: 'portrait',
platforms: [
'android',
'ios',
],
plugins: [
[
'@sentry/react-native/expo',
{
organization: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
url: 'https://sentry.io/',
},
],
// [
// '@sentry/react-native/expo',
// {
// organization: process.env.SENTRY_ORG,
// project: process.env.SENTRY_PROJECT,
// url: 'https://sentry.io/',
// },
// ],
[
'expo-build-properties', {
android: {
allowBackup: false,
enableShrinkResourcesInReleaseBuilds: true,
enableProguardInReleaseBuilds: true,
//newArchEnabled: true,
},
ios: {
//newArchEnabled: true,
},
ios: {},
},
],
[
Expand All @@ -107,18 +104,26 @@ export default ({ config }: ConfigContext): MyExpoConfig => ({
},
],
'expo-localization',
'expo-router',
[
'expo-splash-screen',
{
backgroundColor: BG_COLOR,
image: SPLASH,
},
],
[
'expo-sqlite',
{}
],
['react-native-edge-to-edge'],
],
primaryColor: BG_COLOR,
runtimeVersion: {
policy: 'sdkVersion',
},
scheme: 'nc-domain-finder',
slug: 'nc-domain-finder',
splash: {
backgroundColor: BG_COLOR,
image: SPLASH,
resizeMode: 'contain',
},
updates: {
fallbackToCacheTimeout: 0,
url: 'https://u.expo.dev/9df8db98-43eb-41f6-a9e8-04873f919754',
Expand Down
Binary file added bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"build": {
"development": {
"bun": "1.1.42",
"developmentClient": true,
"distribution": "internal",
"channel": "development",
Expand All @@ -24,6 +25,7 @@
"android": {
"buildType": "apk"
},
"bun": "1.1.42",
"distribution": "internal",
"channel": "staging",
"env": {
Expand All @@ -32,6 +34,7 @@
},
"production": {
"autoIncrement": true,
"bun": "1.1.42",
"channel": "production",
"env": {
"APP_ENV": "production",
Expand Down
Loading

0 comments on commit 1314f49

Please sign in to comment.