Skip to content

Commit 6957f28

Browse files
backmerged with sourav/16kb
2 parents d9b50d9 + 7977754 commit 6957f28

File tree

8 files changed

+11227
-1226
lines changed

8 files changed

+11227
-1226
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
149149
dependencies {
150150
//noinspection GradleDynamicVersion
151151
implementation 'com.facebook.react:react-native:+' // From node_modules
152-
implementation 'com.smallcase.gateway:sdk:4.4.0'
152+
implementation 'com.smallcase.gateway:sdk:4.4.1'
153153
implementation 'com.smallcase.loans:sdk:3.1.1'
154154
implementation "androidx.core:core-ktx:1.3.1"
155155
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

scripts/reset.sh

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
ROOT_DIR=$(cd "$(dirname "$0")/.." && pwd)
5+
6+
clean_dir() {
7+
local dir="$1"
8+
echo "[reset] Cleaning $dir"
9+
rm -rf "$dir/node_modules" || true
10+
rm -f "$dir/yarn.lock" "$dir/package-lock.json" "$dir/pnpm-lock.yaml" || true
11+
rm -rf "$dir/lib" "$dir/build" "$dir/dist" || true
12+
rm -rf "$dir/.gradle" "$dir/.idea" "$dir/.kotlin" "$dir/.cxx" || true
13+
rm -rf "$dir/.turbo" "$dir/.expo" "$dir/.parcel-cache" "$dir/.cache" || true
14+
}
15+
16+
clean_android() {
17+
local android_dir="$1/android"
18+
if [ -d "$android_dir" ]; then
19+
echo "[reset] Cleaning Android at $android_dir"
20+
rm -rf "$android_dir/.gradle" "$android_dir/.idea" "$android_dir/.cxx" || true
21+
rm -rf "$android_dir/app/build" "$android_dir/build" || true
22+
rm -rf "$android_dir/**/build" || true
23+
fi
24+
}
25+
26+
clean_ios() {
27+
local ios_dir="$1/ios"
28+
if [ -d "$ios_dir" ]; then
29+
echo "[reset] Cleaning iOS at $ios_dir"
30+
rm -rf "$ios_dir/build" "$ios_dir/Pods" "$ios_dir/Podfile.lock" || true
31+
# DerivedData
32+
if command -v xcrun >/dev/null 2>&1; then
33+
DERIVED=$(xcrun --show-sdk-platform-path 2>/dev/null || true)
34+
fi
35+
rm -rf "$HOME/Library/Developer/Xcode/DerivedData" || true
36+
fi
37+
}
38+
39+
clean_watchman() {
40+
if command -v watchman >/dev/null 2>&1; then
41+
echo "[reset] watchman watch-del-all"
42+
watchman watch-del-all || true
43+
fi
44+
}
45+
46+
clean_metro() {
47+
echo "[reset] Cleaning Metro cache"
48+
rm -rf "$HOME/.metro" "$TMPDIR/metro-*" 2>/dev/null || true
49+
}
50+
51+
clean_gradle_cache() {
52+
echo "[reset] Cleaning Gradle caches (local project only)"
53+
rm -rf "$ROOT_DIR/.gradle" || true
54+
}
55+
56+
main() {
57+
clean_watchman
58+
clean_metro
59+
clean_gradle_cache
60+
61+
# Library root
62+
clean_dir "$ROOT_DIR"
63+
clean_android "$ROOT_DIR"
64+
clean_ios "$ROOT_DIR"
65+
66+
# Example app
67+
EXAMPLE="$ROOT_DIR/smart_investing_react_native"
68+
if [ -d "$EXAMPLE" ]; then
69+
clean_dir "$EXAMPLE"
70+
clean_android "$EXAMPLE"
71+
clean_ios "$EXAMPLE"
72+
fi
73+
74+
echo "[reset] Done"
75+
}
76+
77+
main "$@"

smart_investing_react_native/ios/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Resolve react_native_pods.rb with node to allow for hoisting
2+
ENV['RCT_NEW_ARCH_ENABLED'] = '1'
23
require Pod::Executable.execute_command('node', ['-p',
34
'require.resolve(
45
"react-native/scripts/react_native_pods.rb",

0 commit comments

Comments
 (0)