Skip to content
Draft
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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

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.

### [5.3.1](https://github.com/smallcase/react-native-smallcase-gateway/compare/v5.2.0...v5.3.1) (2025-10-28)


### Bug Fixes

* update loans SDK dependency to beta version for compatibility ([453385c](https://github.com/smallcase/react-native-smallcase-gateway/commit/453385c736ad57a85f255227dc87ef716e15c49a))

### [5.0.2-rc.3](https://github.com/smallcase/react-native-smallcase-gateway/compare/v5.0.2-rc.2...v5.0.2-rc.3) (2025-07-22)

## [5.3.0](https://github.com/smallcase/react-native-smallcase-gateway/compare/v5.2.0...v5.3.0) (2025-10-01)

### [5.0.2-rc.3](https://github.com/smallcase/react-native-smallcase-gateway/compare/v5.0.2-rc.2...v5.0.2-rc.3) (2025-07-22)
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+' // From node_modules
implementation 'com.smallcase.gateway:sdk:4.4.0'
implementation 'com.smallcase.gateway:sdk:4.4.1'
implementation 'com.smallcase.loans:sdk:3.1.1'
implementation "androidx.core:core-ktx:1.3.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-smallcase-gateway",
"title": "React Native Smallcase Gateway",
"version": "5.3.0",
"version": "5.3.1",
"description": "smallcase gateway bindings for react native",
"main": "src/index.js",
"files": [
Expand Down
77 changes: 77 additions & 0 deletions scripts/reset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#!/usr/bin/env bash
set -euo pipefail

ROOT_DIR=$(cd "$(dirname "$0")/.." && pwd)

clean_dir() {
local dir="$1"
echo "[reset] Cleaning $dir"
rm -rf "$dir/node_modules" || true
rm -f "$dir/yarn.lock" "$dir/package-lock.json" "$dir/pnpm-lock.yaml" || true
rm -rf "$dir/lib" "$dir/build" "$dir/dist" || true
rm -rf "$dir/.gradle" "$dir/.idea" "$dir/.kotlin" "$dir/.cxx" || true
rm -rf "$dir/.turbo" "$dir/.expo" "$dir/.parcel-cache" "$dir/.cache" || true
}

clean_android() {
local android_dir="$1/android"
if [ -d "$android_dir" ]; then
echo "[reset] Cleaning Android at $android_dir"
rm -rf "$android_dir/.gradle" "$android_dir/.idea" "$android_dir/.cxx" || true
rm -rf "$android_dir/app/build" "$android_dir/build" || true
rm -rf "$android_dir/**/build" || true
fi
}

clean_ios() {
local ios_dir="$1/ios"
if [ -d "$ios_dir" ]; then
echo "[reset] Cleaning iOS at $ios_dir"
rm -rf "$ios_dir/build" "$ios_dir/Pods" "$ios_dir/Podfile.lock" || true
# DerivedData
if command -v xcrun >/dev/null 2>&1; then
DERIVED=$(xcrun --show-sdk-platform-path 2>/dev/null || true)
fi
rm -rf "$HOME/Library/Developer/Xcode/DerivedData" || true
fi
}

clean_watchman() {
if command -v watchman >/dev/null 2>&1; then
echo "[reset] watchman watch-del-all"
watchman watch-del-all || true
fi
}

clean_metro() {
echo "[reset] Cleaning Metro cache"
rm -rf "$HOME/.metro" "$TMPDIR/metro-*" 2>/dev/null || true
}

clean_gradle_cache() {
echo "[reset] Cleaning Gradle caches (local project only)"
rm -rf "$ROOT_DIR/.gradle" || true
}

main() {
clean_watchman
clean_metro
clean_gradle_cache

# Library root
clean_dir "$ROOT_DIR"
clean_android "$ROOT_DIR"
clean_ios "$ROOT_DIR"

# Example app
EXAMPLE="$ROOT_DIR/smart_investing_react_native"
if [ -d "$EXAMPLE" ]; then
clean_dir "$EXAMPLE"
clean_android "$EXAMPLE"
clean_ios "$EXAMPLE"
fi

echo "[reset] Done"
}

main "$@"
1 change: 1 addition & 0 deletions smart_investing_react_native/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Resolve react_native_pods.rb with node to allow for hoisting
ENV['RCT_NEW_ARCH_ENABLED'] = '1'
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
Expand Down
Loading