Skip to content

Fraud sdk configuration#546

Draft
ShiCheng-Lu wants to merge 9 commits into
masterfrom
shicheng/ping-2
Draft

Fraud sdk configuration#546
ShiCheng-Lu wants to merge 9 commits into
masterfrom
shicheng/ping-2

Conversation

@ShiCheng-Lu

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 3, 2026 19:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the SDK to support fraud/ping server configuration during initialization and wires the Fraud framework into the example project.

Changes:

  • Add pingServerConfiguration to RadarMeta and parse it from config responses.
  • Trigger RadarSDKFraud startup during Radar initialization when ping server configuration is present.
  • Update the Example Xcode project to link/embed RadarSDKFraud.framework (and refactor framework references).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
RadarSDKFraud Bumps the Fraud submodule pointer to a newer commit.
RadarSDK/RadarMeta.m Parses pingServerConfiguration from the meta dictionary.
RadarSDK/RadarMeta.h Exposes pingServerConfiguration on RadarMeta.
RadarSDK/Radar.m Starts Fraud SDK based on meta config; adds logging/imports.
RadarSDK/Include/RadarSDKFraudProtocol.h Adds a +start: API for Fraud config initialization.
Example/Example.xcodeproj/project.pbxproj Links/embeds RadarSDKFraud.framework and restructures project references.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread RadarSDK/Radar.m Outdated
Comment thread RadarSDK/Radar.m Outdated
}
if (config.meta.pingServerConfiguration) {
Class RadarSDKFraud = NSClassFromString(@"RadarSDKFraud");
if (RadarSDKFraud != nil) {

Copilot AI Mar 3, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dynamically calls +start: on a Class without verifying the selector exists. If a class named RadarSDKFraud is present but doesn’t implement +start:, this will raise an unrecognized selector exception. Add a respondsToSelector:@selector(start:) check (and optionally confirm conformance to RadarSDKFraudProtocol) before calling.

Suggested change
if (RadarSDKFraud != nil) {
if (RadarSDKFraud != nil && [RadarSDKFraud respondsToSelector:@selector(start:)]) {

Copilot uses AI. Check for mistakes.
Comment thread RadarSDK/RadarMeta.h Outdated
Comment thread Example/Example.xcodeproj/project.pbxproj
@ShiCheng-Lu ShiCheng-Lu marked this pull request as draft March 13, 2026 14:26
Comment thread RadarSDK/Radar.m Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants