Skip to content

Commit 93133d9

Browse files
committed
Update example to RN 0.84.x
1 parent 6c3854e commit 93133d9

File tree

18 files changed

+3109
-3033
lines changed

18 files changed

+3109
-3033
lines changed

examples/DemoCodeField/Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
88
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
99
gem 'xcodeproj', '< 1.26.0'
1010
gem 'concurrent-ruby', '< 1.3.4'
11+
12+
# Ruby 3.4.0 has removed some libraries from the standard library.
13+
gem 'bigdecimal'
14+
gem 'logger'
15+
gem 'benchmark'
16+
gem 'mutex_m'
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.9)
5+
activesupport (6.1.7.10)
6+
concurrent-ruby (~> 1.0, >= 1.0.2)
7+
i18n (>= 1.6, < 2)
8+
minitest (>= 5.1)
9+
tzinfo (~> 2.0)
10+
zeitwerk (~> 2.3)
11+
addressable (2.8.9)
12+
public_suffix (>= 2.0.2, < 8.0)
13+
algoliasearch (1.27.5)
14+
httpclient (~> 2.8, >= 2.8.3)
15+
json (>= 1.5.1)
16+
atomos (0.1.3)
17+
benchmark (0.5.0)
18+
bigdecimal (4.1.0)
19+
claide (1.1.0)
20+
cocoapods (1.15.2)
21+
addressable (~> 2.8)
22+
claide (>= 1.0.2, < 2.0)
23+
cocoapods-core (= 1.15.2)
24+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
25+
cocoapods-downloader (>= 2.1, < 3.0)
26+
cocoapods-plugins (>= 1.0.0, < 2.0)
27+
cocoapods-search (>= 1.0.0, < 2.0)
28+
cocoapods-trunk (>= 1.6.0, < 2.0)
29+
cocoapods-try (>= 1.1.0, < 2.0)
30+
colored2 (~> 3.1)
31+
escape (~> 0.0.4)
32+
fourflusher (>= 2.3.0, < 3.0)
33+
gh_inspector (~> 1.0)
34+
molinillo (~> 0.8.0)
35+
nap (~> 1.0)
36+
ruby-macho (>= 2.3.0, < 3.0)
37+
xcodeproj (>= 1.23.0, < 2.0)
38+
cocoapods-core (1.15.2)
39+
activesupport (>= 5.0, < 8)
40+
addressable (~> 2.8)
41+
algoliasearch (~> 1.0)
42+
concurrent-ruby (~> 1.1)
43+
fuzzy_match (~> 2.0.4)
44+
nap (~> 1.0)
45+
netrc (~> 0.11)
46+
public_suffix (~> 4.0)
47+
typhoeus (~> 1.0)
48+
cocoapods-deintegrate (1.0.5)
49+
cocoapods-downloader (2.1)
50+
cocoapods-plugins (1.0.0)
51+
nap
52+
cocoapods-search (1.0.1)
53+
cocoapods-trunk (1.6.0)
54+
nap (>= 0.8, < 2.0)
55+
netrc (~> 0.11)
56+
cocoapods-try (1.2.0)
57+
colored2 (3.1.2)
58+
concurrent-ruby (1.3.3)
59+
escape (0.0.4)
60+
ethon (0.18.0)
61+
ffi (>= 1.15.0)
62+
logger
63+
ffi (1.17.4)
64+
fourflusher (2.3.1)
65+
fuzzy_match (2.0.4)
66+
gh_inspector (1.1.3)
67+
httpclient (2.9.0)
68+
mutex_m
69+
i18n (1.14.8)
70+
concurrent-ruby (~> 1.0)
71+
json (2.7.6)
72+
logger (1.7.0)
73+
minitest (5.25.4)
74+
molinillo (0.8.0)
75+
mutex_m (0.3.0)
76+
nanaimo (0.3.0)
77+
nap (1.1.0)
78+
netrc (0.11.0)
79+
public_suffix (4.0.7)
80+
rexml (3.4.4)
81+
ruby-macho (2.5.1)
82+
typhoeus (1.6.0)
83+
ethon (>= 0.18.0)
84+
tzinfo (2.0.6)
85+
concurrent-ruby (~> 1.0)
86+
xcodeproj (1.25.1)
87+
CFPropertyList (>= 2.3.3, < 4.0)
88+
atomos (~> 0.1.3)
89+
claide (>= 1.0.2, < 2.0)
90+
colored2 (~> 3.1)
91+
nanaimo (~> 0.3.0)
92+
rexml (>= 3.3.6, < 4.0)
93+
zeitwerk (2.6.18)
94+
95+
PLATFORMS
96+
ruby
97+
98+
DEPENDENCIES
99+
activesupport (>= 6.1.7.5, != 7.1.0)
100+
benchmark
101+
bigdecimal
102+
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
103+
concurrent-ruby (< 1.3.4)
104+
logger
105+
mutex_m
106+
xcodeproj (< 1.26.0)
107+
108+
RUBY VERSION
109+
ruby 2.6.10p210
110+
111+
BUNDLED WITH
112+
1.17.2

examples/DemoCodeField/android/build.gradle

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,3 @@ buildscript {
2121
}
2222
}
2323
}
24-
25-
allprojects {
26-
repositories {
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())
34-
}
35-
break
36-
}
37-
} while (searchDir = searchDir.getParent())
38-
// As of 0.80, React Native is no longer installed from npm
39-
}()
40-
mavenCentral()
41-
google()
42-
}
43-
}

examples/DemoCodeField/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

examples/DemoCodeField/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const ReactCompilerConfig = {
2-
target: '18',
2+
target: '19',
33
compilationMode: 'annotation',
44
panicThreshold: 'all_errors',
55
};

examples/DemoCodeField/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* @format
33
*/
44

5-
import {AppRegistry} from 'react-native';
5+
import { AppRegistry } from 'react-native';
66
import App from './src/App';
7-
import {name as appName} from './app.json';
7+
import { name as appName } from './app.json';
88

99
AppRegistry.registerComponent(appName, () => App);

0 commit comments

Comments
 (0)