Skip to content

Commit f4447b6

Browse files
upgrade to 79.2
1 parent 7ac9721 commit f4447b6

12 files changed

Lines changed: 4860 additions & 12659 deletions

.eslintrc.js

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

A0Auth0.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.homepage = package['repository']['baseUrl']
1111
s.license = package['license']
1212
s.authors = package['author']
13-
s.platforms = { :ios => '13.0' }
13+
s.platforms = { :ios => min_ios_version_supported }
1414
s.source = { :git => 'https://github.com/auth0/react-native-auth0.git', :tag => "v#{s.version}" }
1515

1616
s.source_files = 'ios/**/*.{h,m,mm,swift}'

eslint.config.mjs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { fixupConfigRules } from '@eslint/compat';
2+
import { FlatCompat } from '@eslint/eslintrc';
3+
import js from '@eslint/js';
4+
import prettier from 'eslint-plugin-prettier';
5+
import { defineConfig } from 'eslint/config';
6+
import path from 'node:path';
7+
import { fileURLToPath } from 'node:url';
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all,
15+
});
16+
17+
export default defineConfig([
18+
{
19+
extends: fixupConfigRules(compat.extends('@react-native', 'prettier')),
20+
plugins: { prettier },
21+
rules: {
22+
'react/react-in-jsx-scope': 'off',
23+
'prettier/prettier': [
24+
'error',
25+
{
26+
quoteProps: 'consistent',
27+
singleQuote: true,
28+
tabWidth: 2,
29+
trailingComma: 'es5',
30+
useTabs: false,
31+
},
32+
],
33+
},
34+
},
35+
{
36+
ignores: ['node_modules/', 'lib/', 'docs'],
37+
},
38+
]);

example/ios/Podfile

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,20 @@ def find_and_replace_boost_url
1313
end
1414
end
1515

16+
ENV['RCT_NEW_ARCH_ENABLED'] = '1'
17+
18+
1619
# Let the magic happen!
1720
find_and_replace_boost_url
1821

19-
require_relative '../node_modules/react-native/scripts/react_native_pods'
20-
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
22+
# Resolve react_native_pods.rb with node to allow for hoisting
23+
require Pod::Executable.execute_command('node', ['-p',
24+
'require.resolve(
25+
"react-native/scripts/react_native_pods.rb",
26+
{paths: [process.argv[1]]},
27+
)', __dir__]).strip
2128

22-
platform :ios, '16.0'
29+
platform :ios, min_ios_version_supported
2330
prepare_react_native_project!
2431

2532
linkage = ENV['USE_FRAMEWORKS']
@@ -31,26 +38,15 @@ end
3138
target 'Auth0Example' do
3239
config = use_native_modules!
3340

34-
# Flags change depending on the env values.
35-
flags = get_default_flags()
36-
3741
use_react_native!(
3842
:path => config[:reactNativePath],
39-
# Hermes is now enabled by default. Disable by setting this flag to false.
40-
# Upcoming versions of React Native may rely on get_default_flags(), but
41-
# we make it explicit here to aid in the React Native upgrade process.
42-
:hermes_enabled => flags[:hermes_enabled],
43-
:fabric_enabled => flags[:fabric_enabled],
4443
# An absolute path to your application root.
4544
:app_path => "#{Pod::Config.instance.installation_root}/.."
4645
)
4746

4847
post_install do |installer|
4948
react_native_post_install(
5049
installer,
51-
# Set `mac_catalyst_enabled` to `true` in order to apply patches
52-
# necessary for Mac Catalyst builds
53-
:mac_catalyst_enabled => false
5450
)
5551

5652
installer.pods_project.targets.each do |target|

0 commit comments

Comments
 (0)