It’s fantastic to see that you’re using AppSweep to scan your app for security vulnerabilities.
There are various ways to integrate the AppSweep Gradle plugin into your project. Based on the scenario you described, I recommend trying the following structure in your Gradle file.
To get started, it would be a good idea to include this block of code at the beginning of your application module’s build.gradle file.
plugins {
id "com.guardsquare.appsweep" version "latest.release" apply false
}
After adding the block, you can add any other plugins you want. Finally, apply the AppSweep Gradle plugin.
// PLEASE ADD ALL OTHER PLUGINS LIKE ANDROID AND ... IN HERE
apply plugin: "com.guardsquare.appsweep"
In the end, your Gradle file should have a structure like the following sample.
plugins {
id "com.guardsquare.appsweep" version "latest.release" apply false
}
apply plugin: "com.android.application"
// ADD OTHER PLUGINS
apply plugin: "com.guardsquare.appsweep"
Should you have any further questions, please don’t hesitate to write to us.
What went wrong:
A problem occurred evaluating project ‘:onfido_react-native-sdk’.
Failed to apply plugin ‘com.android.internal.library’.
Gradle#projectsEvaluated(Action) on build ‘PROJECT_NAME’ cannot be executed in the current context.
We are sorry to hear that you are experiencing a problem. We will investigate the issue and respond back to you as soon as possible. Meanwhile, could you please try the steps below and let us know if it solves the issue?
Clean your build files.
Clean your node_modules.
Clean your Gradle cache.
If you are using Android Studio, kindly invalidate your Android Studio cache.
Clean other caches that you may have in your project.
Rebuild your project.
Please inform us if these steps resolve the issue.
we will investigate this, at the moment we are not sure yet what the problem is.
Just a heads up though: at as of now, the scanning capabilities of AppSweep for ReactNative apps are limited. If you want to see what AppSweep can find in your app, I would suggest you build the apk without Gradle and upload that manually (if you haven’t done so).