A universal module that gets native application information such as its ID, app name, and build version at runtime
Overall
score
98%
{
"context": "This criteria evaluates how well the engineer uses the expo-application package to implement Android device identification functionality, specifically focusing on the proper use of getAndroidId() and platform detection capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses getAndroidId()",
"description": "The getDeviceIdentifier() function imports and calls Application.getAndroidId() from expo-application to retrieve the Android device ID.",
"max_score": 40
},
{
"name": "Platform detection",
"description": "Implementation uses Platform.OS from react-native or similar platform detection to check if the current platform is Android before calling getAndroidId().",
"max_score": 25
},
{
"name": "Error handling",
"description": "The implementation properly handles UnavailabilityError or other exceptions that may be thrown by getAndroidId() on non-Android platforms or when the API is unavailable, returning null as specified.",
"max_score": 25
},
{
"name": "Integration correctness",
"description": "The logAnalyticsEvent() function correctly integrates getDeviceIdentifier() to populate the deviceId field in analytics events, and isAndroidDevice() accurately uses platform detection.",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-expo-application