+ Option 1. Clone the remote-pay-android-go repository and add a new module for your app into the project
OR
+ Option 2. Clone the remote-pay-android-go repository and copy the necessary modules into your own android project
(I won't go into the tweaking I had to do to get Option 1 close - the project settings.gradle is wrong for this integration).
For Option 2, the first error I got was:
Error:(49, 0) Could not get unknown property 'cloverGoSDKVersion' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. File:D:\AndroidStudioProjects\SPRemote\remote-pay-android-connector\build.gradle
remote-pay-android-connector\build.gradle has the lines:
compile "com.firstdata.clovergo:data:$cloverGoSDKVersion-SNAPSHOT:QaRelease@aar" compile "com.firstdata.clovergo:domain:$cloverGoSDKVersion-SNAPSHOT" compile "com.firstdata.clovergo:reader:$cloverGoSDKVersion-SNAPSHOT@aar
From working in Option 1 I had seen "300.05" as a value. When I put that in I got the errors:
Error:Failed to resolve: com.firstdata.clovergo:data:300.05-SNAPSHOT File:D:/AndroidStudioProjects/SPRemote/app/build.gradle Error:Failed to resolve: com.firstdata.clovergo:domain:300.05-SNAPSHOT File:D:/AndroidStudioProjects/SPRemote/app/build.gradle Error:Failed to resolve: com.firstdata.clovergo:reader:300.05-SNAPSHOT File:D:/AndroidStudioProjects/SPRemote/app/build.gradleInterestingly, I got to the exact same place with this same error when I worked my way through Option 1 importing my project into the fresh GitHub imported remote-pay-android-go project.
Please, how can I resolve this?