Skip to content

Commit

Permalink
Merge branch 'main' into improveStopFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Aug 31, 2024
2 parents f10ae49 + d4b0c30 commit 69082f4
Show file tree
Hide file tree
Showing 61 changed files with 43,428 additions and 19,732 deletions.
27 changes: 3 additions & 24 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
module.exports = {
root: true,
extends: ['@react-native-community', 'prettier'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import-helpers'],
rules: {
'import-helpers/order-imports': [
'warn',
{
newlinesBetween: 'always', // new line between groups
groups: [
['/^react/'],
'module',
'/^../hooks/',
'/^../utils/',
'/^../interfaces/',
['parent', 'sibling', 'index'],
],
alphabetize: { order: 'asc', ignoreCase: true },
},
],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['off'],
'react-hooks/exhaustive-deps': 'off',
},
};
extends: '@react-native',
};

39 changes: 39 additions & 0 deletions .github/workflows/build-for-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Android Build

on: push

jobs:
build-for-android:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
cache: 'gradle'


- name: npm install for SDK
run: npm install

- name: npm install for example
run: |
cd example
npm install
cd ..
- name: Build for Android
run: |
cd example
npm run build:android
cd ..
46 changes: 46 additions & 0 deletions .github/workflows/build-for-ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: iOS Build

on: push

jobs:
build-for-ios:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4'
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Setup cocoapods
uses: maxim-lobanov/setup-cocoapods@v1
with:
version: 1.15.2

- name: npm install for SDK
run: npm install

- name: npm install for example
run: |
cd example
npm install
cd ..
- name: Pod Install for iOS
run: |
cd example/ios
pod install
cd ../..
- name: Build for iOS Simulator
run: |
cd example
npm run build:ios
cd ..
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- name: checkout
uses: actions/[email protected]
- name: installation of node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: publish
Expand Down
68 changes: 39 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
#
.DS_Store

# XDE
.expo/

# VSCode
.vscode/
jsconfig.json

# Xcode
#
build/
Expand All @@ -27,38 +20,55 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
**/.xcode.env.local

# Android/IJ
# Android/IntelliJ
#
.classpath
.cxx
.gradle
build/
.idea
.project
.settings
.gradle
local.properties
android.iml

# Cocoapods
#
example/ios/Pods
*.iml
*.hprof
.cxx/
*.keystore
!debug.keystore

# node.js
#
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output

# Bundle artifact
*.jsbundle

# Ruby / CocoaPods
**/Pods/
/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# Expo
.expo/*
# testing
/coverage

# generated by bob
lib/
# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
};
5 changes: 5 additions & 0 deletions example/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
root: true,
extends: '@react-native',
};

9 changes: 9 additions & 0 deletions example/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'

55 changes: 0 additions & 55 deletions example/android/app/BUCK

This file was deleted.

Loading

0 comments on commit 69082f4

Please sign in to comment.