# Create a fresh React Native project
npx react-native init TestGNSS --version 0.72.0
cd TestGNSS
# Install your updated library
npm install ../path/to/your/gnss-library
# Test basic import
# Add to App.js:
import { GnssStatusChecker } from 'react-native-gnss-status-checker';# Clean build
cd android && ./gradlew clean && cd ..
# Debug build
npx react-native run-android
# Release build
cd android && ./gradlew assembleRelease- Test on Android device with GPS
- Verify permissions work
- Test
getGNSSStatus()method - Test
startListening()andstopListening() - Verify satellite data reception
- Test on Android API 24 (minimum)
- Test on Android API 34 (target)
- Test with location services disabled
- Test without GPS hardware (emulator)
- TypeScript compilation
- Library build process
- Gradle configuration syntax
- React Native module structure
- No deprecated method usage
- Actual device integration
- Consumer app build process
- Runtime GNSS functionality
- Cross-device compatibility
# 1. Build library
yarn prepack
# 2. Create test project
npx react-native init GNSSTest
cd GNSSTest
npm install file:../path/to/gnss-library
# 3. Test build
npx react-native run-android
# 4. Runtime test
# Add this to App.js and run:
import { GnssStatusChecker } from 'react-native-gnss-status-checker';
useEffect(() => {
GnssStatusChecker.getGNSSStatus()
.then(console.log)
.catch(console.error);
}, []);If issues arise:
- Gradle conflicts: Use the workaround in UPGRADE_GUIDE.md
- JVM issues: Verify consumer app uses JDK 17
- Build failures: Clean project and retry
- Runtime errors: Check Android permissions and device capabilities