Skip to content

Commit 1a7fa27

Browse files
authored
Merge pull request #681 from WoLewicki/@wolewicki/bump-to-76
chore: bump example to rn76
2 parents 55bdd97 + d42580f commit 1a7fa27

File tree

27 files changed

+6897
-9481
lines changed

27 files changed

+6897
-9481
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v3
34+
- name: Set up JDK 17
35+
uses: actions/setup-java@v4
36+
with:
37+
java-version: '17'
38+
distribution: 'zulu'
39+
cache: 'gradle'
3440
- name: Validate Gradle Wrapper
3541
uses: gradle/wrapper-validation-action@v1
3642
- name: Install modules

example/.prettierrc.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
arrowParens: 'always',
3+
bracketSameLine: true,
4+
tabs: false,
5+
tabWidth: 2,
6+
bracketSpacing: true,
7+
singleQuote: true,
8+
trailingComma: 'all',
9+
printWidth: 120,
10+
semi: true,
11+
jsxBracketSameLine: false,
12+
jsxSingleQuote: false,
13+
};

example/.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.6
1+
3.3.5

example/.watchmanconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

example/.yarn/releases/yarn-3.6.4.cjs

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

example/.yarnrc.yml

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

example/Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
44
ruby ">= 2.6.10"
55

6-
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
7-
# bound in the template on Cocoapods with next React Native release.
8-
gem 'cocoapods', '>= 1.13', '< 1.15'
9-
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
6+
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
7+
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8+
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9+
gem 'xcodeproj', '< 1.26.0'

example/Gemfile.lock

Lines changed: 51 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,32 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (7.0.7.2)
9-
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
activesupport (7.2.2)
9+
base64
10+
benchmark (>= 0.3)
11+
bigdecimal
12+
concurrent-ruby (~> 1.0, >= 1.3.1)
13+
connection_pool (>= 2.2.5)
14+
drb
1015
i18n (>= 1.6, < 2)
16+
logger (>= 1.4.2)
1117
minitest (>= 5.1)
12-
tzinfo (~> 2.0)
18+
securerandom (>= 0.3)
19+
tzinfo (~> 2.0, >= 2.0.5)
1320
addressable (2.8.7)
1421
public_suffix (>= 2.0.2, < 7.0)
1522
algoliasearch (1.27.5)
1623
httpclient (~> 2.8, >= 2.8.3)
1724
json (>= 1.5.1)
1825
atomos (0.1.3)
1926
base64 (0.2.0)
27+
benchmark (0.4.0)
28+
bigdecimal (3.1.8)
2029
claide (1.1.0)
21-
cocoapods (1.14.3)
30+
cocoapods (1.15.2)
2231
addressable (~> 2.8)
2332
claide (>= 1.0.2, < 2.0)
24-
cocoapods-core (= 1.14.3)
33+
cocoapods-core (= 1.15.2)
2534
cocoapods-deintegrate (>= 1.0.3, < 2.0)
2635
cocoapods-downloader (>= 2.1, < 3.0)
2736
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -36,7 +45,7 @@ GEM
3645
nap (~> 1.0)
3746
ruby-macho (>= 2.3.0, < 3.0)
3847
xcodeproj (>= 1.23.0, < 2.0)
39-
cocoapods-core (1.14.3)
48+
cocoapods-core (1.15.2)
4049
activesupport (>= 5.0, < 8)
4150
addressable (~> 2.8)
4251
algoliasearch (~> 1.0)
@@ -56,50 +65,73 @@ GEM
5665
netrc (~> 0.11)
5766
cocoapods-try (1.2.0)
5867
colored2 (3.1.2)
59-
concurrent-ruby (1.2.2)
68+
concurrent-ruby (1.3.4)
69+
connection_pool (2.4.1)
70+
drb (2.2.1)
6071
escape (0.0.4)
6172
ethon (0.16.0)
6273
ffi (>= 1.15.0)
63-
ffi (1.16.3)
74+
ffi (1.17.0)
75+
ffi (1.17.0-aarch64-linux-gnu)
76+
ffi (1.17.0-aarch64-linux-musl)
77+
ffi (1.17.0-arm-linux-gnu)
78+
ffi (1.17.0-arm-linux-musl)
79+
ffi (1.17.0-arm64-darwin)
80+
ffi (1.17.0-x86-linux-gnu)
81+
ffi (1.17.0-x86-linux-musl)
82+
ffi (1.17.0-x86_64-darwin)
83+
ffi (1.17.0-x86_64-linux-gnu)
84+
ffi (1.17.0-x86_64-linux-musl)
6485
fourflusher (2.3.1)
6586
fuzzy_match (2.0.4)
6687
gh_inspector (1.1.3)
6788
httpclient (2.8.3)
68-
i18n (1.14.1)
89+
i18n (1.14.6)
6990
concurrent-ruby (~> 1.0)
7091
json (2.8.2)
71-
minitest (5.19.0)
92+
logger (1.6.1)
93+
minitest (5.25.2)
7294
molinillo (0.8.0)
73-
nanaimo (0.4.0)
95+
nanaimo (0.3.0)
7496
nap (1.1.0)
7597
netrc (0.11.0)
7698
nkf (0.2.0)
7799
public_suffix (4.0.7)
78100
rexml (3.3.9)
79101
ruby-macho (2.5.1)
102+
securerandom (0.3.2)
80103
typhoeus (1.4.1)
81104
ethon (>= 0.9.0)
82105
tzinfo (2.0.6)
83106
concurrent-ruby (~> 1.0)
84-
xcodeproj (1.27.0)
107+
xcodeproj (1.25.1)
85108
CFPropertyList (>= 2.3.3, < 4.0)
86109
atomos (~> 0.1.3)
87110
claide (>= 1.0.2, < 2.0)
88111
colored2 (~> 3.1)
89-
nanaimo (~> 0.4.0)
112+
nanaimo (~> 0.3.0)
90113
rexml (>= 3.3.6, < 4.0)
91114

92115
PLATFORMS
93-
arm64-darwin-21
116+
aarch64-linux-gnu
117+
aarch64-linux-musl
118+
arm-linux-gnu
119+
arm-linux-musl
120+
arm64-darwin
94121
ruby
95-
x86_64-linux
122+
x86-linux-gnu
123+
x86-linux-musl
124+
x86_64-darwin
125+
x86_64-linux-gnu
126+
x86_64-linux-musl
96127

97128
DEPENDENCIES
98-
activesupport (>= 6.1.7.5, < 7.1.0)
99-
cocoapods (>= 1.13, < 1.15)
129+
activesupport (>= 6.1.7.5, != 7.1.0)
130+
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
131+
xcodeproj (< 1.26.0)
100132

101133
RUBY VERSION
102-
ruby 2.7.4p191
134+
ruby 3.3.5p100
103135

104136
BUNDLED WITH
105-
2.3.4
137+
2.5.16

example/android/app/build.gradle

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@ apply plugin: "com.android.application"
22
apply plugin: "org.jetbrains.kotlin.android"
33
apply plugin: "com.facebook.react"
44

5-
import com.android.build.OutputFile
6-
75
/**
86
* This is the configuration block to customize your React Native Android app.
97
* By default you don't need to apply any configuration, just uncomment the lines you need.
108
*/
119
react {
1210
/* Folders */
13-
// The root of your project, i.e. where "package.json" lives. Default is '..'
14-
// root = file("../")
15-
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
16-
// reactNativeDir = file("../node_modules/react-native")
17-
// The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
18-
// codegenDir = file("../node_modules/@react-native/codegen")
19-
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
20-
// cliFile = file("../node_modules/react-native/cli.js")
11+
// The root of your project, i.e. where "package.json" lives. Default is '../..'
12+
// root = file("../../")
13+
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
14+
// reactNativeDir = file("../../node_modules/react-native")
15+
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
16+
// codegenDir = file("../../node_modules/@react-native/codegen")
17+
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
18+
// cliFile = file("../../node_modules/react-native/cli.js")
2119

2220
/* Variants */
2321
// The list of variants to that are debuggable. For those we're going to
@@ -51,6 +49,9 @@ react {
5149
//
5250
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5351
// hermesFlags = ["-O", "-output-source-map"]
52+
53+
/* Autolinking */
54+
autolinkLibrariesWithApp()
5455
}
5556

5657
/**
@@ -73,7 +74,6 @@ def jscFlavor = 'org.webkit:android-jsc:+'
7374

7475
android {
7576
ndkVersion rootProject.ext.ndkVersion
76-
7777
buildToolsVersion rootProject.ext.buildToolsVersion
7878
compileSdk rootProject.ext.compileSdkVersion
7979

@@ -85,7 +85,6 @@ android {
8585
versionCode 1
8686
versionName "1.0"
8787
}
88-
8988
signingConfigs {
9089
debug {
9190
storeFile file('debug.keystore')
@@ -112,13 +111,9 @@ dependencies {
112111
// The version of react-native is set by the React Native Gradle Plugin
113112
implementation("com.facebook.react:react-android")
114113

115-
implementation(project(':rncamerakit'))
116-
117114
if (hermesEnabled.toBoolean()) {
118115
implementation("com.facebook.react:hermes-android")
119116
} else {
120117
implementation jscFlavor
121118
}
122119
}
123-
124-
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

example/android/app/src/main/java/com/example/reactnativecamerakit/MainApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
99
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
1213
import com.facebook.soloader.SoLoader
1314

1415
import com.rncamerakit.RNCameraKitPackage
@@ -21,7 +22,6 @@ class MainApplication : Application(), ReactApplication {
2122
PackageList(this).packages.apply {
2223
// Packages that cannot be autolinked yet can be added manually here, for example:
2324
// add(MyReactNativePackage())
24-
add(RNCameraKitPackage());
2525
}
2626

2727
override fun getJSMainModuleName(): String = "index"
@@ -37,7 +37,7 @@ class MainApplication : Application(), ReactApplication {
3737

3838
override fun onCreate() {
3939
super.onCreate()
40-
SoLoader.init(this, false)
40+
SoLoader.init(this, OpenSourceMergedSoMapping)
4141
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
4242
// If you opted-in for the New Architecture, we load the native entry point for this app.
4343
load()

0 commit comments

Comments
 (0)