The app supports multiple build environments with different configurations:
.env.dev- Development environment.env.prod- Production environment
bash APP_CONFIG=development|production BASE_URL=http://your-api-base-url
- Development:
devflavor with.devapp ID suffix - Production:
prodflavor with standard app ID
- Node.js: Version 18 or higher
- React Native CLI: Latest version
- Android Studio: For Android development
- Xcode: For iOS development (macOS only)
- Java Development Kit (JDK): Version 11 or higher
- Clone the repository:
bash git clone cd IMIS-SMIS
- Install dependencies:
# Using Yarn (recommended)
yarn install
# Using npm
npm install- Install iOS dependencies (iOS only):
bash cd ios && pod install && cd ..
- Configure environment:
# Copy environment files and configure
cp example.env.dev .env.dev
cp example.env.prod .env.prod
# Edit the files with your API endpoints# Debug build with dev flavor
yarn android:dev
# or
npm run android:dev
# Release build with dev flavor
yarn android:dev-release
# or
npm run android:dev-releasebash
yarn ios
npm run ios
# Debug build with prod flavor
yarn android:prod
# or
npm run android:prod
# Release build with prod flavor
yarn android:prod-release
# or
npm run android:prod-release# Start Metro bundler
yarn start
# or
npm start
# Reset cache if needed
yarn start --reset-cacheThe app uses Android product flavors for different environments:
- App Name: "Base IMIS Dev"
- Application ID:
com.baseimis.dev - Environment: Development settings
- Debug: Enabled with debug keystore
- App Name: "Base IMIS"
- Application ID:
com.baseimis - Environment: Production settings
- Release: Optimized build with ProGuard
- Debug: Development builds with debugging enabled
- Release: Optimized builds for distribution