-
Download the module
ms-sdk-androidfrom the provided url and copy the path to your local folder. -
Add the following code to the
settings.gradleof your project to search for that module on the local path.include ':ms-sdk-android' project(':ms-sdk-android').projectDir = new File(settingsDir, '<path_to>/ms-sdk-android') -
Add the following code to the
build.gradleof your project in order to reference the library.dependencies { compile project(':ms-sdk-android') ... }
- You need
ms-sdk-android-release.aar:
- Download it from the provided link, or
- Run
gradle buildfrom the root of the project library if you have the source, thems-sdk-android-release.aarwill be generated inbuild/outputs/folder.
-
If necessary, install the latest JDK and set the JAVA_HOME environment.
-
If necessary, install Maven. You can download it here: http://maven.apache.org/download.cgi. Set the MAVEN_HOME environment variable to the path where you extracted maven, and add the maven's bin folder to the PATH environment variable.
-
To test that Maven is working fine, open a new console window and run the following:
> mvn -version -
Add the aar. library to your local maven repository. Run:
mvn install:install-file -Dfile=<path_to_aar_file> -DgroupId=com.viafirma -DartifactId=ms-sdk-android -Dversion=1.0 -Dpackaging=aar -
Add the following code to the
build.gradleof the app which will use Viafirma Android Lib:repositories { mavenLocal() ... } ... dependencies { compile 'com.viafirma:ms-sdk-android:1.0' ... }
-
Just modify the
build.gradleof your project to include the following code.repositories { maven { url "http://repositorio.viavansi.com/artifactory/libs-releases-local/" } ... } ... dependencies { compile 'com.viafirma:ms-sdk-android:3.7.+' ... }
- From the command line, in the path where you have the source, run the following command:
gradlew releaseVersion
or
gradlew snapshotVersion
-
This will generate all the files and upload the AAR to the repository specified on
gradle.properties -
You need to specify a new version number every time, the account configured does not have permission to modify/remove uploaded artifacts.