This is standard Quadpay toolkit for Android, used for full integrations and consumed by the React Native Bridge.
- Gradle: Note - Mac / Unix / Linux users can download this with apt-get
- Android Studio: For development and publishing
- Access to Sonatype Nexus: For publishing and releasing artifacts. You need to have valid user credentials with the com.quadpay organization to do this.
Simply navigate to the 'Run' tab of Android Studio and run the example - This will begin an Android simulation of the Quadpay checkout.
- Replace ossrhUsername and ossrhPassword in the gradle.properties file with valid nexus credentials. These are the same credentials used to log into Sonatype.
- Run
gradle wrapper
in the Android Studio terminal in the top-level repository. This will generate the gradle wrapper. - Run
gradlew build
in the Android Studio terminal in the top-level repository. This will build necessary artifacts and the aar (Android Studio SDK). - Run
gradlew createJar
in the Android Studio terminal in the top-level repository. This will generate the quadpay versioned jar that contains all of the class files. - In publish.gradle, replace signingKey in the 'signing' section with the entire file contents of keyfile.txt in Quadpay Android SDK Secret Key in 1Password. This is a long block of text and should have a newline at the end.
- In publish.gradle, replace signingPassword in the 'signing' section with Quadpay Android SDK Secret Key passphrase's value from 1Password.
- Run
gradlew publish
. This will push all of the required artifacts for publish to a staging repository in Nexus. - Visit Nexus at https://s01.oss.sonatype.org/index.html#stagingRepositories and login. Then click 'Staging Repositories' on the left sidebar. Note: You can only have two staging repositories per project at a time - If you need to push another and already have two, select one of the unused ones and click 'Drop' in the toolbar immediately above it, and then 'Refresh' to the left of that and see the dropped repository should no longer be present.
- Select the desired repository for release and then select 'Close' in the top toolbar. After about a minute, click 'Refresh' and you should see that validation has passed on the project.
- Select 'Release' on the top toolbar with the closed repository selected. Do not toggle defaults and confirm. This will clear your staging repository.
- After about 10 minutes, you should see your newly versioned project in its own folder here.