Skip to content

Commit 1026543

Browse files
committed
chore: upgrade monorepo and examples
- upgrade to Expo SDK 53 - upgrade to React Native 0.79 - upgrade to Yarn v4 - dedupe packages (now only in root node_modules)
1 parent f586e2c commit 1026543

39 files changed

Lines changed: 10267 additions & 15451 deletions

.github/workflows/lint-ts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- 'packages/license-kit/**/*.[tj]sx?'
1212
- 'examples/**/*.jsx?'
1313
- 'examples/**/*.tsx?'
14+
- '.eslintrc.js'
15+
- '.prettierrc.js'
16+
- 'tsconfig.json'
1417

1518
concurrency: ${{ github.workflow }}-${{ github.ref }}
1619

.github/workflows/test-e2e-android.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
examples/bare-example/android/build
6767
examples/bare-example/android/app/build
6868
examples/bare-example/android/app/.cxx
69-
key: bare-example-android-build
69+
key: bare-example-android-build-${{ matrix.api-level }}
7070

7171
- uses: actions/setup-java@v4
7272
with:
@@ -106,7 +106,7 @@ jobs:
106106
target: 'google_apis'
107107
force-avd-creation: ${{ steps.avd-cache.outputs.cache-hit != 'true' }}
108108
cores: 4
109-
emulator-options: -verbose -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none -camera-back none
109+
emulator-options: -verbose -no-snapshot-load -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none -camera-back none
110110
disable-animations: false
111111
ram-size: '6144M'
112112
script: |

.github/workflows/test-e2e-ios.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757
id: cache-pods
5858
uses: actions/cache@v4
5959
env:
60-
cache-name: cached-ios-pods-deps
60+
cache-name: cached-ios-pods
6161
with:
6262
path: examples/bare-example/ios/Pods
63-
key: bare-example-pods
63+
key: bare-example-pods-${{ matrix.simulator }}-${{ hashFiles('ios/Podfile.lock') }}
6464

6565
- name: Cache Build
6666
id: cache-build
@@ -69,10 +69,13 @@ jobs:
6969
cache-name: cached-ios-build
7070
with:
7171
path: examples/bare-example/ios/build
72-
key: bare-example-ios-build
72+
key: bare-example-ios-build-${{ matrix.simulator }}
73+
74+
- name: Install gems
75+
run: yarn workspace react-native-legal-bare-example gem:install
7376

7477
- name: Install example Pods
75-
run: yarn workspace react-native-legal-bare-example pods
78+
run: yarn workspace react-native-legal-bare-example pod:install
7679

7780
- name: Bundle app
7881
run: yarn workspace react-native-legal-bare-example build:ios
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* eslint-disable */
2+
//prettier-ignore
3+
module.exports = {
4+
name: "@yarnpkg/plugin-after-install",
5+
factory: function (require) {
6+
"use strict";var plugin=(()=>{var l=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var r=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(o,e)=>(typeof require<"u"?require:o)[e]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var I=(t,o)=>{for(var e in o)l(t,e,{get:o[e],enumerable:!0})},h=(t,o,e,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of x(o))!C.call(t,n)&&n!==e&&l(t,n,{get:()=>o[n],enumerable:!(a=g(o,n))||a.enumerable});return t};var k=t=>h(l({},"__esModule",{value:!0}),t);var P={};I(P,{default:()=>y});var d=r("@yarnpkg/core");var f=r("@yarnpkg/core"),c={afterInstall:{description:"Hook that will always run after install",type:f.SettingsType.STRING,default:""}};var m=r("clipanion"),u=r("@yarnpkg/core");var p=r("@yarnpkg/shell"),s=async(t,o)=>{let e=t.get("afterInstall"),a=!!t.projectCwd?.endsWith(`dlx-${process.pid}`);return e&&!a?(o&&console.log("Running `afterInstall` hook..."),(0,p.execute)(e,[],{cwd:t.projectCwd||void 0,env:{...process.env,_YARN_PLUGIN_AFTER_INSTALL_COMMAND_ARGV:JSON.stringify(process.argv.slice(2))}})):0};var i=class extends m.Command{async execute(){let o=await u.Configuration.find(this.context.cwd,this.context.plugins);return s(o,!1)}};i.paths=[["after-install"]];var w={configuration:c,commands:[i],hooks:{afterAllInstalled:async(t,o)=>{if(o?.mode===d.InstallMode.UpdateLockfile)return;if(await s(t.configuration,!0))throw new Error("The `afterInstall` hook failed, see output above.")}}},y=w;return k(P);})();
7+
return plugin;
8+
}
9+
};

.yarn/plugins/@yarnpkg/plugin-postinstall.cjs

Lines changed: 0 additions & 8 deletions
This file was deleted.

.yarn/releases/yarn-3.6.1.cjs

Lines changed: 0 additions & 874 deletions
This file was deleted.

.yarn/releases/yarn-4.9.2.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
afterInstall: "npx -c 'lefthook install' && yarn build:library && yarn build:visualizer"
2+
3+
compressionLevel: mixed
4+
5+
enableGlobalCache: false
6+
17
nodeLinker: node-modules
28

39
plugins:
4-
- path: .yarn/plugins/@yarnpkg/plugin-postinstall.cjs
5-
spec: "https://raw.githubusercontent.com/gravitywelluk/yarn-plugin-postinstall/master/bundles/%40yarnpkg/plugin-postinstall.js"
6-
7-
postinstall: npx -c 'lefthook install' && yarn build:library && yarn build:visualizer
10+
- checksum: 44a06a583a46ab1e2de2a04c115868bea51f01a314f261b628fbf6d92b2be63c0d155be3d3094d440daf58ff3f263aba4c9384a1c60c5d26cc0db086ad990459
11+
path: .yarn/plugins/@yarnpkg/plugin-after-install.cjs
12+
spec: "https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.7.0/bundles/@yarnpkg/plugin-after-install.js"
813

9-
yarnPath: .yarn/releases/yarn-3.6.1.cjs
14+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

CONTRIBUTING.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ cd examples/bare-example
5757
To install Pods:
5858

5959
```sh
60-
npx pod-install
60+
# first install Gems
61+
yarn gem:install
62+
# and after that install Pods
63+
yarn pod:install
6164
```
6265

6366
To start the packager:

examples/bare-example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ local.properties
3333
.cxx/
3434
*.keystore
3535
!debug.keystore
36+
.kotlin/
3637

3738
# node.js
3839
#
@@ -65,4 +66,5 @@ yarn-error.log
6566
# testing
6667
/coverage
6768

69+
/dist
6870
/e2e_results

0 commit comments

Comments
 (0)