Skip to content

Commit 448a75e

Browse files
Merge branch 'main' into fix/issue-6466
2 parents af53575 + d4b0c30 commit 448a75e

Some content is hidden

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

61 files changed

+34126
-34156
lines changed

.eslintrc.js

+3-24
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
module.exports = {
22
root: true,
3-
extends: ['@react-native-community', 'prettier'],
4-
parser: '@typescript-eslint/parser',
5-
plugins: ['@typescript-eslint', 'import-helpers'],
6-
rules: {
7-
'import-helpers/order-imports': [
8-
'warn',
9-
{
10-
newlinesBetween: 'always', // new line between groups
11-
groups: [
12-
['/^react/'],
13-
'module',
14-
'/^../hooks/',
15-
'/^../utils/',
16-
'/^../interfaces/',
17-
['parent', 'sibling', 'index'],
18-
],
19-
alphabetize: { order: 'asc', ignoreCase: true },
20-
},
21-
],
22-
'no-unused-vars': 'off',
23-
'@typescript-eslint/no-unused-vars': ['off'],
24-
'react-hooks/exhaustive-deps': 'off',
25-
},
26-
};
3+
extends: '@react-native',
4+
};
5+
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Android Build
2+
3+
on: push
4+
5+
jobs:
6+
build-for-android:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Setup node
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: 20
15+
registry-url: 'https://registry.npmjs.org'
16+
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: 17
21+
distribution: 'adopt'
22+
cache: 'gradle'
23+
24+
25+
- name: npm install for SDK
26+
run: npm install
27+
28+
- name: npm install for example
29+
run: |
30+
cd example
31+
npm install
32+
cd ..
33+
34+
- name: Build for Android
35+
run: |
36+
cd example
37+
npm run build:android
38+
cd ..
39+

.github/workflows/build-for-ios.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: iOS Build
2+
3+
on: push
4+
5+
jobs:
6+
build-for-ios:
7+
runs-on: macos-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Xcode
12+
uses: maxim-lobanov/setup-xcode@v1
13+
with:
14+
xcode-version: '15.4'
15+
- name: Setup node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
registry-url: 'https://registry.npmjs.org'
20+
21+
- name: Setup cocoapods
22+
uses: maxim-lobanov/setup-cocoapods@v1
23+
with:
24+
version: 1.15.2
25+
26+
- name: npm install for SDK
27+
run: npm install
28+
29+
- name: npm install for example
30+
run: |
31+
cd example
32+
npm install
33+
cd ..
34+
35+
- name: Pod Install for iOS
36+
run: |
37+
cd example/ios
38+
pod install
39+
cd ../..
40+
41+
- name: Build for iOS Simulator
42+
run: |
43+
cd example
44+
npm run build:ios
45+
cd ..
46+

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
- name: checkout
1414
uses: actions/[email protected]
1515
- name: installation of node
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: 14
18+
node-version: 20
1919
registry-url: 'https://registry.npmjs.org'
2020

2121
- name: publish

.gitignore

+39-29
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
#
33
.DS_Store
44

5-
# XDE
6-
.expo/
7-
8-
# VSCode
9-
.vscode/
10-
jsconfig.json
11-
125
# Xcode
136
#
147
build/
@@ -27,38 +20,55 @@ DerivedData
2720
*.hmap
2821
*.ipa
2922
*.xcuserstate
30-
project.xcworkspace
23+
**/.xcode.env.local
3124

32-
# Android/IJ
25+
# Android/IntelliJ
3326
#
34-
.classpath
35-
.cxx
36-
.gradle
27+
build/
3728
.idea
38-
.project
39-
.settings
29+
.gradle
4030
local.properties
41-
android.iml
42-
43-
# Cocoapods
44-
#
45-
example/ios/Pods
31+
*.iml
32+
*.hprof
33+
.cxx/
34+
*.keystore
35+
!debug.keystore
4636

4737
# node.js
4838
#
4939
node_modules/
5040
npm-debug.log
51-
yarn-debug.log
5241
yarn-error.log
5342

54-
# BUCK
55-
buck-out/
56-
\.buckd/
57-
android/app/libs
58-
android/keystores/debug.keystore
43+
# fastlane
44+
#
45+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
46+
# screenshots whenever they are needed.
47+
# For more information about the recommended setup visit:
48+
# https://docs.fastlane.tools/best-practices/source-control/
49+
50+
**/fastlane/report.xml
51+
**/fastlane/Preview.html
52+
**/fastlane/screenshots
53+
**/fastlane/test_output
54+
55+
# Bundle artifact
56+
*.jsbundle
57+
58+
# Ruby / CocoaPods
59+
**/Pods/
60+
/vendor/bundle/
61+
62+
# Temporary files created by Metro to check the health of the file watcher
63+
.metro-health-check*
5964

60-
# Expo
61-
.expo/*
65+
# testing
66+
/coverage
6267

63-
# generated by bob
64-
lib/
68+
# Yarn
69+
.yarn/*
70+
!.yarn/patches
71+
!.yarn/plugins
72+
!.yarn/releases
73+
!.yarn/sdks
74+
!.yarn/versions

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
presets: ['module:@react-native/babel-preset'],
33
};

example/.eslintrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native',
4+
};
5+

example/Gemfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source 'https://rubygems.org'
2+
3+
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4+
ruby ">= 2.6.10"
5+
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+

example/android/app/BUCK

-55
This file was deleted.

0 commit comments

Comments
 (0)