-
Notifications
You must be signed in to change notification settings - Fork 0
refactor #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
refactor #12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR is a major refactor of the Radar SDK for Unity that significantly changes the API design and implementation. The refactor removes legacy code, introduces WebGL support, and modernizes the SDK structure with event-driven architecture.
- Event-driven architecture replaces callback-based approach for better maintainability
- Complete overhaul of the platform adapter pattern with unified callback handling
- Extensive cleanup of legacy configuration and management classes
Reviewed Changes
Copilot reviewed 215 out of 595 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Assets/Radar/Scripts/Radar.cs | Simplified main API with event-based TokenUpdated/Log/Error and removed legacy timeout/caching logic |
| Assets/Radar/Scripts/iOS/IosAdapter.cs | Comprehensive rewrite using unified callback system and task-based async patterns |
| Assets/Radar/Scripts/Android/AndroidAdapter.cs | Refactored to use generic callback proxy pattern and simplified initialization |
| Assets/Radar/Scripts/Web/WebAdapter.cs | New WebGL platform adapter with JavaScript interop support |
| Assets/Radar/Scripts/Models/* | Added comprehensive data models for Events, Users, Places, and other SDK entities |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| @@ -1,5 +1,5 @@ | |||
| fileFormatVersion: 2 | |||
| guid: f86f79f6bcafa234aaf4dc36c0a9ae11 | |||
| guid: 12345678901234567890123456789012 | |||
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GUID appears to be a placeholder value (all sequential digits). Unity meta files should have unique randomly generated GUIDs to prevent asset conflicts.
| guid: 12345678901234567890123456789012 | |
| guid: 8f3a1c2e4b5d6f7890ab1c2d3e4f5a6b |
| @@ -1,5 +1,5 @@ | |||
| fileFormatVersion: 2 | |||
| guid: 4c7c83e74272a0f488f945fde17b78af | |||
| guid: 12345678901234567890123456789014 | |||
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GUID appears to be a placeholder value (all sequential digits). Unity meta files should have unique randomly generated GUIDs to prevent asset conflicts.
| guid: 12345678901234567890123456789014 | |
| guid: 8f3c2e1b4a5d6c7e8f9a0b1c2d3e4f56 |
| @@ -0,0 +1,26 @@ | |||
| fileFormatVersion: 2 | |||
| guid: 12345678901234567890123456789013 | |||
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GUID appears to be a placeholder value (all sequential digits). Unity meta files should have unique randomly generated GUIDs to prevent asset conflicts.
| guid: 12345678901234567890123456789013 | |
| guid: 8f3c1a2b4e5d6f7890ab1c2d3e4f5a6b |
| @@ -1,5 +1,5 @@ | |||
| fileFormatVersion: 2 | |||
| guid: ed5aa8c280aaea546b9a2e1e3d972cb3 | |||
| guid: 1e1da1875e007439a93c9812c4c784b1 | |||
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GUID has changed from the original value, which may break existing references to this folder in Unity projects.
| guid: 1e1da1875e007439a93c9812c4c784b1 | |
| guid: ORIGINAL_GUID_VALUE |
No description provided.