Skip to content

Conversation

indrajit-roy-sc
Copy link
Collaborator

@indrajit-roy-sc indrajit-roy-sc commented Jul 20, 2025

Note

Added smart investing app inside the sdk itself, converting the repo into a monorepo

Summary

This PR upgrades the React Native version from the previous version to 0.79.4 and completely replaces the old example app with a new comprehensive smart investing application.

Key Changes

  • React Native Upgrade: Updated to React Native 0.79.4 with all necessary configuration changes
  • Native iOS Module Fix: Updated ios/SmallcaseGateway.m with critical fixes for SDK setup functionality
  • Complete Example App Replacement: Removed the entire old example app and replaced it with a new smart investing React Native app
  • New Smart Investing App Features:
    • Holdings management and display
    • Smart investing functionality (SMT)
    • Loan services integration
    • Lead generation screens
    • Environment and cart context providers
    • Comprehensive API integration layer

Critical Native Module Updates

  • iOS SmallcaseGateway.m: Fixed setup SDK function implementation that was previously not working correctly
  • Podspec Configuration: Updated dependency version to match current production values
  • iOS Old Module Cleanup: Removed deprecated ios_old/ directory containing outdated implementation

Technical Updates

  • Android Configuration: Updated build.gradle, gradle properties, and Android manifest configurations for 0.79.4 compatibility
  • iOS Configuration: Updated iOS project settings, Podfile dependencies, and privacy configurations
  • Dependencies: Added new dependencies like react-native-gesture-handler and other required packages
  • Native Module Compatibility: Ensured native modules work properly with React Native 0.79.4

File Changes

  • Removed: Complete old example app directory structure (~4,500 lines removed)
  • Added: New smart investing app with comprehensive screen implementations, API services, models, and components (~2,800 lines added)
  • Updated: Native iOS implementation (ios/SmallcaseGateway.m) and podspec configuration
  • Cleaned: Removed deprecated iOS module files from ios_old/ directory

Testing

  • ✅ Android builds successfully with React Native 0.79.4
  • ✅ iOS builds successfully with updated configurations
  • ✅ Smart investing app functionality verified
  • ✅ Native module setup SDK function now working correctly

This upgrade modernizes the codebase, fixes critical native module issues, and provides a more comprehensive example implementation showcasing the SmallcaseGateway SDK capabilities.

aaditya-smallcase and others added 7 commits May 30, 2025 15:26
Use react-native 0.79.4 to setup the app
Updated the version of react-native-screens to ^3.34.0 in package.json and modified the Android build.gradle to include jcenter in the repositories list. Also, adjusted gradle.properties to disable new architecture and added artifactory credentials.
Swapped the API categories in PrivacyInfo.xcprivacy and updated the project.pbxproj to include PrivacyInfo.xcprivacy in the Resources build phase. Adjusted build settings to include new flags and development team information.
Added multiple screens and components for the smart investing app, including ConnectScreen, HoldingsScreen, and SmtScreen. Introduced context providers for environment and SST cart management. Integrated API functions for handling user interactions and data fetching. Updated package.json to include react-native-gesture-handler and other dependencies. Enhanced the app's structure with new models and services for better data management.
Add cdn url for cocoapods specs
@dporwal-shipit dporwal-shipit deleted the upgrade/react-native-0.79.4 branch July 29, 2025 19:34
@indrajit-roy-sc indrajit-roy-sc restored the upgrade/react-native-0.79.4 branch July 29, 2025 19:57
We had changed parameter types for isLeprechaunActive, isAmoEnabled, and showLoginCta from BOOL* to BOOL in setConfigEnvironment and triggerLeadGenWithLoginCta methods for supporting the new architecture.

We are reverting these changes so that we can first thoroughly validate these changes against both the old/new ARCHS and then proceed.
@indrajit-roy-sc indrajit-roy-sc merged commit 180018e into development Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants