Skip to content

Upgrade freeRASP SDK to latest versions [17.0.0 on Android & 6.14.0 on iOS]#6

Open
mobilearmor wants to merge 7 commits intomainfrom
feature/upgrade-freeRASP-SDK-17
Open

Upgrade freeRASP SDK to latest versions [17.0.0 on Android & 6.14.0 on iOS]#6
mobilearmor wants to merge 7 commits intomainfrom
feature/upgrade-freeRASP-SDK-17

Conversation

@mobilearmor
Copy link
Collaborator

Here is high level summary of changes

  1. Update the maven dependency in build.gradle (com.aheaditec.talsec.security:TalsecSecurity-Community:17.0.0)
  2. Implement the additional callbacks in Controller.java
  3. Implement the additional callbacks in NativeBridge.swift
  4. Talsec.cs updated to handle the new calls from number 2 & 3 above
  5. Updated sample game Monoscript to reflect the above new changes

Pending

  1. Once reviewed, create the release artifact and publish.
  2. Update documentation (Its currently outdated and shows examples of old SDK code snippets) - https://docs.talsec.app/freerasp/integration/unity

…llbacks (onMultiInstance, onUnsecureWiFi, onTimeSpoofing, onLocationSpoofing)
Copy link
Contributor

@martinzigrai martinzigrai left a comment

Choose a reason for hiding this comment

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

The start method now requires a new parameter: TalsecMode.

You can find an example/reference here: https://github.com/talsec/Free-RASP-ReactNative/blob/3672228776c1c4cdf43b568d883182938e47d585/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt#L75

I also suggest including the flavor-specific .xcframework directly as a release attachment. @tompsota can tell you where to find the specific .xcframework.

compileOnly files('libs/unity-classes.jar')
// freeRASP SDK
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:15.1.0'
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:17.0.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

The plugin import is using the incorrect flavor. Could you please change it to com.aheaditec.talsec.security:TalsecSecurity-Community-Unity:17.0.0?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tompsota Where can i find flavor-specific .xcframework ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay. I have updated the Android dependency to

com.aheaditec.talsec.security:TalsecSecurity-Community-Unity:17.0.1

& for iOS. The framework is added by the developer after they export their project to xcode. We have this section in the document that guides them (see link below). Hence, we need to update the link so it points to the unreal flavour

https://docs.talsec.app/freerasp/integration/unity?utm_source=github#add-freerasp

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also, I have updated this PR title to indicate we are integrating v6.13.0 for iOS SDK

@martinzigrai @tompsota

Copy link
Member

Choose a reason for hiding this comment

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

In that case for iOS, we have to publish the Unity .xcframework somewhere.
I suggest to add it as a release asset, so they can download it directly as a .zip, similarly to the dSYMs @mobilearmor

@mobilearmor mobilearmor changed the title Upgrade freeRASP SDK to latest versions [17.0.0 on Android & 6.14.0 on iOS] Upgrade freeRASP SDK to latest versions [17.0.0 on Android & 6.13.0 on iOS] Jan 21, 2026
@mobilearmor mobilearmor changed the title Upgrade freeRASP SDK to latest versions [17.0.0 on Android & 6.13.0 on iOS] Upgrade freeRASP SDK to latest versions [17.0.0 on Android & 6.14.0 on iOS] Jan 23, 2026
@mobilearmor
Copy link
Collaborator Author

Hi Martin,

I have made number of changes to the plugin. Here is a high level summary

  1. I have upgraded the freeRASP iOS SDK to 6.14.0. (include time spoofing callback). I have updated the PR's title to reflect the same
  2. The xcframework will be added by the developer and we have a section in the document that explains how to do this. https://docs.talsec.app/freerasp/integration/unity#add-freerasp
  3. Implemented the new callback timeSpoofing
  4. NativeBridge.swift now implements RaspExecutionState. onAllChecksFinished call is propagated to c# similar to how other threat callbacks are propagated
  5. From the developers side, a new callback is added to get RASP execution state.
    TalsecPlugin.Instance.setRASPStatusCallback(this);. See the updated sample here

Can you please review and let me know if I missed anything or if there is improper implementation

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.

3 participants