Guide for AI Coding Agents to Integrate Luciq on Android
Guide for AI Coding Agents to Integrate Luciq on Android
⚠️ UNIVERSAL EXECUTION RULES ⚠️
Critical Rules - Apply to ALL Platforms:
Execution Guidelines:
Official Documentation:
Integration Workflow Overview
Step 1 — Collect Required Information [MANDATORY]
1A: Get App Token
1B: Determine Integration Method
1C: Apply Default Configuration (Inform + Opt-in)
Step 2 — Add SDK Dependency [MANDATORY - Platform-Specific]
Pre-Dependency Critical Step:
Step 3 — Initialize the SDK [MANDATORY - Platform-Specific]
Invocation Events Configuration
Step 4 — Configure Network Logging [MANDATORY]
Concepts (Platform-Agnostic):
Step 5 — Mask Repro Step Screenshots [MANDATORY]
Concepts (Platform-Agnostic):
Step 6 — Upload Symbolication Files [MANDATORY]
Concepts (Platform-Agnostic):
iOS (dSYM Upload):
Android (Mapping File Upload):
Customization Options:
🛑 MANDATORY STEPS COMPLETE - STOP HERE
Optional Steps Menu
Optional Step 1 — Configure Repro Steps Mode
Concepts (Platform-Agnostic):
Optional Step 2 — Add User Identification
Concepts (Platform-Agnostic):
Step 3A: Identify Login Flows
Step 3B: Identify Logout Flows
Step 7 — Verification & Testing (Wrap up & validate) [USER-INITIATED ONLY]
After Mandatory Steps Complete
1. Build Verification [ONLY WHEN USER REQUESTS]
Error
Likely Cause
Solution
2. Runtime Testing [MANUAL]
3. Final Summary [DISPLAY AFTER BUILD SUCCESS]
Error Handling & Troubleshooting
Common Issues Across Platforms:
Extension Points for Platform Guides
Required Sections:
Reference Format:
Luciq SDK Integration - Android Guide
⚠️ ANDROID-SPECIFIC CRITICAL RULES ⚠️
Package and Import:
Android-Specific Execution Rules:
Official Android Documentation:
ANDROID-SPECIFIC IMPLEMENTATION DETAILS
Pre-Integration Checklist
Step 1 — Collect Required Information [MANDATORY]
Android-Specific Implementation
1C: Apply Default Configuration (Inform + Opt-in)
1D: APM (Application Performance Monitoring)
Step 2 — Add the Luciq SDK Dependency [MANDATORY]
Android Implementation
Part B: Add Dependencies
Step 3 — Initialize the SDK [MANDATORY]
Android Implementation
Part C: APM Configuration (If config_mode == default OR apm_enabled == true)
config_mode == default OR apm_enabled == true)Step 3B — Configure Network Interception [MANDATORY]
Android Implementation (Unified Network Interception)
Configuration Settings
Setting
Default
Description
Part A: Enable Network Interception (Gradle Plugin)
Part B: Selective Library Instrumentation (Optional)
Part C: Mask Sensitive Data
Step 4 — Mask Repro Step Screenshots [MANDATORY]
Android Implementation
Step 5 — Upload Mapping Files [MANDATORY]
Android Implementation
🛑 MANDATORY STEPS COMPLETE
Optional Step 1 — Configure Repro Steps Mode
Android Implementation
Optional Step 2 — Add User Identification
Android Implementation - Login Flow
Android Implementation - Logout Flow
Step 6 — Verification & Testing [WRAP UP & VALIDATE]
Android Build Verification
Error
Cause
Fix
Android Runtime Testing
Android-Specific Troubleshooting
Issue: "compileSdkVersion must be >= 29"
Issue: Network logs not appearing
Issue: Application class not registered
Issue: User identification error
Issue: Screenshots not masking
Quick Reference
Java Equivalents
Last updated