Skip to content

Commit

Permalink
Expo 51 (#349)
Browse files Browse the repository at this point in the history
* update to expo 51, update expo51 related deps, temporary use legacy impl. for expo-sqlite and expo-camera

* lint and add an interface for process.env

* prebuild user-input-workaround for updated deps with the yes command

* Update npm install step in GitHub Actions android workflow

* temporary workflow change: create new lockfile with npm i

* update android workflow

* update android workflow

* temporary change workflow

* Update Android workflow to use non-interactive mode for prebuild command

* update android workflow with env CI=1

* ci: try --npm flag to skip user input in expo prebuild command

* install deps

* bump to 0.4.1

* Update expo51 related dependencies.

* Update package.json

* lint

* Force install deps in Android workflow

* Update npm install commands in Android and Node.js workflows

* Migrate from expo-camera/legacy to expo-camera. Remove expo-barcode-scanner lib

* Hide navigation bar in QR scan screen

* Update npm install commands in Android and Node.js workflows

* Remove expo-barcode-scanner from app config plugins

* Perform disk cleanup & print disk space for build-debug job in Android workflow

* Update Android emulator architecture to x86 and use smaller system image

* Update Android emulator architecture to x86_64

* android workflow: Force cache to clear by modifying cache key

---------

Co-authored-by: Agron Kadriaj <me00023ak@gmail.com>
  • Loading branch information
KKA11010 and Agron Kadriaj authored Jul 3, 2024
1 parent 370e2a5 commit ef23631
Show file tree
Hide file tree
Showing 17 changed files with 2,887 additions and 2,169 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
env:
EXPO_NO_TELEMETRY: 1
SENTRY_DISABLE_AUTO_UPLOAD: true
CI: 1
jobs:
build:
name: build-android-production
Expand Down Expand Up @@ -52,10 +53,10 @@ jobs:
packages: platform-tools platforms;android-34 build-tools;33.0.1 build-tools;34.0.0 ndk;25.1.8937393 cmake;3.22.1

- name: Install deps
run: npm ci
run: npm i --force

- name: PreBuild Android
run: npx expo prebuild -p android --clean
run: npx expo prebuild -p android --clean --npm

- name: make gradlew executable
run: chmod +x ./android/gradlew
Expand Down Expand Up @@ -108,10 +109,10 @@ jobs:
./node_modules
**/android
./android
key: ${{ runner.os }}-android-build-debug
key: ${{ runner.os }}-android-build-debug-new
restore-keys: |
${{ runner.os }}-android-build-debug
ci-${{ runner.os }}-android-build-debug
${{ runner.os }}-android-build-debug-new
ci-${{ runner.os }}-android-build-debug-new
- uses: actions/setup-node@v4
with:
Expand All @@ -130,7 +131,7 @@ jobs:
packages: platform-tools platforms;android-34 build-tools;33.0.1 build-tools;34.0.0 ndk;25.1.8937393 cmake;3.22.1

- name: Install deps
run: npm ci
run: npm ci --force

- name: PreBuild Android
run: npx expo prebuild -p android --clean
Expand Down Expand Up @@ -167,4 +168,4 @@ jobs:
./node_modules
**/android
./android
key: ${{ runner.os }}-android-build-debug
key: ${{ runner.os }}-android-build-debug-new
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm i --force
- run: npm run lint

- name: Upload coverage reports to Codecov
Expand Down
1 change: 0 additions & 1 deletion config/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ const config: ExpoConfig = {
assetBundlePatterns: ['**/*'],
plugins: [
'expo-localization',
['expo-barcode-scanner', { cameraPermission }],
['expo-camera', { cameraPermission }],
'expo-secure-store',
[
Expand Down
Loading

0 comments on commit ef23631

Please sign in to comment.