Nets-mobile-acceptance / Netaxept-Android-SDK

PiA Netaxept Android SDK is a library that provides the native In-App interaction to perform Netaxept payments directly from an app on Android devices while minimizing PCI DSS requirements for you.
31 stars 15 forks source link

Sample app does not compile #21

Closed zoltan-vari closed 3 years ago

zoltan-vari commented 3 years ago

I tried running the native sample application (PiaSample) but I get a number of compiler errors because the compiler cannot find several types:

nets/PiaSample/app/src/main/java/eu/nets/pia/sample/ui/activity/LoginActivity.java:49: error: cannot find symbol
import eu.nets.pia.ProcessResult;
                  ^
  symbol:   class ProcessResult
  location: package eu.nets.pia

and

nets/PiaSample/app/src/main/java/eu/nets/pia/sample/ui/activity/main/MainActivity.java:616: error: cannot find symbol
    private Pair<String, PiaSDK.Environment> merchantIDAndEnvironmentPair() {
                               ^
  symbol:   class Environment
  location: class PiaSDK

Checked the documentation and it references the same types and if I try to use the library in my own project I get the same errors (I followed the instructions step by step). We have been using this library in our production apps for a while and we really need to upgrade to the latest version so any help would be appreciated.

This is only happening on version 2.1.0. (running Android Studio 4.1.2 on macOS 11.2)

ngoclt commented 3 years ago

I am facing the same problem here. It seems some of the classes are not public. @Miss-PiA Could you please help us to check this issue.

Miss-PiA commented 3 years ago

Hello @zoltan-vari & @ngoclt

The PiA SDK version 2.1.1 with the fix is available on Maven. You can use it for implementation and let us know if you still face any issue.

Best regards

ngoclt commented 3 years ago

@Miss-PiA thank you very much, I will give it a try soon :)

Miss-PiA commented 3 years ago

Hello @ngoclt & @zoltan-vari

A new version v2.1.2 of PiA SDK has been released. Would recommend you to use the latest SDK version which includes fixes to compiler issue allowing for full automated installation. Feel free to reach out to us if you face any issue.

Best regards