Skip to content

Commit 84f1163

Browse files
authored
chore: move example (#856)
1 parent 0efdfa1 commit 84f1163

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3791
-3769
lines changed

.github/workflows/android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: yarn install --immutable
3030
- name: Build android example app on old architecture
3131
run: ./gradlew app:assembleDebug -PnewArchEnabled=false
32-
working-directory: packages/example/android
32+
working-directory: example/android
3333
android-build-new-arch:
3434
runs-on: ubuntu-latest
3535
steps:
@@ -46,4 +46,4 @@ jobs:
4646
run: yarn install --immutable
4747
- name: Build android example app on new architecture
4848
run: ./gradlew app:assembleDebug -PnewArchEnabled=true
49-
working-directory: packages/example/android
49+
working-directory: example/android

.github/workflows/ios.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ jobs:
2626
- uses: ruby/setup-ruby@v1
2727
with:
2828
ruby-version: 2.7
29-
working-directory: packages/example/ios
29+
working-directory: example/ios
3030
bundler-cache: true
3131
- name: Install dependencies
3232
run: yarn install --immutable
3333
- name: Install pods
3434
run: RCT_NEW_ARCH_ENABLED=0 npx pod-install
35-
working-directory: packages/example/ios
35+
working-directory: example/ios
3636
- name: Build ios example app on old architecture
3737
run: xcodebuild -scheme ReactTestApp -workspace document-picker-example.xcworkspace ONLY_ACTIVE_ARCH=NO -sdk iphonesimulator -configuration Debug
38-
working-directory: packages/example/ios
38+
working-directory: example/ios
3939
ios-build-new-arch:
4040
runs-on: macos-latest
4141
steps:
@@ -47,13 +47,13 @@ jobs:
4747
- uses: ruby/setup-ruby@v1
4848
with:
4949
ruby-version: 2.7
50-
working-directory: packages/example/ios
50+
working-directory: example/ios
5151
bundler-cache: true
5252
- name: Install dependencies
5353
run: yarn install --immutable
5454
- name: Install pods for new arch
55-
run: RCT_NEW_ARCH_ENABLED=1 npx pod-install
56-
working-directory: packages/example/ios
55+
run: RCT_NEW_ARCH_ENABLED=1 RCT_USE_PREBUILT_RNCORE=1 RCT_USE_RN_DEP=1 npx pod-install
56+
working-directory: example/ios
5757
- name: Build ios example app on new architecture
5858
run: xcodebuild -scheme ReactTestApp -workspace document-picker-example.xcworkspace ONLY_ACTIVE_ARCH=NO -sdk iphonesimulator -configuration Debug
59-
working-directory: packages/example/ios
59+
working-directory: example/ios

.yarn/releases/yarn-4.6.0.cjs

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

.yarn/releases/yarn-4.9.4.cjs

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

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.6.0.cjs
3+
yarnPath: .yarn/releases/yarn-4.9.4.cjs
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ buildscript {
2424

2525
allprojects {
2626
repositories {
27-
maven {
28-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
29-
url({
30-
def searchDir = rootDir.toPath()
31-
do {
32-
def p = searchDir.resolve("node_modules/react-native/android")
33-
if (p.toFile().exists()) {
34-
return p.toRealPath().toString()
27+
{
28+
def searchDir = rootDir.toPath()
29+
do {
30+
def p = searchDir.resolve("node_modules/react-native/android")
31+
if (p.toFile().exists()) {
32+
maven {
33+
url = p.toRealPath().toString()
3534
}
36-
} while (searchDir = searchDir.getParent())
37-
throw new GradleException("Could not find `react-native`");
38-
}())
39-
}
35+
break
36+
}
37+
} while (searchDir = searchDir.getParent())
38+
// As of 0.80, React Native is no longer installed from npm
39+
}()
4040
mavenCentral()
4141
google()
4242
}
File renamed without changes.

packages/example/android/gradle/wrapper/gradle-wrapper.jar renamed to example/android/gradle/wrapper/gradle-wrapper.jar

File renamed without changes.

0 commit comments

Comments
 (0)