Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules/
lib/
example/
smart_investing_react_native/
android/build/
ios/build/
*.d.ts
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
root: true,
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
babelOptions: {
configFile: false,
babelrc: false,
presets: ['@babel/preset-react'],
},
},
extends: ['@react-native-community', 'prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error',
},
env: {
jest: true,
},
};
49 changes: 49 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Lint & Format Check

on:
pull_request:
push:
branches:
- prod
- development

jobs:
lockfile-check:
name: Lockfile Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check for package-lock.json
run: |
if [ -f "package-lock.json" ]; then
echo "::error::package-lock.json detected! This project uses Yarn v1. Please remove package-lock.json and use 'yarn install' instead of 'npm install'."
exit 1
fi
echo "✓ No package-lock.json found. Using Yarn as expected."

lint:
name: ESLint & Prettier
runs-on: ubuntu-latest
needs: lockfile-check

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run ESLint
run: yarn lint

- name: Check Prettier formatting
run: yarn format:check
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
with:
node-version: "25.x"
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: yarn install --frozen-lockfile
- run: npm publish
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules/
lib/
example/
smart_investing_react_native/
android/build/
ios/build/
*.d.ts
*.lock
*.md
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"semi": true,
"bracketSpacing": true
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [7.1.0](https://github.com/smallcase/react-native-smallcase-gateway/compare/v7.0.1...v7.1.0) (2026-01-19)


### Bug Fixes

* introduce sanitizeBrokerList utility and update broker list handling ([50c3bcf](https://github.com/smallcase/react-native-smallcase-gateway/commit/50c3bcf859d6f3355d9f871eff2f7c2acb6b3c66))

### [7.0.1](https://github.com/smallcase/react-native-smallcase-gateway/compare/v7.0.0...v7.0.1) (2026-01-14)


Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+' // From node_modules
implementation 'com.smallcase.gateway:sdk:6.0.1'
implementation 'com.smallcase.loans:sdk:4.0.0'
implementation 'com.smallcase.loans:sdk:5.0.0'
implementation "androidx.core:core-ktx:1.3.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
Expand Down
Loading