Guardsquare / appsweep-gradle

This Gradle plugin can be used to continuously integrate app scanning using AppSweep into your Android app build process
http://guardsquare.com/appsweep-mobile-application-security-testing
Apache License 2.0
47 stars 3 forks source link

Moshi JsonAdapter issue #2

Closed gkaradagan closed 1 year ago

gkaradagan commented 2 years ago

Hi, When I try to run ':app:uploadToAppSweepBetaDebug' task, I get an error below

titze commented 2 years ago

Hi @gkaradagan,

is this the full stacktrace you are seeing?

Is the project available somewhere so that we can try to recreate the problem locally?

Best regards, Dennis

gkaradagan commented 2 years ago

Caused by: java.lang.NoSuchMethodError: 'com.squareup.moshi.Moshi$Builder com.squareup.moshi.Moshi$Builder.addLast(com.squareup.moshi.JsonAdapter$Factory)' at com.guardsquare.appsweep.gradle.AppSweepTask.uploadFile(AppSweepTask.kt:75) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)

titze commented 2 years ago

Thanks! We identified the bug, and are working on a fix.

titze commented 2 years ago

Hi @gkaradagan,

what we thought was the root cause of the problem turned out to be a dead end.

As of now, we are not able to reproduce the problem on our end. Could you share the project here, or with me directly?

gkaradagan commented 2 years ago

@titze Sorry, I can not share the project with anyone :( We installed the application manually on the website, it is currently solving our problem. We follow the new updates of the library.

titze commented 2 years ago

@gkaradagan is it possible to share some information, or none at all?

To maybe reproduce this, we would be interested in the build.gradle files. If this is not possible, could you tell us:

gkaradagan commented 2 years ago

Hi @titze,

We are using these plugins;

apply plugin: 'org.jetbrains.changelog' apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' apply plugin: 'com.google.firebase.appdistribution' apply plugin: 'com.apollographql.apollo' apply plugin: 'com.google.firebase.crashlytics' apply from: 'ci.gradle' apply from: 'localization.gradle' apply from: "../gradle/ktlint.gradle" apply from: "../gradle/detekt.gradle"

I hope that this helps you to find out the bug

titze commented 1 year ago

Hi @gkaradagan, sorry for the late reply. We did several updates in the meanwhile, would it be possible to try again with the latest version?

gkaradagan commented 1 year ago

Hi @titze ,

Unfortunately, It gives the same error :) The problem may occur because of our gradle file. We need to refactor it. Then I will write again.